vendor: 7,563 bytes, line 1
1import{a as v,b as T,c as Nb,e as Jg,f as K_,g as Ob,h as Z_,i as Q_,m as ft}from"./chunk-3JMZ37NM.js";var oL={};Z_(oL,{__addDisposableResource:()=>aw,__assign:()=>Eu,__asyncDelegator:()=>ew,__asyncGenerator:()=>Du,__asyncValues:()=>bu,__await:()=>zn,__awaiter:()=>Su,__classPrivateFieldGet:()=>iw,__classPrivateFieldIn:()=>ow,__classPrivateFieldSet:()=>sw,__createBinding:()=>Iu,__decorate:()=>Vb,__disposeResources:()=>cw,__esDecorate:()=>zb,__exportStar:()=>Zb,__extends:()=>$b,__generator:()=>Kb,__importDefault:()=>rw,__importStar:()=>nw,__makeTemplateObject:()=>tw,__metadata:()=>Yb,__param:()=>Hb,__propKey:()=>Wb,__read:()=>am,__rest:()=>Bb,__rewriteRelativeImportExtension:()=>uw,__runInitializers:()=>Gb,__setFunctionName:()=>qb,__spread:()=>Qb,__spreadArray:()=>Xb,__spreadArrays:()=>Jb,__values:()=>Cu,default:()=>sL});function $b(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");sm(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}function Bb(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i}function Vb(t,e,i,n){var r=arguments.length,s=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s}function Hb(t,e){return function(i,n){e(i,n,t)}}function zb(t,e,i,n,r,s){function o(R){if(R!==void 0&&typeof R!="function")throw new TypeError("Function expected");return R}for(var a=n.kind,c=a==="getter"?"get":a==="setter"?"set":"value",u=!e&&t?n.static?t:t.prototype:null,l=e||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),d,h=!1,p=i.length-1;p>=0;p--){var y={};for(var D in n)y[D]=D==="access"?{}:n[D];for(var D in n.access)y.access[D]=n.access[D];y.addInitializer=function(R){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(R||null))};var w=(0,i[p])(a==="accessor"?{get:l.get,set:l.set}:l[c],y);if(a==="accessor"){if(w===void 0)continue;if(w===null||typeof w!="object")throw new TypeError("Object expected");(d=o(w.get))&&(l.get=d),(d=o(w.set))&&(l.set=d),(d=o(w.init))&&r.unshift(d)}else(d=o(w))&&(a==="field"?r.unshift(d):l[c]=d)}u&&Object.defineProperty(u,n.name,l),h=!0}function Gb(t,e,i){for(var n=arguments.length>2,r=0;r<e.length;r++)i=n?e[r].call(t,i):e[r].call(t);return n?i:void 0}function Wb(t){return typeof t=="symbol"?t:"".concat(t)}function qb(t,e,i){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:i?"".concat(i," ",e):e})}function Yb(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function Su(t,e,i,n){function r(s){return s instanceof i?s:new i(function(o){o(s)})}return new(i||(i=Promise))(function(s,o){function a(l){try{u(n.next(l))}catch(d){o(d)}}function c(l){try{u(n.throw(l))}catch(d){o(d)}}function u(l){l.done?s(l.value):r(l.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function Kb(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(s=u[0]&2?r.return:u[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,u[1])).done)return s;switch(r=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(s=i.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){i=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){i.label=u[1];break}if(u[0]===6&&i.label<s[1]){i.label=s[1],s=u;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(u);break}s[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(t,i)}catch(l){u=[6,l],r=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Zb(t,e){for(var i in t)i!=="default"&&!Object.prototype.hasOwnProperty.call(e,i)&&Iu(e,t,i)}function Cu(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function am(t,e){var i=typeof Symbol=="function"&&t[Symbol.iterator];if(!i)return t;var n=i.call(t),r,s=[],o;try{for(;(e===void 0||e-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(o)throw o.error}}return s}function Qb(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(am(arguments[e]));return t}function Jb(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),r=0,e=0;e<i;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,r++)n[r]=s[o];return n}function Xb(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))}function zn(t){return this instanceof zn?(this.v=t,this):new zn(t)}function Du(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),r,s=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),r[Symbol.asyncIterator]=function(){return this},r;function o(p){return function(y){return Promise.resolve(y).then(p,d)}}function a(p,y){n[p]&&(r[p]=function(D){return new Promise(function(w,R){s.push([p,D,w,R])>1||c(p,D)})},y&&(r[p]=y(r[p])))}function c(p,y){try{u(n[p](y))}catch(D){h(s[0][3],D)}}function u(p){p.value instanceof zn?Promise.resolve(p.value.v).then(l,d):h(s[0][2],p)}function l(p){c("next",p)}function d(p){c("throw",p)}function h(p,y){p(y),s.shift(),s.length&&c(s[0][0],s[0][1])}}function ew(t){var e,i;return e={},n("next"),n("throw",function(r){throw r}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(r,s){e[r]=t[r]?function(o){return(i=!i)?{value:zn(t[r](o)),done:!1}:s?s(o):o}:s}}function bu(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof Cu=="function"?Cu(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(s){i[s]=t[s]&&function(o){return new Promise(function(a,c){o=t[s](o),r(a,c,o.done,o.value)})}}function r(s,o,a,c){Promise.resolve(c).then(function(u){s({value:u,done:a})},o)}}function tw(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function nw(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var i=om(t),n=0;n<i.length;n++)i[n]!=="default"&&Iu(e,t,i[n]);return rL(e,t),e}function rw(t){return t&&t.__esModule?t:{default:t}}
vendor: 3,667 bytes, line 1
1function iw(t,e,i,n){if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?n:i==="a"?n.call(t):n?n.value:e.get(t)}function sw(t,e,i,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(t,i):r?r.value=i:e.set(t,i),i}function ow(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function aw(t,e,i){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],i&&(r=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(s){return Promise.reject(s)}}),t.stack.push({value:e,dispose:n,async:i})}else i&&t.stack.push({async:!0});return e}function cw(t){function e(s){t.error=t.hasError?new iL(s,t.error,"An error was suppressed during disposal."):s,t.hasError=!0}var i,n=0;function r(){for(;i=t.stack.pop();)try{if(!i.async&&n===1)return n=0,t.stack.push(i),Promise.resolve().then(r);if(i.dispose){var s=i.dispose.call(i.value);if(i.async)return n|=2,Promise.resolve(s).then(r,function(o){return e(o),r()})}else n|=1}catch(o){e(o)}if(n===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return r()}function uw(t,e){return typeof t=="string"&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(i,n,r,s,o){return n?e?".jsx":".js":r&&(!s||!o)?i:r+s+"."+o.toLowerCase()+"js"}):t}var sm,Eu,Iu,rL,om,iL,sL,cm=K_(()=>{sm=function(t,e){return sm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r])},sm(t,e)};Eu=function(){return Eu=Object.assign||function(e){for(var i,n=1,r=arguments.length;n<r;n++){i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Eu.apply(this,arguments)};Iu=Object.create?function(t,e,i,n){n===void 0&&(n=i);var r=Object.getOwnPropertyDescriptor(e,i);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,r)}:function(t,e,i,n){n===void 0&&(n=i),t[n]=e[i]};rL=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},om=function(t){return om=Object.getOwnPropertyNames||function(e){var i=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[i.length]=n);return i},om(t)};iL=typeof SuppressedError=="function"?SuppressedError:function(t,e,i){var n=new Error(i);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};sL={__extends:$b,__assign:Eu,__rest:Bb,__decorate:Vb,__param:Hb,__esDecorate:zb,__runInitializers:Gb,__propKey:Wb,__setFunctionName:qb,__metadata:Yb,__awaiter:Su,__generator:Kb,__createBinding:Iu,__exportStar:Zb,__values:Cu,__read:am,__spread:Qb,__spreadArrays:Jb,__spreadArray:Xb,__await:zn,__asyncGenerator:Du,__asyncDelegator:ew,__asyncValues:bu,__makeTemplateOb
vendor: 7,365 bytes, lines 1-2
1ject:tw,__importStar:nw,__importDefault:rw,__classPrivateFieldGet:iw,__classPrivateFieldSet:sw,__classPrivateFieldIn:ow,__addDisposableResource:aw,__disposeResources:cw,__rewriteRelativeImportExtension:uw}});var IN=Ob((Ci,SN)=>{var xf=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Nf=function(){function t(){this.fetch=!1,this.DOMException=xf.DOMException}return t.prototype=xf,new t}();(function(t){var e=function(i){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof n<"u"&&n,r={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function s(b){return b&&DataView.prototype.isPrototypeOf(b)}if(r.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(b){return b&&o.indexOf(Object.prototype.toString.call(b))>-1};function c(b){if(typeof b!="string"&&(b=String(b)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(b)||b==="")throw new TypeError('Invalid character in header field name: "'+b+'"');return b.toLowerCase()}function u(b){return typeof b!="string"&&(b=String(b)),b}function l(b){var x={next:function(){var ie=b.shift();return{done:ie===void 0,value:ie}}};return r.iterable&&(x[Symbol.iterator]=function(){return x}),x}function d(b){this.map={},b instanceof d?b.forEach(function(x,ie){this.append(ie,x)},this):Array.isArray(b)?b.forEach(function(x){this.append(x[0],x[1])},this):b&&Object.getOwnPropertyNames(b).forEach(function(x){this.append(x,b[x])},this)}d.prototype.append=function(b,x){b=c(b),x=u(x);var ie=this.map[b];this.map[b]=ie?ie+", "+x:x},d.prototype.delete=function(b){delete this.map[c(b)]},d.prototype.get=function(b){return b=c(b),this.has(b)?this.map[b]:null},d.prototype.has=function(b){return this.map.hasOwnProperty(c(b))},d.prototype.set=function(b,x){this.map[c(b)]=u(x)},d.prototype.forEach=function(b,x){for(var ie in this.map)this.map.hasOwnProperty(ie)&&b.call(x,this.map[ie],ie,this)},d.prototype.keys=function(){var b=[];return this.forEach(function(x,ie){b.push(ie)}),l(b)},d.prototype.values=function(){var b=[];return this.forEach(function(x){b.push(x)}),l(b)},d.prototype.entries=function(){var b=[];return this.forEach(function(x,ie){b.push([ie,x])}),l(b)},r.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);function h(b){if(b.bodyUsed)return Promise.reject(new TypeError("Already read"));b.bodyUsed=!0}function p(b){return new Promise(function(x,ie){b.onload=function(){x(b.result)},b.onerror=function(){ie(b.error)}})}function y(b){var x=new FileReader,ie=p(x);return x.readAsArrayBuffer(b),ie}function D(b){var x=new FileReader,ie=p(x);return x.readAsText(b),ie}function w(b){for(var x=new Uint8Array(b),ie=new Array(x.length),me=0;me<x.length;me++)ie[me]=String.fromCharCode(x[me]);return ie.join("")}function R(b){if(b.slice)return b.slice(0);var x=new Uint8Array(b.byteLength);return x.set(new Uint8Array(b)),x.buffer}function $(){return this.bodyUsed=!1,this._initBody=function(b){this.bodyUsed=this.bodyUsed,this._bodyInit=b,b?typeof b=="string"?this._bodyText=b:r.blob&&Blob.prototype.isPrototypeOf(b)?this._bodyBlob=b:r.formData&&FormData.prototype.isPrototypeOf(b)?this._bodyFormData=b:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)?this._bodyText=b.toString():r.arrayBuffer&&r.blob&&s(b)?(this._bodyArrayBuffer=R(b.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(b)||a(b))?this._bodyArrayBuffer=R(b):this._bodyText=b=Object.prototype.toString.call(b):this._bodyText="",this.headers.get("content-type")||(typeof b=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var b=h(this);if(b)return b;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var b=h(this);return b||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(y)}),this.text=function(){var b=h(this);if(b)return b;if(this._bodyBlob)return D(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(ue)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function B(b){var x=b.toUpperCase();return k.indexOf(x)>-1?x:b}function re(b,x){if(!(this instanceof re))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var ie=x.body;if(b instanceof re){if(b.bodyUsed)throw new TypeError("Already read");this.url=b.url,this.credentials=b.credentials,x.headers||(this.headers=new d(b.headers)),this.method=b.method,this.mode=b.mode,this.signal=b.signal,!ie&&b._bodyInit!=null&&(ie=b._bodyInit,b.bodyUsed=!0)}else this.url=String(b);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new d(x.headers)),this.method=B(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ie)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(ie),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var me=/([?&])_=[^&]*/;if(me.test(this.url))this.url=this.url.replace(me,"$1_="+new Date().getTime());else{var Te=/\?/;this.url+=(Te.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}re.prototype.clone=function(){return new re(this,{body:this._bodyInit})};function ue(b){var x=new FormData;return b.trim().split("&").forEach(function(ie){if(ie){var me=ie.split("="),Te=me.shift().replace(/\+/g," "),he=me.join("=").replace(/\+/g," ");x.append(decodeURIComponent(Te),decodeURIComponent(he))}}),x}function pe(b){var x=new d,ie=b.replace(/\r?\n[\t ]+/g," ");return ie.split("\r").map(function(me){return me.indexOf(` 2`)===0?me.substr(1,me.length):me}).forEach(function(me){var Te=me.split(":"),he=Te.shift().trim();if(he){var Tr=Te.join(":").trim();x.append(he,Tr)}}),x}$.call(re.prototype);function Fe(b,x){if(!(this instanceof Fe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.ok=this.status>
2=200&&this.status<300,this.statusText=x.statusText===void 0?"":""+x.statusText,this.headers=new d(x.headers),this.url=x.url||"",this._initBody(b)}$.call(Fe.prototype),Fe.prototype.clone=function(){return new Fe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},Fe.error=function(){var b=new Fe(null,{status:0,statusText:""});return b.type="error",b};var Mi=[301,302,303,307,308];Fe.redirect=function(b,x){if(Mi.indexOf(x)===-1)throw new RangeError("Invalid status code");return new Fe(null,{status:x,headers:{location:b}})},i.DOMException=n.DOMException;try{new i.DOMException}catch{i.DOMException=function(x,ie){this.message=x,this.name=ie;var me=Error(x);this.stack=me.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function Hn(b,x){return new Promise(function(ie,me){var Te=new re(b,x);if(Te.signal&&Te.signal.aborted)return me(new i.DOMException("Aborted","AbortError"));var he=new XMLHttpRequest;function Tr(){he.abort()}he.onload=function(){var Be={status:he.status,statusText:he.statusText,headers:pe(he.getAllResponseHeaders()||"")};Be.url="responseURL"in he?he.responseURL:Be.headers.get("X-Request-URL");var hn="response"in he?he.response:he.responseText;setTimeout(function(){ie(new Fe(hn,Be))},0)},he.onerror=function(){setTimeout(function(){me(new TypeError("Network request failed"))},0)},he.ontimeout=function(){setTimeout(function(){me(new TypeError("Network request failed"))},0)},he.onabort=function(){setTimeout(function(){me(new i.DOMException("Aborted","AbortError"))},0)};function dt(Be){try{return Be===""&&n.location.href?n.location.href:Be}catch{return Be}}he.open(Te.method,dt(Te.url),!0),Te.credentials==="include"?he.withCredentials=!0:Te.credentials==="omit"&&(he.withCredentials=!1),"responseType"in he&&(r.blob?he.responseType="blob":r.arrayBuffer&&Te.headers.get("Content-Type")&&Te.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(he.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof d)?Object.getOwnPropertyNames(x.headers).forEach(function(Be){he.setRequestHeader(Be,u(x.headers[Be]))}):Te.headers.forEach(function(Be,hn){he.setRequestHeader(hn,Be)}),Te.signal&&(Te.signal.addEventListener("abort",Tr),he.onreadystatechange=function(){he.readyState===4&&Te.signal.removeEventListener("abort",Tr)}),he.send(typeof Te._bodyInit>"u"?null:Te._bodyInit)})}return Hn.polyfill=!0,n.fetch||(n.fetch=Hn,n.Headers=d,n.Request=re,n.Response=Fe),i.Headers=d,i.Request=re,i.Response=Fe,i.fetch=Hn,i}({})})(Nf);Nf.fetch.ponyfill=!0;delete Nf.fetch.polyfill;var Ro=xf.fetch?xf:Nf;Ci=Ro.fetch;Ci.default=Ro.fetch;Ci.fetch=Ro.fetch;Ci.Headers=Ro.Headers;Ci.Request=Ro.Request;Ci.Response=Ro.Response;SN.exports=Ci});var bN=Ob((JC,DN)=>{var QC=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?QC=global.fetch:typeof window<"u"&&window.fetch&&(QC=window.fetch);typeof Nb<"u"&&typeof window>"u"&&(Dc=QC||IN(),Dc.default&&(Dc=Dc.default),JC.default=Dc,DN.exports=JC.default);var Dc});function W(t){return typeof t=="function"}function Zr(t){let i=t(n=>{Error.call(n),n.stack=new Error().stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}var pu=Zr(t=>function(i){t(this),this.message=i?`${i.length} errors occurred during unsubscription: 3${i.map((n,r)=>`${r+1}) ${n.toString()}`).join(` 4 `)}`:"",this.name="UnsubscriptionError",this.errors=i});function Ar(t,e){if(t){let i=t.indexOf(e);0<=i&&t.splice(i,1)}}var Ce=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(let s of i)s.remove(this);else i.remove(this);let{initialTeardown:n}=this;if(W(n))try{n()}catch(s){e=s instanceof pu?s.errors:[s]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let s of r)try{Pb(s)}catch(o){e=e??[],o instanceof pu?e=[...e,...o.errors]:e.push(o)}}if(e)throw new pu(e)}}add(e){var i;if(e&&e!==this)if(this.closed)Pb(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(e)}}_hasParent(e){let{_parentage:i}=this;return i===e||Array.isArray(i)&&i.includes(e)}_addParent(e){let{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(e),i):i?[i,e]:e}_removeParent(e){let{_parentage:i}=this;i===e?this._parentage=null:Array.isArray(i)&&Ar(i,e)}remove(e){let{_finalizers:i}=this;i&&Ar(i,e),e instanceof t&&e._removeParent(this)}};Ce.EMPTY=(()=>{let t=new Ce;return t.closed=!0,t})();var Xg=Ce.EMPTY;function gu(t){return t instanceof Ce||t&&"closed"in t&&W(t.remove)&&W(t.add)&&W(t.unsubscribe)}function Pb(t){W(t)?t():t.unsubscribe()}var Dn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNext
vendor: 8,701 bytes, line 4
4Context:!1};var bs={setTimeout(t,e,...i){let{delegate:n}=bs;return n?.setTimeout?n.setTimeout(t,e,...i):setTimeout(t,e,...i)},clearTimeout(t){let{delegate:e}=bs;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function mu(t){bs.setTimeout(()=>{let{onUnhandledError:e}=Dn;if(e)e(t);else throw t})}function Yt(){}var Fb=em("C",void 0,void 0);function _b(t){return em("E",void 0,t)}function Lb(t){return em("N",t,void 0)}function em(t,e,i){return{kind:t,value:e,error:i}}var xi=null;function ws(t){if(Dn.useDeprecatedSynchronousErrorHandling){let e=!xi;if(e&&(xi={errorThrown:!1,error:null}),t(),e){let{errorThrown:i,error:n}=xi;if(xi=null,i)throw n}}else t()}function kb(t){Dn.useDeprecatedSynchronousErrorHandling&&xi&&(xi.errorThrown=!0,xi.error=t)}var Ni=class extends Ce{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,gu(e)&&e.add(this)):this.destination=eL}static create(e,i,n){return new bn(e,i,n)}next(e){this.isStopped?nm(Lb(e),this):this._next(e)}error(e){this.isStopped?nm(_b(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?nm(Fb,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()}}},J_=Function.prototype.bind;function tm(t,e){return J_.call(t,e)}var rm=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:i}=this;if(i.next)try{i.next(e)}catch(n){vu(n)}}error(e){let{partialObserver:i}=this;if(i.error)try{i.error(e)}catch(n){vu(n)}else vu(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(i){vu(i)}}},bn=class extends Ni{constructor(e,i,n){super();let r;if(W(e)||!e)r={next:e??void 0,error:i??void 0,complete:n??void 0};else{let s;this&&Dn.useDeprecatedNextContext?(s=Object.create(e),s.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&tm(e.next,s),error:e.error&&tm(e.error,s),complete:e.complete&&tm(e.complete,s)}):r=e}this.destination=new rm(r)}};function vu(t){Dn.useDeprecatedSynchronousErrorHandling?kb(t):mu(t)}function X_(t){throw t}function nm(t,e){let{onStoppedNotification:i}=Dn;i&&bs.setTimeout(()=>i(t,e))}var eL={closed:!0,next:Yt,error:X_,complete:Yt};var Ts=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ze(t){return t}function ea(...t){return im(t)}function im(t){return t.length===0?Ze:t.length===1?t[0]:function(i){return t.reduce((n,r)=>r(n),i)}}var U=(()=>{class t{constructor(i){i&&(this._subscribe=i)}lift(i){let n=new t;return n.source=this,n.operator=i,n}subscribe(i,n,r){let s=nL(i)?i:new bn(i,n,r);return ws(()=>{let{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return n=jb(n),new n((r,s)=>{let o=new bn({next:a=>{try{i(a)}catch(c){s(c),o.unsubscribe()}},error:s,complete:r});this.subscribe(o)})}_subscribe(i){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(i)}[Ts](){return this}pipe(...i){return im(i)(this)}toPromise(i){return i=jb(i),new i((n,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>n(s))})}}return t.create=e=>new t(e),t})();function jb(t){var e;return(e=t??Dn.Promise)!==null&&e!==void 0?e:Promise}function tL(t){return t&&W(t.next)&&W(t.error)&&W(t.complete)}function nL(t){return t&&t instanceof Ni||tL(t)&&gu(t)}var Ub=Zr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var oe=(()=>{class t extends U{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){let n=new yu(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new Ub}next(i){ws(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(i)}})}error(i){ws(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;let{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){ws(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return((i=this.observers)===null||i===void 0?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){let{hasError:n,isStopped:r,observers:s}=this;return n||r?Xg:(this.currentObservers=null,s.push(i),new Ce(()=>{this.currentObservers=null,Ar(s,i)}))}_checkFinalizedStatuses(i){let{hasError:n,thrownError:r,isStopped:s}=this;n?i.error(r):s&&i.complete()}asObservable(){let i=new U;return i.source=this,i}}return t.create=(e,i)=>new yu(e,i),t})(),yu=class extends oe{constructor(e,i){super(),this.destination=e,this.source=i}next(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,e)}error(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,e)}complete(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)}_subscribe(e){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&n!==void 0?n:Xg}};var Ae=class extends oe{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let i=super._subscribe(e);return!i.closed&&e.next(this._value),i}getValue(){let{hasError:e,thrownError:i,_value:n}=this;if(e)throw i;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var ta={now(){return(ta.delegate||Date).now()},delegate:void 0};var Kt=class extends oe{constructor(e=1/0,i=1/0,n=ta){super(),this._bufferSize=e,this._windowTime=i,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=i===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,i)}next(e){let{isStopped:i,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:s,_windowTime:o}=this;i||(n.push(e),!r&&n.push(s.now()+o)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let i=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,s=r.slice();for(let o=0;o<s.length&&!e.closed;o+=n?1:2)e.next(s[o]);return this._checkFinalizedStatuses(e),i}_trimBuffer(){let{_bufferSize:e,_timestampProvider:i,_buffer:n,_infiniteTimeWindow:r}=this,s=(r?1:2)*e;if(e<1/0&&s<n.length&&n.splice(0,n.length-s),!r){let o=i.now(),a=0;for(let c=1;c<n.length&&n[c]<=o;c+=2)a=c;a&&n.splice(0,a+1)}}};cm();var As=t=>t&&typeof t.length=="number"&&typeof t!="function";function wu(t){return W(t?.then)}function Tu(t){return W(t[Ts])}function Au(t){return Symbol.asyncIterator&&W(t?.[Symbol.asyncIterator])}function Ru(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function aL(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Mu=aL();function xu(t){return W(t?.[Mu])}cm();function Nu(t){return Du(this,arguments,function*(){let i=t.getReader();try{for(;;){let{value:n,done:r}=yield zn(i.read());if(r)return yield zn(void 0);yield yield zn(n)}}finally{i.releaseLock()}})}function Ou(t){return W(t?.getReader)}function Y(t){if(t instanceof U)return t;if(t!=null){if(Tu(t))return cL(t);if(As(t))return uL(t);if(wu(t))return lL(t);if(Au(t))return lw(t);if(xu(t))return dL(t);if(Ou(t))return fL(t)}throw Ru(t)}function cL(t){return new U(e=>{let i=t[Ts]();if(W(i.subscribe))return i.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function uL(t){return new U(e=>{for(let i=0;i<t.length&&!e.closed;i++)e.next(t[i]);e.complete()})}function lL(t){return new U(e=>{t.then(i=>{e.closed||(e.next(i),e.complete())},i=>e.error(i)).then(null,mu)})}function dL(t){return new U(e=>{for(let i of t)if(e.next(i),e.closed)return;e.complete()})}function lw(t){return new U(e=>{hL(t,e).catch(i=>e.error(i))})}function fL(t){return lw(Nu(t))}function hL(t,e){var i,n,r,s;return Su(this,void 0,void 0,function*(){try{for(i=bu(t);n=yield i.next(),!n.done;){let o=n.value;if(e.next(o),e.closed)return}}catch(o){r={error:o}}finally{try{n&&!n.done&&(s=i.return)&&(yield s.call(i))}finally{if(r)throw r.error}}e.complete()})}
vendor: 4,437 bytes, line 4
4function wt(t,e,i,n=0,r=!1){let s=e.schedule(function(){i(),r?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(s),!r)return s}function um(t){return W(t?.lift)}function _(t){return e=>{if(um(e))return e.lift(function(i){try{return t(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function P(t,e,i,n,r){return new na(t,e,i,n,r)}var na=class extends Ni{constructor(e,i,n,r,s,o){super(e),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=i?function(a){try{i(a)}catch(c){e.error(c)}}:super._next,this._error=r?function(a){try{r(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:i}=this;super.unsubscribe(),!i&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function pn(t,e=0){return _((i,n)=>{i.subscribe(P(n,r=>wt(n,t,()=>n.next(r),e),()=>wt(n,t,()=>n.complete(),e),r=>wt(n,t,()=>n.error(r),e)))})}function Pu(t,e=0){return _((i,n)=>{n.add(t.schedule(()=>i.subscribe(n),e))})}function dw(t,e){return Y(t).pipe(Pu(e),pn(e))}function fw(t,e){return Y(t).pipe(Pu(e),pn(e))}function hw(t,e){return new U(i=>{let n=0;return e.schedule(function(){n===t.length?i.complete():(i.next(t[n++]),i.closed||this.schedule())})})}function pw(t,e){return new U(i=>{let n;return wt(i,e,()=>{n=t[Mu](),wt(i,e,()=>{let r,s;try{({value:r,done:s}=n.next())}catch(o){i.error(o);return}s?i.complete():i.next(r)},0,!0)}),()=>W(n?.return)&&n.return()})}function Fu(t,e){if(!t)throw new Error("Iterable cannot be null");return new U(i=>{wt(i,e,()=>{let n=t[Symbol.asyncIterator]();wt(i,e,()=>{n.next().then(r=>{r.done?i.complete():i.next(r.value)})},0,!0)})})}function gw(t,e){return Fu(Nu(t),e)}function mw(t,e){if(t!=null){if(Tu(t))return dw(t,e);if(As(t))return hw(t,e);if(wu(t))return fw(t,e);if(Au(t))return Fu(t,e);if(xu(t))return pw(t,e);if(Ou(t))return gw(t,e)}throw Ru(t)}function ge(t,e){return e?mw(t,e):Y(t)}function _u(t){return t&&W(t.schedule)}function lm(t){return t[t.length-1]}function Gn(t){return W(lm(t))?t.pop():void 0}function Wn(t){return _u(lm(t))?t.pop():void 0}function vw(t,e){return typeof lm(t)=="number"?t.pop():e}function I(...t){let e=Wn(t);return ge(t,e)}var Zt=Zr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function qn(t,e){let i=typeof e=="object";return new Promise((n,r)=>{let s=!1,o;t.subscribe({next:a=>{o=a,s=!0},error:r,complete:()=>{s?n(o):i?n(e.defaultValue):r(new Zt)}})})}function E(t,e){return _((i,n)=>{let r=0;i.subscribe(P(n,s=>{n.next(t.call(e,s,r++))}))})}var{isArray:pL}=Array,{getPrototypeOf:gL,prototype:mL,keys:vL}=Object;function Lu(t){if(t.length===1){let e=t[0];if(pL(e))return{args:e,keys:null};if(yL(e)){let i=vL(e);return{args:i.map(n=>e[n]),keys:i}}}return{args:t,keys:null}}function yL(t){return t&&typeof t=="object"&&gL(t)===mL}var{isArray:EL}=Array;function CL(t,e){return EL(e)?t(...e):t(e)}function Qr(t){return E(e=>CL(t,e))}function ku(t,e){return t.reduce((i,n,r)=>(i[n]=e[r],i),{})}function Ve(...t){let e=Wn(t),i=Gn(t),{args:n,keys:r}=Lu(t);if(n.length===0)return ge([],e);let s=new U(dm(n,e,r?o=>ku(r,o):Ze));return i?s.pipe(Qr(i)):s}function dm(t,e,i=Ze){return n=>{yw(e,()=>{let{length:r}=t,s=new Array(r),o=r,a=r;for(let c=0;c<r;c++)yw(e,()=>{let u=ge(t[c],e),l=!1;u.subscribe(P(n,d=>{s[c]=d,l||(l=!0,a--),a||n.next(i(s.slice()))},()=>{--o||n.complete()}))},n)},n)}}function yw(t,e,i){t?wt(i,t,e):e()}function Ew(t,e,i,n,r,s,o,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&e.complete()},p=D=>u<n?y(D):c.push(D),y=D=>{s&&e.next(D),u++;let w=!1;Y(i(D,l++)).subscribe(P(e,R=>{r?.(R),s?p(R):e.next(R)},()=>{w=!0},void 0,()=>{if(w)try{for(u--;c.length&&u<n;){let R=c.shift();o?wt(e,o,()=>y(R)):y(R)}h()}catch(R){e.error(R)}}))};return t.subscribe(P(e,p,()=>{d=!0,h()})),()=>{a?.()}}function q(t,e,i=1/0){return W(e)?q((n,r)=>E((s,o)=>e(n,s,r,o))(Y(t(n,r))),i):(typeof e=="number"&&(i=e),_((n,r)=>Ew(n,r,t,i)))}var ju=class extends Ce{constructor(e,i){super()}schedule(e,i=0){return this}};var ra={setInterval(t,e,...i){let{delegate:n}=ra;return n?.setInterval?n.setInterval(t,e,...i):setInterval(t,e,...i)},clearInterval(t){let{delegate:e}=ra;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Yn=class extends ju{constructor(e,i){super(e,i),this.scheduler
vendor: 8,172 bytes, line 4
4=e,this.work=i,this.pending=!1}schedule(e,i=0){var n;if(this.closed)return this;this.state=e;let r=this.id,s=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(s,r,i)),this.pending=!0,this.delay=i,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(s,this.id,i),this}requestAsyncId(e,i,n=0){return ra.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,i,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return i;i!=null&&ra.clearInterval(i)}execute(e,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,i);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,i){let n=!1,r;try{this.work(e)}catch(s){n=!0,r=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:e,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,Ar(n,this),e!=null&&(this.id=this.recycleAsyncId(i,e,null)),this.delay=null,super.unsubscribe()}}};var Rs=class t{constructor(e,i=t.now){this.schedulerActionCtor=e,this.now=i}schedule(e,i=0,n){return new this.schedulerActionCtor(this,e).schedule(n,i)}};Rs.now=ta.now;var Kn=class extends Rs{constructor(e,i=Rs.now){super(e,i),this.actions=[],this._active=!1}flush(e){let{actions:i}=this;if(this._active){i.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=i.shift());if(this._active=!1,n){for(;e=i.shift();)e.unsubscribe();throw n}}};var Qt=new Kn(Yn),Cw=Qt;function Uu(t){return t instanceof Date&&!isNaN(t)}function Jt(t=0,e,i=Cw){let n=-1;return e!=null&&(_u(e)?i=e:n=e),new U(r=>{let s=Uu(t)?+t-i.now():t;s<0&&(s=0);let o=0;return i.schedule(function(){r.closed||(r.next(o++),0<=n?this.schedule(void 0,n):r.complete())},s)})}function N(t,e){return _((i,n)=>{let r=0;i.subscribe(P(n,s=>t.call(e,s,r++)&&n.next(s)))})}var ve=new U(t=>t.complete());function Ms(t,e){return new U(i=>{let n=t(),r=e(n);return(r?Y(r):ve).subscribe(i),()=>{n&&n.unsubscribe()}})}function F(t){return _((e,i)=>{let n=null,r=!1,s;n=e.subscribe(P(i,void 0,void 0,o=>{s=Y(t(o,F(t)(e))),n?(n.unsubscribe(),n=null,s.subscribe(i)):r=!0})),r&&(n.unsubscribe(),n=null,s.subscribe(i))})}function rt(t,e){return W(e)?q(t,e,1):q(t,1)}function SL(t){return _((e,i)=>{let n=!1,r=null,s=null,o=()=>{if(s?.unsubscribe(),s=null,n){n=!1;let a=r;r=null,i.next(a)}};e.subscribe(P(i,a=>{s?.unsubscribe(),n=!0,r=a,s=P(i,o,Yt),Y(t(a)).subscribe(s)},()=>{o(),i.complete()},void 0,()=>{r=s=null}))})}function le(t){return t<=0?()=>ve:_((e,i)=>{let n=0;e.subscribe(P(i,r=>{++n<=t&&(i.next(r),t<=n&&i.complete())}))})}function Xt(t,e=Ze){return t=t??IL,_((i,n)=>{let r,s=!0;i.subscribe(P(n,o=>{let a=e(o);(s||!t(r,a))&&(s=!1,r=a,n.next(o))}))})}function IL(t,e){return t===e}function DL(t,e){return Xt((i,n)=>e?e(i[t],n[t]):i[t]===n[t])}function wn(t){return _((e,i)=>{try{e.subscribe(i)}finally{i.add(t)}})}function Jr(t,e,i,n){return _((r,s)=>{let o;!e||typeof e=="function"?o=e:{duration:i,element:o,connector:n}=e;let a=new Map,c=y=>{a.forEach(y),y(s)},u=y=>c(D=>D.error(y)),l=0,d=!1,h=new na(s,y=>{try{let D=t(y),w=a.get(D);if(!w){a.set(D,w=n?n():new oe);let R=p(D,w);if(s.next(R),i){let $=P(w,()=>{w.complete(),$?.unsubscribe()},void 0,void 0,()=>a.delete(D));h.add(Y(i(R)).subscribe($))}}w.next(o?o(y):y)}catch(D){u(D)}},()=>c(y=>y.complete()),u,()=>a.clear(),()=>(d=!0,l===0));r.subscribe(h);function p(y,D){let w=new U(R=>{l++;let $=D.subscribe(R);return()=>{$.unsubscribe(),--l===0&&d&&h.unsubscribe()}});return w.key=y,w}})}function ia(){return _((t,e)=>{let i,n=!1;t.subscribe(P(e,r=>{let s=i;i=r,n&&e.next([s,r]),n=!0}))})}function xs(t={}){let{connector:e=()=>new oe,resetOnError:i=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=t;return s=>{let o,a,c,u=0,l=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},p=()=>{h(),o=c=void 0,l=d=!1},y=()=>{let D=o;p(),D?.unsubscribe()};return _((D,w)=>{u++,!d&&!l&&h();let R=c=c??e();w.add(()=>{u--,u===0&&!d&&!l&&(a=fm(y,r))}),R.subscribe(w),!o&&u>0&&(o=new bn({next:$=>R.next($),error:$=>{d=!0,h(),a=fm(p,i,$),R.error($)},complete:()=>{l=!0,h(),a=fm(p,n),R.complete()}}),Y(D).subscribe(o))})(s)}}function fm(t,e,...i){if(e===!0){t();return}if(e===!1)return;let n=new bn({next:()=>{n.unsubscribe(),t()}});return Y(e(...i)).subscribe(n)}function it(t,e,i){let n,r=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:e=1/0,refCount:r=!1,scheduler:i}=t:n=t??1/0,xs({connector:()=>new Kt(n,e,i),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function M(t,e){return _((i,n)=>{let r=null,s=0,o=!1,a=()=>o&&!r&&n.complete();i.subscribe(P(n,c=>{r?.unsubscribe();let u=0,l=s++;Y(t(c,l)).subscribe(r=P(n,d=>n.next(e?e(c,d,l,u++):d),()=>{r=null,a()}))},()=>{o=!0,a()}))})}function j(t,e,i){let n=W(t)||e||i?{next:t,error:e,complete:i}:t;return n?_((r,s)=>{var o;(o=n.subscribe)===null||o===void 0||o.call(n);let a=!0;r.subscribe(P(s,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),s.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),s.complete()},c=>{var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,c),s.error(c)},()=>{var c,u;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):Ze}function en(...t){let e=Gn(t);return _((i,n)=>{let r=t.length,s=new Array(r),o=t.map(()=>!1),a=!1;for(let c=0;c<r;c++)Y(t[c]).subscribe(P(n,u=>{s[c]=u,!a&&!o[c]&&(o[c]=!0,(a=o.every(Ze))&&(o=null))},Yt));i.subscribe(P(n,c=>{if(a){let u=[c,...s];n.next(e?e(...u):u)}}))})}function Ns(){return _((t,e)=>{let i=null;t._refCount++;let n=P(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){i=null;return}let r=t._connection,s=i;i=null,r&&(!s||r===s)&&r.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(i=t.connect())})}var Xr=class extends U{constructor(e,i){super(),this.source=e,this.subjectFactory=i,this._subject=null,this._refCount=0,this._connection=null,um(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Ce;let i=this.getSubject();e.add(this.source.subscribe(P(i,void 0,()=>{this._teardown(),i.complete()},n=>{this._teardown(),i.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Ce.EMPTY)}return e}refCount(){return Ns()(this)}};var Os={schedule(t){let e=requestAnimationFrame,i=cancelAnimationFrame,{delegate:n}=Os;n&&(e=n.requestAnimationFrame,i=n.cancelAnimationFrame);let r=e(s=>{i=void 0,t(s)});return new Ce(()=>i?.(r))},requestAnimationFrame(...t){let{delegate:e}=Os;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=Os;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var bL=1,hm,pm={};function Sw(t){return t in pm?(delete pm[t],!0):!1}var Iw={setImmediate(t){let e=bL++;return pm[e]=!0,hm||(hm=Promise.resolve()),hm.then(()=>Sw(e)&&t()),e},clearImmediate(t){Sw(t)}};var{setImmediate:wL,clearImmediate:TL}=Iw,sa={setImmediate(...t){let{delegate:e}=sa;return(e?.setImmediate||wL)(...t)},clearImmediate(t){let{delegate:e}=sa;return(e?.clearImmediate||TL)(t)},delegate:void 0};var $u=class extends Yn{constructor(e,i){super(e,i),this.scheduler=e,this.work=i}requestAsyncId(e,i,n=0){return n!==null&&n>0?super.requestAsyncId(e,i,n):(e.actions.push(this),e._scheduled||(e._scheduled=sa.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,i,n=0){var r;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(e,i,n);let{actions:s}=e;i!=null&&((r=s[s.length-1])===null||r===void 0?void 0:r.id)!==i&&(sa.clearImmediate(i),e._scheduled===i&&(e._scheduled=void 0))}};var Bu=class extends Kn{flush(e){this._active=!0;let i=this._scheduled;this._scheduled=void 0;let{actions:n}=this,r;e=e||n.shift();do if(r=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===i&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===i&&n.shift();)e.unsubscribe();throw r}}};
4var gm=new Bu($u);var Vu=class extends Yn{constructor(e,i){super(e,i),this.scheduler=e,this.work=i}schedule(e,i=0){return i>0?super.schedule(e,i):(this.delay=i,this.state=e,this.scheduler.flush(this),this)}execute(e,i){return i>0||this.closed?super.execute(e,i):this._execute(e,i)}requestAsyncId(e,i,n=0){return n!=null&&n>0||n==null&&this.delay>0?super.requestAsyncId(e,i,n):(e.flush(this),0)}};var Hu=class extends Kn{};var ei=new Hu(Vu);var zu=class extends Yn{constructor(e,i){super(e,i),this.scheduler=e,this.work=i}requestAsyncId(e,i,n=0){return n!==null&&n>0?super.requestAsyncId(e,i,n):(e.actions.push(this),e._scheduled||(e._scheduled=Os.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,i,n=0){var r;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(e,i,n);let{actions:s}=e;i!=null&&i===e._scheduled&&((r=s[s.length-1])===null||r===void 0?void 0:r.id)!==i&&(Os.cancelAnimationFrame(i),e._scheduled=void 0)}};var Gu=class extends Kn{flush(e){this._active=!0;let i;e?i=e.id:(i=this._scheduled,this._scheduled=void 0);let{actions:n}=this,r;e=e||n.shift();do if(r=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===i&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===i&&n.shift();)e.unsubscribe();throw r}}};var AL=new Gu(zu);function Pt(t,e){let i=W(t)?t:()=>t,n=r=>r.error(i());return new U(e?r=>e.schedule(n,0,r):n)}var ti=class t{constructor(e,i,n){this.kind=e,this.value=i,this.error=n,this.hasValue=e==="N"}observe(e){return mm(this,e)}do(e,i,n){let{kind:r,value:s,error:o}=this;return r==="N"?e?.(s):r==="E"?i?.(o):n?.()}accept(e,i,n){var r;return W((r=e)===null||r===void 0?void 0:r.next)?this.observe(e):this.do(e,i,n)}toObservable(){let{kind:e,value:i,error:n}=this,r=e==="N"?I(i):e==="E"?Pt(()=>n):e==="C"?ve:0;if(!r)throw new TypeError(`Unexpected notification kind ${e}`);return r}static createNext(e){return new t("N",e)}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}};ti.completeNotification=new ti("C");function mm(t,e){var i,n,r;let{kind:s,value:o,error:a}=t;if(typeof s!="string")throw new TypeError('Invalid notification, missing "kind"');s==="N"?(i=e.next)===null||i===void 0||i.call(e,o):s==="E"?(n=e.error)===null||n===void 0||n.call(e,a):(r=e.complete)===null||r===void 0||r.call(e)}function Ps(t){return!!t&&(t instanceof U||W(t.lift)&&W(t.subscribe))}function RL(t,e){let i=typeof e=="object";return new Promise((n,r)=>{let s=new bn({next:o=>{n(o),s.unsubscribe()},error:r,complete:()=>{i?n(e.defaultValue):r(new Zt)}});t.subscribe(s)})}var Wu=Zr(t=>function(i=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=i});function Fs(t,e){let{first:i,each:n,with:r=ML,scheduler:s=e??Qt,meta:o=null}=Uu(t)?{first:t}:typeof t=="number"?{each:t}:t;if(i==null&&n==null)throw new TypeError("No timeout provided.");return _((a,c)=>{let u,l,d=null,h=0,p=y=>{l=wt(c,s,()=>{try{u.unsubscribe(),Y(r({meta:o,lastValue:d,seen:h})).subscribe(c)}catch(D){c.error(D)}},y)};u=a.subscribe(P(c,y=>{l?.unsubscribe(),h++,c.next(d=y),n>0&&p(n)},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null})),!h&&p(i!=null?typeof i=="number"?i:+i-s.now():n)})}function ML(t){throw new Wu(t)}function Zn(t=1/0){return q(Ze,t)}function Dw(){return Zn(1)}function Qn(...t){return Dw()(ge(t,Wn(t)))}function We(t){return new U(e=>{Y(t()).subscribe(e)})}var xL={connector:()=>new oe,resetOnDisconnect:!0};function qu(t,e=xL){let i=null,{connector:n,resetOnDisconnect:r=!0}=e,s=n(),o=new U(a=>s.subscribe(a));return o.connect=()=>((!i||i.closed)&&(i=We(()=>t).subscribe(s),r&&i.add(()=>s=n())),i),o}function Yu(...t){let e=Gn(t),{args:i,keys:n}=Lu(t),r=new U(s=>{let{length:o}=i;if(!o){s.complete();return}let a=new Array(o),c=o,u=o;for(let l=0;l<o;l++){let d=!1;Y(i[l]).subscribe(P(s,h=>{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||s.next(n?ku(n,a):a),s.complete())}))}});return e?r.pipe(Qr(e)):r}var NL=["addListener","removeListener"],OL=["addEventListener","removeEventListener"],PL=["on","off"];function oa(t,e,i,n){if(W(i)&&(n=i,i=void 0),n)return oa(t,e,i).pipe(Qr(n));let[r,s]=LL(t)?OL.map(o=>a=>t[o](e,a,i)):FL(t)?NL.map(bw(t,e)):_L(t)?PL.map(bw(t,e)):[];if(!r&&As(t))return q(o=>oa(o,e,i))(Y(t));if(!r)throw new TypeError("Invalid event target");return new U(o=>{let a=(...c)=>o.next(1<c.length?c:c[0]);
4return r(a),()=>s(a)})}function bw(t,e){return i=>n=>t[i](e,n)}function FL(t){return W(t.addListener)&&W(t.removeListener)}function _L(t){return W(t.on)&&W(t.off)}function LL(t){return W(t.addEventListener)&&W(t.removeEventListener)}function Ku(t,e,i){return We(()=>t()?e:i)}function kL(t=0,e=Qt){return t<0&&(t=0),Jt(t,t,e)}function gn(...t){let e=Wn(t),i=vw(t,1/0),n=t;return n.length?n.length===1?Y(n[0]):Zn(i)(ge(n,e)):ve}var vm=new U(Yt);var{isArray:jL}=Array;function _s(t){return t.length===1&&jL(t[0])?t[0]:t}function ym(...t){return t=_s(t),t.length===1?Y(t[0]):new U(UL(t))}function UL(t){return e=>{let i=[];for(let n=0;i&&!e.closed&&n<t.length;n++)i.push(Y(t[n]).subscribe(P(e,r=>{if(i){for(let s=0;s<i.length;s++)s!==n&&i[s].unsubscribe();i=null}e.next(r)})))}}function Oi(...t){let e=Gn(t),i=_s(t);return i.length?new U(n=>{let r=i.map(()=>[]),s=i.map(()=>!1);n.add(()=>{r=s=null});for(let o=0;!n.closed&&o<i.length;o++)Y(i[o]).subscribe(P(n,a=>{if(r[o].push(a),r.every(c=>c.length)){let c=r.map(u=>u.shift());n.next(e?e(...c):c),r.some((u,l)=>!u.length&&s[l])&&n.complete()}},()=>{s[o]=!0,!r[o].length&&n.complete()}));return()=>{r=s=null}}):ve}function aa(t){return _((e,i)=>{let n=!1,r=null,s=null,o=!1,a=()=>{if(s?.unsubscribe(),s=null,n){n=!1;let u=r;r=null,i.next(u)}o&&i.complete()},c=()=>{s=null,o&&i.complete()};e.subscribe(P(i,u=>{n=!0,r=u,s||Y(t(u)).subscribe(s=P(i,a,c))},()=>{o=!0,(!n||!s||s.closed)&&i.complete()}))})}function $L(t,e=Qt){return aa(()=>Jt(t,e))}function Zu(t,e=null){return e=e??t,_((i,n)=>{let r=[],s=0;i.subscribe(P(n,o=>{let a=null;s++%e===0&&r.push([]);for(let c of r)c.push(o),t<=c.length&&(a=a??[],a.push(c));if(a)for(let c of a)Ar(r,c),n.next(c)},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Qu(t,e,i,n,r){return(s,o)=>{let a=i,c=e,u=0;s.subscribe(P(o,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),n&&o.next(c)},r&&(()=>{a&&o.next(c),o.complete()})))}}function ww(t,e){return _(Qu(t,e,arguments.length>=2,!1,!0))}var BL=(t,e)=>(t.push(e),t);function VL(){return _((t,e)=>{ww(BL,[])(t).subscribe(e)})}function Em(...t){let e=Gn(t);return e?ea(Em(...t),Qr(e)):_((i,n)=>{dm([i,..._s(t)])(n)})}function HL(...t){return Em(...t)}function Tw(t){return new U(e=>t.subscribe(e))}var zL={connector:()=>new oe};function Ju(t,e=zL){let{connector:i}=e;return _((n,r)=>{let s=i();Y(t(Tw(s))).subscribe(r),r.add(n.subscribe(s))})}function Pi(t,e=Qt){return _((i,n)=>{let r=null,s=null,o=null,a=()=>{if(r){r.unsubscribe(),r=null;let u=s;s=null,n.next(u)}};function c(){let u=o+t,l=e.now();if(l<u){r=this.schedule(void 0,u-l),n.add(r);return}a()}i.subscribe(P(n,u=>{s=u,o=e.now(),r||(r=e.schedule(c,t),n.add(r))},()=>{a(),n.complete()},void 0,()=>{s=r=null}))})}function ni(t){return _((e,i)=>{let n=!1;e.subscribe(P(i,r=>{n=!0,i.next(r)},()=>{n||i.next(t),i.complete()}))})}function ca(){return _((t,e)=>{t.subscribe(P(e,Yt))})}function ua(t){return E(()=>t)}function Cm(t,e){return e?i=>Qn(e.pipe(le(1),ca()),i.pipe(Cm(t))):q((i,n)=>Y(t(i,n)).pipe(le(1),ua(i)))}function Tn(t,e=Qt){let i=Jt(t,e);return Cm(()=>i)}function Sm(){return _((t,e)=>{t.subscribe(P(e,i=>mm(i,e)))})}function Xu(t=GL){return _((e,i)=>{let n=!1;e.subscribe(P(i,r=>{n=!0,i.next(r)},()=>n?i.complete():i.error(t())))})}function GL(){return new Zt}function WL(...t){return e=>Qn(e,I(...t))}function Jn(t,e){return e?i=>i.pipe(Jn((n,r)=>Y(t(n,r)).pipe(E((s,o)=>e(n,s,r,o))))):_((i,n)=>{let r=0,s=null,o=!1;i.subscribe(P(n,a=>{s||(s=P(n,void 0,()=>{s=null,o&&n.complete()}),Y(t(a,r++)).subscribe(s))},()=>{o=!0,!s&&n.complete()}))})}function qL(t,e){return _(YL(t,e,"value"))}function YL(t,e,i){let n=i==="index";return(r,s)=>{let o=0;r.subscribe(P(s,a=>{let c=o++;t.call(e,a,c,r)&&(s.next(n?c:a),s.complete())},()=>{s.next(n?-1:void 0),s.complete()}))}}function Ft(t,e){let i=arguments.length>=2;return n=>n.pipe(t?N((r,s)=>t(r,s,n)):Ze,le(1),i?ni(e):Xu(()=>new Zt))}function Ls(t){return t<=0?()=>ve:_((e,i)=>{let n=[];e.subscribe(P(i,r=>{n.push(r),t<n.length&&n.shift()},()=>{for(let r of n)i.next(r);i.complete()},void 0,()=>{n=null}))})}function Im(t,e){let i=arguments.length>=2;return n=>n.pipe(t?N((r,s)=>t(r,s,n)):Ze,Ls(1),i?ni(e):Xu(()=>new Zt))}function Dm(){return _((t,e)=>{t.subscribe(P(e,i=>{e.next(ti.createNext(i))},()=>{e.next(ti.createComplete()),e.complete()},i=>{e.next(ti.createError(i)),e.complete()}
4))})}function Aw(t,e){let i=W(t)?t:()=>t;return W(e)?Ju(e,{connector:i}):n=>new Xr(n,i)}function bm(...t){let e=t.length;if(e===0)throw new Error("list of properties cannot be empty.");return E(i=>{let n=i;for(let r=0;r<e;r++){let s=n?.[t[r]];if(typeof s<"u")n=s;else return}return n})}function KL(t){return t?e=>Ju(t)(e):e=>Aw(new oe)(e)}function wm(t=1/0){let e;t&&typeof t=="object"?e=t:e={count:t};let{count:i=1/0,delay:n,resetOnSuccess:r=!1}=e;return i<=0?Ze:_((s,o)=>{let a=0,c,u=()=>{let l=!1;c=s.subscribe(P(o,d=>{r&&(a=0),o.next(d)},void 0,d=>{if(a++<i){let h=()=>{c?(c.unsubscribe(),c=null,u()):l=!0};if(n!=null){let p=typeof n=="number"?Jt(n):Y(n(d,a)),y=P(o,()=>{y.unsubscribe(),h()},()=>{o.complete()});p.subscribe(y)}else h()}else o.error(d)})),l&&(c.unsubscribe(),c=null,u())};u()})}function Fi(t,e){return _(Qu(t,e,arguments.length>=2,!0))}function Tm(t){return N((e,i)=>t<=i)}function Am(t){return _((e,i)=>{let n=!1,r=0;e.subscribe(P(i,s=>(n||(n=!t(s,r++)))&&i.next(s)))})}function An(...t){let e=Wn(t);return _((i,n)=>{(e?Qn(t,i,e):Qn(t,i)).subscribe(n)})}function _i(t){return _((e,i)=>{Y(t).subscribe(P(i,()=>i.complete(),Yt)),!i.closed&&e.subscribe(i)})}function ZL(t,e=!1){return _((i,n)=>{let r=0;i.subscribe(P(n,s=>{let o=t(s,r++);(o||e)&&n.next(s),!o&&n.complete()}))})}function Rw(t,e){return _((i,n)=>{let{leading:r=!0,trailing:s=!1}=e??{},o=!1,a=null,c=null,u=!1,l=()=>{c?.unsubscribe(),c=null,s&&(p(),u&&n.complete())},d=()=>{c=null,u&&n.complete()},h=y=>c=Y(t(y)).subscribe(P(n,l,d)),p=()=>{if(o){o=!1;let y=a;a=null,n.next(y),!u&&h(y)}};i.subscribe(P(n,y=>{o=!0,a=y,!(c&&!c.closed)&&(r?p():h(y))},()=>{u=!0,!(s&&o&&c&&!c.closed)&&n.complete()}))})}function QL(t,e=Qt,i){let n=Jt(t,e);return Rw(()=>n,i)}function Mw(t,e){return Object.is(t,e)}var st=null,la=!1,el=1,Xn=Symbol("SIGNAL");function de(t){let e=st;return st=t,e}function JL(){return la}var fa={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Nm(t){if(la)throw new Error("");if(st===null)return;st.consumerOnSignalRead(t);let e=st.nextProducerIndex++;if(ks(st),e<st.producerNode.length&&st.producerNode[e]!==t&&da(st)){let i=st.producerNode[e];sl(i,st.producerIndexOfThis[e])}st.producerNode[e]!==t&&(st.producerNode[e]=t,st.producerIndexOfThis[e]=da(st)?Fw(t,st,e):0),st.producerLastReadVersion[e]=t.version}function XL(){el++}function xw(t){if(!(da(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===el)){if(!t.producerMustRecompute(t)&&!il(t)){t.dirty=!1,t.lastCleanEpoch=el;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=el}}function Nw(t){if(t.liveConsumerNode===void 0)return;let e=la;la=!0;try{for(let i of t.liveConsumerNode)i.dirty||Pw(i)}finally{la=e}}function Ow(){return st?.consumerAllowSignalWrites!==!1}function Pw(t){t.dirty=!0,Nw(t),t.consumerMarkedDirty?.(t)}function nl(t){return t&&(t.nextProducerIndex=0),de(t)}function rl(t,e){if(de(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(da(t))for(let i=t.nextProducerIndex;i<t.producerNode.length;i++)sl(t.producerNode[i],t.producerIndexOfThis[i]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function il(t){ks(t);for(let e=0;e<t.producerNode.length;e++){let i=t.producerNode[e],n=t.producerLastReadVersion[e];if(n!==i.version||(xw(i),n!==i.version))return!0}return!1}function Om(t){if(ks(t),da(t))for(let e=0;e<t.producerNode.length;e++)sl(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function Fw(t,e,i){if(_w(t),ks(t),t.liveConsumerNode.length===0)for(let n=0;n<t.producerNode.length;n++)t.producerIndexOfThis[n]=Fw(t.producerNode[n],t,n);return t.liveConsumerIndexOfThis.push(i),t.liveConsumerNode.push(e)-1}function sl(t,e){if(_w(t),ks(t),t.liveConsumerNode.length===1)for(let n=0;n<t.producerNode.length;n++)sl(t.producerNode[n],t.producerIndexOfThis[n]);let i=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[i],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[i],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[e],r=t.liveConsumerNode[e];ks(r),r.producerIndexOfThis[n]=e}}function da(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function ks(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function _w(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Lw(t){let e=Object.create(ek);e.computation=t;let i=()=>
4{if(xw(e),Nm(e),e.value===tl)throw e.error;return e.value};return i[Xn]=e,i}var Rm=Symbol("UNSET"),Mm=Symbol("COMPUTING"),tl=Symbol("ERRORED"),ek=T(v({},fa),{value:Rm,dirty:!0,error:null,equal:Mw,producerMustRecompute(t){return t.value===Rm||t.value===Mm},producerRecomputeValue(t){if(t.value===Mm)throw new Error("Detected cycle in computations.");let e=t.value;t.value=Mm;let i=nl(t),n;try{n=t.computation()}catch(r){n=tl,t.error=r}finally{rl(t,i)}if(e!==Rm&&e!==tl&&n!==tl&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function tk(){throw new Error}var kw=tk;function jw(){kw()}function Uw(t){kw=t}var nk=null;function $w(t){let e=Object.create(Vw);e.value=t;let i=()=>(Nm(e),e.value);return i[Xn]=e,i}function Pm(t,e){Ow()||jw(),t.equal(t.value,e)||(t.value=e,rk(t))}function Bw(t,e){Ow()||jw(),Pm(t,e(t.value))}var Vw=T(v({},fa),{equal:Mw,value:void 0});function rk(t){t.version++,XL(),Nw(t),nk?.()}function Hw(t,e,i){let n=Object.create(ik);i&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=e;let r=c=>{n.cleanupFn=c};function s(c){return c.fn===null&&c.schedule===null}function o(c){s(c)||(Om(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=xm)}let a=()=>{if(n.fn===null)return;if(JL())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!il(n))return;n.hasRun=!0;let c=nl(n);try{n.cleanupFn(),n.cleanupFn=xm,n.fn(r)}finally{rl(n,c)}};return n.ref={notify:()=>Pw(n),run:a,cleanup:()=>n.cleanupFn(),destroy:()=>o(n),[Xn]:n},n.ref}var xm=()=>{},ik=T(v({},fa),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:xm});var U0="https://g.co/ng/security#xss",L=class extends Error{constructor(e,i){super(Gl(e,i)),this.code=e}};function Gl(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function ro(t){return{toString:t}.toString()}var js="__annotations__",Us="__parameters__",zw="__prop__metadata__";function sk(t,e,i,n,r){return ro(()=>{let s=$0(e);function o(...a){if(this instanceof o)return s.call(this,...a),this;let c=new o(...a);return function(l){return r&&r(l,...a),(l.hasOwnProperty(js)?l[js]:Object.defineProperty(l,js,{value:[]})[js]).push(c),n&&n(l),l}}return i&&(o.prototype=Object.create(i.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function $0(t){return function(...i){if(t){let n=t(...i);for(let r in n)this[r]=n[r]}}}function io(t,e,i){return ro(()=>{let n=$0(e);function r(...s){if(this instanceof r)return n.apply(this,s),this;let o=new r(...s);return a.annotation=o,a;function a(c,u,l){let d=c.hasOwnProperty(Us)?c[Us]:Object.defineProperty(c,Us,{value:[]})[Us];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(o),c}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var He=globalThis;function Re(t){for(let e in t)if(t[e]===Re)return e;throw Error("Could not find renamed property on target object.")}function ok(t,e){for(let i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function _t(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(_t).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(` 5`);return i===-1?e:e.substring(0,i)}function Km(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var ak=Re({__forward_ref__:Re});function B0(t){return t.__forward_ref__=B0,t.toString=function(){return _t(this())},t}function At(t){return V0(t)?t():t}function V0(t){return typeof t=="function"&&t.hasOwnProperty(ak)&&t.__forward_ref__===B0}function m(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function H(t){return{providers:t.providers||[],imports:t.imports||[]}}function Wl(t){return Gw(t,Sl)||Gw(t,z0)}function H0(t){return Wl(t)!==null}function Gw(t,e){return t.hasOwnProperty(e)?t[e]:null}function ck(t){let e=t&&(t[Sl]||t[z0]);return e||null}function Ww(t){return t&&(t.hasOwnProperty(qw)||t.hasOwnProperty(uk))?t[qw]:null}var Sl=Re({\u0275prov:Re}),qw=Re({\u0275inj:Re}),z0=Re({ngInjectableDef:Re}),uk=Re({ngInjectorDef:Re}),S=class{constructor(e,i){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof i=="number"?this.__NG_ELEMENT_ID__=i:i!==void 0&&(this.\u0275prov=m({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function G0(t){return t&&!!t.\u0275providers}var lk=Re({\u0275cmp:Re}),dk=Re({\u0275dir:Re}),fk=Re({\u0275pipe:Re}),hk=Re({\u0275mod:Re}),Ws=Re({\u0275fac:Re}),pa=Re({__NG_ELEMENT_ID__:Re}),Yw=Re({__NG_ENV_ID__:Re});function Tt(t){return typeof t=="string"?t:t==null?"":String(t)}function pk(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.n
5ame||t.type.toString():Tt(t)}function gk(t,e){let i=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new L(-200,t)}function dy(t,e){throw new L(-201,!1)}var ce=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(ce||{}),Zm;function W0(){return Zm}function Bt(t){let e=Zm;return Zm=t,e}function q0(t,e,i){let n=Wl(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(i&ce.Optional)return null;if(e!==void 0)return e;dy(t,"Injector")}var mk={},va=mk,Qm="__NG_DI_FLAG__",Il="ngTempTokenPath",vk="ngTokenPath",yk=/\n/gm,Ek="\u0275",Kw="__source",zs;function Ck(){return zs}function ri(t){let e=zs;return zs=t,e}function Sk(t,e=ce.Default){if(zs===void 0)throw new L(-203,!1);return zs===null?q0(t,void 0,e):zs.get(t,e&ce.Optional?null:void 0,e)}function f(t,e=ce.Default){return(W0()||Sk)(At(t),e)}function Ik(t){throw new L(202,!1)}function C(t,e=ce.Default){return f(t,ql(e))}function ql(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Jm(t){let e=[];for(let i=0;i<t.length;i++){let n=At(t[i]);if(Array.isArray(n)){if(n.length===0)throw new L(900,!1);let r,s=ce.Default;for(let o=0;o<n.length;o++){let a=n[o],c=Dk(a);typeof c=="number"?c===-1?r=a.token:s|=c:r=a}e.push(f(r,s))}else e.push(f(n))}return e}function Ma(t,e){return t[Qm]=e,t.prototype[Qm]=e,t}function Dk(t){return t[Qm]}function bk(t,e,i,n){let r=t[Il];throw e[Kw]&&r.unshift(e[Kw]),t.message=wk(` 6`+t.message,r,i,n),t[vk]=r,t[Il]=null,t}function wk(t,e,i,n=null){t=t&&t.charAt(0)===` 7`&&t.charAt(1)==Ek?t.slice(2):t;let r=_t(e);if(Array.isArray(e))r=e.map(_t).join(" -> ");else if(typeof e=="object"){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+(typeof a=="string"?JSON.stringify(a):_t(a)))}r=`{${s.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(yk,` 8 `)}`}var Yl=Ma(io("Inject",t=>({token:t})),-1),nn=Ma(io("Optional"),8),Tk=Ma(io("Self"),2),xa=Ma(io("SkipSelf"),4),Ak=Ma(io("Host"),1);function Ui(t,e){let i=t.hasOwnProperty(Ws);return i?t[Ws]:null}function Rk(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],s=e[n];if(i&&(r=i(r),s=i(s)),s!==r)return!1}return!0}function Mk(t){return t.flat(Number.POSITIVE_INFINITY)}function fy(t,e){t.forEach(i=>Array.isArray(i)?fy(i,e):e(i))}function Y0(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function Dl(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function hl(t,e){let i=[];for(let n=0;n<t;n++)i.push(e);return i}function xk(t,e,i,n){let r=t.length;if(r==e)t.push(i,n);else if(r===1)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;){let s=r-2;t[r]=t[s],r--}t[e]=i,t[e+1]=n}}function Na(t,e,i){let n=Oa(t,e);return n>=0?t[n|1]=i:(n=~n,xk(t,n,e,i)),n}function Fm(t,e){let i=Oa(t,e);if(i>=0)return t[i|1]}function Oa(t,e){return Nk(t,e,1)}function Nk(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){let s=n+(r-n>>1),o=t[s<<i];if(e===o)return s<<i;o>e?r=s:n=s+1}return~(r<<i)}var qs={},Vt=[],nr=new S(""),K0=new S("",-1),Z0=new S(""),bl=class{get(e,i=va){if(i===va){let n=new Error(`NullInjectorError: No provider for ${_t(e)}!`);throw n.name="NullInjectorError",n}return i}},Q0=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Q0||{}),rr=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(rr||{}),mn=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(mn||{});function Ok(t,e,i){let n=t.length;for(;;){let r=t.indexOf(e,i);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let s=e.length;if(r+s===n||t.charCodeAt(r+s)<=32)return r}i=r+1}}function Xm(t,e,i){let n=0;for(;n<i.length;){let r=i[n];if(typeof r=="number"){if(r!==0)break;n++;let s=i[n++],o=i[n++],a=i[n++];t.setAttribute(e,o,a,s)}else{let s=r,o=i[++n];Pk(s)?t.setProperty(e,s,o):t.setAttribute(e,s,o),n++}}return n}function J0(t){return t===3||t===4||t===6}function Pk(t){return t.charCodeAt(0)===64}function ya(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let i=-1;for(let n=0;n<e.length;n++){let r=e[n];typeof r=="number"?i=r:i===0||(i===-1||i===2?Zw(t,i,r,null,e[++n]):Zw(t,i,r,null,null))}}return t}function Zw(t,e,i,n,r){let s=0,o=t.length;if(e===-1)o=-1;else for(;s<t.length;){let a=t[s++];if(typeof a=="number"){if(a===e){o=-1;break}else if(a>e){o=s-1;break}}}for(;s<t.length;){let a=t[s];if(typeof a=="number")break;if(a===i){if(n===null){r!==null&&(t[s+1]=r);return}else if(n===t[s+1]){t[s+2]=r;return}}s++,n!==null&&s++,r!==null&&s++}o!==-1&&(t.splice(o,0,e),s=o+1),t.splice(s++,0,i),n!==null&&t.splice(s++,0,n),r!==null&&t.splice(s++,0,r)}var X0="ng-template";function Fk(t,e,i,n){let r=0;if(n){for(;
8r<e.length&&typeof e[r]=="string";r+=2)if(e[r]==="class"&&Ok(e[r+1].toLowerCase(),i,0)!==-1)return!0}else if(hy(t))return!1;if(r=e.indexOf(1,r),r>-1){let s;for(;++r<e.length&&typeof(s=e[r])=="string";)if(s.toLowerCase()===i)return!0}return!1}function hy(t){return t.type===4&&t.value!==X0}function _k(t,e,i){let n=t.type===4&&!i?X0:t.value;return e===n}function Lk(t,e,i){let n=4,r=t.attrs,s=r!==null?Uk(r):0,o=!1;for(let a=0;a<e.length;a++){let c=e[a];if(typeof c=="number"){if(!o&&!Rn(n)&&!Rn(c))return!1;if(o&&Rn(c))continue;o=!1,n=c|n&1;continue}if(!o)if(n&4){if(n=2|n&1,c!==""&&!_k(t,c,i)||c===""&&e.length===1){if(Rn(n))return!1;o=!0}}else if(n&8){if(r===null||!Fk(t,r,c,i)){if(Rn(n))return!1;o=!0}}else{let u=e[++a],l=kk(c,r,hy(t),i);if(l===-1){if(Rn(n))return!1;o=!0;continue}if(u!==""){let d;if(l>s?d="":d=r[l+1].toLowerCase(),n&2&&u!==d){if(Rn(n))return!1;o=!0}}}}return Rn(n)||o}function Rn(t){return(t&1)===0}function kk(t,e,i,n){if(e===null)return-1;let r=0;if(n||!i){let s=!1;for(;r<e.length;){let o=e[r];if(o===t)return r;if(o===3||o===6)s=!0;else if(o===1||o===2){let a=e[++r];for(;typeof a=="string";)a=e[++r];continue}else{if(o===4)break;if(o===0){r+=4;continue}}r+=s?1:2}return-1}else return $k(e,t)}function eT(t,e,i=!1){for(let n=0;n<e.length;n++)if(Lk(t,e[n],i))return!0;return!1}function jk(t){let e=t.attrs;if(e!=null){let i=e.indexOf(5);if(!(i&1))return e[i+1]}return null}function Uk(t){for(let e=0;e<t.length;e++){let i=t[e];if(J0(i))return e}return t.length}function $k(t,e){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){let n=t[i];if(typeof n=="number")return-1;if(n===e)return i;i++}return-1}function Bk(t,e){e:for(let i=0;i<e.length;i++){let n=e[i];if(t.length===n.length){for(let r=0;r<t.length;r++)if(t[r]!==n[r])continue e;return!0}}return!1}function Qw(t,e){return t?":not("+e.trim()+")":e}function Vk(t){let e=t[0],i=1,n=2,r="",s=!1;for(;i<t.length;){let o=t[i];if(typeof o=="string")if(n&2){let a=t[++i];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else n&8?r+="."+o:n&4&&(r+=" "+o);else r!==""&&!Rn(o)&&(e+=Qw(s,r),r=""),n=o,s=s||!Rn(n);i++}return r!==""&&(e+=Qw(s,r)),e}function Hk(t){return t.map(Vk).join(",")}function zk(t){let e=[],i=[],n=1,r=2;for(;n<t.length;){let s=t[n];if(typeof s=="string")r===2?s!==""&&e.push(s,t[++n]):r===8&&i.push(s);else{if(!Rn(r))break;r=s}n++}return{attrs:e,classes:i}}function tT(t){return ro(()=>{let e=oT(t),i=T(v({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Q0.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||rr.Emulated,styles:t.styles||Vt,_:null,schemas:t.schemas||null,tView:null,id:""});aT(i);let n=t.dependencies;return i.directiveDefs=wl(n,!1),i.pipeDefs=wl(n,!0),i.id=qk(i),i})}function Gk(t){return si(t)||nT(t)}function Wk(t){return t!==null}function z(t){return ro(()=>({type:t.type,bootstrap:t.bootstrap||Vt,declarations:t.declarations||Vt,imports:t.imports||Vt,exports:t.exports||Vt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Jw(t,e){if(t==null)return qs;let i={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],s,o,a=mn.None;Array.isArray(r)?(a=r[0],s=r[1],o=r[2]??s):(s=r,o=r),e?(i[s]=a!==mn.None?[n,a]:n,e[s]=o):i[s]=n}return i}function Lt(t){return ro(()=>{let e=oT(t);return aT(e),e})}function rn(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function si(t){return t[lk]||null}function nT(t){return t[dk]||null}function rT(t){return t[fk]||null}function iT(t){let e=si(t)||nT(t)||rT(t);return e!==null?e.standalone:!1}function sT(t,e){let i=t[hk]||null;if(!i&&e===!0)throw new Error(`Type ${_t(t)} does not have '\u0275mod' property.`);return i}function oT(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||qs,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Vt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Jw(t.inputs,e),outputs:Jw(t.outputs),debugInfo:null}}
8function aT(t){t.features?.forEach(e=>e(t))}function wl(t,e){if(!t)return null;let i=e?rT:Gk;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(Wk)}function qk(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of i)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function or(t){return{\u0275providers:t}}function Yk(...t){return{\u0275providers:cT(!0,t),\u0275fromNgModule:!0}}function cT(t,...e){let i=[],n=new Set,r,s=o=>{i.push(o)};return fy(e,o=>{let a=o;ev(a,s,[],n)&&(r||=[],r.push(a))}),r!==void 0&&uT(r,s),i}function uT(t,e){for(let i=0;i<t.length;i++){let{ngModule:n,providers:r}=t[i];py(r,s=>{e(s,n)})}}function ev(t,e,i,n){if(t=At(t),!t)return!1;let r=null,s=Ww(t),o=!s&&si(t);if(!s&&!o){let c=t.ngModule;if(s=Ww(c),s)r=c;else return!1}else{if(o&&!o.standalone)return!1;r=t}let a=n.has(r);if(o){if(a)return!1;if(n.add(r),o.dependencies){let c=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let u of c)ev(u,e,i,n)}}else if(s){if(s.imports!=null&&!a){n.add(r);let u;try{fy(s.imports,l=>{ev(l,e,i,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&uT(u,e)}if(!a){let u=Ui(r)||(()=>new r);e({provide:r,useFactory:u,deps:Vt},r),e({provide:Z0,useValue:r,multi:!0},r),e({provide:nr,useValue:()=>f(r),multi:!0},r)}let c=s.providers;if(c!=null&&!a){let u=t;py(c,l=>{e(l,u)})}}else return!1;return r!==t&&t.providers!==void 0}function py(t,e){for(let i of t)G0(i)&&(i=i.\u0275providers),Array.isArray(i)?py(i,e):e(i)}var Kk=Re({provide:String,useValue:Re});function lT(t){return t!==null&&typeof t=="object"&&Kk in t}function Zk(t){return!!(t&&t.useExisting)}function Qk(t){return!!(t&&t.useFactory)}function Ys(t){return typeof t=="function"}function Jk(t){return!!t.useClass}var Kl=new S(""),pl={},Xk={},_m;function gy(){return _m===void 0&&(_m=new bl),_m}var Mt=class{},Ea=class extends Mt{get destroyed(){return this._destroyed}constructor(e,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,nv(e,o=>this.processProvider(o)),this.records.set(K0,$s(void 0,this)),r.has("environment")&&this.records.set(Mt,$s(void 0,this));let s=this.records.get(Kl);s!=null&&typeof s.value=="string"&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Z0,Vt,ce.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=de(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let i=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),de(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=ri(this),n=Bt(void 0),r;try{return e()}finally{ri(i),Bt(n)}}get(e,i=va,n=ce.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Yw))return e[Yw](this);n=ql(n);let r,s=ri(this),o=Bt(void 0);try{if(!(n&ce.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=ij(e)&&Wl(e);u&&this.injectableDefInScope(u)?c=$s(tv(e),pl):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&ce.Self?gy():this.parent;return i=n&ce.Optional&&i===va?null:i,a.get(e,i)}catch(a){if(a.name==="NullInjectorError"){if((a[Il]=a[Il]||[]).unshift(_t(e)),s)throw a;return bk(a,e,"R3InjectorError",this.source)}else throw a}finally{Bt(o),ri(s)}}resolveInjectorInitializers(){let e=de(null),i=ri(this),n=Bt(void 0),r;try{let s=this.get(nr,Vt,ce.Self);for(let o of s)o()}finally{ri(i),Bt(n),de(e)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(_t(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new L(205,!1)}processProvider(e){e=At(e);let i=Ys(e)?e:At(e&&e.provide),n=tj(e);if(!Ys(e)&&e.multi===!0){let r=this.records.get(i);r||(r=$s(void 0,pl,!0),r.factory=()=>Jm(r.multi),this.records.set(i,r)),i=e,r.multi.push(e)}this.records.set(i,n)}hydrate(e,i){let n=de(null);try{return i.value===pl&&(i.value=Xk,i.value=i.factory()),typeof i.value=="object"&&i.value&&rj(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{de(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let i=At(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};function tv(t){let e=Wl(t),i=e!==null?e.factory:Ui(t);if(i!==null)return i;if(t instanceof S)throw new L(204,!1);if(t instanceof Function)return ej(t);throw new L(204,!1)}function ej(t){if(t.length>0)throw new L(204,!1);let i=ck(t);return i!==null?()=>i.factory(t):()=>new t}function tj(t){if(lT(t))return $s(void 0,t.useValue);{let e=dT(t);return $s(e,pl)}}function dT(t,e,i){let n;if(Ys(t)){let r=At(t);return Ui(r)||tv(r)}else if(lT(t))n=()=>At(t.useValue);else if(Qk(t))n=()=>t.useFactory(...Jm(t.deps||[]));else if(Zk(t))n=()=>f(At(t.useExisting));else{let r=At(t&&(t.useClass||t.provide));if(nj(t))n=()=>new r(...Jm(t.deps));else return Ui(r)||tv(r)}return n}function $s(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function nj(t){return!!t.deps}function rj(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function ij(t){return typeof t=="function"||typeof t=="object"&&t instanceof S}function nv(t,e){for(let i of t)Array.isArray(i)?nv(i,e):i&&G0(i)?nv(i.\u0275providers,e):e(i)}function On(t,e){t instanceof Ea&&t.assertNotDestroyed();let i,n=ri(t),r=Bt(void 0);try{return e()}finally{ri(n),Bt(r)}}function fT(){return W0()!==void 0||Ck()!=null}function Pa(t){if(!fT())throw new L(-203,!1)}function rv(t){let e=He.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}var Xw={\u0275\u0275defineInjectable:m,\u0275\u0275defineInjector:H,\u0275\u0275inject:f,\u0275\u0275invalidFactoryDep:Ik,resolveForwardRef:At},sj=Function;function ha(t){return typeof t=="function"}var oj=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,aj=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,cj=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,uj=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;function lj(t){return oj.test(t)||uj.test(t)||aj.test(t)&&!cj.test(t)}var iv=class{constructor(e){this._reflect=e||He.Reflect}factory(e){return(...i)=>new e(...i)}_zipTypesAndAnnotations(e,i){let n;typeof e>"u"?n=hl(i.length):n=hl(e.length);for(let r=0;r<n.length;r++)typeof e>"u"?n[r]=[]:e[r]&&e[r]!=Object?n[r]=[e[r]]:n[r]=[],i&&i[r]!=null&&(n[r]=n[r].concat(i[r]));return n}_ownParameters(e,i){let n=e.toString();if(lj(n))return null;if(e.parameters&&e.parameters!==i.parameters)return e.parameters;let r=e.ctorParameters;if(r&&r!==i.ctorParameters){let a=typeof r=="function"?r():r,c=a.map(l
8=>l&&l.type),u=a.map(l=>l&&Lm(l.decorators));return this._zipTypesAndAnnotations(c,u)}let s=e.hasOwnProperty(Us)&&e[Us],o=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return o||s?this._zipTypesAndAnnotations(o,s):hl(e.length)}parameters(e){if(!ha(e))return[];let i=ol(e),n=this._ownParameters(e,i);return!n&&i!==Object&&(n=this.parameters(i)),n||[]}_ownAnnotations(e,i){if(e.annotations&&e.annotations!==i.annotations){let n=e.annotations;return typeof n=="function"&&n.annotations&&(n=n.annotations),n}return e.decorators&&e.decorators!==i.decorators?Lm(e.decorators):e.hasOwnProperty(js)?e[js]:null}annotations(e){if(!ha(e))return[];let i=ol(e),n=this._ownAnnotations(e,i)||[];return(i!==Object?this.annotations(i):[]).concat(n)}_ownPropMetadata(e,i){if(e.propMetadata&&e.propMetadata!==i.propMetadata){let n=e.propMetadata;return typeof n=="function"&&n.propMetadata&&(n=n.propMetadata),n}if(e.propDecorators&&e.propDecorators!==i.propDecorators){let n=e.propDecorators,r={};return Object.keys(n).forEach(s=>{r[s]=Lm(n[s])}),r}return e.hasOwnProperty(zw)?e[zw]:null}propMetadata(e){if(!ha(e))return{};let i=ol(e),n={};if(i!==Object){let s=this.propMetadata(i);Object.keys(s).forEach(o=>{n[o]=s[o]})}let r=this._ownPropMetadata(e,i);return r&&Object.keys(r).forEach(s=>{let o=[];n.hasOwnProperty(s)&&o.push(...n[s]),o.push(...r[s]),n[s]=o}),n}ownPropMetadata(e){return ha(e)?this._ownPropMetadata(e,ol(e))||{}:{}}hasLifecycleHook(e,i){return e instanceof sj&&i in e.prototype}};function Lm(t){return t?t.map(e=>{let n=e.type.annotationCls,r=e.args?e.args:[];return new n(...r)}):[]}function ol(t){let e=t.prototype?Object.getPrototypeOf(t.prototype):null;return(e?e.constructor:null)||Object}var ar=0,te=1,J=2,gt=3,Mn=4,sn=5,Ks=6,Ca=7,pt=8,Zs=9,xn=10,Me=11,Sa=12,e0=13,so=14,tn=15,Fa=16,Bs=17,Rr=18,Zl=19,hT=20,ii=21,gl=22,$i=23,Je=25,my=1;var Bi=7,Tl=8,Qs=9,Rt=10,vy=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(vy||{});function ki(t){return Array.isArray(t)&&typeof t[my]=="object"}function Nr(t){return Array.isArray(t)&&t[my]===!0}function yy(t){return(t.flags&4)!==0}function Ql(t){return t.componentOffset>-1}function Jl(t){return(t.flags&1)===1}function Mr(t){return!!t.template}function dj(t){return(t[J]&512)!==0}var sv=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function pT(t,e,i,n){e!==null?e.applyValueToInputSignal(e,n):t[i]=n}function Ki(){return gT}function gT(t){return t.type.prototype.ngOnChanges&&(t.setInput=hj),fj}Ki.ngInherit=!0;function fj(){let t=vT(this),e=t?.current;if(e){let i=t.previous;if(i===qs)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function hj(t,e,i,n,r){let s=this.declaredInputs[n],o=vT(t)||pj(t,{previous:qs,current:null}),a=o.current||(o.current={}),c=o.previous,u=c[s];a[s]=new sv(u&&u.currentValue,i,c===qs),pT(t,e,r,i)}var mT="__ngSimpleChanges__";function vT(t){return t[mT]||null}function pj(t,e){return t[mT]=e}var t0=null;var er=function(t,e,i){t0?.(t,e,i)},yT="svg",gj="math",mj=!1;function vj(){return mj}function ir(t){for(;Array.isArray(t);)t=t[ar];return t}function yj(t){for(;Array.isArray(t);){if(typeof t[my]=="object")return t;t=t[ar]}return null}function ET(t,e){return ir(e[t])}function vn(t,e){return ir(e[t.index])}function Ey(t,e){return t.data[e]}function _a(t,e){return t[e]}function ci(t,e){let i=e[t];return ki(i)?i:i[ar]}function Ej(t){return(t[J]&4)===4}function Cy(t){return(t[J]&128)===128}function Cj(t){return Nr(t[gt])}function Js(t,e){return e==null?null:t[e]}function CT(t){t[Bs]=0}function Sj(t){t[J]&1024||(t[J]|=1024,Cy(t)&&Ia(t))}function Ij(t,e){for(;t>0;)e=e[so],t--;return e}function Sy(t){return!!(t[J]&9216||t[$i]?.dirty)}function ov(t){t[xn].changeDetectionScheduler?.notify(1),Sy(t)?Ia(t):t[J]&64&&(vj()?(t[J]|=1024,Ia(t)):t[xn].changeDetectionScheduler?.notify())}function Ia(t){t[xn].changeDetectionScheduler?.notify();let e=Da(t);for(;e!==null&&!(e[J]&8192||(e[J]|=8192,!Cy(e)));)e=Da(e)}function ST(t,e){if((t[J]&256)===256)throw new L(911,!1);t[ii]===null&&(t[ii]=[]),t[ii].push(e)}function Dj(t,e){if(t[ii]===null)return;let i=t[ii].indexOf(e);i!==-1&&t[ii].splice(i,1)}function Da(t){let e=t[gt];return Nr(e)?e[gt]:e}var se={lFrame:RT(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function bj(){return se.lFrame.elementDepthCount}function wj(){se.lFrame.elementDepthCount++}function Tj(){se.lFrame.elementDepthCount--}function IT(){return se.bindingsEnabled}function DT(){return se.skipHydrationRootTNode!==null}function Aj(t){return se.skipHydrationRootTNode===t}function Rj(){se.skipHydrationRootTNode=null}function V(){return se.lFrame.lView}function xe(){return se.lFrame.tView}function Vse(t){return se.lFrame.contextLView=t,t[pt]}function Hse(t){return se.lFrame.contextLView=null,t}function yt(){let t=bT();for(;t!==null&&t.type===64;)t=t.parent;return t}function bT(){return se.lFrame.currentTNode}function Mj(){let t=se.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Zi(t,e){let i=se.lFrame;i.currentTNode=t,i.isParent=e}function Iy(){return se.lFrame.isParent}function Dy(){se.lFrame.isParent=!1}function xj(){return se.lFrame.contextLView}function Ht(){let t=se.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function by(){return se.lFrame.bindingIndex}function Nj(t){return se.lFrame.bindingIndex=t}function ui(){return se.lFrame.bindingIndex++}function La(t){let e=se.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function Oj(){return se.lFrame.inI18n}function Pj(t,e){let i=se.lFrame;i.bindingIndex=i.bindingRootIndex=t,av(e)}function Fj(){return se.lFrame.currentDirectiveIndex}function av(t){se.lFrame.currentDirectiveIndex=t}function wy(t){let e=se.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function wT(){return se.lFrame.currentQueryIndex}function Ty(t){se.lFrame.currentQueryIndex=t}function _j(t){let e=t[te];return e.type===2?e.declTNode:e.type===1?t[sn]:null}function TT(t,e,i){if(i&ce.SkipSelf){let r=e,s=t;
vendor: 4,372 bytes, line 8
8for(;r=r.parent,r===null&&!(i&ce.Host);)if(r=_j(s),r===null||(s=s[so],r.type&10))break;if(r===null)return!1;e=r,t=s}let n=se.lFrame=AT();return n.currentTNode=e,n.lView=t,!0}function Ay(t){let e=AT(),i=t[te];se.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function AT(){let t=se.lFrame,e=t===null?null:t.child;return e===null?RT(t):e}function RT(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function MT(){let t=se.lFrame;return se.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var xT=MT;function Ry(){let t=MT();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Lj(t){return(se.lFrame.contextLView=Ij(t,se.lFrame.contextLView))[pt]}function Pn(){return se.lFrame.selectedIndex}function Vi(t){se.lFrame.selectedIndex=t}function li(){let t=se.lFrame;return Ey(t.tView,t.selectedIndex)}function zse(){se.lFrame.currentNamespace=yT}function Gse(){kj()}function kj(){se.lFrame.currentNamespace=null}function jj(){return se.lFrame.currentNamespace}var NT=!0;function Xl(){return NT}function ed(t){NT=t}function Uj(t,e,i){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(n){let o=gT(e);(i.preOrderHooks??=[]).push(t,o),(i.preOrderCheckHooks??=[]).push(t,o)}r&&(i.preOrderHooks??=[]).push(0-t,r),s&&((i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s))}function td(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i<n;i++){let s=t.data[i].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=s;o&&(t.contentHooks??=[]).push(-i,o),a&&((t.contentHooks??=[]).push(i,a),(t.contentCheckHooks??=[]).push(i,a)),c&&(t.viewHooks??=[]).push(-i,c),u&&((t.viewHooks??=[]).push(i,u),(t.viewCheckHooks??=[]).push(i,u)),l!=null&&(t.destroyHooks??=[]).push(i,l)}}function ml(t,e,i){OT(t,e,3,i)}function vl(t,e,i,n){(t[J]&3)===i&&OT(t,e,i,n)}function km(t,e){let i=t[J];(i&3)===e&&(i&=16383,i+=1,t[J]=i)}function OT(t,e,i,n){let r=n!==void 0?t[Bs]&65535:0,s=n??-1,o=e.length-1,a=0;for(let c=r;c<o;c++)if(typeof e[c+1]=="number"){if(a=e[c],n!=null&&a>=n)break}else e[c]<0&&(t[Bs]+=65536),(a<s||s==-1)&&($j(t,i,e,c),t[Bs]=(t[Bs]&4294901760)+c+2),c++}function n0(t,e){er(4,t,e);let i=de(null);try{e.call(t)}finally{de(i),er(5,t,e)}}function $j(t,e,i,n){let r=i[n]<0,s=i[n+1],o=r?-i[n]:i[n],a=t[o];r?t[J]>>14<t[Bs]>>16&&(t[J]&3)===e&&(t[J]+=16384,n0(a,s)):n0(a,s)}var Gs=-1,Hi=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function Bj(t){return t instanceof Hi}function Vj(t){return(t.flags&8)!==0}function Hj(t){return(t.flags&16)!==0}function PT(t){return t!==Gs}function Al(t){return t&32767}function zj(t){return t>>16}function Rl(t,e){let i=zj(t),n=e;for(;i>0;)n=n[so],i--;return n}var cv=!0;function Ml(t){let e=cv;return cv=t,e}var Gj=256,FT=Gj-1,_T=5,Wj=0,tr={};function qj(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(pa)&&(n=i[pa]),n==null&&(n=i[pa]=Wj++);let r=n&FT,s=1<<r;e.data[t+(r>>_T)]|=s}function xl(t,e){let i=LT(t,e);if(i!==-1)return i;let n=e[te];n.firstCreatePass&&(t.injectorIndex=e.length,jm(n.data,t),jm(e,null),jm(n.blueprint,null));let r=My(t,e),s=t.injectorIndex;if(PT(r)){let o=Al(r),a=Rl(r,e),c=a[te].data;for(let u=0;u<8;u++)e[s+u]=a[o+u]|c[o+u]}return e[s+8]=r,s}function jm(t,e){t.push(0,0,0,0,0,0,0,0,e)}function LT(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function My(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;r!==null;){if(n=BT(r),n===null)return Gs;if(i++,r=r[so],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return Gs}function uv(t,e,i){qj(t,e,i)}function Yj(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,r=0;for(;r<n;){let s=i[r];if(J0(s))break;if(s===0)r=r+2;else if(typeof s=="number")for(r++;
8r<n&&typeof i[r]=="string";)r++;else{if(s===e)return i[r+1];r=r+2}}}return null}function kT(t,e,i){if(i&ce.Optional||t!==void 0)return t;dy(e,"NodeInjector")}function jT(t,e,i,n){if(i&ce.Optional&&n===void 0&&(n=null),!(i&(ce.Self|ce.Host))){let r=t[Zs],s=Bt(void 0);try{return r?r.get(e,n,i&ce.Optional):q0(e,n,i&ce.Optional)}finally{Bt(s)}}return kT(n,e,i)}function UT(t,e,i,n=ce.Default,r){if(t!==null){if(e[J]&2048&&!(n&ce.Self)){let o=Jj(t,e,i,n,tr);if(o!==tr)return o}let s=$T(t,e,i,n,tr);if(s!==tr)return s}return jT(e,i,n,r)}function $T(t,e,i,n,r){let s=Zj(i);if(typeof s=="function"){if(!TT(e,t,n))return n&ce.Host?kT(r,i,n):jT(e,i,n,r);try{let o;if(o=s(n),o==null&&!(n&ce.Optional))dy(i);else return o}finally{xT()}}else if(typeof s=="number"){let o=null,a=LT(t,e),c=Gs,u=n&ce.Host?e[tn][sn]:null;for((a===-1||n&ce.SkipSelf)&&(c=a===-1?My(t,e):e[a+8],c===Gs||!i0(n,!1)?a=-1:(o=e[te],a=Al(c),e=Rl(c,e)));a!==-1;){let l=e[te];if(r0(s,a,l.data)){let d=Kj(a,e,i,o,n,u);if(d!==tr)return d}c=e[a+8],c!==Gs&&i0(n,e[te].data[a+8]===u)&&r0(s,a,e)?(o=l,a=Al(c),e=Rl(c,e)):a=-1}}return r}function Kj(t,e,i,n,r,s){let o=e[te],a=o.data[t+8],c=n==null?Ql(a)&&cv:n!=o&&(a.type&3)!==0,u=r&ce.Host&&s===a,l=yl(a,o,i,c,u);return l!==null?zi(e,o,l,a):tr}function yl(t,e,i,n,r){let s=t.providerIndexes,o=e.data,a=s&1048575,c=t.directiveStart,u=t.directiveEnd,l=s>>20,d=n?a:a+l,h=r?a+l:u;for(let p=d;p<h;p++){let y=o[p];if(p<c&&i===y||p>=c&&y.type===i)return p}if(r){let p=o[c];if(p&&Mr(p)&&p.type===i)return c}return null}function zi(t,e,i,n){let r=t[i],s=e.data;if(Bj(r)){let o=r;o.resolving&&gk(pk(s[i]));let a=Ml(o.canSeeViewProviders);o.resolving=!0;let c,u=o.injectImpl?Bt(o.injectImpl):null,l=TT(t,n,ce.Default);try{r=t[i]=o.factory(void 0,s,t,n),e.firstCreatePass&&i>=n.directiveStart&&Uj(i,s[i],e)}finally{u!==null&&Bt(u),Ml(a),o.resolving=!1,xT()}}return r}function Zj(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(pa)?t[pa]:void 0;return typeof e=="number"?e>=0?e&FT:Qj:e}function r0(t,e,i){let n=1<<t;return!!(i[e+(t>>_T)]&n)}function i0(t,e){return!(t&ce.Self)&&!(t&ce.Host&&e)}var ji=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return UT(this._tNode,this._lView,e,ql(n),i)}};function Qj(){return new ji(yt(),V())}function Ge(t){return ro(()=>{let e=t.prototype.constructor,i=e[Ws]||lv(e),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let s=r[Ws]||lv(r);if(s&&s!==i)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function lv(t){return V0(t)?()=>{let e=lv(At(t));return e&&e()}:Ui(t)}function Jj(t,e,i,n,r){let s=t,o=e;for(;s!==null&&o!==null&&o[J]&2048&&!(o[J]&512);){let a=$T(s,o,i,n|ce.Self,tr);if(a!==tr)return a;let c=s.parent;if(!c){let u=o[hT];if(u){let l=u.get(i,tr,n);if(l!==tr)return l}c=BT(o),o=o[so]}s=c}return r}function BT(t){let e=t[te],i=e.type;return i===2?e.declTNode:i===1?t[sn]:null}function nd(t){return Yj(yt(),t)}var Xj=io("Attribute",t=>({attributeName:t,__NG_ELEMENT_ID__:()=>nd(t)})),s0=null;function eU(){return s0=s0||new iv}function tU(t){return VT(eU().parameters(t))}function VT(t){return t.map(e=>nU(e))}function nU(t){let e={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(t)&&t.length>0)for(let i=0;i<t.length;i++){let n=t[i];if(n===void 0)continue;let r=Object.getPrototypeOf(n);if(n instanceof nn||r.ngMetadataName==="Optional")e.optional=!0;else if(n instanceof xa||r.ngMetadataName==="SkipSelf")e.skipSelf=!0;else if(n instanceof Tk||r.ngMetadataName==="Self")e.self=!0;else if(n instanceof Ak||r.ngMetadataName==="Host")e.host=!0;else if(n instanceof Yl)e.token=n.token;else if(n instanceof Xj){if(n.attributeName===void 0)throw new L(204,!1);e.attribute=n.attributeName}else e.token=n}else t===void 0||Array.isArray(t)&&t.length===0?e.token=null:e.token=t;return e}function rU(t,e){let i=null,n=null;t.hasOwnProperty(Sl)||Object.defineProperty(t,Sl,{get:()=>(i===null&&(i=rv({usage:0,kind:"injectable",type:t}).compileInjectable(Xw,`ng:///${t.name}/\u0275prov.js`,aU(t,e))),i)}),t.hasOwnProperty(Ws)||Object.defineProperty(t,Ws,{get:()=>{if(n===null){let r=rv({usage:0,kind:"injectable",type:t});n=r.compileFactory(Xw,`ng:///${t.name}/\u0275fac.js`,{name:t.name,type:t,typeArgumentCount:0,deps:tU(t),target:r.FactoryTarget.Injectable})}return n},configurable:!0})}var iU=Re({provide:String,useValue:Re});function o0(t){return t.useClass!==void 0}function sU(t){return iU in t}function a0(t){return t.useFactory!==void 0}function oU(t){return t.useExisting!==void 0}function aU(t,e){let i=e||{providedIn:null},n={name:t.name,type:t,typeArgumentCount:0,providedIn:i.providedIn};return(o0(i)||a0(i))&&i.deps!==void 0&&(n.deps=VT(i.deps)),o0(i)?n.useClass=i.useClass:sU(i)?n.useValue=i.useValue:a0(i)?n.useFactory=i.useFactory:oU(i)&&(n.useExisting=i.useExisting),n}var Wse=sk("Injectable",void 0,void 0,void 0,(t,e)=>rU(t,e));function c0(t,e=null,i=null,n){let r=HT(t,e,i,n);
8return r.resolveInjectorInitializers(),r}function HT(t,e=null,i=null,n,r=new Set){let s=[i||Vt,Yk(t)];return n=n||(typeof t=="object"?void 0:_t(t)),new Ea(s,e||gy(),n||null,r)}var qe=(()=>{let e=class e{static create(n,r){if(Array.isArray(n))return c0({name:""},r,n,"");{let s=n.name??"";return c0({name:s},n.parent,n.providers,s)}}};e.THROW_IF_NOT_FOUND=va,e.NULL=new bl,e.\u0275prov=m({token:e,providedIn:"any",factory:()=>f(K0)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var cU="ngOriginalError";function Um(t){return t[cU]}var mt=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&Um(e);for(;i&&Um(i);)i=Um(i);return i||null}},zT=new S("",{providedIn:"root",factory:()=>C(mt).handleError.bind(void 0)}),di=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=uU,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),dv=class extends di{constructor(e){super(),this._lView=e}onDestroy(e){return ST(this._lView,e),()=>Dj(this._lView,e)}};function uU(){return new dv(V())}function lU(){return oo(yt(),V())}function oo(t,e){return new Fn(vn(t,e))}var Fn=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=lU;let t=e;return t})();function dU(t){return t instanceof Fn?t.nativeElement:t}var fv=class extends oe{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,fT()&&(this.destroyRef=C(di,{optional:!0})??void 0)}emit(e){let i=de(null);try{super.next(e)}finally{de(i)}}subscribe(e,i,n){let r=e,s=i||(()=>null),o=n;if(e&&typeof e=="object"){let c=e;r=c.next?.bind(c),s=c.error?.bind(c),o=c.complete?.bind(c)}this.__isAsync&&(s=$m(s),r&&(r=$m(r)),o&&(o=$m(o)));let a=super.subscribe({next:r,error:s,complete:o});return e instanceof Ce&&e.add(a),a}};function $m(t){return e=>{setTimeout(t,void 0,e)}}var ht=fv;function fU(){return this._results[Symbol.iterator]()}var hv=class t{get changes(){return this._changes??=new ht}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=fU)}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,i){return this._results.reduce(e,i)}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,i){this.dirty=!1;let n=Mk(e);(this._changesDetected=!Rk(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function GT(t){return(t.flags&128)===128}var WT=new Map,hU=0;function pU(){return hU++}function gU(t){WT.set(t[Zl],t)}function mU(t){WT.delete(t[Zl])}var u0="__ngContext__";function oi(t,e){ki(e)?(t[u0]=e[Zl],gU(e)):t[u0]=e}function qT(t){return KT(t[Sa])}function YT(t){return KT(t[Mn])}function KT(t){for(;t!==null&&!Nr(t);)t=t[Mn];return t}var pv;function ZT(t){pv=t}function xy(){if(pv!==void 0)return pv;if(typeof document<"u")return document;throw new L(210,!1)}var ka=new S("",{providedIn:"root",factory:()=>vU}),vU="ng",Ny=new S(""),Ye=new S("",{providedIn:"platform",factory:()=>"unknown"});var qse=new S(""),Oy=new S("",{providedIn:"root",factory:()=>xy().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function yU(){let t=new ja;return C(Ye)==="browser"&&(t.store=EU(xy(),C(ka))),t}var ja=(()=>{let e=class e{constructor(){this.store={},this.onSerializeCallbacks={}}get(n,r){return this.store[n]!==void 0?this.store[n]:r}set(n,r){this.store[n]=r}remove(n){delete this.store[n]}hasKey(n){return this.store.hasOwnProperty(n)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(n,r){this.onSerializeCallbacks[n]=r}toJson(){for(let n in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(n))try{this.store[n]=this.onSerializeCallbacks[n]()}catch(r){console.warn("Exception in onSerialize callback: ",r)}return JSON.stringify(this.store).replace(/</g,"\\u003C")}};e.\u0275prov=m({token:e,providedIn:"root",factory:yU});let t=e;return t})();function EU(t,e){let i=t.getElementById(e+"-state");if(i?.textContent)try{return JSON.parse(i.textContent)}catch(n){console.warn("Exception while restoring TransferState for app "+e,n)}return{}}var CU="h",SU="b";var IU=()=>null;function Py(t,e,i=!1){return IU(t,e,i)}var QT=!1,DU=new S("",{providedIn:"root",factory:()=>QT});var al;function bU(){if(al===void 0&&(al=null,He.trustedTypes))try{al=He.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return al}function rd(t){return bU()?.createHTML(t)||t}var cl;function JT(){if(cl===void 0&&(cl=null,He.trustedTypes))try{cl=He.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return cl}function l0(t){return JT()?.createHTML(t)||t}function d0(t){return JT()?.createScriptURL(t)||t}var xr=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${U0})`}}
vendor: 6,374 bytes, line 8
8,gv=class extends xr{getTypeName(){return"HTML"}},mv=class extends xr{getTypeName(){return"Style"}},vv=class extends xr{getTypeName(){return"Script"}},yv=class extends xr{getTypeName(){return"URL"}},Ev=class extends xr{getTypeName(){return"ResourceURL"}};function zt(t){return t instanceof xr?t.changingThisBreaksApplicationSecurity:t}function cr(t,e){let i=wU(t);if(i!=null&&i!==e){if(i==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${U0})`)}return i===e}function wU(t){return t instanceof xr&&t.getTypeName()||null}function XT(t){return new gv(t)}function eA(t){return new mv(t)}function tA(t){return new vv(t)}function nA(t){return new yv(t)}function rA(t){return new Ev(t)}function TU(t){let e=new Sv(t);return AU()?new Cv(e):e}var Cv=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let i=new window.DOMParser().parseFromString(rd(e),"text/html").body;return i===null?this.inertDocumentHelper.getInertBodyElement(e):(i.removeChild(i.firstChild),i)}catch{return null}}},Sv=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let i=this.inertDocument.createElement("template");return i.innerHTML=rd(e),i}};function AU(){try{return!!new window.DOMParser().parseFromString(rd(""),"text/html")}catch{return!1}}var RU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function id(t){return t=String(t),t.match(RU)?t:"unsafe:"+t}function Or(t){let e={};for(let i of t.split(","))e[i]=!0;return e}function Ua(...t){let e={};for(let i of t)for(let n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}var iA=Or("area,br,col,hr,img,wbr"),sA=Or("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),oA=Or("rp,rt"),MU=Ua(oA,sA),xU=Ua(sA,Or("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")),NU=Ua(oA,Or("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")),f0=Ua(iA,xU,NU,MU),aA=Or("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),OU=Or("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),PU=Or("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"),FU=Ua(aA,OU,PU),_U=Or("script,style,template"),Iv=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let i=e.firstChild,n=!0,r=[];for(;i;){if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild){r.push(i),i=jU(i);continue}for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let s=kU(i);if(s){i=s;break}i=r.pop()}}return this.buf.join("")}startElement(e){let i=h0(e).toLowerCase();if(!f0.hasOwnProperty(i))return this.sanitizedSomething=!0,!_U.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);let n=e.attributes;for(let r=0;r<n.length;r++){let s=n.item(r),o=s.name,a=o.toLowerCase();if(!FU.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=s.value;aA[a]&&(c=id(c)),this.buf.push(" ",o,'="',p0(c),'"')}return this.buf.push(">"),!0}endElement(e){let i=h0(e).toLowerCase();f0.hasOwnProperty(i)&&!iA.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(e){this.buf.push(p0(e))}};function LU(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function kU(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw cA(e);return e}function jU(t){let e=t.firstChild;if(e&&LU(t,e))throw cA(e);return e}function h0(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function cA(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var UU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$U=/([^\#-~ |!])/g;function p0(t){return t.replace(/&/g,"&").replace(UU,function(e){let i=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((i-55296)*1024+(n-56320)+65536)+";"}).replace($U,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var ul;function Fy(t,e){let i=null;try{ul=ul||TU(t);let n=e?String(e):"";i=ul.getInertBodyElement(n);let r=5,s=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=s,s=i.innerHTML,i=ul.getInertBodyElement(n)}while(n!==s);let a=new Iv().sanitizeChildren(g0(i)||i);return rd(a)}finally{if(i){let n=g0(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function g0(t){return"content"in t&&BU(t)?t.content:null}function BU(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var yn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(yn||{});function Yse(t){let e=sd();return e?l0(e.sanitize(yn.HTML,t)||""):cr(t,"HTML")?l0(zt(t)):Fy(xy(),Tt(t))}function Kse(t){let e=sd();return e?e.sanitize(yn.STYLE,t)||"":cr(t,"Style")?zt(t):Tt(t)}function VU(t){let e=sd();return e?e.sanitize(yn.URL,t)||"":cr(t,"URL")?zt(t):id(Tt(t))}function HU(t){let e=sd();if(e)return d0(e.sanitize(yn.RESOURCE_URL,t)||"");
8if(cr(t,"ResourceURL"))return d0(zt(t));throw new L(904,!1)}function zU(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?HU:VU}function uA(t,e,i){return zU(e,i)(t)}function sd(){let t=V();return t&&t[xn].sanitizer}var GU=/^>|^->|<!--|-->|--!>|<!-$/g,WU=/(<|>)/g,qU="\u200B$1\u200B";function YU(t){return t.replace(GU,e=>e.replace(WU,qU))}function Zse(t){return t.ownerDocument.defaultView}function Qse(t){return t.ownerDocument}function lA(t){return t instanceof Function?t():t}function KU(t){return(t??C(qe)).get(Ye)==="browser"}var sr=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(sr||{}),ZU;function _y(t,e){return ZU(t,e)}function Vs(t,e,i,n,r){if(n!=null){let s,o=!1;Nr(n)?s=n:ki(n)&&(o=!0,n=n[ar]);let a=ir(n);t===0&&i!==null?r==null?gA(e,i,a):Nl(e,i,a,r||null,!0):t===1&&i!==null?Nl(e,i,a,r||null,!0):t===2?f1(e,a,o):t===3&&e.destroyNode(a),s!=null&&p1(e,t,s,i,r)}}function QU(t,e){return t.createText(e)}function JU(t,e,i){t.setValue(e,i)}function XU(t,e){return t.createComment(YU(e))}function dA(t,e,i){return t.createElement(e,i)}function e1(t,e){fA(t,e),e[ar]=null,e[sn]=null}function t1(t,e,i,n,r,s){n[ar]=r,n[sn]=e,cd(t,n,i,1,r,s)}function fA(t,e){e[xn].changeDetectionScheduler?.notify(1),cd(t,e,e[Me],2,null,null)}function n1(t){let e=t[Sa];if(!e)return Bm(t[te],t);for(;e;){let i=null;if(ki(e))i=e[Sa];else{let n=e[Rt];
8n&&(i=n)}if(!i){for(;e&&!e[Mn]&&e!==t;)ki(e)&&Bm(e[te],e),e=e[gt];e===null&&(e=t),ki(e)&&Bm(e[te],e),i=e&&e[Mn]}e=i}}function r1(t,e,i,n){let r=Rt+n,s=i.length;n>0&&(i[r-1][Mn]=e),n<s-Rt?(e[Mn]=i[r],Y0(i,Rt+n,e)):(i.push(e),e[Mn]=null),e[gt]=i;let o=e[Fa];o!==null&&i!==o&&i1(o,e);let a=e[Rr];a!==null&&a.insertView(t),ov(e),e[J]|=128}function i1(t,e){let i=t[Qs],r=e[gt][gt][tn];e[tn]!==r&&(t[J]|=vy.HasTransplantedViews),i===null?t[Qs]=[e]:i.push(e)}function hA(t,e){let i=t[Qs],n=i.indexOf(e);i.splice(n,1)}function ba(t,e){if(t.length<=Rt)return;let i=Rt+e,n=t[i];if(n){let r=n[Fa];r!==null&&r!==t&&hA(r,n),e>0&&(t[i-1][Mn]=n[Mn]);let s=Dl(t,Rt+e);e1(n[te],n);let o=s[Rr];o!==null&&o.detachView(s[te]),n[gt]=null,n[Mn]=null,n[J]&=-129}return n}function od(t,e){if(!(e[J]&256)){let i=e[Me];i.destroyNode&&cd(t,e,i,3,null,null),n1(e)}}function Bm(t,e){if(e[J]&256)return;let i=de(null);try{e[J]&=-129,e[J]|=256,e[$i]&&Om(e[$i]),o1(t,e),s1(t,e),e[te].type===1&&e[Me].destroy();let n=e[Fa];if(n!==null&&Nr(e[gt])){n!==e[gt]&&hA(n,e);let r=e[Rr];r!==null&&r.detachView(t)}mU(e)}finally{de(i)}}function s1(t,e){let i=t.cleanup,n=e[Ca];if(i!==null)for(let s=0;s<i.length-1;s+=2)if(typeof i[s]=="string"){let o=i[s+3];o>=0?n[o]():n[-o].unsubscribe(),s+=2}else{let o=n[i[s+1]];i[s].call(o)}n!==null&&(e[Ca]=null);let r=e[ii];if(r!==null){e[ii]=null;for(let s=0;s<r.length;s++){let o=r[s];o()}}}function o1(t,e){let i;if(t!=null&&(i=t.destroyHooks)!=null)for(let n=0;n<i.length;n+=2){let r=e[i[n]];if(!(r instanceof Hi)){let s=i[n+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){let a=r[s[o]],c=s[o+1];er(4,a,c);try{c.call(a)}finally{er(5,a,c)}}else{er(4,r,s);try{s.call(r)}finally{er(5,r,s)}}}}}function pA(t,e,i){return a1(t,e.parent,i)}function a1(t,e,i){let n=e;for(;n!==null&&n.type&40;)e=n,n=e.parent;if(n===null)return i[ar];{let{componentOffset:r}=n;if(r>-1){let{encapsulation:s}=t.data[n.directiveStart+r];if(s===rr.None||s===rr.Emulated)return null}return vn(n,i)}}function Nl(t,e,i,n,r){t.insertBefore(e,i,n,r)}function gA(t,e,i){t.appendChild(e,i)}function m0(t,e,i,n,r){n!==null?Nl(t,e,i,n,r):gA(t,e,i)}function c1(t,e,i,n){t.removeChild(e,i,n)}function Ly(t,e){return t.parentNode(e)}function u1(t,e){return t.nextSibling(e)}function mA(t,e,i){return d1(t,e,i)}function l1(t,e,i){return t.type&40?vn(t,i):null}var d1=l1,v0;function ad(t,e,i,n){let r=pA(t,n,e),s=e[Me],o=n.parent||e[sn],a=mA(o,n,e);if(r!=null)if(Array.isArray(i))for(let c=0;c<i.length;c++)m0(s,r,i[c],a,!1);else m0(s,r,i,a,!1);v0!==void 0&&v0(s,n,e,i,r)}function El(t,e){if(e!==null){let i=e.type;if(i&3)return vn(e,t);if(i&4)return Dv(-1,t[e.index]);if(i&8){let n=e.child;if(n!==null)return El(t,n);{let r=t[e.index];return Nr(r)?Dv(-1,r):ir(r)}}else{if(i&32)return _y(e,t)()||ir(t[e.index]);{let n=vA(t,e);if(n!==null){if(Array.isArray(n))return n[0];let r=Da(t[tn]);return El(r,n)}else return El(t,e.next)}}}return null}function vA(t,e){if(e!==null){let n=t[tn][sn],r=e.projection;return n.projection[r]}return null}function Dv(t,e){let i=Rt+t+1;if(i<e.length){let n=e[i],r=n[te].firstChild;if(r!==null)return El(n,r)}return e[Bi]}function f1(t,e,i){let n=Ly(t,e);n&&c1(t,n,e,i)}function ky(t,e,i,n,r,s,o){for(;i!=null;){let a=n[i.index],c=i.type;if(o&&e===0&&(a&&oi(ir(a),n),i.flags|=2),(i.flags&32)!==32)if(c&8)ky(t,e,i.child,n,r,s,!1),Vs(e,t,r,a,s);else if(c&32){let u=_y(i,n),l;for(;l=u();)Vs(e,t,r,l,s);Vs(e,t,r,a,s)}else c&16?yA(t,e,n,i,r,s):Vs(e,t,r,a,s);i=o?i.projectionNext:i.next}}function cd(t,e,i,n,r,s){ky(i,n,t.firstChild,e,r,s,!1)}function h1(t,e,i){let n=e[Me],r=pA(t,i,e),s=i.parent||e[sn],o=mA(s,i,e);yA(n,0,e,i,r,o)}function yA(t,e,i,n,r,s){let o=i[tn],c=o[sn].projection[n.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Vs(e,t,r,l,s)}else{let u=c,l=o[gt];GT(n)&&(u.flags|=128),ky(t,e,u,l,r,s,!0)}}function p1(t,e,i,n,r){let s=i[Bi],o=ir(i);s!==o&&Vs(e,t,n,s,r);for(let a=Rt;a<i.length;a++){let c=i[a];cd(c[te],c,t,e,n,s)}}function g1(t,e,i,n,r){if(e)r?t.addClass(i,n):t.removeClass(i,n);else{let s=n.indexOf("-")===-1?void 0:sr.DashCase;r==null?t.removeStyle(i,n,s):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),s|=sr.Important),t.setStyle(i,n,r,s))}}function m1(t,e,i){t.setAttribute(e,"style",i)}function EA(t,e,i){i===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",i)}function CA(t,e,i){let{mergedAttrs:n,classes:r,styles:s}=i;n!==null&&Xm(t,e,n),r!==null&&EA(t,e,r),s!==null&&m1(t,e,s)}var Xe={};function Jse(t=1){SA(xe(),V(),Pn()+t,!1)}function SA(t,e,i,n){if(!n)if((e[J]&3)===3){let s=t.preOrderCheckHooks;s!==null&&ml(e,s,i)}else{let s=t.preOrderHooks;s!==null&&vl(e,s,0,i)}Vi(i)}function Q(t,e=ce.Default){let i=V();if(i===null)return f(t,e);let n=yt();return UT(n,i,At(t),e)}function IA(){let t="invalid";throw new Error(t)}function DA(t,e,i,n,r,s){let o=de(null);try{let a=null;r&mn.SignalBased&&(a=e[n][Xn]),a!==null&&a.transformFn!==void 0&&(s=a.transformFn(s)),r&mn.HasDecoratorInputTransform&&(s=t.inputTransforms[n].call(e,s)),t.setInput!==null?t.setInput(e,a,s,i,n):pT(e,a,n,s)}finally{de(o)}}function v1(t,e){let i=t.hostBindingOpCodes;if(i!==null)try{for(let n=0;n<i.length;n++){let r=i[n];if(r<0)Vi(~r);else{let s=r,o=i[++n],a=i[++n];Pj(o,s);let c=e[s];a(2,c)}}}finally{Vi(-1)}}
8function ud(t,e,i,n,r,s,o,a,c,u,l){let d=e.blueprint.slice();return d[ar]=r,d[J]=n|4|128|8|64,(u!==null||t&&t[J]&2048)&&(d[J]|=2048),CT(d),d[gt]=d[so]=t,d[pt]=i,d[xn]=o||t&&t[xn],d[Me]=a||t&&t[Me],d[Zs]=c||t&&t[Zs]||null,d[sn]=s,d[Zl]=pU(),d[Ks]=l,d[hT]=u,d[tn]=e.type==2?t[tn]:d,d}function ao(t,e,i,n,r){let s=t.data[e];if(s===null)s=y1(t,e,i,n,r),Oj()&&(s.flags|=32);else if(s.type&64){s.type=i,s.value=n,s.attrs=r;let o=Mj();s.injectorIndex=o===null?-1:o.injectorIndex}return Zi(s,!0),s}function y1(t,e,i,n,r){let s=bT(),o=Iy(),a=o?s:s&&s.parent,c=t.data[e]=b1(t,a,i,e,n,r);return t.firstChild===null&&(t.firstChild=c),s!==null&&(o?s.child==null&&c.parent!==null&&(s.child=c):s.next===null&&(s.next=c,c.prev=s)),c}function bA(t,e,i,n){if(i===0)return-1;let r=e.length;for(let s=0;s<i;s++)e.push(n),t.blueprint.push(n),t.data.push(null);return r}function wA(t,e,i,n,r){let s=Pn(),o=n&2;try{Vi(-1),o&&e.length>Je&&SA(t,e,Je,!1),er(o?2:0,r),i(n,r)}finally{Vi(s),er(o?3:1,r)}}function jy(t,e,i){if(yy(e)){let n=de(null);try{let r=e.directiveStart,s=e.directiveEnd;for(let o=r;o<s;o++){let a=t.data[o];if(a.contentQueries){let c=i[o];a.contentQueries(1,c,o)}}}finally{de(n)}}}function Uy(t,e,i){IT()&&(x1(t,e,i,vn(i,e)),(i.flags&64)===64&&RA(t,e,i))}function $y(t,e,i=vn){let n=e.localNames;if(n!==null){let r=e.index+1;for(let s=0;s<n.length;s+=2){let o=n[s+1],a=o===-1?i(e,t):t[o];t[r++]=a}}}function TA(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=By(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function By(t,e,i,n,r,s,o,a,c,u,l){let d=Je+n,h=d+r,p=E1(d,h),y=typeof u=="function"?u():u;return p[te]={type:t,blueprint:p,template:i,queries:null,viewQuery:a,declTNode:e,data:p.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof s=="function"?s():s,pipeRegistry:typeof o=="function"?o():o,firstChild:null,schemas:c,consts:y,incompleteFirstPass:!1,ssrId:l}}function E1(t,e){let i=[];for(let n=0;n<e;n++)i.push(n<t?null:Xe);return i}function C1(t,e,i,n){let s=n.get(DU,QT)||i===rr.ShadowDom,o=t.selectRootElement(e,s);return S1(o),o}function S1(t){I1(t)}var I1=()=>null;function D1(t,e,i,n){let r=NA(e);r.push(i),t.firstCreatePass&&OA(t).push(n,r.length-1)}function b1(t,e,i,n,r,s){let o=e?e.injectorIndex:-1,a=0;return DT()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function y0(t,e,i,n,r){for(let s in e){if(!e.hasOwnProperty(s))continue;let o=e[s];if(o===void 0)continue;n??={};let a,c=mn.None;Array.isArray(o)?(a=o[0],c=o[1]):a=o;let u=s;if(r!==null){if(!r.hasOwnProperty(s))continue;u=r[s]}t===0?E0(n,i,u,a,c):E0(n,i,u,a)}return n}function E0(t,e,i,n,r){let s;t.hasOwnProperty(i)?(s=t[i]).push(e,n):s=t[i]=[e,n],r!==void 0&&s.push(r)}function w1(t,e,i){let n=e.directiveStart,r=e.directiveEnd,s=t.data,o=e.attrs,a=[],c=null,u=null;for(let l=n;l<r;l++){let d=s[l],h=i?i.get(d):null,p=h?h.inputs:null,y=h?h.outputs:null;c=y0(0,d.inputs,l,c,p),u=y0(1,d.outputs,l,u,y);let D=c!==null&&o!==null&&!hy(e)?B1(c,l,o):null;a.push(D)}c!==null&&(c.hasOwnProperty("class")&&(e.flags|=8),c.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=c,e.outputs=u}function T1(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}
8function Qi(t,e,i,n,r,s,o,a){let c=vn(e,i),u=e.inputs,l;!a&&u!=null&&(l=u[n])?(Hy(t,i,l,n,r),Ql(e)&&A1(i,e.index)):e.type&3?(n=T1(n),r=o!=null?o(r,e.value||"",n):r,s.setProperty(c,n,r)):e.type&12}function A1(t,e){let i=ci(e,t);i[J]&16||(i[J]|=64)}function Vy(t,e,i,n){if(IT()){let r=n===null?null:{"":-1},s=O1(t,i),o,a;s===null?o=a=null:[o,a]=s,o!==null&&AA(t,e,i,o,r,a),r&&P1(i,n,r)}i.mergedAttrs=ya(i.mergedAttrs,i.attrs)}function AA(t,e,i,n,r,s){for(let u=0;u<n.length;u++)uv(xl(i,e),t,n[u].type);_1(i,t.data.length,n.length);for(let u=0;u<n.length;u++){let l=n[u];l.providersResolver&&l.providersResolver(l)}let o=!1,a=!1,c=bA(t,e,n.length,null);for(let u=0;u<n.length;u++){let l=n[u];i.mergedAttrs=ya(i.mergedAttrs,l.hostAttrs),L1(t,i,e,c,l),F1(c,l,r),l.contentQueries!==null&&(i.flags|=4),(l.hostBindings!==null||l.hostAttrs!==null||l.hostVars!==0)&&(i.flags|=64);let d=l.type.prototype;!o&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks??=[]).push(i.index),o=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(i.index),a=!0),c++}w1(t,i,s)}function R1(t,e,i,n,r){let s=r.hostBindings;if(s){let o=t.hostBindingOpCodes;o===null&&(o=t.hostBindingOpCodes=[]);let a=~e.index;M1(o)!=a&&o.push(a),o.push(i,n,s)}}function M1(t){let e=t.length;for(;e>0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function x1(t,e,i,n){let r=i.directiveStart,s=i.directiveEnd;Ql(i)&&k1(e,i,t.data[r+i.componentOffset]),t.firstCreatePass||xl(i,e),oi(n,e);let o=i.initialInputs;for(let a=r;a<s;a++){let c=t.data[a],u=zi(e,t,a,i);if(oi(u,e),o!==null&&$1(e,a-r,u,c,i,o),Mr(c)){let l=ci(i.index,e);l[pt]=zi(e,t,a,i)}}}function RA(t,e,i){let n=i.directiveStart,r=i.directiveEnd,s=i.index,o=Fj();try{Vi(s);for(let a=n;a<r;a++){let c=t.data[a],u=e[a];av(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&N1(c,u)}}finally{Vi(-1),av(o)}}function N1(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function O1(t,e){let i=t.directiveRegistry,n=null,r=null;if(i)for(let s=0;s<i.length;s++){let o=i[s];if(eT(e,o.selectors,!1))if(n||(n=[]),Mr(o))if(o.findHostDirectiveDefs!==null){let a=[];r=r||new Map,o.findHostDirectiveDefs(o,a,r),n.unshift(...a,o);let c=a.length;bv(t,e,c)}else n.unshift(o),bv(t,e,0);else r=r||new Map,o.findHostDirectiveDefs?.(o,n,r),n.push(o)}return n===null?null:[n,r]}function bv(t,e,i){e.componentOffset=i,(t.components??=[]).push(e.index)}function P1(t,e,i){if(e){let n=t.localNames=[];for(let r=0;r<e.length;r+=2){let s=i[e[r+1]];if(s==null)throw new L(-301,!1);n.push(e[r],s)}}}function F1(t,e,i){if(i){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)i[e.exportAs[n]]=t;Mr(e)&&(i[""]=t)}}function _1(t,e,i){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+i,t.providerIndexes=e}function L1(t,e,i,n,r){t.data[n]=r;let s=r.factory||(r.factory=Ui(r.type,!0)),o=new Hi(s,Mr(r),Q);t.blueprint[n]=o,i[n]=o,R1(t,e,n,bA(t,i,r.hostVars,Xe),r)}function k1(t,e,i){let n=vn(e,t),r=TA(i),s=t[xn].rendererFactory,o=16;i.signals?o=4096:i.onPush&&(o=64);let a=ld(t,ud(t,r,null,o,n,e,null,s.createRenderer(n,i),null,null,null));t[e.index]=a}function j1(t,e,i,n,r,s){let o=vn(t,e);U1(e[Me],o,s,t.value,i,n,r)}function U1(t,e,i,n,r,s,o){if(s==null)t.removeAttribute(e,r,i);else{let a=o==null?Tt(s):o(s,n||"",r);t.setAttribute(e,r,a,i)}}function $1(t,e,i,n,r,s){let o=s[e];if(o!==null)for(let a=0;a<o.length;){let c=o[a++],u=o[a++],l=o[a++],d=o[a++];DA(n,i,c,u,l,d)}}function B1(t,e,i){let n=null,r=0;for(;r<i.length;){let s=i[r];if(s===0){r+=4;continue}else if(s===5){r+=2;continue}if(typeof s=="number")break;if(t.hasOwnProperty(s)){n===null&&(n=[]);let o=t[s];for(let a=0;a<o.length;a+=3)if(o[a]===e){n.push(s,o[a+1],o[a+2],i[r+1]);break}}r+=2}return n}function MA(t,e,i,n){return[t,!0,0,e,null,n,null,i,null,null]}function xA(t,e){let i=t.contentQueries;if(i!==null){let n=de(null);try{for(let r=0;r<i.length;r+=2){let s=i[r],o=i[r+1];if(o!==-1){let a=t.data[o];Ty(s),a.contentQueries(2,e[o],o)}}}finally{de(n)}}}function ld(t,e){return t[Sa]?t[e0][Mn]=e:t[Sa]=e,t[e0]=e,e}function wv(t,e,i){Ty(0);let n=de(null);try{e(t,i)}finally{de(n)}}function NA(t){return t[Ca]||(t[Ca]=[])}function OA(t){return t.cleanup||(t.cleanup=[])}
8function PA(t,e,i){return(t===null||Mr(t))&&(i=yj(i[e.index])),i[Me]}function FA(t,e){let i=t[Zs],n=i?i.get(mt,null):null;n&&n.handleError(e)}function Hy(t,e,i,n,r){for(let s=0;s<i.length;){let o=i[s++],a=i[s++],c=i[s++],u=e[o],l=t.data[o];DA(l,u,n,a,c,r)}}function dd(t,e,i){let n=ET(e,t);JU(t[Me],n,i)}function V1(t,e){let i=ci(e,t),n=i[te];H1(n,i);let r=i[ar];r!==null&&i[Ks]===null&&(i[Ks]=Py(r,i[Zs])),zy(n,i,i[pt])}function H1(t,e){for(let i=e.length;i<t.blueprint.length;i++)e.push(t.blueprint[i])}function zy(t,e,i){Ay(e);try{let n=t.viewQuery;n!==null&&wv(1,n,i);let r=t.template;r!==null&&wA(t,e,r,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),e[Rr]?.finishViewCreation(t),t.staticContentQueries&&xA(t,e),t.staticViewQueries&&wv(2,t.viewQuery,i);let s=t.components;s!==null&&z1(e,s)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{e[J]&=-5,Ry()}}function z1(t,e){for(let i=0;i<e.length;i++)V1(t,e[i])}function fd(t,e,i,n){let r=de(null);try{let s=e.tView,a=t[J]&4096?4096:16,c=ud(t,s,i,a,null,e,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),u=t[e.index];c[Fa]=u;let l=t[Rr];return l!==null&&(c[Rr]=l.createEmbeddedView(s)),zy(s,c,i),c}finally{de(r)}}function _A(t,e){let i=Rt+e;if(i<t.length)return t[i]}function wa(t,e){return!e||e.firstChild===null||GT(t)}function hd(t,e,i,n=!0){let r=e[te];
8if(r1(r,e,t,i),n){let o=Dv(i,t),a=e[Me],c=Ly(a,t[Bi]);c!==null&&t1(r,t[sn],a,e,c,o)}let s=e[Ks];s!==null&&s.firstChild!==null&&(s.firstChild=null)}function LA(t,e){let i=ba(t,e);return i!==void 0&&od(i[te],i),i}function Ol(t,e,i,n,r=!1){for(;i!==null;){let s=e[i.index];s!==null&&n.push(ir(s)),Nr(s)&&G1(s,n);let o=i.type;if(o&8)Ol(t,e,i.child,n);else if(o&32){let a=_y(i,e),c;for(;c=a();)n.push(c)}else if(o&16){let a=vA(e,i);if(Array.isArray(a))n.push(...a);else{let c=Da(e[tn]);Ol(c[te],c,a,n,!0)}}i=r?i.projectionNext:i.next}return n}function G1(t,e){for(let i=Rt;i<t.length;i++){let n=t[i],r=n[te].firstChild;r!==null&&Ol(n[te],n,r,e)}t[Bi]!==t[ar]&&e.push(t[Bi])}var kA=[];function W1(t){return t[$i]??q1(t)}function q1(t){let e=kA.pop()??Object.create(K1);return e.lView=t,e}function Y1(t){t.lView[$i]!==t&&(t.lView=null,kA.push(t))}var K1=T(v({},fa),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Ia(t.lView)},consumerOnSignalRead(){this.lView[$i]=this}}),jA=100;function UA(t,e=!0,i=0){let n=t[xn],r=n.rendererFactory,s=!1;s||r.begin?.();try{Z1(t,i)}catch(o){throw e&&FA(t,o),o}finally{s||(r.end?.(),n.inlineEffectRunner?.flush())}}function Z1(t,e){Tv(t,e);let i=0;for(;Sy(t);){if(i===jA)throw new L(103,!1);i++,Tv(t,1)}}function Q1(t,e,i,n){let r=e[J];if((r&256)===256)return;let s=!1;!s&&e[xn].inlineEffectRunner?.flush(),Ay(e);let o=null,a=null;!s&&J1(t)&&(a=W1(e),o=nl(a));try{CT(e),Nj(t.bindingStartIndex),i!==null&&wA(t,e,i,2,n);let c=(r&3)===3;if(!s)if(c){let d=t.preOrderCheckHooks;d!==null&&ml(e,d,null)}else{let d=t.preOrderHooks;d!==null&&vl(e,d,0,null),km(e,0)}if(X1(e),$A(e,0),t.contentQueries!==null&&xA(t,e),!s)if(c){let d=t.contentCheckHooks;d!==null&&ml(e,d)}else{let d=t.contentHooks;d!==null&&vl(e,d,1),km(e,1)}v1(t,e);let u=t.components;u!==null&&VA(e,u,0);let l=t.viewQuery;if(l!==null&&wv(2,l,n),!s)if(c){let d=t.viewCheckHooks;d!==null&&ml(e,d)}else{let d=t.viewHooks;d!==null&&vl(e,d,2),km(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[gl]){for(let d of e[gl])d();e[gl]=null}s||(e[J]&=-73)}catch(c){throw Ia(e),c}finally{a!==null&&(rl(a,o),Y1(a)),Ry()}}function J1(t){return t.type!==2}function $A(t,e){for(let i=qT(t);i!==null;i=YT(i))for(let n=Rt;n<i.length;n++){let r=i[n];BA(r,e)}}function X1(t){for(let e=qT(t);e!==null;e=YT(e)){if(!(e[J]&vy.HasTransplantedViews))continue;let i=e[Qs];for(let n=0;n<i.length;n++){let r=i[n],s=r[gt];Sj(r)}}}function e$(t,e,i){let n=ci(e,t);BA(n,i)}function BA(t,e){Cy(t)&&Tv(t,e)}function Tv(t,e){let n=t[te],r=t[J],s=t[$i],o=!!(e===0&&r&16);if(o||=!!(r&64&&e===0),o||=!!(r&1024),o||=!!(s?.dirty&&il(s)),s&&(s.dirty=!1),t[J]&=-9217,o)Q1(n,t,n.template,t[pt]);else if(r&8192){$A(t,1);let a=n.components;a!==null&&VA(t,a,1)}}function VA(t,e,i){for(let n=0;n<e.length;n++)e$(t,e[n],i)}function Gy(t){for(t[xn].changeDetectionScheduler?.notify();t;){t[J]|=64;let e=Da(t);if(dj(t)&&!e)return t;t=e}return null}var Gi=class{get rootNodes(){let e=this._lView,i=e[te];return Ol(i,e,i.firstChild,[])}constructor(e,i,n=!0){this._lView=e,this._cdRefInjectingView=i,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[pt]}set context(e){this._lView[pt]=e}get destroyed(){return(this._lView[J]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[gt];if(Nr(e)){let i=e[Tl],n=i?i.indexOf(this):-1;n>-1&&(ba(e,n),Dl(i,n))}this._attachedToViewContainer=!1}od(this._lView[te],this._lView)}onDestroy(e){ST(this._lView,e)}markForCheck(){Gy(this._cdRefInjectingView||this._lView)}detach(){this._lView[J]&=-129}reattach(){ov(this._lView),this._lView[J]|=128}detectChanges(){this._lView[J]|=1024,UA(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new L(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,fA(this._lView[te],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new L(902,!1);this._appRef=e,ov(this._lView)}},Nn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=r$;let t=e;return t})(),t$=Nn,n$=class extends t${constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let r=fd(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:n});return new Gi(r)}};function r$(){return pd(yt(),V())}function pd(t,e){return t.type&4?new n$(e,t,oo(t,e)):null}var eoe=new RegExp(`^(\\d+)*(${SU}|${CU})*(.*)`);var i$=()=>null;function Ta(t,e){return i$(t,e)}var Pl=class{},Av=class{}
8,Fl=class{};function s$(t){let e=Error(`No component factory found for ${_t(t)}.`);return e[o$]=t,e}var o$="ngComponent";var Rv=class{resolveComponentFactory(e){throw s$(e)}},gd=(()=>{let e=class e{};e.NULL=new Rv;let t=e;return t})(),Aa=class{},Ji=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>a$();let t=e;return t})();function a$(){let t=V(),e=yt(),i=ci(e.index,t);return(ki(i)?i:t)[Me]}var c$=(()=>{let e=class e{};e.\u0275prov=m({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),Vm={};var C0=new Set;function Pr(t){C0.has(t)||(C0.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function S0(...t){}function u$(){let t=typeof He.requestAnimationFrame=="function",e=He[t?"requestAnimationFrame":"setTimeout"],i=He[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&i){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:i}}var ye=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ht(!1),this.onMicrotaskEmpty=new ht(!1),this.onStable=new ht(!1),this.onError=new ht(!1),typeof Zone>"u")throw new L(908,!1);Zone.assertZonePatched();let 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&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=u$().nativeRequestAnimationFrame,f$(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new L(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new L(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,r){let s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,l$,S0,S0);try{return s.runTask(o,i,n)}finally{s.cancelTask(o)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},l$={};function Wy(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function d$(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(He,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Mv(t),t.isCheckStableRunning=!0,Wy(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Mv(t))}function f$(t){let e=()=>{d$(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,s,o,a)=>{if(h$(a))return i.invokeTask(r,s,o,a);try{return I0(t),i.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),D0(t)}},onInvoke:(i,n,r,s,o,a,c)=>{try{return I0(t),i.invoke(r,s,o,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),D0(t)}},onHasTask:(i,n,r,s)=>{i.hasTask(r,s),n===r&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Mv(t),Wy(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,n,r,s)=>(i.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Mv(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function I0(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function D0(t){t._nesting--,Wy(t)}var xv=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ht,this.onMicrotaskEmpty=new ht,this.onStable=new ht,this.onError=ne
8w ht}run(e,i,n){return e.apply(i,n)}runGuarded(e,i,n){return e.apply(i,n)}runOutsideAngular(e){return e()}runTask(e,i,n,r){return e.apply(i,n)}};function h$(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}function p$(t="zone.js",e){return t==="noop"?new xv:t==="zone.js"?new ye(e):t}var Hs=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Hs||{}),g$={destroy(){}};function md(t,e){!e&&Pa(md);let i=e?.injector??C(qe);if(!KU(i))return g$;Pr("NgAfterNextRender");let n=i.get(qy),r=n.handler??=new Ov,s=e?.phase??Hs.MixedReadWrite,o=()=>{r.unregister(c),a()},a=i.get(di).onDestroy(o),c=On(i,()=>new Nv(s,()=>{o(),t()}));return r.register(c),{destroy:o}}var Nv=class{constructor(e,i){this.phase=e,this.callbackFn=i,this.zone=C(ye),this.errorHandler=C(mt,{optional:!0}),C(Pl,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},Ov=class{constructor(){this.executingCallbacks=!1,this.buckets={[Hs.EarlyRead]:new Set,[Hs.Write]:new Set,[Hs.MixedReadWrite]:new Set,[Hs.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let i of e)i.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},qy=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=m({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function _l(t,e,i){let n=i?t.styles:null,r=i?t.classes:null,s=0;if(e!==null)for(let o=0;o<e.length;o++){let a=e[o];if(typeof a=="number")s=a;else if(s==1)r=Km(r,a);else if(s==2){let c=a,u=e[++o];n=Km(n,c+": "+u+";")}}i?t.styles=n:t.stylesWithoutHost=n,i?t.classes=r:t.classesWithoutHost=r}var Ll=class extends gd{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let i=si(e);return new Xs(i,this.ngModule)}};function b0(t){let e=[];for(let i in t){if(!t.hasOwnProperty(i))continue;let n=t[i];n!==void 0&&e.push({propName:Array.isArray(n)?n[0]:n,templateName:i})}return e}function m$(t){let e=t.toLowerCase();return e==="svg"?yT:e==="math"?gj:null}var Pv=class{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=ql(n);let r=this.injector.get(e,Vm,n);return r!==Vm||i===Vm?r:this.parentInjector.get(e,i,n)}},Xs=class extends Fl{get inputs(){let e=this.componentDef,i=e.inputTransforms,n=b0(e.inputs);if(i!==null)for(let r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return b0(this.componentDef.outputs)}constructor(e,i){super(),this.componentDef=e,this.ngModule=i,this.componentType=e.type,this.selector=Hk(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!i}create(e,i,n,r){let s=de(null);try{r=r||this.ngModule;let o=r instanceof Mt?r:r?.injector;o&&this.componentDef.getStandaloneInjector!==null&&(o=this.componentDef.getStandaloneInjector(o)||o);let a=o?new Pv(e,o):e,c=a.get(Aa,null);if(c===null)throw new L(407,!1);let u=a.get(c$,null),l=a.get(qy,null),d=a.get(Pl,null),h={rendererFactory:c,sanitizer:u,inlineEffectRunner:null,afterRenderEventManager:l,changeDetectionScheduler:d},p=c.createRenderer(null,this.componentDef),y=this.componentDef.selectors[0][0]||"div",D=n?C1(p,n,this.componentDef.encapsulation,a):dA(p,y,m$(y)),w=512;this.componentDef.signals?w|=4096:this.componentDef.onPush||(w|=16);let R=null;D!==null&&(R=Py(D,a,!0));
8let $=By(0,null,null,1,0,null,null,null,null,null,null),k=ud(null,$,null,w,null,null,h,p,a,null,R);Ay(k);let B,re;try{let ue=this.componentDef,pe,Fe=null;ue.findHostDirectiveDefs?(pe=[],Fe=new Map,ue.findHostDirectiveDefs(ue,pe,Fe),pe.push(ue)):pe=[ue];let Mi=v$(k,D),Hn=y$(Mi,D,ue,pe,k,h,p);re=Ey($,Je),D&&S$(p,ue,D,n),i!==void 0&&I$(re,this.ngContentSelectors,i),B=C$(Hn,ue,pe,Fe,k,[D$]),zy($,k,null)}finally{Ry()}return new Fv(this.componentType,B,oo(re,k),k,re)}finally{de(s)}}},Fv=class extends Av{constructor(e,i,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new Gi(r,void 0,!1),this.componentType=e}setInput(e,i){let n=this._tNode.inputs,r;if(n!==null&&(r=n[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),i))return;let s=this._rootLView;Hy(s[te],s,r,e,i),this.previousInputValues.set(e,i);let o=ci(this._tNode.index,s);Gy(o)}}get injector(){return new ji(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function v$(t,e){let i=t[te],n=Je;return t[n]=e,ao(i,n,2,"#host",null)}function y$(t,e,i,n,r,s,o){let a=r[te];E$(n,t,e,o);let c=null;e!==null&&(c=Py(e,r[Zs]));let u=s.rendererFactory.createRenderer(e,i),l=16;i.signals?l=4096:i.onPush&&(l=64);let d=ud(r,TA(i),null,l,r[t.index],t,s,u,null,null,c);return a.firstCreatePass&&bv(a,t,n.length-1),ld(r,d),r[t.index]=d}function E$(t,e,i,n){for(let r of t)e.mergedAttrs=ya(e.mergedAttrs,r.hostAttrs);e.mergedAttrs!==null&&(_l(e,e.mergedAttrs,!0),i!==null&&CA(n,i,e))}function C$(t,e,i,n,r,s){let o=yt(),a=r[te],c=vn(o,r);AA(a,r,o,i,null,n);for(let l=0;l<i.length;l++){let d=o.directiveStart+l,h=zi(r,a,d,o);oi(h,r)}RA(a,r,o),c&&oi(c,r);let u=zi(r,a,o.directiveStart+o.componentOffset,o);if(t[pt]=r[pt]=u,s!==null)for(let l of s)l(u,e);return jy(a,o,r),u}function S$(t,e,i,n){if(n)Xm(t,i,["ng-version","17.3.12"]);else{let{attrs:r,classes:s}=zk(e.selectors[0]);r&&Xm(t,i,r),s&&s.length>0&&EA(t,i,s.join(" "))}}function I$(t,e,i){let n=t.projection=[];for(let r=0;r<e.length;r++){let s=i[r];n.push(s!=null?Array.from(s):null)}}function D$(){let t=yt();td(V()[te],t)}var on=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=b$;let t=e;return t})();function b$(){let t=yt();return zA(t,V())}var w$=on,HA=class extends w${constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return oo(this._hostTNode,this._hostLView)}get injector(){return new ji(this._hostTNode,this._hostLView)}get parentInjector(){let e=My(this._hostTNode,this._hostLView);if(PT(e)){let i=Rl(e,this._hostLView),n=Al(e),r=i[te].data[n+8];return new ji(r,i)}else return new ji(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=w0(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-Rt}createEmbeddedView(e,i,n){let r,s;typeof n=="number"?r=n:n!=null&&(r=n.index,s=n.injector);let o=Ta(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(i||{},s,o);return this.insertImpl(a,r,wa(this._hostTNode,o)),a}createComponent(e,i,n,r,s){let o=e&&!ha(e),a;if(o)a=i;else{let y=i||{};a=y.index,n=y.injector,r=y.projectableNodes,s=y.environmentInjector||y.ngModuleRef}let c=o?e:new Xs(si(e)),u=n||this.parentInjector;if(!s&&c.ngModule==null){let D=(o?u:this.parentInjector).get(Mt,null);D&&(s=D)}let l=si(c.componentType??{}),d=Ta(this._lContainer,l?.id??null),h=d?.firstChild??null,p=c.create(u,r,h,s);return this.insertImpl(p.hostView,a,wa(this._hostTNode,d)),p}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let r=e._lView;if(Cj(r)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=r[gt],u=new HA(c,c[sn],c[gt]);u.detach(u.indexOf(e))}}let s=this._adjustIndex(i),o=this._lContainer;return hd(o,r,s,n),e.attachToViewContainerRef(),Y0(Hm(o),s,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=w0(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=ba(this._lContainer,i);n&&(Dl(Hm(this._lContainer),i),od(n[te],n))}detach(e){let i=this._adjustIndex(e,-1),n=ba(this._lContainer,i);return n&&Dl(Hm(this._lContainer),i)!=null?new Gi(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function w0(t){return t[Tl]}function Hm(t){return t[Tl]||(t[Tl]=[])}function zA(t,e){let i,n=e[t.index];return Nr(n)?i=n:(i=MA(n,e,null,t),e[t.index]=i,ld(e,i)),A$(i,e,t,n),new HA(i,t,e)}function T$(t,e){let i=t[Me],n=i.createComment(""),r=vn(e,t),s=Ly(i,r);return Nl(i,s,n,u1(i,r),!1),n}var A$=x$,R$=()=>!1;function M$(t,e,i){return R$(t,e,i)}function x$(t,e,i,n){if(t[Bi])return;let r;i.type&8?r=ir(n):r=T$(e,i),t[Bi]=r}var _v=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Lv=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,r=[];for(let s=0;s<n;s++){let o=i.getByIndex(s),a=this.queries[o.indexInDeclarationView];
vendor: 4,847 bytes, line 8
8r.push(a.clone())}return new t(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let i=0;i<this.queries.length;i++)Yy(e,i).matches!==null&&this.queries[i].setDirty()}},kl=class{constructor(e,i,n=null){this.flags=i,this.read=n,typeof e=="string"?this.predicate=j$(e):this.predicate=e}},kv=class t{constructor(e=[]){this.queries=e}elementStart(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,i)}elementEnd(e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(e)}embeddedTView(e){let i=null;for(let n=0;n<this.length;n++){let r=i!==null?i.length:0,s=this.getByIndex(n).embeddedTView(e,r);s&&(s.indexInDeclarationView=n,i!==null?i.push(s):i=[s])}return i!==null?new t(i):null}template(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,i)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},jv=class t{constructor(e,i=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(e,i){this.isApplyingToNode(i)&&this.matchTNode(e,i)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,i){this.elementStart(e,i)}embeddedTView(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let i=this._declarationNodeIndex,n=e.parent;for(;n!==null&&n.type&8&&n.index!==i;)n=n.parent;return i===(n!==null?n.index:-1)}return this._appliesToNextNode}matchTNode(e,i){let n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){let s=n[r];this.matchTNodeWithReadOption(e,i,N$(i,s)),this.matchTNodeWithReadOption(e,i,yl(i,e,s,!1,!1))}else n===Nn?i.type&4&&this.matchTNodeWithReadOption(e,i,-1):this.matchTNodeWithReadOption(e,i,yl(i,e,n,!1,!1))}matchTNodeWithReadOption(e,i,n){if(n!==null){let r=this.metadata.read;if(r!==null)if(r===Fn||r===on||r===Nn&&i.type&4)this.addMatch(i.index,-2);else{let s=yl(i,e,r,!1,!1);s!==null&&this.addMatch(i.index,s)}else this.addMatch(i.index,n)}}addMatch(e,i){this.matches===null?this.matches=[e,i]:this.matches.push(e,i)}};function N$(t,e){let i=t.localNames;if(i!==null){for(let n=0;n<i.length;n+=2)if(i[n]===e)return i[n+1]}return null}function O$(t,e){return t.type&11?oo(t,e):t.type&4?pd(t,e):null}function P$(t,e,i,n){return i===-1?O$(e,t):i===-2?F$(t,e,n):zi(t,t[te],i,e)}function F$(t,e,i){if(i===Fn)return oo(e,t);if(i===Nn)return pd(e,t);if(i===on)return zA(e,t)}function GA(t,e,i,n){let r=e[Rr].queries[n];if(r.matches===null){let s=t.data,o=i.matches,a=[];for(let c=0;o!==null&&c<o.length;c+=2){let u=o[c];if(u<0)a.push(null);else{let l=s[u];a.push(P$(e,l,o[c+1],i.metadata.read))}}r.matches=a}return r.matches}function Uv(t,e,i,n){let r=t.queries.getByIndex(i),s=r.matches;if(s!==null){let o=GA(t,e,r,i);for(let a=0;a<s.length;a+=2){let c=s[a];if(c>0)n.push(o[a/2]);else{let u=s[a+1],l=e[-c];for(let d=Rt;d<l.length;d++){let h=l[d];h[Fa]===h[gt]&&Uv(h[te],h,u,n)}if(l[Qs]!==null){let d=l[Qs];for(let h=0;h<d.length;h++){let p=d[h];Uv(p[te],p,u,n)}}}}}return n}function _$(t,e){return t[Rr].queries[e].queryList}function WA(t,e,i){let n=new hv((i&4)===4);return D1(t,e,n,n.destroy),(e[Rr]??=new Lv).queries.push(new _v(n))-1}function L$(t,e,i){let n=xe();return n.firstCreatePass&&(qA(n,new kl(t,e,i),-1),(e&2)===2&&(n.staticViewQueries=!0)),WA(n,V(),e)}function k$(t,e,i,n){let r=xe();if(r.firstCreatePass){let s=yt();qA(r,new kl(e,i,n),s.index),U$(r,t),(i&2)===2&&(r.staticContentQueries=!0)}return WA(r,V(),i)}function j$(t){return t.split(",").map(e=>e.trim())}function qA(t,e,i){t.queries===null&&(t.queries=new kv),t.queries.track(new jv(e,i))}function U$(t,e){let i=t.contentQueries||(t.contentQueries=[]),n=i.length?i[i.length-1]:-1;e!==n&&i.push(t.queries.length-1,e)}function Yy(t,e){return t.queries.getByIndex(e)}function $$(t,e){let i=t[te],n=Yy(i,e);return n.crossesNgTemplate?Uv(i,t,e,[]):GA(i,t,n,e)}function B$(t){return typeof t=="function"&&t[Xn]!==void 0}function Ky(t,e){Pr("NgSignals");let i=$w(t),n=i[Xn];return e?.equal&&(n.equal=e.equal),i.set=r=>Pm(n,r),i.update=r=>Bw(n,r),i.asReadonly=V$.bind(i),i}function V$(){let t=this[Xn];if(t.readonlyFn===void 0){let e=()=>this();e[Xn]=t,t.readonlyFn=e}return t.readonlyFn}function YA(t){return B$(t)&&typeof t.set=="function"}function H$(t){let e=[],i=new Map;function n(r){let s=i.get(r);if(!s){let o=t(r);i.set(r,s=o.then(q$))}return s}return jl.forEach((r,s)=>{let o=[];r.templateUrl&&o.push(n(r.templateUrl).then(u=>{r.template=u}));let a=typeof r.styles=="string"?[r.styles]:r.styles||[];
8if(r.styles=a,r.styleUrl&&r.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(r.styleUrls?.length){let u=r.styles.length,l=r.styleUrls;r.styleUrls.forEach((d,h)=>{a.push(""),o.push(n(d).then(p=>{a[u+h]=p,l.splice(l.indexOf(d),1),l.length==0&&(r.styleUrls=void 0)}))})}else r.styleUrl&&o.push(n(r.styleUrl).then(u=>{a.push(u),r.styleUrl=void 0}));let c=Promise.all(o).then(()=>Y$(s));e.push(c)}),G$(),Promise.all(e).then(()=>{})}var jl=new Map,z$=new Set;function G$(){let t=jl;return jl=new Map,t}function W$(){return jl.size===0}function q$(t){return typeof t=="string"?t:t.text()}function Y$(t){z$.delete(t)}function K$(t){return Object.getPrototypeOf(t.prototype).constructor}function Z$(t){let e=K$(t.type),i=!0,n=[t];for(;e;){let r;if(Mr(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new L(903,!1);r=e.\u0275dir}if(r){if(i){n.push(r);let o=t;o.inputs=ll(t.inputs),o.inputTransforms=ll(t.inputTransforms),o.declaredInputs=ll(t.declaredInputs),o.outputs=ll(t.outputs);let a=r.hostBindings;a&&tB(t,a);let c=r.viewQuery,u=r.contentQueries;if(c&&X$(t,c),u&&eB(t,u),Q$(t,r),ok(t.outputs,r.outputs),Mr(r)&&r.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(r.data.animation)}}let s=r.features;if(s)for(let o=0;o<s.length;o++){let a=s[o];a&&a.ngInherit&&a(t),a===Z$&&(i=!1)}}e=Object.getPrototypeOf(e)}J$(n)}function Q$(t,e){for(let i in e.inputs){if(!e.inputs.hasOwnProperty(i)||t.inputs.hasOwnProperty(i))continue;let n=e.inputs[i];if(n!==void 0&&(t.inputs[i]=n,t.declaredInputs[i]=e.declaredInputs[i],e.inputTransforms!==null)){let r=Array.isArray(n)?n[0]:n;if(!e.inputTransforms.hasOwnProperty(r))continue;t.inputTransforms??={},t.inputTransforms[r]=e.inputTransforms[r]}}}function J$(t){let e=0,i=null;for(let n=t.length-1;n>=0;n--){let r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=ya(r.hostAttrs,i=ya(i,r.hostAttrs))}}function ll(t){return t===qs?{}:t===Vt?[]:t}function X$(t,e){let i=t.viewQuery;i?t.viewQuery=(n,r)=>{e(n,r),i(n,r)}:t.viewQuery=e}function eB(t,e){let i=t.contentQueries;i?t.contentQueries=(n,r,s)=>{e(n,r,s),i(n,r,s)}:t.contentQueries=e}function tB(t,e){let i=t.hostBindings;i?t.hostBindings=(n,r)=>{e(n,r),i(n,r)}:t.hostBindings=e}function Zy(t){let e=t.inputConfig,i={};for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];Array.isArray(r)&&r[3]&&(i[n]=r[3])}t.inputTransforms=i}var ai=class{},Wi=class{};var Ul=class extends ai{constructor(e,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ll(this);let r=sT(e);this._bootstrapComponents=lA(r.bootstrap),this._r3Injector=HT(e,i,[{provide:ai,useValue:this},{provide:gd,useValue:this.componentFactoryResolver},...n],_t(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},$l=class extends Wi{constructor(e){super(),this.moduleType=e}create(e){return new Ul(this.moduleType,e,[])}};function nB(t,e,i){return new Ul(t,e,i)}var $v=class extends ai{constructor(e){super(),this.componentFactoryResolver=new Ll(this),this.instance=null;let i=new Ea([...e.providers,{provide:ai,useValue:this},{provide:gd,useValue:this.componentFactoryResolver}],e.parent||gy(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function vd(t,e,i=null){return new $v({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}var fi=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ae(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function KA(t){return Qy(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function rB(t,e){if(Array.isArray(t))for(let i=0;i<t.length;i++)e(t[i]);else{let i=t[Symbol.iterator](),n;for(;!(n=i.next()).done;)e(n.value)}}function Qy(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function ur(t,e,i){return t[e]=i}function $a(t,e){return t[e]}function vt(t,e,i){let n=t[e];return Object.is(n,i)?!1:(t[e]=i,!0)}
vendor: 11,245 bytes, line 8
8function eo(t,e,i,n){let r=vt(t,e,i);return vt(t,e+1,n)||r}function Jy(t,e,i,n,r){let s=eo(t,e,i,n);return vt(t,e+2,r)||s}function qi(t,e,i,n,r,s){let o=eo(t,e,i,n);return eo(t,e+2,r,s)||o}function iB(t){return(t.flags&32)===32}function sB(t,e,i,n,r,s,o,a,c){let u=e.consts,l=ao(e,t,4,o||null,Js(u,a));Vy(e,i,l,Js(u,c)),td(e,l);let d=l.tView=By(2,l,n,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u,null);return e.queries!==null&&(e.queries.template(e,l),d.queries=e.queries.embeddedTView(l)),l}function Bv(t,e,i,n,r,s,o,a){let c=V(),u=xe(),l=t+Je,d=u.firstCreatePass?sB(l,u,c,e,i,n,r,s,o):u.data[l];Zi(d,!1);let h=oB(u,c,d,t);Xl()&&ad(u,c,h,d),oi(h,c);let p=MA(h,c,h,d);return c[l]=p,ld(c,p),M$(p,d,c),Jl(d)&&Uy(u,c,d),o!=null&&$y(c,d,a),Bv}var oB=aB;function aB(t,e,i,n){return ed(!0),e[Me].createComment("")}function Xy(t,e,i,n){let r=V(),s=ui();if(vt(r,s,e)){let o=xe(),a=li();j1(a,r,t,e,i,n)}return Xy}function eE(t,e,i,n){return vt(t,ui(),i)?e+Tt(i)+n:Xe}function ZA(t,e,i,n,r,s){let o=by(),a=eo(t,o,i,r);return La(2),a?e+Tt(i)+n+Tt(r)+s:Xe}function QA(t,e,i,n,r,s,o,a){let c=by(),u=Jy(t,c,i,r,o);return La(3),u?e+Tt(i)+n+Tt(r)+s+Tt(o)+a:Xe}function cB(t,e,i,n,r,s,o,a,c,u,l,d){let h=by(),p=qi(t,h,i,r,o,c);return p=vt(t,h+4,l)||p,La(5),p?e+Tt(i)+n+Tt(r)+s+Tt(o)+a+Tt(c)+u+Tt(l)+d:Xe}function dl(t,e){return t<<17|e<<2}function Yi(t){return t>>17&32767}function uB(t){return(t&2)==2}function lB(t,e){return t&131071|e<<17}function Vv(t){return t|2}function to(t){return(t&131068)>>2}function zm(t,e){return t&-131069|e<<2}function dB(t){return(t&1)===1}function Hv(t){return t|1}function fB(t,e,i,n,r,s){let o=s?e.classBindings:e.styleBindings,a=Yi(o),c=to(o);t[n]=i;let u=!1,l;if(Array.isArray(i)){let d=i;l=d[1],(l===null||Oa(d,l)>0)&&(u=!0)}else l=i;if(r)if(c!==0){let h=Yi(t[a+1]);t[n+1]=dl(h,a),h!==0&&(t[h+1]=zm(t[h+1],n)),t[a+1]=lB(t[a+1],n)}else t[n+1]=dl(a,0),a!==0&&(t[a+1]=zm(t[a+1],n)),a=n;else t[n+1]=dl(c,0),a===0?a=n:t[c+1]=zm(t[c+1],n),c=n;u&&(t[n+1]=Vv(t[n+1])),T0(t,l,n,!0),T0(t,l,n,!1),hB(e,l,t,n,s),o=dl(a,c),s?e.classBindings=o:e.styleBindings=o}function hB(t,e,i,n,r){let s=r?t.residualClasses:t.residualStyles;s!=null&&typeof e=="string"&&Oa(s,e)>=0&&(i[n+1]=Hv(i[n+1]))}function T0(t,e,i,n){let r=t[i+1],s=e===null,o=n?Yi(r):to(r),a=!1;for(;o!==0&&(a===!1||s);){let c=t[o],u=t[o+1];pB(c,e)&&(a=!0,t[o+1]=n?Hv(u):Vv(u)),o=n?Yi(u):to(u)}a&&(t[i+1]=n?Vv(r):Hv(r))}function pB(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Oa(t,e)>=0:!1}var Qe={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function JA(t){return t.substring(Qe.key,Qe.keyEnd)}function gB(t){return t.substring(Qe.value,Qe.valueEnd)}function mB(t){return tR(t),XA(t,no(t,0,Qe.textEnd))}function XA(t,e){let i=Qe.textEnd;return i===e?-1:(e=Qe.keyEnd=yB(t,Qe.key=e,i),no(t,e,i))}function vB(t){return tR(t),eR(t,no(t,0,Qe.textEnd))}function eR(t,e){let i=Qe.textEnd,n=Qe.key=no(t,e,i);return i===n?-1:(n=Qe.keyEnd=EB(t,n,i),n=A0(t,n,i,58),n=Qe.value=no(t,n,i),n=Qe.valueEnd=CB(t,n,i),A0(t,n,i,59))}function tR(t){Qe.key=0,Qe.keyEnd=0,Qe.value=0,Qe.valueEnd=0,Qe.textEnd=t.length}function no(t,e,i){for(;e<i&&t.charCodeAt(e)<=32;)e++;return e}function yB(t,e,i){for(;e<i&&t.charCodeAt(e)>32;)e++;return e}function EB(t,e,i){let n;for(;e<i&&((n=t.charCodeAt(e))===45||n===95||(n&-33)>=65&&(n&-33)<=90||n>=48&&n<=57);)e++;return e}function A0(t,e,i,n){return e=no(t,e,i),e<i&&e++,e}function CB(t,e,i){let n=-1,r=-1,s=-1,o=e,a=o;for(;o<i;){let c=t.charCodeAt(o++);if(c===59)return a;c===34||c===39?a=o=R0(t,c,o,i):e===o-4&&s===85&&r===82&&n===76&&c===40?a=o=R0(t,41,o,i):c>32&&(a=o),s=r,r=n,n=c&-33}return a}function R0(t,e,i,n){let r=-1,s=i;for(;s<n;){let o=t.charCodeAt(s++);if(o==e&&r!==92)return s;o==92&&r===92?r=0:r=o}throw new Error}function SB(t,e,i){let n=V(),r=ui();if(vt(n,r,e)){let s=xe(),o=li();Qi(s,o,n,t,e,n[Me],i,!1)}return SB}function zv(t,e,i,n,r){let s=e.inputs,o=r?"class":"style";Hy(t,i,s[o],o,n)}function nR(t,e,i){return iR(t,e,i,!1),nR}function IB(t,e){return iR(t,e,null,!0),IB}function noe(t){tE(aR,DB,t,!1)}function DB(t,e){for(let i=vB(e);i>=0;i=eR(e,i))aR(t,JA(e),gB(e))}function roe(t){tE(MB,rR,t,!0)}function rR(t,e){for(let i=mB(e);i>=0;i=XA(e,i))Na(t,JA(e),!0)}function iR(t,e,i,n){let r=V(),s=xe(),o=La(2);if(s.firstUpdatePass&&oR(s,t,o,n),e!==Xe&&vt(r,o,e)){let a=s.data[Pn()];cR(s,a,r,r[Me],t,r[o+1]=NB(e,i),n,o)}}function tE(t,e,i,n){let r=xe(),s=La(2);r.firstUpdatePass&&oR(r,null,s,n);let o=V();if(i!==Xe&&vt(o,s,i)){let a=r.data[Pn()];if(uR(a,n)&&!sR(r,s)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(i=Km(c,i||"")),zv(r,a,o,i,n)}else xB(r,a,o,o[Me],o[s+1],o[s+1]=RB(t,e,i),n,s)}}function sR(t,e){return e>=t.expandoStartIndex}function oR(t,e,i,n){let r=t.data;if(r[i+1]===null){let s=r[Pn()],o=sR(t,i);uR(s,n)&&e===null&&!o&&(e=!1),e=bB(r,s,e,n),fB(r,s,e,i,o,n)}}function bB(t,e,i,n){let r=wy(t),s=n?e.residualClasses:e.residualStyles;if(r===null)(n?e.classBindings:e.styleBindings)===0&&(i=Gm(null,t,e,i,n),i=Ra(i,e.attrs,n),s=null);else{let o=e.directiveStylingLast;if(o===-1||t[o]!==r)if(i=Gm(r,t,e,i,n),s===null){let c=wB(t,e,n);c!==void 0&&Array.isArray(c)&&(c=Gm(null,t,e,c[1],n),c=Ra(c,e.attrs,n),TB(t,e,n,c))}else s=AB(t,e,n)}return s!==void 0&&(n?e.residualClasses=s:e.residualStyles=s),i}function wB(t,e,i){let n=i?e.classBindings:e.styleBindings;if(to(n)!==0)return t[Yi(n)]}function TB(t,e,i,n){let r=i?e.classBindings:e.styleBindings;t[Yi(r)]=n}function AB(t,e,i){let n,r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++){let o=t[s].hostAttrs;n=Ra(n,o,i)}return Ra(n,e.attrs,i)}function Gm(t,e,i,n,r){let s=null,o=i.directiveEnd,a=i.directiveStylingLast;for(a===-1?a=i.directiveStart:a++;a<o&&(s=e[a],n=Ra(n,s.hostAttrs,r),s!==t);)a++;return t!==null&&(i.directiveStylingLast=a),n}function Ra(t,e,i){let n=i?1:2,r=-1;if(e!==null)for(let s=0;s<e.length;s++){let o=e[s];typeof o=="number"?r=o:r===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),Na(t,o,i?!0:e[++s]))}return t===void 0?null:t}function RB(t,e,i){if(i==null||i==="")return Vt;let n=[],r=zt(i);if(Array.isArray(r))for(let s=0;s<r.length;s++)t(n,r[s],!0);else if(typeof r=="object")for(let s in r)r.hasOwnProperty(s)&&t(n,s,r[s]);else typeof r=="string"&&e(n,r);return n}function aR(t,e,i){Na(t,e,zt(i))}function MB(t,e,i){let n=String(e);n!==""&&!n.includes(" ")&&Na(t,n,i)}function xB(t,e,i,n,r,s,o,a){r===Xe&&(r=Vt);let c=0,u=0,l=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;l!==null||d!==null;){let h=c<r.length?r[c+1]:void 0,p=u<s.length?s[u+1]:void 0,y=null,D;l===d?(c+=2,u+=2,h!==p&&(y=d,D=p)):d===null||l!==null&&l<d?(c+=2,y=l):(u+=2,y=d,D=p),y!==null&&cR(t,e,i,n,y,D,o,a),l=c<r.length?r[c]:null,d=u<s.length?s[u]:null}}function cR(t,e,i,n,r,s,o,a){if(!(e.type&3))return;let c=t.data,u=c[a+1],l=dB(u)?M0(c,e,i,r,to(u),o):void 0;if(!Bl(l)){Bl(s)||uB(u)&&(s=M0(c,null,i,r,a,o));let d=ET(Pn(),i);g1(n,o,d,r,s)}}function M0(t,e,i,n,r,s){let o=e===null,a;for(;r>0;){let c=t[r],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=i[r+1];h===Xe&&(h=d?Vt:void 0);let p=d?Fm(h,n):l===n?h:void 0;if(u&&!Bl(p)&&(p=Fm(c,n)),Bl(p)&&(a=p,o))return a;let y=t[r+1];r=o?Yi(y):to(y)}if(e!==null){let c=s?e.residualClasses:e.residualStyles;c!=null&&(a=Fm(c,n))}return a}function Bl(t){return t!==void 0}function NB(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=_t(zt(t)))),t}function uR(t,e){return(t.flags&(e?8:16))!==0}function ioe(t,e,i){let n=V(),r=eE(n,t,e,i);tE(Na,rR,r,!0)}function soe(){return V()[tn][pt]}var Gv=class{destroy(e){}updateValue(e,i){}swap(e,i){let n=Math.min(e,i),r=Math.max(e,i),s=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,s),this.attach(r,o)}else this.attach(n,s)}move(e,i){this.attach(i,this.detach(e))}};function Wm(t,e,i,n,r){return t===i&&Object.is(e,n)?1:Object.is(r(t,e),r(i,n))?-1:0}function OB(t,e,i){let n,r,s=0,o=t.length-1;if(Array.isArray(e)){let a=e.length-1;for(;s<=o&&s<=a;){let c=t.at(s),u=e[s],l=Wm(s,c,s,u,i);if(l!==0){l<0&&t.updateValue(s,u),s++;continue}let d=t.at(o),h=e[a],p=Wm(o,d,a,h,i);if(p!==0){p<0&&t.updateValue(o,h),o--,a--;continue}let y=i(s,c),D=i(o,d),w=i(s,u);if(Object.is(w,D)){let R=i(a,h);Object.is(R,y)?(t.swap(s,o),t.updateValue(o,h),a--,o--):t.move(o,s),t.updateValue(s,u),s++;continue}if(n??=new Vl,r??=N0(t,s,o,i),Wv(t,n,s,w))t.updateValue(s,u),s++,o++;else if(r.has(w))n.set(y,t.detach(s)),o--;else{let R=t.create(s,e[s]);t.attach(s,R),s++,o++}}for(;s<=a;)x0(t,n,i,s,e[s]),s++}else if(e!=null){let a=e[Symbol.iterator](),c=a.next();for(;!c.done&&s<=o;){let u=t.at(s),l=c.value,d=Wm(s,u,s,l,i);if(d!==0)d<0&&t.updateValue(s,l),s++,c=a.next();else{n??=new Vl,r??=N0(t,s,o,i);let h=i(s,l);if(Wv(t,n,s,h))t.updateValue(s,l),s++,o++,c=a.next();else if(!r.has(h))t.attach(s,t.create(s,l)),s++,o++,c=a.next();else{let p=i(s,u);n.set(p,t.detach(s)),o--}}}for(;!c.done;)x0(t,n,i,t.length,c.value),c=a.next()}for(;s<=o;)t.destroy(t.detach(o--));n?.forEach(a=>{t.destroy(a)})}function Wv(t,e,i,n){return e!==void 0&&e.has(n)?(t.attach(i,e.get(n)),e.delete(n),!0):!1}function x0(t,e,i,n,r){if(Wv(t,e,n,i(n,r)))t.updateValue(n,r);else{let s=t.create(n,r);t.attach(n,s)}}function N0(t,e,i,n){let r=new Set;for(let s=e;s<=i;s++)r.add(n(s,t.at(s)));return r}var Vl=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let i=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(i)?(this.kvMap.set(e,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,i){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,i)}else this.kvMap.set(e,i)}forEach(e){for(let[i,n]of this.kvMap)if(e(n,i),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,i)}}};function ooe(t,e,i){Pr("NgControlFlow");let n=V(),r=ui(),s=Zv(n,Je+t),o=0;if(vt(n,r,e)){let a=de(null);try{if(LA(s,o),e!==-1){let c=Qv(n[te],Je+e),u=Ta(s,c.tView.ssrId),l=fd(n,c,i,{dehydratedView:u});hd(s,l,o,wa(c,u))}}finally{de(a)}}else{let a=_A(s,o);a!==void 0&&(a[pt]=i)}}var qv=class{constructor(e,i,n){this.lContainer=e,this.$implicit=i,this.$index=n}get $count(){return this.lContainer.length-Rt}};function aoe(t){return t}function coe(t,e){return e}var Yv=class{constructor(e,i,n){this.hasEmptyBlock=e,this.trackByFn=i,this.liveCollection=n}};function uoe(t,e,i,n,r,s,o,a,c,u,l,d,h){Pr("NgControlFlow");let p=c!==void 0,y=V(),D=a?o.bind(y[tn][pt]):o,w=new Yv(p,D);y[Je+t]=w,Bv(t+1,e,i,n,r,s),p&&Bv(t+2,c,u,l,d,h)}var Kv=class extends Gv{constructor(e,i,n){super(),this.lContainer=e,this.hostLView=i,this.templateTNode=n,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Rt}at(e){return this.getLView(e)[pt].$implicit}attach(e,i){let n=i[Ks];this.needsIndexUpdate||=e!==this.length,hd(this.lContainer,i,e,wa(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,PB(this.lContainer,e)}create(e,i){let n=Ta(this.lContainer,this.templateTNode.tView.ssrId);return fd(this.hostLView,this.templateTNode,new qv(this.lContainer,i,e),{dehydratedView:n})}destroy(e){od(e[te],e)}updateValue(e,i){this.getLView(e)[pt].$implicit=i}reset(){this.needsIndexUpdate=!1}
8updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[pt].$index=e}getLView(e){return FB(this.lContainer,e)}};function loe(t){let e=de(null),i=Pn();try{let n=V(),r=n[te],s=n[i];if(s.liveCollection===void 0){let a=i+1,c=Zv(n,a),u=Qv(r,a);s.liveCollection=new Kv(c,n,u)}else s.liveCollection.reset();let o=s.liveCollection;if(OB(o,t,s.trackByFn),o.updateIndexes(),s.hasEmptyBlock){let a=ui(),c=o.length===0;if(vt(n,a,c)){let u=i+2,l=Zv(n,u);if(c){let d=Qv(r,u),h=Ta(l,d.tView.ssrId),p=fd(n,d,void 0,{dehydratedView:h});hd(l,p,0,wa(d,h))}else LA(l,0)}}}finally{de(e)}}function Zv(t,e){return t[e]}function PB(t,e){return ba(t,e)}function FB(t,e){return _A(t,e)}function Qv(t,e){return Ey(t,e)}function _B(t,e,i,n,r,s){let o=e.consts,a=Js(o,r),c=ao(e,t,2,n,a);return Vy(e,i,c,Js(o,s)),c.attrs!==null&&_l(c,c.attrs,!1),c.mergedAttrs!==null&&_l(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}function lR(t,e,i,n){let r=V(),s=xe(),o=Je+t,a=r[Me],c=s.firstCreatePass?_B(o,s,r,e,i,n):s.data[o],u=LB(s,r,c,a,e,t);r[o]=u;let l=Jl(c);return Zi(c,!0),CA(a,u,c),!iB(c)&&Xl()&&ad(s,r,u,c),bj()===0&&oi(u,r),wj(),l&&(Uy(s,r,c),jy(s,c,r)),n!==null&&$y(r,c),lR}function dR(){let t=yt();Iy()?Dy():(t=t.parent,Zi(t,!1));let e=t;Aj(e)&&Rj(),Tj();let i=xe();return i.firstCreatePass&&(td(i,t),yy(t)&&i.queries.elementEnd(t)),e.classesWithoutHost!=null&&Vj(e)&&zv(i,e,V(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Hj(e)&&zv(i,e,V(),e.stylesWithoutHost,!1),dR}function nE(t,e,i,n){return lR(t,e,i,n),dR(),nE}var LB=(t,e,i,n,r,s)=>(ed(!0),dA(n,r,jj()));function kB(t,e,i,n,r){let s=e.consts,o=Js(s,n),a=ao(e,t,8,"ng-container",o);o!==null&&_l(a,o,!0);let c=Js(s,r);return Vy(e,i,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function fR(t,e,i){let n=V(),r=xe(),s=t+Je,o=r.firstCreatePass?kB(s,r,n,e,i):r.data[s];Zi(o,!0);let a=UB(r,n,o,t);return n[s]=a,Xl()&&ad(r,n,a,o),oi(a,n),Jl(o)&&(Uy(r,n,o),jy(r,o,n)),i!=null&&$y(n,o),fR}function hR(){let t=yt(),e=xe();return Iy()?Dy():(t=t.parent,Zi(t,!1)),e.firstCreatePass&&(td(e,t),yy(t)&&e.queries.elementEnd(t)),hR}function jB(t,e,i){return fR(t,e,i),hR(),jB}var UB=(t,e,i,n)=>(ed(!0),XU(e[Me],""));function doe(){return V()}function $B(t,e,i){let n=V(),r=ui();if(vt(n,r,e)){let s=xe(),o=li();Qi(s,o,n,t,e,n[Me],i,!0)}return $B}function BB(t,e,i){let n=V(),r=ui();if(vt(n,r,e)){let s=xe(),o=li(),a=wy(s.data),c=PA(a,o,n);Qi(s,o,n,t,e,c,i,!0)}return BB}var Li=void 0;function VB(t){let e=t,i=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&n===0?1:5}var HB=["en",[["a","p"],["AM","PM"],Li],[["AM","PM"],Li,Li],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Li,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Li,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Li,"{1} 'at' {0}",Li],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",VB],ga={};function pR(t,e,i){typeof e!="string"&&(i=e,e=t[_e.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),ga[e]=t,i&&(ga[e][_e.ExtraData]=i)}function Gt(t){let e=zB(t),i=O0(e);if(i)return i;let n=e.split("-")[0];if(i=O0(n),i)return i;if(n==="en")return HB;throw new L(701,!1)}function O0(t){return t in ga||(ga[t]=He.ng&&He.ng.common&&He.ng.common.locales&&He.ng.common.locales[t]),ga[t]}var _e=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(_e||{});function zB(t){return t.toLowerCase().replace(/_/g,"-")}var Hl="en-US",GB="USD";var WB=Hl;function qB(t){typeof t=="string"&&(WB=t.toLowerCase().replace(/_/g,"-"))}function rE(t,e,i,n){let r=V(),s=xe(),o=yt();return iE(s,r,r[Me],o,t,e,n),rE}function YB(t,e){let i=yt(),n=V(),r=xe(),s=wy(r.data),o=PA(s,i,n);return iE(r,n,o,i,t,e),YB}function KB(t,e,i,n){let r=t.cleanup;if(r!=null)for(let s=0;s<r.length-1;s+=2){let o=r[s];if(o===i&&r[s+1]===n){let a=e[Ca],c=r[s+2];return a.length>c?a[c]:null}
8typeof o=="string"&&(s+=2)}return null}function iE(t,e,i,n,r,s,o){let a=Jl(n),u=t.firstCreatePass&&OA(t),l=e[pt],d=NA(e),h=!0;if(n.type&3||o){let D=vn(n,e),w=o?o(D):D,R=d.length,$=o?B=>o(ir(B[n.index])):n.index,k=null;if(!o&&a&&(k=KB(t,e,r,n.index)),k!==null){let B=k.__ngLastListenerFn__||k;B.__ngNextListenerFn__=s,k.__ngLastListenerFn__=s,h=!1}else{s=F0(n,e,l,s,!1);let B=i.listen(w,r,s);d.push(s,B),u&&u.push(r,$,R,R+1)}}else s=F0(n,e,l,s,!1);let p=n.outputs,y;if(h&&p!==null&&(y=p[r])){let D=y.length;if(D)for(let w=0;w<D;w+=2){let R=y[w],$=y[w+1],re=e[R][$].subscribe(s),ue=d.length;d.push(s,re),u&&u.push(r,n.index,ue,-(ue+1))}}}function P0(t,e,i,n){let r=de(null);try{return er(6,e,i),i(n)!==!1}catch(s){return FA(t,s),!1}finally{er(7,e,i),de(r)}}function F0(t,e,i,n,r){return function s(o){if(o===Function)return n;let a=t.componentOffset>-1?ci(t.index,e):e;Gy(a);let c=P0(e,i,n,o),u=s.__ngNextListenerFn__;for(;u;)c=P0(e,i,u,o)&&c,u=u.__ngNextListenerFn__;return r&&c===!1&&o.preventDefault(),c}}function foe(t=1){return Lj(t)}function ZB(t,e){let i=null,n=jk(t);for(let r=0;r<e.length;r++){let s=e[r];if(s==="*"){i=r;continue}if(n===null?eT(t,s,!0):Bk(n,s))return r}return i}function hoe(t){let e=V()[tn][sn];if(!e.projection){let i=t?t.length:1,n=e.projection=hl(i,null),r=n.slice(),s=e.child;for(;s!==null;){let o=t?ZB(s,t):0;o!==null&&(r[o]?r[o].projectionNext=s:n[o]=s,r[o]=s),s=s.next}}}function poe(t,e=0,i){let n=V(),r=xe(),s=ao(r,Je+t,16,null,i||null);s.projection===null&&(s.projection=e),Dy(),(!n[Ks]||DT())&&(s.flags&32)!==32&&h1(r,n,s)}function QB(t,e,i){return gR(t,"",e,"",i),QB}function gR(t,e,i,n,r){let s=V(),o=eE(s,e,i,n);if(o!==Xe){let a=xe(),c=li();Qi(a,c,s,t,o,s[Me],r,!1)}return gR}function JB(t,e,i,n,r,s,o){let a=V(),c=ZA(a,e,i,n,r,s);if(c!==Xe){let u=xe(),l=li();Qi(u,l,a,t,c,a[Me],o,!1)}return JB}function XB(t,e,i,n,r,s,o,a,c){let u=V(),l=QA(u,e,i,n,r,s,o,a);if(l!==Xe){let d=xe(),h=li();Qi(d,h,u,t,l,u[Me],c,!1)}return XB}function mR(t,e,i,n){k$(t,e,i,n)}function goe(t,e,i){L$(t,e,i)}function vR(t){let e=V(),i=xe(),n=wT();Ty(n+1);let r=Yy(i,n);if(t.dirty&&Ej(e)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let s=$$(e,n);t.reset(s,dU),t.notifyOnChanges()}return!0}return!1}function yR(){return _$(V(),wT())}function eV(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}function moe(t){let e=xj();return _a(e,Je+t)}function voe(t,e=""){let i=V(),n=xe(),r=t+Je,s=n.firstCreatePass?ao(n,r,1,e,null):n.data[r],o=tV(n,i,s,e,t);i[r]=o,Xl()&&ad(n,i,o,s),Zi(s,!1)}var tV=(t,e,i,n,r)=>(ed(!0),QU(e[Me],n));function nV(t){return ER("",t,""),nV}function ER(t,e,i){let n=V(),r=eE(n,t,e,i);return r!==Xe&&dd(n,Pn(),r),ER}function rV(t,e,i,n,r){let s=V(),o=ZA(s,t,e,i,n,r);return o!==Xe&&dd(s,Pn(),o),rV}function iV(t,e,i,n,r,s,o){let a=V(),c=QA(a,t,e,i,n,r,s,o);return c!==Xe&&dd(a,Pn(),c),iV}function sV(t,e,i,n,r,s,o,a,c,u,l){let d=V(),h=cB(d,t,e,i,n,r,s,o,a,c,u,l);return h!==Xe&&dd(d,Pn(),h),sV}function oV(t,e,i){YA(e)&&(e=e());let n=V(),r=ui();if(vt(n,r,e)){let s=xe(),o=li();Qi(s,o,n,t,e,n[Me],i,!1)}return oV}function yoe(t,e){let i=YA(t);return i&&t.set(e),i}function aV(t,e){let i=V(),n=xe(),r=yt();return iE(n,i,i[Me],r,t,e),aV}function cV(t,e,i){let n=xe();if(n.firstCreatePass){let r=Mr(t);Jv(i,n.data,n.blueprint,r,!0),Jv(e,n.data,n.blueprint,r,!1)}}function Jv(t,e,i,n,r){if(t=At(t),Array.isArray(t))for(let s=0;s<t.length;s++)Jv(t[s],e,i,n,r);else{let s=xe(),o=V(),a=yt(),c=Ys(t)?t:At(t.provide),u=dT(t),l=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(Ys(t)||!t.multi){let p=new Hi(u,r,Q),y=Ym(c,e,r?l:l+h,d);y===-1?(uv(xl(a,o),s,c),qm(s,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(p),o.push(p)):(i[y]=p,o[y]=p)}else{let p=Ym(c,e,l+h,d),y=Ym(c,e,l,l+h),D=p>=0&&i[p],w=y>=0&&i[y];if(r&&!w||!r&&!D){uv(xl(a,o),s,c);let R=dV(r?lV:uV,i.length,r,n,u);!r&&w&&(i[y].providerFactory=R),qm(s,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(R),o.push(R)}else{let R=CR(i[r?y:p],u,!r&&n);qm(s,t,p>-1?p:y,R)}!r&&n&&w&&i[y].componentProviders++}}}function qm(t,e,i,n){let r=Ys(e),s=Jk(e);if(r||s){let c=(s?At(e.useClass):e).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){let l=u.indexOf(i);l===-1?u.push(i,[n,c]):u[l+1].push(n,c)}else u.push(i,c)}}}function CR(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function Ym(t,e,i,n){for(let r=i;r<n;r++)if(e[r]===t)return r;return-1}function uV(t,e,i,n){return Xv(this.multi,[])}function lV(t,e,i,n){let r=this.multi,s;if(this.providerFactory){let o=this.providerFactory.componentProviders,a=zi(i,i[te],this.providerFactory.index,n);s=a.slice(0,o),Xv(r,s);for(let c=o;c<a.length;c++)s.push(a[c])}else s=[],Xv(r,s);return s}function Xv(t,e){for(let i=0;i<t.length;i++){let n=t[i];e.push(n())}return e}function dV(t,e,i,n,r){let s=new Hi(t,i,Q);return s.multi=[],s.index=e,s.componentProviders=0,CR(s,r,n&&!i),s}function Eoe(t,e=[]){return i=>{i.providersResolver=(n,r)=>cV(n,r?r(t):t,e)}}var fV=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=cT(!1,n.type),s=r.length>0?vd([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=m({token:e,providedIn:"environment",factory:()=>new e(f(Mt))});let t=e;return t})();function SR(t){Pr("NgStandalone"),t.getStandaloneInjector=e=>e.get(fV).getOrCreateStandaloneInjector(t)}function Coe(t,e,i){let n=t.\u0275cmp;n.directiveDefs=wl(e,!1),n.pipeDefs=wl(i,!0)}function Soe(t,e,i){let n=Ht()+t,r=V();return r[n]===Xe?ur(r,n,i?e.call(i):e()):$a(r,n)}function Ioe(t,e,i,n){return IR(V(),Ht(),t,e,i,n)}function Doe(t,e,i,n,r){return DR(V(),Ht(),t,e,i,n,r)}function boe(t,e,i,n,r,s){return bR(V(),Ht(),t,e,i,n,r,s)}function woe(t,e,i,n,r,s,o){return hV(V(),Ht(),t,e,i,n,r,s,o)}function Toe(t,e,i,n,r,s,o,a){let c=Ht()+t,u=V(),l=qi(u,c,i,n,r,s);return vt(u,c+4,o)||l?ur(u,c+5,a?e.call(a,i,n,r,s,o):e(i,n,r,s,o)):$a(u,c+5
8)}function Aoe(t,e,i,n,r,s,o,a,c){let u=Ht()+t,l=V(),d=qi(l,u,i,n,r,s);return eo(l,u+4,o,a)||d?ur(l,u+6,c?e.call(c,i,n,r,s,o,a):e(i,n,r,s,o,a)):$a(l,u+6)}function Roe(t,e,i,n,r,s,o,a,c,u){let l=Ht()+t,d=V(),h=qi(d,l,i,n,r,s);return Jy(d,l+4,o,a,c)||h?ur(d,l+7,u?e.call(u,i,n,r,s,o,a,c):e(i,n,r,s,o,a,c)):$a(d,l+7)}function Moe(t,e,i,n,r,s,o,a,c,u,l){let d=Ht()+t,h=V(),p=qi(h,d,i,n,r,s);return qi(h,d+4,o,a,c,u)||p?ur(h,d+8,l?e.call(l,i,n,r,s,o,a,c,u):e(i,n,r,s,o,a,c,u)):$a(h,d+8)}function xoe(t,e,i,n){return wR(V(),Ht(),t,e,i,n)}function Ba(t,e){let i=t[e];return i===Xe?void 0:i}function IR(t,e,i,n,r,s){let o=e+i;return vt(t,o,r)?ur(t,o+1,s?n.call(s,r):n(r)):Ba(t,o+1)}function DR(t,e,i,n,r,s,o){let a=e+i;return eo(t,a,r,s)?ur(t,a+2,o?n.call(o,r,s):n(r,s)):Ba(t,a+2)}function bR(t,e,i,n,r,s,o,a){let c=e+i;return Jy(t,c,r,s,o)?ur(t,c+3,a?n.call(a,r,s,o):n(r,s,o)):Ba(t,c+3)}function hV(t,e,i,n,r,s,o,a,c){let u=e+i;return qi(t,u,r,s,o,a)?ur(t,u+4,c?n.call(c,r,s,o,a):n(r,s,o,a)):Ba(t,u+4)}function wR(t,e,i,n,r,s){let o=e+i,a=!1;for(let c=0;c<r.length;c++)vt(t,o++,r[c])&&(a=!0);return a?ur(t,o,n.apply(s,r)):Ba(t,o)}function Noe(t,e){let i=xe(),n,r=t+Je;i.firstCreatePass?(n=pV(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks??=[]).push(r,n.onDestroy)):n=i.data[r];let s=n.factory||(n.factory=Ui(n.type,!0)),o,a=Bt(Q);try{let c=Ml(!1),u=s();return Ml(c),eV(i,V(),r,u),u}finally{Bt(a)}}function pV(t,e){if(e)for(let i=e.length-1;i>=0;i--){let n=e[i];if(t===n.name)return n}}function Ooe(t,e,i){let n=t+Je,r=V(),s=_a(r,n);return yd(r,n)?IR(r,Ht(),e,s.transform,i,s):s.transform(i)}function Poe(t,e,i,n){let r=t+Je,s=V(),o=_a(s,r);return yd(s,r)?DR(s,Ht(),e,o.transform,i,n,o):o.transform(i,n)}function Foe(t,e,i,n,r){let s=t+Je,o=V(),a=_a(o,s);return yd(o,s)?bR(o,Ht(),e,a.transform,i,n,r,a):a.transform(i,n,r)}function _oe(t,e,i){let n=t+Je,r=V(),s=_a(r,n);return yd(r,n)?wR(r,Ht(),e,s.transform,i,s):s.transform.apply(s,i)}function yd(t,e){return t[te].data[e].pure}function Loe(t,e){return pd(t,e)}var fl=null;function gV(t){fl!==null&&(t.defaultEncapsulation!==fl.defaultEncapsulation||t.preserveWhitespaces!==fl.preserveWhitespaces)||(fl=t)}var Ed=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var sE=new S(""),Va=new S(""),Cd=(()=>{let e=class e{constructor(n,r,s){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,oE||(mV(s),s.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ye.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,s){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),n()},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:s})}whenStable(n,r,s){if(s&&!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(n,r,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,s){return[]}};e.\u0275fac=function(r){return new(r||e)(f(ye),f(Sd),f(Va))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),Sd=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return oE?.findTestabilityInTree(this,n,r)??null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function mV(t){oE=t}var oE;function co(t){return!!t&&typeof t.then=="function"}function aE(t){return!!t&&typeof t.subscribe=="function"}var xt=new S(""),TR=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=C(xt,{optional:!0})??[]}
8runInitializers(){if(this.initialized)return;let n=[];for(let s of this.appInits){let o=s();if(co(o))n.push(o);else if(aE(o)){let a=new Promise((c,u)=>{o.subscribe({complete:c,error:u})});n.push(a)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(s=>{this.reject(s)}),n.length===0&&r(),this.initialized=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Id=new S("");function vV(){Uw(()=>{throw new L(600,!1)})}function yV(t){return t.isBoundToModule}function EV(t,e,i){try{let n=i();return co(n)?n.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function AR(t,e){return Array.isArray(e)?e.reduce(AR,t):v(v({},t),e)}var Xi=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=C(zT),this.afterRenderEffectManager=C(qy),this.externalTestViews=new Set,this.beforeRender=new oe,this.afterTick=new oe,this.componentTypes=[],this.components=[],this.isStable=C(fi).hasPendingTasks.pipe(E(n=>!n)),this._injector=C(Mt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){let s=n instanceof Fl;if(!this._injector.get(TR).done){let p=!s&&iT(n),y=!1;throw new L(405,y)}let a;s?a=n:a=this._injector.get(gd).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=yV(a)?void 0:this._injector.get(ai),u=r||a.selector,l=a.create(qe.NULL,[],u,c),d=l.location.nativeElement,h=l.injector.get(sE,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Cl(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new L(101,!1);let r=de(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(s){this.internalErrorHandler(s)}finally{this.afterTick.next(),this._runningTick=!1,de(r)}}detectChangesInAttachedViews(n){let r=0,s=this.afterRenderEffectManager;for(;;){if(r===jA)throw new L(103,!1);if(n){let o=r===0;this.beforeRender.next(o);for(let{_lView:a,notifyErrorHandler:c}of this._views)CV(a,o,c)}if(r++,s.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>ey(o))&&(s.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>ey(o))))break}}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Cl(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Id,[]);[...this._bootstrapListeners,...r].forEach(s=>s(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Cl(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new L(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Cl(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function CV(t,e,i){!e&&!ey(t)||SV(t,i,e)}function ey(t){return Sy(t)}function SV(t,e,i){let n;i?(n=0,t[J]|=1024):t[J]&64?n=0:n=1,UA(t,e,n)}var ty=class{constructor(e,i){this.ngModuleFactory=e,this.componentFactories=i}},uo=(()=>{let e=class e{compileModuleSync(n){return new $l(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),s=sT(n),o=lA(s.declarations).reduce((a,c)=>{let u=si(c);return u&&a.push(new Xs(u)),a},[]);return new ty(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),IV=new S("");
8function DV(t,e,i){let n=new $l(i);return Promise.resolve(n)}function _0(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var bV=(()=>{let e=class e{constructor(){this.zone=C(ye),this.applicationRef=C(Xi)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function wV(t){return[{provide:ye,useFactory:t},{provide:nr,multi:!0,useFactory:()=>{let e=C(bV,{optional:!0});return()=>e.initialize()}},{provide:nr,multi:!0,useFactory:()=>{let e=C(RV);return()=>{e.initialize()}}},{provide:zT,useFactory:TV}]}function TV(){let t=C(ye),e=C(mt);return i=>t.runOutsideAngular(()=>e.handleError(i))}function AV(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var RV=(()=>{let e=class e{constructor(){this.subscription=new Ce,this.initialized=!1,this.zone=C(ye),this.pendingTasks=C(fi)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ye.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ye.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function MV(){return typeof $localize<"u"&&$localize.locale||Hl}var lo=new S("",{providedIn:"root",factory:()=>C(lo,ce.Optional|ce.SkipSelf)||MV()}),RR=new S("",{providedIn:"root",factory:()=>GB});var MR=new S(""),xR=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){let s=p$(r?.ngZone,AV({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return s.run(()=>{let o=nB(n.moduleType,this.injector,wV(()=>s)),a=o.injector.get(mt,null);return s.runOutsideAngular(()=>{let c=s.onError.subscribe({next:u=>{a.handleError(u)}});o.onDestroy(()=>{Cl(this._modules,o),c.unsubscribe()})}),EV(a,s,()=>{let c=o.injector.get(TR);return c.runInitializers(),c.donePromise.then(()=>{let u=o.injector.get(lo,Hl);return qB(u||Hl),this._moduleDoBootstrap(o),o})})})}bootstrapModule(n,r=[]){let s=AR({},r);return DV(this.injector,s,n).then(o=>this.bootstrapModuleFactory(o,s))}_moduleDoBootstrap(n){let r=n.injector.get(Xi);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>r.bootstrap(s));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(r);else throw new L(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new L(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(MR,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(r){return new(r||e)(f(qe))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),ma=null,NR=new S("");function xV(t){if(ma&&!ma.get(NR,!1))throw new L(400,!1);vV(),ma=t;let e=t.get(xR);return PV(t),e}function cE(t,e,i=[]){let n=`Platform: ${e}`,r=new S(n);return(s=[])=>{let o=OR();if(!o||o.injector.get(NR,!1)){let a=[...i,...s,{provide:r,useValue:!0}];t?t(a):xV(NV(a,n))}return OV(r)}}function NV(t=[],e){return qe.create({name:e,providers:[{provide:Kl,useValue:"platform"},{provide:MR,useValue:new Set([()=>ma=null])},...t]})}function OV(t){let e=OR();if(!e)throw new L(401,!1);return e}function OR(){return ma?.get(xR)??null}function PV(t){t.get(Ny,null)?.forEach(i=>
vendor: 6,640 bytes, line 8
8i())}function Ee(){return!1}var lr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=FV;let t=e;return t})();function FV(t){return _V(yt(),V(),(t&16)===16)}function _V(t,e,i){if(Ql(t)&&!i){let n=ci(t.index,e);return new Gi(n,n)}else if(t.type&47){let n=e[tn];return new Gi(n,e)}return null}var ny=class{constructor(){}supports(e){return KA(e)}create(e){return new ry(e)}},LV=(t,e)=>e,ry=class{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||LV}forEachItem(e){let i;for(i=this._itHead;i!==null;i=i._next)e(i)}forEachOperation(e){let i=this._itHead,n=this._removalsHead,r=0,s=null;for(;i||n;){let o=!n||i&&i.currentIndex<L0(n,r,s)?i:n,a=L0(o,r,s),c=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(i=i._next,o.previousIndex==null)r++;else{s||(s=[]);let u=a-r,l=c-r;if(u!=l){for(let h=0;h<u;h++){let p=h<s.length?s[h]:s[h]=0,y=p+h;l<=y&&y<u&&(s[h]=p+1)}let d=o.previousIndex;s[d]=l-u}}a!==c&&e(o,a,c)}}forEachPreviousItem(e){let i;for(i=this._previousItHead;i!==null;i=i._nextPrevious)e(i)}forEachAddedItem(e){let i;for(i=this._additionsHead;i!==null;i=i._nextAdded)e(i)}forEachMovedItem(e){let i;for(i=this._movesHead;i!==null;i=i._nextMoved)e(i)}forEachRemovedItem(e){let i;for(i=this._removalsHead;i!==null;i=i._nextRemoved)e(i)}forEachIdentityChange(e){let i;for(i=this._identityChangesHead;i!==null;i=i._nextIdentityChange)e(i)}diff(e){if(e==null&&(e=[]),!KA(e))throw new L(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i=this._itHead,n=!1,r,s,o;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),i===null||!Object.is(i.trackById,o)?(i=this._mismatch(i,s,o,a),n=!0):(n&&(i=this._verifyReinsertion(i,s,o,a)),Object.is(i.item,s)||this._addIdentityChange(i,s)),i=i._next}else r=0,rB(e,a=>{o=this._trackByFn(r,a),i===null||!Object.is(i.trackById,o)?(i=this._mismatch(i,a,o,r),n=!0):(n&&(i=this._verifyReinsertion(i,a,o,r)),Object.is(i.item,a)||this._addIdentityChange(i,a)),i=i._next,r++}),this.length=r;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,i,n,r){let s;return e===null?s=this._itTail:(s=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._reinsertAfter(e,s,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,r),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._moveAfter(e,s,r)):e=this._addAfter(new iy(i,n),s,r)),e}_verifyReinsertion(e,i,n,r){let s=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return s!==null?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let i=e._next;this._addToRemovals(this._unlink(e)),e=i}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,i,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,s=e._nextRemoved;return r===null?this._removalsHead=s:r._nextRemoved=s,s===null?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,i,n),this._addToMoves(e,n),e}_moveAfter(e,i,n){return this._unlink(e),this._insertAfter(e,i,n),this._addToMoves(e,n),e}_addAfter(e,i,n){return this._insertAfter(e,i,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,i,n){let r=i===null?this._itHead:i._next;return e._next=r,e._prev=i,r===null?this._itTail=e:r._prev=e,i===null?this._itHead=e:i._next=e,this._linkedRecords===null&&(this._linkedRecords=new zl),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let i=e._prev,n=e._next;return i===null?this._itHead=n:i._next=n,n===null?this._itTail=i:n._prev=i,e}_addToMoves(e,i){return e.previousIndex===i||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new zl),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,i){return e.item=i,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},iy=class{constructor(e,i){this.item=e,this.trackById=i,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}},sy=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(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,i){let n;for(n=this._head;n!==null;n=n._nextDup)if((i===null||i<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let i=e._prevDup,n=e._nextDup;return i===null?this._head=n:i._nextDup=n,n===null?this._tail=i:n._prevDup=i,this._head===null}},zl=class{constructor(){this.map=new Map}put(e){let i=e.trackById,n=this.map.get(i);
8n||(n=new sy,this.map.set(i,n)),n.add(e)}get(e,i){let n=e,r=this.map.get(n);return r?r.get(e,i):null}remove(e){let i=e.trackById;return this.map.get(i).remove(e)&&this.map.delete(i),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function L0(t,e,i){let n=t.previousIndex;if(n===null)return n;let r=0;return i&&n<i.length&&(r=i[n]),n+e+r}var oy=class{constructor(){}supports(e){return e instanceof Map||Qy(e)}create(){return new ay}},ay=class{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let i;for(i=this._mapHead;i!==null;i=i._next)e(i)}forEachPreviousItem(e){let i;for(i=this._previousMapHead;i!==null;i=i._nextPrevious)e(i)}forEachChangedItem(e){let i;for(i=this._changesHead;i!==null;i=i._nextChanged)e(i)}forEachAddedItem(e){let i;for(i=this._additionsHead;i!==null;i=i._nextAdded)e(i)}forEachRemovedItem(e){let i;for(i=this._removalsHead;i!==null;i=i._nextRemoved)e(i)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||Qy(e)))throw new L(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i=this._mapHead;if(this._appendAfter=null,this._forEach(e,(n,r)=>{if(i&&i.key===r)this._maybeAddToChanges(i,n),this._appendAfter=i,i=i._next;else{let s=this._getOrCreateRecordForKey(r,n);i=this._insertBeforeOrAppend(i,s)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let n=i;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,i){if(e){let n=e._prev;return i._next=e,i._prev=n,e._prev=i,n&&(n._next=i),e===this._mapHead&&(this._mapHead=i),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(e,i){if(this._records.has(e)){let r=this._records.get(e);this._maybeAddToChanges(r,i);let s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}let n=new cy(e);return this._records.set(e,n),n.currentValue=i,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,i){Object.is(i,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=i,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,i){e instanceof Map?e.forEach(i):Object.keys(e).forEach(n=>i(e[n],n))}},cy=class{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 k0(){return new uE([new ny])}var uE=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,r){if(r!=null){let s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||k0()),deps:[[e,new xa,new nn]]}}find(n){let r=this.factories.find(s=>s.supports(n));if(r!=null)return r;throw new L(901,!1)}};e.\u0275prov=m({token:e,providedIn:"root",factory:k0});let t=e;return t})();function j0(){return new Dd([new oy])}var Dd=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,r){if(r){let s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||j0()),deps:[[e,new xa,new nn]]}}find(n){let r=this.factories.find(s=>s.supports(n));if(r)return r;throw new L(901,!1)}};e.\u0275prov=m({token:e,providedIn:"root",factory:j0});let t=e;return t})();var PR=cE(null,"core",[]),FR=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(r){return new(r||e)(f(Xi))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function Ha(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function kV(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function bd(t,e){Pr("NgSignals");let i=Lw(t);return e?.equal&&(i[Xn].equal=e.equal),i}function wd(t){let e=de(null);try{return t()}finally{de(e)}}var jV=new S("",{providedIn:"root",factory:()=>C(UV)}),UV=(()=>{let e=class e{};e.\u0275prov=m({token:e,providedIn:"root",factory:()=>new uy});let t=e;return t})(),uy=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=C(fi),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let i=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(i),this.taskId=null})}}enqueue(e){let i=e.creationZone;this.queues.has(i)||this.queues.set(i,new Set);let n=this.queues.get(i);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,i]of this.queues)e===null?this.flushQueue(i):e.run(()=>this.flushQueue(i))}flushQueue(e){for(let i of e)e.delete(i),this.queuedEffectCount--,i.run()}}
8,ly=class{constructor(e,i,n,r,s,o){this.scheduler=e,this.effectFn=i,this.creationZone=n,this.injector=s,this.watcher=Hw(a=>this.runEffect(a),()=>this.schedule(),o),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(i){this.injector.get(mt,null,{optional:!0})?.handleError(i)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function _R(t,e){Pr("NgSignals"),!e?.injector&&Pa(_R);let i=e?.injector??C(qe),n=e?.manualCleanup!==!0?i.get(di):null,r=new ly(i.get(jV),t,typeof Zone>"u"?null:Zone.current,n,i,e?.allowSignalWrites??!1),s=i.get(lr,null,{optional:!0});return!s||!(s._lView[J]&8)?r.watcher.notify():(s._lView[gl]??=[]).push(r.watcher.notify),r}function LR(t){let e=si(t);if(!e)return null;let i=new Xs(e);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var qR=null;function hi(){return qR}function YR(t){qR??=t}var Fd=class{};var Ue=new S(""),IE=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:()=>C($V),providedIn:"platform"});let t=e;return t})(),jd=new S(""),$V=(()=>{let e=class e extends IE{constructor(){super(),this._doc=C(Ue),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return hi().getBaseHref(this._doc)}onPopState(n){let r=hi().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=hi().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,s){this._history.pushState(n,r,s)}replaceState(n,r,s){this._history.replaceState(n,r,s)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function DE(t,e){if(t.length==0)return e;if(e.length==0)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,i==2?t+e.substring(1):i==1?t+e:t+"/"+e}function kR(t){let e=t.match(/#|\?|$/),i=e&&e.index||t.length,n=i-(t[i-1]==="/"?1:0);return t.slice(0,n)+t.slice(i)}function Lr(t){return t&&t[0]!=="?"?"?"+t:t}var jr=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:()=>C(bE),providedIn:"root"});let t=e;return t})(),KR=new S(""),bE=(()=>{let e=class e extends jr{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??C(Ue).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return DE(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Lr(this._platformLocation.search),s=this._platformLocation.hash;return s&&n?`${r}${s}`:r}pushState(n,r,s,o){let a=this.prepareExternalUrl(s+Lr(o));this._platformLocation.pushState(n,r,a)}replaceState(n,r,s,o){let a=this.prepareExternalUrl(s+Lr(o));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(f(IE),f(KR,8))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ZR=(()=>{let e=class e extends jr{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.on
8HashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=DE(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,s,o){let a=this.prepareExternalUrl(s+Lr(o));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,r,a)}replaceState(n,r,s,o){let a=this.prepareExternalUrl(s+Lr(o));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(f(IE),f(KR,8))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),fr=(()=>{let e=class e{constructor(n){this._subject=new ht,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=HV(kR(jR(r))),this._locationStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Lr(r))}normalize(n){return e.stripTrailingSlash(VV(this._basePath,jR(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",s=null){this._locationStrategy.pushState(s,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Lr(r)),s)}replaceState(n,r="",s=null){this._locationStrategy.replaceState(s,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Lr(r)),s)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(s=>s(n,r))}subscribe(n,r,s){return this._subject.subscribe({next:n,error:r,complete:s})}};e.normalizeQueryParams=Lr,e.joinWithSlash=DE,e.stripTrailingSlash=kR,e.\u0275fac=function(r){return new(r||e)(f(jr))},e.\u0275prov=m({token:e,factory:()=>BV(),providedIn:"root"});let t=e;return t})();function BV(){return new fr(f(jr))}function VV(t,e){if(!t||!e.startsWith(t))return e;let i=e.substring(t.length);return i===""||["/",";","?","#"].includes(i[0])?i:e}function jR(t){return t.replace(/\/index.html$/,"")}function HV(t){if(new RegExp("^(https?:)?//").test(t)){let[,i]=t.split(/\/\/[^\/]+/);return i}return t}var QR={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},wE=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scie
8ntific=3]="Scientific",t}(wE||{});var kt=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(kt||{}),Ne=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(Ne||{}),an=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(an||{}),Nt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function TE(t){return Gt(t)[_e.LocaleId]}function zV(t,e,i){let n=Gt(t),r=[n[_e.DayPeriodsFormat],n[_e.DayPeriodsStandalone]],s=En(r,e);return En(s,i)}function GV(t,e,i){let n=Gt(t),r=[n[_e.DaysFormat],n[_e.DaysStandalone]],s=En(r,e);return En(s,i)}function WV(t,e,i){let n=Gt(t),r=[n[_e.MonthsFormat],n[_e.MonthsStandalone]],s=En(r,e);return En(s,i)}function qV(t,e){let n=Gt(t)[_e.Eras];return En(n,e)}function Td(t,e){let i=Gt(t);return En(i[_e.DateFormat],e)}function Ad(t,e){let i=Gt(t);return En(i[_e.TimeFormat],e)}function Rd(t,e){let n=Gt(t)[_e.DateTimeFormat];return En(n,e)}function dr(t,e){let i=Gt(t),n=i[_e.NumberSymbols][e];if(typeof n>"u"){if(e===Nt.CurrencyDecimal)return i[_e.NumberSymbols][Nt.Decimal];if(e===Nt.CurrencyGroup)return i[_e.NumberSymbols][Nt.Group]}return n}function JR(t,e){return Gt(t)[_e.NumberFormats][e]}function YV(t){return Gt(t)[_e.Currencies]}function XR(t){if(!t[_e.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[_e.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function KV(t){let e=Gt(t);return XR(e),(e[_e.ExtraData][2]||[]).map(n=>typeof n=="string"?lE(n):[lE(n[0]),lE(n[1])])}function ZV(t,e,i){let n=Gt(t);XR(n);let r=[n[_e.ExtraData][0],n[_e.ExtraData][1]],s=En(r,e)||[];return En(s,i)||[]}function En(t,e){for(let i=e;i>-1;i--)if(typeof t[i]<"u")return t[i];throw new Error("Locale data API: locale data undefined")}function lE(t){let[e,i]=t.split(":");return{hours:+e,minutes:+i}}function QV(t,e,i="en"){let n=YV(i)[t]||QR[t]||[],r=n[1];return e==="narrow"&&typeof r=="string"?r:n[0]||t}var JV=2;function XV(t){let e,i=QR[t];return i&&(e=i[2]),typeof e=="number"?e:JV}var e2=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Md={},t2=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,kr=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(kr||{}),Ie=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(Ie||{}),Se=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Se||{});function n2(t,e,i,n){let r=d2(t);e=_r(i,e)||e;let o=[],a;for(;e;)if(a=t2.exec(e),a){o=o.concat(a.slice(1));let l=o.pop();if(!l)break;e=l}else{o.push(e);break}let c=r.getTimezoneOffset();n&&(c=tM(n,c),r=l2(r,n,!0));let u="";return o.forEach(l=>{let d=c2(l);u+=d?d(r,i,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function _d(t,e,i){let n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function _r(t,e){let i=TE(t);if(Md[i]??={},Md[i][e])return Md[i][e];let n="";switch(e){case"shortDate":n=Td(t,an.Short);break;case"mediumDate":n=Td(t,an.Medium);break;case"longDate":n=Td(t,an.Long);break;case"fullDate":n=Td(t,an.Full);break;case"shortTime":n=Ad(t,an.Short);break;case"mediumTime":n=Ad(t,an.Medium);break;case"longTime":n=Ad(t,an.Long);break;case"fullTime":n=Ad(t,an.Full);break;case"short":let r=_r(t,"shortTime"),s=_r(t,"shortDate");n=xd(Rd(t,an.Short),[r,s]);break;case"medium":let o=_r(t,"mediumTime"),a=_r(t,"mediumDate");n=xd(Rd(t,an.Medium),[o,a]);break;case"long":let c=_r(t,"longTime"),u=_r(t,"longDate");n=xd(Rd(t,an.Long),[c,u]);break;case"full":let l=_r(t,"fullTime"),d=_r(t,"fullDate");n=xd(Rd(t,an.Full),[l,d]);break}return n&&(Md[i][e]=n),n}function xd(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(i,n){return e!=null&&n in e?e[n]:i})),t}function _n(t,e,i="-",n,r){let s="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,s=i));let o=String(t);for(;o.length<e;)o="0"+o;return n&&(o=o.slice(o.length-e)),s+o}function r2(t,e){return _n(t,3).substring(0,e)}function Ke(t,e,i=0,n=!1,r=!1){return function(s,o){let a=i2(t,s);if((i>0||a>-i)&&(a+=i),t===Ie.Hours)a===0&&i===-12&&(a=12);else if(t===Ie.FractionalSeconds)return r2(a,e);let c=dr(o,Nt.MinusSign);return _n(a,e,c,n,r)}}function i2(t,e){switch(t){case Ie.FullYear:return e.getFullYear();case Ie.Month:return e.getMonth();case Ie.Date:return e.getDate();case Ie.Hours:return e.getHours();case Ie.Minutes:return e.getMinutes();case Ie.Seconds:return e.getSeconds();case Ie.FractionalSeconds:return e.getMilliseconds();case Ie.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function Oe(t,e,i=kt.Format,n=!1){return function(r,s){return s2(r,s,t,e,i,n)}}function s2(t,e,i,n,r,s){switch(i){case Se.Months:return WV(e,r,n)[t.getMonth()];case Se.Days:return GV(e,r,n)[t.getDay()];case Se.DayPeriods:let o=t.getHours(),a=t.getMinutes();if(s){let u=KV(e),l=ZV(e,r,n),d=u.findIndex(h=>{if(Array.isArray(h)){let[p,y]=h,D=o>=p.hours&&a>=p.minutes,w=o<y.hours||o===y.hours&&a<y.minutes;if(p.hours<y.hours){if(D&&w)return!0}else if(D||w)return!0}else if(h.hours===o&&h.minutes===a)return!0;return!1});if(d!==-1)return l[d]}return zV(e,r,n)[o<12?0:1];case Se.Eras:return qV(e,n)[t.getFullYear()<=0?0:1];default:let c=i;throw new Error(`unexpected translation type ${c}`)}}function Nd(t){return function(e,i,n){let r=-1*n,s=dr(i,Nt.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case kr.Short:return(r>=0?"+":"")+_n(o,2,s)+_n(Math.abs(r%60),2,s);case kr.ShortGMT:return"GMT"+(r>=0?"+":"")+_n(o,1,s);case kr.Long:return"GMT"+(r>=0?"+":"")+_n(o,2,s)+":"+_n(Math.abs(r%60),2,s);case kr.Extended:return n===0?"Z":(r>=0?"+":"")+_n(o,2,s)+":"+_n(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}var o2=0,Pd=4;function a2(t){let e=_d(t,o2,1).getDay();return _d(t,0,1+(e<=Pd?Pd:Pd+7)-e)}function eM(t){let e=t.getDay(),i=e===0?-3:Pd-e;return _d(t.getFullYear(),t.getMonth(),t.getDate()+i)}function dE(t,e=!1){return function(i,n){let r;if(e){let s=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,o=i.getDate();r=1+Math.floor((o+s)/7)}else{let s=eM(i),o=a2(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return _n(r,t,dr(n,Nt.MinusSign))}}function Od(t,e=!1){return function(i,n){let s=eM(i).getFullYear();return _n(s,t,dr(n,Nt.MinusSign),e)}}var fE={};function c2(t){if(fE[t])return fE[t];let e;switch(t){case"G":case"GG":case"GGG":e=Oe(Se.Eras,Ne.Abbreviated);break;case"GGGG":e=Oe(Se.Eras,Ne.Wide);break;case"GGGGG":e=Oe(Se.Eras,Ne.Narrow);break;case"y":e=Ke(Ie.FullYear,1,0,!1,!0);break;case"yy":e=Ke(Ie.FullYear,2,0,!0,!0);break;case"yyy":e=Ke(Ie.FullYear,3,0,!1,!0);break;case"yyyy":e=Ke(Ie.FullYear,4,0,!1,!0);break;case"Y":e=Od(1);break;case"YY":e=Od(2,!0);break;case"YYY":e=Od(3);break;case"YYYY":e=Od(4);break;case"M":case"L":e=Ke(Ie.Month,1,1);break;case"MM":case"LL":e=Ke(Ie.Month,2,1);break;case"MMM":e=Oe(Se.Months,Ne.Abbreviated);break;case"MMMM":e=Oe(Se.Months,Ne.Wide);break;case"MMMMM":e=Oe(Se.Months,Ne.Narrow);break;case"LLL":e=Oe(Se.Months,Ne.Abbreviated,kt.Standalone);break;case"LLLL":e=Oe(Se.Months,Ne.Wide,kt.Standalone);break;case"LLLLL":e=Oe(Se.Months,Ne.Narrow,kt.Standalone);break;case"w":e=dE(1);break;case"ww":e=dE(2);break;case"W":e=dE(1,!0);break;case"d":e=Ke(Ie.Date,1);break;case"dd":e=Ke(Ie.Date,2);break;case"c":case"cc":e=Ke(Ie.Day,1);break;case"ccc":e=Oe(Se.Days,Ne.Abbreviated,kt.Standalone);break;case"cccc":e=Oe(Se.Days,Ne.Wide,kt.Standalone);break;
vendor: 7,124 bytes, line 8
8case"ccccc":e=Oe(Se.Days,Ne.Narrow,kt.Standalone);break;case"cccccc":e=Oe(Se.Days,Ne.Short,kt.Standalone);break;case"E":case"EE":case"EEE":e=Oe(Se.Days,Ne.Abbreviated);break;case"EEEE":e=Oe(Se.Days,Ne.Wide);break;case"EEEEE":e=Oe(Se.Days,Ne.Narrow);break;case"EEEEEE":e=Oe(Se.Days,Ne.Short);break;case"a":case"aa":case"aaa":e=Oe(Se.DayPeriods,Ne.Abbreviated);break;case"aaaa":e=Oe(Se.DayPeriods,Ne.Wide);break;case"aaaaa":e=Oe(Se.DayPeriods,Ne.Narrow);break;case"b":case"bb":case"bbb":e=Oe(Se.DayPeriods,Ne.Abbreviated,kt.Standalone,!0);break;case"bbbb":e=Oe(Se.DayPeriods,Ne.Wide,kt.Standalone,!0);break;case"bbbbb":e=Oe(Se.DayPeriods,Ne.Narrow,kt.Standalone,!0);break;case"B":case"BB":case"BBB":e=Oe(Se.DayPeriods,Ne.Abbreviated,kt.Format,!0);break;case"BBBB":e=Oe(Se.DayPeriods,Ne.Wide,kt.Format,!0);break;case"BBBBB":e=Oe(Se.DayPeriods,Ne.Narrow,kt.Format,!0);break;case"h":e=Ke(Ie.Hours,1,-12);break;case"hh":e=Ke(Ie.Hours,2,-12);break;case"H":e=Ke(Ie.Hours,1);break;case"HH":e=Ke(Ie.Hours,2);break;case"m":e=Ke(Ie.Minutes,1);break;case"mm":e=Ke(Ie.Minutes,2);break;case"s":e=Ke(Ie.Seconds,1);break;case"ss":e=Ke(Ie.Seconds,2);break;case"S":e=Ke(Ie.FractionalSeconds,1);break;case"SS":e=Ke(Ie.FractionalSeconds,2);break;case"SSS":e=Ke(Ie.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Nd(kr.Short);break;case"ZZZZZ":e=Nd(kr.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Nd(kr.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Nd(kr.Long);break;default:return null}return fE[t]=e,e}function tM(t,e){t=t.replace(/:/g,"");let i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function u2(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function l2(t,e,i){let n=i?-1:1,r=t.getTimezoneOffset(),s=tM(e,r);return u2(t,n*(s-r))}function d2(t){if(UR(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[r,s=1,o=1]=t.split("-").map(a=>+a);return _d(r,s-1,o)}let i=parseFloat(t);if(!isNaN(t-i))return new Date(i);let n;if(n=t.match(e2))return f2(n)}let e=new Date(t);if(!UR(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function f2(t){let e=new Date(0),i=0,n=0,r=t[8]?e.setUTCFullYear:e.setFullYear,s=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let o=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return s.call(e,o,a,c,u),e}function UR(t){return t instanceof Date&&!isNaN(t.valueOf())}var h2=/^(\d+)?\.((\d+)(-(\d+))?)?$/,$R=22,Ld=".",za="0",p2=";",g2=",",hE="#",BR="\xA4";function nM(t,e,i,n,r,s,o=!1){let a="",c=!1;if(!isFinite(t))a=dr(i,Nt.Infinity);else{let u=E2(t);o&&(u=y2(u));let l=e.minInt,d=e.minFrac,h=e.maxFrac;if(s){let $=s.match(h2);if($===null)throw new Error(`${s} is not a valid digit info`);let k=$[1],B=$[3],re=$[5];k!=null&&(l=pE(k)),B!=null&&(d=pE(B)),re!=null?h=pE(re):B!=null&&d>h&&(h=d)}C2(u,d,h);let p=u.digits,y=u.integerLen,D=u.exponent,w=[];for(c=p.every($=>!$);y<l;y++)p.unshift(0);for(;y<0;y++)p.unshift(0);y>0?w=p.splice(y,p.length):(w=p,p=[0]);let R=[];for(p.length>=e.lgSize&&R.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)R.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&R.unshift(p.join("")),a=R.join(dr(i,n)),w.length&&(a+=dr(i,r)+w.join("")),D&&(a+=dr(i,Nt.Exponential)+"+"+D)}return t<0&&!c?a=e.negPre+a+e.negSuf:a=e.posPre+a+e.posSuf,a}function m2(t,e,i,n,r){let s=JR(e,wE.Currency),o=rM(s,dr(e,Nt.MinusSign));return o.minFrac=XV(n),o.maxFrac=o.minFrac,nM(t,o,e,Nt.CurrencyGroup,Nt.CurrencyDecimal,r).replace(BR,i).replace(BR,"").trim()}function v2(t,e,i){let n=JR(e,wE.Decimal),r=rM(n,dr(e,Nt.MinusSign));return nM(t,r,e,Nt.Group,Nt.Decimal,i)}function rM(t,e="-"){let i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(p2),r=n[0],s=n[1],o=r.indexOf(Ld)!==-1?r.split(Ld):[r.substring(0,r.lastIndexOf(za)+1),r.substring(r.lastIndexOf(za)+1)],a=o[0],c=o[1]||"";i.posPre=a.substring(0,a.indexOf(hE));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===za?i.minFrac=i.maxFrac=l+1:d===hE?i.maxFrac=l+1:i.posSuf+=d}let u=a.split(g2);if(i.gSize=u[1]?u[1].length:0,i.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,s){let l=r.length-i.posPre.length-i.posSuf.length,d=s.indexOf(hE);i.negPre=s.substring(0,d).replace(/'/g,""),i.negSuf=s.slice(d+l).replace(/'/g,"")}else i.negPre=e+i.posPre,i.negSuf=i.posSuf;return i}function y2(t){if(t.digits[0]===0)return t;let e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(e===0?t.digits.push(0,0):e===1&&t.digits.push(0),t.integerLen+=2),t}function E2(t){let e=Math.abs(t)+"",i=0,n,r,s,o,a;for((r=e.indexOf(Ld))>-1&&(e=e.replace(Ld,"")),(s=e.search(/e/i))>0?(r<0&&(r=s),r+=+e.slice(s+1),e=e.substring(0,s)):r<0&&(r=e.length),s=0;e.charAt(s)===za;s++);if(s===(a=e.length))n=[0],r=1;else{for(a--;e.charAt(a)===za;)a--;for(r-=s,n=[],o=0;s<=a;s++,o++)n[o]=Number(e.charAt(s))}return r>$R&&(n=n.splice(0,$R-1),i=r-1,r=1),{digits:n,exponent:i,integerLen:r}}function C2(t,e,i){if(e>i)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${i}).`);let n=t.digits,r=n.length-t.integerLen,s=Math.min(Math.max(e,r),i),o=s+t.integerLen,a=n[o];if(o>0){n.splice(Math.max(t.integerLen,o));for(let d=o;d<n.length;d++)n[d]=0}else{r=Math.max(0,r),t.integerLen=1,n.length=Math.max(1,o=s+1),n[0]=0;for(let d=1;d<o;d++)n[d]=0}if(a>=5)if(o-1<0){for(let d=0;d>o;d--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[o-1]++;for(;r<Math.max(0,s);r++)n.push(0);let c=s!==0,u=e+t.integerLen,l=n.reduceRight(function(d,h,p,y){return h=h+d,y[p]=h<10?h:h-10,c&&(y[p]===0&&p>=u?y.pop():c=!1),h>=10?1:0},0);l&&(n.unshift(l),t.integerLen++)}function pE(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function Xoe(t,e,i){return pR(t,e,i)}function Ud(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[r,s]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}var gE=/\s+/,VR=[],eae=(()=>{let e=class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=VR,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(gE):VR}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(gE):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let s=this.stateMap.get(n);s!==void 0?(s.enabled!==r&&(s.changed=!0,s.enabled=r),s.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],s=n[1];s.changed?(this._toggleClass(r,s.enabled),s.changed=!1):s.touched||(s.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),s.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>
80&&n.split(gE).forEach(s=>{r?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}};e.\u0275fac=function(r){return new(r||e)(Q(Fn),Q(Ji))},e.\u0275dir=Lt({type:e,selectors:[["","ngClass",""]],inputs:{klass:[mn.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var mE=class{constructor(e,i,n,r){this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},tae=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,s){this._viewContainer=n,this._template=r,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((s,o,a)=>{if(s.previousIndex==null)r.createEmbeddedView(this._template,new mE(s.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)r.remove(o===null?void 0:o);else if(o!==null){let c=r.get(o);r.move(c,a),HR(c,s)}});for(let s=0,o=r.length;s<o;s++){let c=r.get(s).context;c.index=s,c.count=o,c.ngForOf=this._ngForOf}n.forEachIdentityChange(s=>{let o=r.get(s.currentIndex);HR(o,s)})}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(Q(on),Q(Nn),Q(uE))},e.\u0275dir=Lt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function HR(t,e){t.context.$implicit=e.item}var nae=(()=>{let e=class e{constructor(n,r){this._viewContainer=n,this._context=new vE,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){zR("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){zR("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(Q(on),Q(Nn))},e.\u0275dir=Lt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),vE=class{constructor(){this.$implicit=null,this.ngIf=null}};function zR(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${_t(e)}'.`)}var S2=!0,kd=class{constructor(e,i){this._viewContainerRef=e,this._templateRef=i,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},iM=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){let r=S2?n===this._ngSwitch:n==this._ngSwitch;return this._lastCasesMatched||=r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}
8_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(let r of this._defaultViews)r.enforceState(n)}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Lt({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let t=e;return t})(),rae=(()=>{let e=class e{constructor(n,r,s){this.ngSwitch=s,s._addCase(),this._view=new kd(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(r){return new(r||e)(Q(on),Q(Nn),Q(iM,9))},e.\u0275dir=Lt({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let t=e;return t})(),iae=(()=>{let e=class e{constructor(n,r,s){s._addDefault(new kd(n,r))}};e.\u0275fac=function(r){return new(r||e)(Q(on),Q(Nn),Q(iM,9))},e.\u0275dir=Lt({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0});let t=e;return t})();var sae=(()=>{let e=class e{constructor(n,r,s){this._ngEl=n,this._differs=r,this._renderer=s,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[s,o]=n.split("."),a=s.indexOf("-")===-1?void 0:sr.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,s,o?`${r}${o}`:r,a):this._renderer.removeStyle(this._ngEl.nativeElement,s,a)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}};e.\u0275fac=function(r){return new(r||e)(Q(Fn),Q(Dd),Q(Ji))},e.\u0275dir=Lt({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),oae=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let s=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,s,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,s)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,s):!1,get:(n,r,s)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,s)}})}};e.\u0275fac=function(r){return new(r||e)(Q(on))},e.\u0275dir=Lt({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ki]});let t=e;return t})();function es(t,e){return new L(2100,!1)}var yE=class{createSubscription(e,i){return wd(()=>e.subscribe({next:i,error:n=>{throw n}}))}dispose(e){wd(()=>e.unsubscribe())}},EE=class{createSubscription(e,i){return e.then(i,n=>{throw n})}dispose(e){}},I2=new EE,D2=new yE,aae=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(co(n))return I2;if(aE(n))return D2;throw es(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(r){return new(r||e)(Q(lr,16))},e.\u0275pipe=rn({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})(),cae=(()=>{let e=class e{transform(n){if(n==null)return null;
8if(typeof n!="string")throw es(e,n);return n.toLowerCase()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=rn({name:"lowercase",type:e,pure:!0,standalone:!0});let t=e;return t})(),b2=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
8D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,uae=(()=>{let e=class e{transform(n){if(n==null)return null;if(typeof n!="string")throw es(e,n);return n.replace(b2,r=>r[0].toUpperCase()+r.slice(1).toLowerCase())}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=rn({name:"titlecase",type:e,pure:!0,standalone:!0});let t=e;return t})();var w2="mediumDate",T2=new S(""),A2=new S(""),sM=(()=>{let e=class e{constructor(n,r,s){this.locale=n,this.defaultTimezone=r,this.defaultOptions=s}transform(n,r,s,o){if(n==null||n===""||n!==n)return null;try{let a=r??this.defaultOptions?.dateFormat??w2,c=s??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return n2(n,a,o||this.locale,c)}catch(a){throw es(e,a.message)}}};e.\u0275fac=function(r){return new(r||e)(Q(lo,16),Q(T2,24),Q(A2,24))},e.\u0275pipe=rn({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();function R2(t,e){return{key:t,value:e}}var lae=(()=>{let e=class e{constructor(n){this.differs=n,this.keyValues=[],this.compareFn=GR}transform(n,r=GR){if(!n||!(n instanceof Map)&&typeof n!="object")return null;this.differ??=this.differs.find(n).create();let s=this.differ.diff(n),o=r!==this.compareFn;
8return s&&(this.keyValues=[],s.forEachItem(a=>{this.keyValues.push(R2(a.key,a.currentValue))})),(s||o)&&(this.keyValues.sort(r),this.compareFn=r),this.keyValues}};e.\u0275fac=function(r){return new(r||e)(Q(Dd,16))},e.\u0275pipe=rn({name:"keyvalue",type:e,pure:!1,standalone:!0});let t=e;return t})();function GR(t,e){let i=t.key,n=e.key;if(i===n)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(i===null)return 1;if(n===null)return-1;if(typeof i=="string"&&typeof n=="string")return i<n?-1:1;if(typeof i=="number"&&typeof n=="number")return i-n;if(typeof i=="boolean"&&typeof n=="boolean")return i<n?-1:1;let r=String(i),s=String(n);return r==s?0:r<s?-1:1}var M2=(()=>{let e=class e{constructor(n){this._locale=n}transform(n,r,s){if(!oM(n))return null;s||=this._locale;try{let o=aM(n);return v2(o,s,r)}catch(o){throw es(e,o.message)}}};e.\u0275fac=function(r){return new(r||e)(Q(lo,16))},e.\u0275pipe=rn({name:"number",type:e,pure:!0,standalone:!0});let t=e;return t})();var dae=(()=>{let e=class e{constructor(n,r="USD"){this._locale=n,this._defaultCurrencyCode=r}transform(n,r=this._defaultCurrencyCode,s="symbol",o,a){if(!oM(n))return null;a||=this._locale,typeof s=="boolean"&&(s=s?"symbol":"code");let c=r||this._defaultCurrencyCode;s!=="code"&&(s==="symbol"||s==="symbol-narrow"?c=QV(c,s==="symbol"?"wide":"narrow",a):c=s);try{let u=aM(n);return m2(u,a,c,r,o)}catch(u){throw es(e,u.message)}}};e.\u0275fac=function(r){return new(r||e)(Q(lo,16),Q(RR,16))},e.\u0275pipe=rn({name:"currency",type:e,pure:!0,standalone:!0});let t=e;return t})();function oM(t){return!(t==null||t===""||t!==t)}function aM(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var fae=(()=>{let e=class e{transform(n,r,s){if(n==null)return null;if(!this.supports(n))throw es(e,n);return n.slice(r,s)}supports(n){return typeof n=="string"||Array.isArray(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=rn({name:"slice",type:e,pure:!1,standalone:!0});let t=e;return t})();var ot=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),AE="browser",x2="server";function pi(t){return t===AE}function ts(t){return t===x2}var cM=(()=>{let e=class e{};e.\u0275prov=m({token:e,providedIn:"root",factory:()=>pi(C(Ye))?new CE(C(Ue),window):new SE});let t=e;return t})(),CE=class{constructor(e,i){this.document=e,this.window=i,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let i=N2(this.document,e);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let i=e.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}};function N2(t,e){let i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let s=r.shadowRoot;if(s){let o=s.getElementById(e)||s.querySelector(`[name="${e}"]`);if(o)return o}r=n.nextNode()}}return null}var SE=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},fo=class{};var Wa=class{},qa=class{},fe=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` 9`).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),s=r.toLowerCase(),o=i.slice(n+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e
vendor: 4,441 bytes, line 9
9=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":let s=e.value;if(!s)this.headers.delete(i),this.normalizedNames.delete(i);else{let o=this.headers.get(i);if(!o)return;o=o.filter(a=>s.indexOf(a)===-1),o.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,o)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(s=>s.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var NE=class{encodeKey(e){return uM(e)}encodeValue(e){return uM(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function O2(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let s=r.indexOf("="),[o,a]=s==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],c=i.get(o)||[];c.push(a),i.set(o,c)}),i}var P2=/%(\d[a-f0-9])/gi,F2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function uM(t){return encodeURIComponent(t).replace(P2,(e,i)=>F2[i]??e)}function $d(t){return`${t}`}var ze=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new NE,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=O2(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],r=Array.isArray(n)?n.map($d):[$d(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let r=e[n];Array.isArray(r)?r.forEach(s=>{i.push({param:n,value:s,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(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":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push($d(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],r=n.indexOf($d(e.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}},Ya=class{constructor(e){this.defaultValue=e}},ho=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),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}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function _2(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function lM(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function dM(t){return typeof Blob<"u"&&t instanceof Blob}function fM(t){return typeof FormData<"u"&&t instanceof FormData}function L2(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Ga=class t{constructor(e,i,n,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let s;
9if(_2(this.method)||r?(this.body=n!==void 0?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.transferCache=s.transferCache),this.headers??=new fe,this.context??=new ho,!this.params)this.params=new ze,this.urlWithParams=i;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),c=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+c+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||lM(this.body)||dM(this.body)||fM(this.body)||L2(this.body)?this.body:this.body instanceof ze?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||fM(this.body)?null:dM(this.body)?this.body.type||null:lM(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof ze?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,s=e.transferCache??this.transferCache,o=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,c=e.reportProgress??this.reportProgress,u=e.headers||this.headers,l=e.params||this.params,d=e.context??this.context;return e.setHeaders!==void 0&&(u=Object.keys(e.setHeaders).reduce((h,p)=>h.set(p,e.setHeaders[p]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((h,p)=>h.set(p,e.setParams[p]),l)),new t(i,n,o,{params:l,headers:u,context:d,reportProgress:c,responseType:r,withCredentials:a,transferCache:s})}},hr=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(hr||{}),Ka=class{constructor(e,i=Za.Ok,n="OK"){this.headers=e.headers||new fe,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Bd=class t extends Ka{constructor(e={}){super(e),this.type=hr.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},po=class t extends Ka{constructor(e={}){super(e),this.type=hr.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}
9,Wt=class extends Ka{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Za=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Za||{});function ME(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Le=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,s={}){let o;if(n instanceof Ga)o=n;else{let u;s.headers instanceof fe?u=s.headers:u=new fe(s.headers);let l;s.params&&(s.params instanceof ze?l=s.params:l=new ze({fromObject:s.params})),o=new Ga(n,r,s.body!==void 0?s.body:null,{headers:u,context:s.context,params:l,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let a=I(o).pipe(rt(u=>this.handler.handle(u)));if(n instanceof Ga||s.observe==="events")return a;let c=a.pipe(N(u=>u instanceof po));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(E(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(E(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(E(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(E(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new ze().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,s={}){return this.request("PATCH",n,ME(s,r))}post(n,r,s={}){return this.request("POST",n,ME(s,r))}put(n,r,s={}){return this.request("PUT",n,ME(s,r))}};e.\u0275fac=function(r){return new(r||e)(f(Wa))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),k2=/^\)\]\}',?\n/,j2="X-Request-URL";function hM(t){if(t.url)return t.url;let e=j2.toLocaleLowerCase();return t.headers.get(e)}var xE=(()=>{let e=class e{constructor(){this.fetchImpl=C(OE,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=C(ye)}handle(n){return new U(r=>{let s=new AbortController;return this.doRequest(n,s.signal,r).then(PE,o=>r.error(new Wt({error:o}))),()=>s.abort()})}doRequest(n,r,s){return ft(this,null,function*(){let o=this.createRequestInit(n),a;try{let y=this.fetchImpl(n.urlWithParams,v({signal:r},o));U2(y),s.next({type:hr.Sent}),a=yield y}catch(y){s.error(new Wt({error:y,status:y.status??0,statusText:y.statusText,url:n.urlWithParams,headers:y.headers}));return}let c=new fe(a.headers),u=a.statusText,l=hM(a)??n.urlWithParams,d=a.status,h=null;if(n.reportProgress&&s.next(new Bd({headers:c,status:d,statusText:u,url:l})),a.body){let y=a.headers.get("content-length"),D=[],w=a.body.getReader(),R=0,$,k,B=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>ft(this,null,function*(){for(;;){let{done:ue,value:pe}=yield w.read();if(ue)break;
9if(D.push(pe),R+=pe.length,n.reportProgress){k=n.responseType==="text"?(k??"")+($??=new TextDecoder).decode(pe,{stream:!0}):void 0;let Fe=()=>s.next({type:hr.DownloadProgress,total:y?+y:void 0,loaded:R,partialText:k});B?B.run(Fe):Fe()}}}));let re=this.concatChunks(D,R);try{let ue=a.headers.get("Content-Type")??"";h=this.parseBody(n,re,ue)}catch(ue){s.error(new Wt({error:ue,headers:new fe(a.headers),status:a.status,statusText:a.statusText,url:hM(a)??n.urlWithParams}));return}}d===0&&(d=h?Za.Ok:0),d>=200&&d<300?(s.next(new po({body:h,headers:c,status:d,statusText:u,url:l})),s.complete()):s.error(new Wt({error:h,headers:c,status:d,statusText:u,url:l}))})}parseBody(n,r,s){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(k2,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:s});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((o,a)=>r[o]=a.join(",")),r.Accept??="application/json, text/plain, */*",!r["Content-Type"]){let o=n.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:s}}concatChunks(n,r){let s=new Uint8Array(r),o=0;for(let a of n)s.set(a,o),o+=a.length;return s}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),OE=class{};function PE(){}function U2(t){t.then(PE,PE)}function yM(t,e){return e(t)}function $2(t,e){return(i,n)=>e.intercept(i,{handle:r=>t(r,n)})}function B2(t,e,i){return(n,r)=>On(i,()=>e(n,s=>t(s,r)))}var Ln=new S(""),FE=new S(""),V2=new S(""),EM=new S("");function H2(){let t=null;return(e,i)=>{t===null&&(t=(C(Ln,{optional:!0})??[]).reduceRight($2,yM));let n=C(fi),r=n.add();return t(e,i).pipe(wn(()=>n.remove(r)))}}var pM=(()=>{let e=class e extends Wa{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=C(fi);let s=C(EM,{optional:!0});this.backend=s??n}handle(n){if(this.chain===null){let s=Array.from(new Set([...this.injector.get(FE),...this.injector.get(V2,[])]));this.chain=s.reduceRight((o,a)=>B2(o,a,this.injector),yM)}let r=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(wn(()=>this.pendingTasks.remove(r)))}};e.\u0275fac=function(r){return new(r||e)(f(qa),f(Mt))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})();var z2=/^\)\]\}',?\n/;function G2(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var gM=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new L(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?ge(r.\u0275loadImpl()):I(null)).pipe(M(()=>new U(o=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((w,R)=>a.setRequestHeader(w,R.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let w=n.detectContentTypeHeader();w!==null&&a.setRequestHeader("Content-Type",w)}if(n.responseType){let w=n.responseType.toLowerCase();a.responseType=w!=="json"?w:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let w=a.statusText||"OK",R=new fe(a.getAllResponseHeaders()),$=G2(a)||n.url;return u=new Bd({headers:R,status:a.status,statusText:w,url:$}),u},d=()=>{let{headers:w,status:R,statusText:$,url:k}=l(),B=null;R!==Za.NoContent&&(B=typeof a.response>"u"?a.responseText:a.response),R===0&&(R=B?Za.Ok:0);let re=R>=200&&R<300;if(n.responseType==="json"&&typeof B=="string"){let ue=B;B=B.replace(z2,"");try{B=B!==""?JSON.parse(B):null}catch(pe){B=ue,re&&(re=!1,B={error:pe,text:B})}}re?(o.next(new po({body:B,headers:w,status:R,statusText:$,url:k||void 0})),o.complete()):o.error(new Wt({error:B,headers:w,status:R,statusText:$,url:k||void 0}))},h=w=>{let{url:R}=l(),$=new Wt({error:w,status:a.status||0,statusText:a.statusText||"Unknown Error",url:R||void 0});o.error($)},p=!1,y=w=>{p||(o.next(l()),p=!0);let R={type:hr.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(R.total=w.total),n.responseType==="text"&&a.responseText&&(R.partialText=a.responseText),o.next(R)},D=w=>{let R={type:hr.UploadProgress,loaded:w.loaded};w.lengthComputable&&(R.total=w.total),o.next(R)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",y),c!==null&&a.upload&&a.upload.addEventListener("progress",D)),a.send(c),o.next({type:hr.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",y),c!==null&&a.upload&&a.upload.removeEventListener("progress",D)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(f(fo))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),CM=new S(""),W2="XSRF-TOKEN",q2=new S("",{providedIn:"root",factory:()=>W2}),Y2="X-XSRF-TOKEN",K2=new S("",{providedIn:"root",factory:()=>Y2}),Vd=class{},Z2=(()=>{let e=class e{constructor(n,r,s){this.doc=n,this.platform=r,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ud(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(f(Ue),f(Ye),f(q2))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})();function Q2(t,e){let i=t.url.toLowerCase();if(!C(CM)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=C(Vd).getToken(),r=C(K2);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var _E=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(_E||{});function SM(t,e){return{\u0275kind:t,\u0275providers:e}}function bae(...t){let e=[Le,gM,pM,{provide:Wa,useExisting:pM},{provide:qa,useExisting:gM},{provide:FE,useValue:Q2,multi:!0},{provide:CM,useValue:!0},{provide:Vd,useClass:Z2}];for(let i of t)e.push(...i.\u0275providers);return or(e)}var mM=new S("");function wae(){return SM(_E.LegacyInterceptors,[{provide:mM,useFactory:H2},{provide:FE,useExisting:mM,multi:!0}])}function Tae(){return SM(_E.Fetch,[xE,{provide:qa,useExisting:xE},{provide:EM,useExisting:xE}])}var jE=class extends Fd{constructor(){super(...arguments),this.supportsDOMEvents=!0}},UE=class t extends jE{static makeCurrent(){YR(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}
9isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=J2();return i==null?null:X2(i)}resetBaseElement(){Qa=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Ud(document.cookie,e)}},Qa=null;function J2(){return Qa=Qa||document.querySelector("base"),Qa?Qa.getAttribute("href"):null}function X2(t){return new URL(t,document.baseURI).pathname}var $E=class{addToWindow(e){He.getAngularTestability=(n,r=!0)=>{let s=e.findTestabilityInTree(n,r);if(s==null)throw new L(5103,!1);return s},He.getAllAngularTestabilities=()=>e.getAllTestabilities(),He.getAllAngularRootElements=()=>e.getAllRootElements();let i=n=>{let r=He.getAllAngularTestabilities(),s=r.length,o=function(){s--,s==0&&n()};r.forEach(a=>{a.whenStable(o)})};He.frameworkStabilizers||(He.frameworkStabilizers=[]),He.frameworkStabilizers.push(i)}findTestabilityInTree(e,i,n){if(i==null)return null;let r=e.getTestability(i);return r??(n?hi().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null)}},eH=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),BE=new S(""),TM=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEac
9h(s=>{s.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,s){return this._findPluginFor(r).addEventListener(n,r,s)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new L(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(f(BE),f(ye))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),Hd=class{constructor(e){this._doc=e}},LE="ng-app-id",AM=(()=>{let e=class e{constructor(n,r,s,o={}){this.doc=n,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ts(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(s=>s.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${LE}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(n,r){let s=this.styleRef;if(s.has(n)){let o=s.get(n);return o.usage+=r,o.usage}return s.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===n)return s.delete(r),o.removeAttribute(LE),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(LE,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let s=this.getStyleElement(n,r),o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(f(Ue),f(ka),f(Oy,8),f(Ye))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),kE={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},HE=/%COMP%/g,RM="%COMP%",tH=`_nghost-${RM}`,nH=`_ngcontent-${RM}`,rH=!0,iH=new S("",{providedIn:"root",factory:()=>rH});function sH(t){return nH.replace(HE,t)}function oH(t){return tH.replace(HE,t)}function MM(t,e){return e.map(i=>i.replace(HE,t))}var DM=(()=>{let e=class e{constructor(n,r,s,o,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=ts(c),this.defaultRenderer=new Ja(n,a,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===rr.ShadowDom&&(r=T(v({},r),{encapsulation:rr.Emulated}));let s=this.getOrCreateRenderer(n,r);return s instanceof zd?s.applyToHost(n):s instanceof Xa&&s.applyStyles(),s}getOrCreateRenderer(n,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case rr.Emulated:o=new zd(u,l,r,this.appId,d,a,c,h);break;case rr.ShadowDom:return new VE(u,l,n,r,a,c,this.nonce,h);default:o=new Xa(u,l,r,d,a,c,h);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(f(TM),f(AM),f(ka),f(iH),f(Ue),f(Ye),f(ye),f(Oy))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),Ja=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(kE[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(bM(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(bM(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new L(-5104,!1);
9return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let s=kE[r];s?e.setAttributeNS(s,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=kE[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(sr.DashCase|sr.Important)?e.style.setProperty(i,n,r&sr.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&sr.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=hi().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function bM(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var VE=class extends Ja{constructor(e,i,n,r,s,o,a,c){super(e,s,o,c),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=MM(r.id,r.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Xa=class extends Ja{constructor(e,i,n,r,s,o,a,c){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?MM(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},zd=class extends Xa{constructor(e,i,n,r,s,o,a,c){let u=r+"-"+n.id;super(e,i,n,s,o,a,c,u),this.contentAttr=sH(u),this.hostAttr=oH(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},aH=(()=>{let e=class e extends Hd{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,s){return n.addEventListener(r,s,!1),()=>this.removeEventListener(n,r,s)}removeEventListener(n,r,s){return n.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(f(Ue))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),wM=["alt","control","meta","shift"],cH={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},uH={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},lH=(()=>{let e=class e extends Hd{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>hi().onAndCancel(n,o.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),a="code."),wM.forEach(l=>{let d=r.indexOf(l);d>-1&&(r.splice(d,1),a+=l+".")}),a+=o,r.length!=0||o.length===0)return null;let u={};return u.domEventName=s,u.fullKey=a,u}static matchEventFullKeyCode(n,r){let s=cH[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(s=n.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),wM.forEach(a=>{if(a!==s){let c=uH[a];c(n)&&(o+=a+".")}}),o+=s,o===r)}static eventCallback(n,r,s){return o=>{e.matchEventFullKeyCode(o,n)&&s.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(f(Ue))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})();function dH(){UE.makeCurrent()}function fH(){return new mt}function hH(){return ZT(document),document}var pH=[{provide:Ye,useValue:AE},{provide:Ny,useValue:dH,multi:!0},{provide:Ue,useFactory:hH,deps:[]}],jae=cE(PR,"browser",pH),gH=new S(""),mH=[{provide:Va,useClass:$E,deps:[]}
9,{provide:sE,useClass:Cd,deps:[ye,Sd,Va]},{provide:Cd,useClass:Cd,deps:[ye,Sd,Va]}],vH=[{provide:Kl,useValue:"root"},{provide:mt,useFactory:fH,deps:[]},{provide:BE,useClass:aH,multi:!0,deps:[Ue,ye,Ye]},{provide:BE,useClass:lH,multi:!0,deps:[Ue]},DM,AM,TM,{provide:Aa,useExisting:DM},{provide:fo,useClass:eH,deps:[]},[]],Uae=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ka,useValue:n.appId}]}}};e.\u0275fac=function(r){return new(r||e)(f(gH,12))},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[...vH,...mH],imports:[ot,FR]});let t=e;return t})(),zE=(()=>{let e=class e{constructor(n){this._doc=n,this._dom=hi()}addTag(n,r=!1){return n?this._getOrCreateElement(n,r):null}addTags(n,r=!1){return n?n.reduce((s,o)=>(o&&s.push(this._getOrCreateElement(o,r)),s),[]):[]}getTag(n){return n&&this._doc.querySelector(`meta[${n}]`)||null}getTags(n){if(!n)return[];let r=this._doc.querySelectorAll(`meta[${n}]`);return r?[].slice.call(r):[]}updateTag(n,r){if(!n)return null;r=r||this._parseSelector(n);let s=this.getTag(r);return s?this._setMetaElementAttributes(n,s):this._getOrCreateElement(n,!0)}removeTag(n){this.removeTagElement(this.getTag(n))}removeTagElement(n){n&&this._dom.remove(n)}_getOrCreateElement(n,r=!1){if(!r){let a=this._parseSelector(n),c=this.getTags(a).filter(u=>this._containsAttributes(n,u))[0];if(c!==void 0)return c}let s=this._dom.createElement("meta");return this._setMetaElementAttributes(n,s),this._doc.getElementsByTagName("head")[0].appendChild(s),s}_setMetaElementAttributes(n,r){return Object.keys(n).forEach(s=>r.setAttribute(this._getMetaKeyMap(s),n[s])),r}_parseSelector(n){let r=n.name?"name":"property";return`${r}="${n[r]}"`}_containsAttributes(n,r){return Object.keys(n).every(s=>r.getAttribute(this._getMetaKeyMap(s))===n[s])}_getMetaKeyMap(n){return yH[n]||n}};e.\u0275fac=function(r){return new(r||e)(f(Ue))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),yH={httpEquiv:"http-equiv"},xM=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(r){return new(r||e)(f(Ue))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var EH=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=f(CH),s},providedIn:"root"});let t=e;return t})(),CH=(()=>{let e=class e extends EH{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case yn.NONE:return r;case yn.HTML:return cr(r,"HTML")?zt(r):Fy(this._doc,String(r)).toString();case yn.STYLE:return cr(r,"Style")?zt(r):r;case yn.SCRIPT:if(cr(r,"Script"))return zt(r);throw new L(5200,!1);case yn.URL:return cr(r,"URL")?zt(r):id(String(r));case yn.RESOURCE_URL:if(cr(r,"ResourceURL"))return zt(r);throw new L(5201,!1);default:throw new L(5202,!1)}}bypassSecurityTrustHtml(n){return XT(n)}bypassSecurityTrustStyle(n){return eA(n)}bypassSecurityTrustScript(n){return tA(n)}bypassSecurityTrustUrl(n){return nA(n)}bypassSecurityTrustResourceUrl(n){return rA(n)}};e.\u0275fac=function(r){return new(r||e)(f(Ue))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function IH(t){t||(Pa(IH),t=C(di));let e=new U(i=>
9t.onDestroy(i.next.bind(i)));return i=>i.pipe(_i(e))}function GE(t,e){let i=!e?.manualCleanup;i&&!e?.injector&&Pa(GE);let n=i?e?.injector?.get(di)??C(di):null,r;e?.requireSync?r=Ky({kind:0}):r=Ky({kind:1,value:e?.initialValue});let s=t.subscribe({next:o=>r.set({kind:1,value:o}),error:o=>{if(e?.rejectErrors)throw o;r.set({kind:2,error:o})}});return n?.onDestroy(s.unsubscribe.bind(s)),bd(()=>{let o=r();switch(o.kind){case 1:return o.value;case 2:throw o.error;case 0:throw new L(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}})}var KE={};function gi(t,e){if(KE[t]=(KE[t]||0)+1,typeof e=="function")return WE(t,(...n)=>T(v({},e(...n)),{type:t}));switch(e?e._as:"empty"){case"empty":return WE(t,()=>({type:t}));case"props":return WE(t,n=>T(v({},n),{type:t}));default:throw new Error("Unexpected config.")}}function mo(){return{_as:"props",_p:void 0}}function WE(t,e){return Object.defineProperty(e,"type",{value:t,writable:!1})}var Yd="@ngrx/store/init",Ur=(()=>{let e=class e extends Ae{constructor(){super({type:Yd})}next(n){if(typeof n=="function")throw new TypeError(` 10 Dispatch expected an object, instead it received a function. 11 If you're using the createAction function, make sure to invoke the function 12 before dispatching the action. For example, someAction should be someAction().`);if(typeof n>"u")throw new TypeError("Actions must be objects");if(typeof n.type>"u")throw new TypeError("Actions must have a type property");super.next(n)}complete(){}ngOnDestroy(){super.complete()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),DH=[Ur],WM=new S("@ngrx/store Internal Root Guard"),NM=new S("@ngrx/store Internal Initial State"),XE=new S("@ngrx/store Initial State"),qM=new S("@ngrx/store Reducer Factory"),OM=new S("@ngrx/store Internal Reducer Factory Provider"),YM=new S("@ngrx/store Initial Reducers"),qE=new S("@ngrx/store Internal Initial Reducers"),PM=new S("@ngrx/store Store Features"),FM=new S("@ngrx/store Internal Store Reducers"),YE=new S("@ngrx/store Internal Feature Reducers"),_M=new S("@ngrx/store Internal Feature Configs"),KM=new S("@ngrx/store Internal Store Features"),LM=new S("@ngrx/store Internal Feature Reducers Token"),ZM=new S("@ngrx/store Feature Reducers"),kM=new S("@ngrx/store User Provided Meta Reducers"),go=new S("@ngrx/store Meta Reducers"),jM=new S("@ngrx/store Internal Resolved Meta Reducers"),UM=new S("@ngrx/store User Runtime Checks Config"),$M=new S("@ngrx/store Internal User Runtime Checks Config"),ns=new S("@ngrx/store Internal Runtime Checks"),eC=new S("@ngrx/store Check if Action types are unique"),bH=new S("@ngrx/store Root Store Provider"),wH=new S("@ngrx/store Feature State Provider");function vo(t,e={}){let i=Object.keys(t),n={};for(let s=0;s<i.length;s++){let o=i[s];typeof t[o]=="function"&&(n[o]=t[o])}let r=Object.keys(n);return function(o,a){o=o===void 0?e:o;let c=!1,u={};for(let l=0;l<r.length;l++){let d=r[l],h=n[d],p=o[d],y=h(p,a);u[d]=y,c=c||y!==p}return c?u:o}}function TH(t,e){return Object.keys(t).filter(i=>i!==e).reduce((i,n)=>Object.assign(i,{[n]:t[n]}),{})}function QM(...t){return function(e){if(t.length===0)return e;let i=t[t.length-1];return t.slice(0,-1).reduceRight((r,s)=>s(r),i(e))}}function JM(t,e){return Array.isArray(e)&&e.length>0&&(t=QM.apply(null,[...e,t])),(i,n)=>{let r=t(i);return(s,o)=>(s=s===void 0?n:s,r(s,o))}}function AH(t){let e=Array.isArray(t)&&t.length>0?QM(...t):i=>i;return(i,n)=>(i=e(i),(r,s)=>(r=r===void 0?n:r,i(r,s)))}var ec=class extends U{},Gd=class extends Ur{},RH="@ngrx/store/update-reducers",Wd=(()=>{let e=class e extends Ae{get currentReducers(){return this.reducers}constructor(n,r,s,o){super(o(s,r)),this.dispatcher=n,this.initialState=r,this.reducers=s,this.reducerFactory=o}addFeature(n){this.addFeatures([n])}addFeatures(n){let r=n.reduce((s,{reducers:o,reducerFactory:a,metaReducers:c,initialState:u,key:l})=>{let d=typeof o=="function"?AH(c)(o,u):JM(a,c)(o,u);return s[l]=d,s},{});this.addReducers(r)}removeFeature(n){this.removeFeatures([n])}removeFeatures(n){this.removeReducers(n.map(r=>r.key))}addReducer(n,r){this.addReducers({[n]:r})}addReducers(n){this.reducers=v(v({},this.reducers),n),this.updateReducers(Object.keys(n))}removeReducer(n){this.removeReducers([n])}
12removeReducers(n){n.forEach(r=>{this.reducers=TH(this.reducers,r)}),this.updateReducers(n)}updateReducers(n){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:RH,features:n})}ngOnDestroy(){this.complete()}};e.\u0275fac=function(r){return new(r||e)(f(Gd),f(XE),f(YM),f(qM))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),MH=[Wd,{provide:ec,useExisting:Wd},{provide:Gd,useExisting:Ur}],tc=(()=>{let e=class e extends oe{ngOnDestroy(){this.complete()}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),xH=[tc],qd=class extends U{},BM=(()=>{let e=class e extends Ae{constructor(n,r,s,o){super(o);let c=n.pipe(pn(ei)).pipe(en(r)),u={state:o},l=c.pipe(Fi(NH,u));this.stateSubscription=l.subscribe(({state:d,action:h})=>{this.next(d),s.next(h)}),this.state=GE(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}};e.INIT=Yd,e.\u0275fac=function(r){return new(r||e)(f(Ur),f(ec),f(tc),f(XE))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})();function NH(t={state:void 0},[e,i]){let{state:n}=t;return{state:i(n,e),action:e}}var OH=[BM,{provide:qd,useExisting:BM}],De=(()=>{let e=class e extends U{constructor(n,r,s){super(),this.actionsObserver=r,this.reducerManager=s,this.source=n,this.state=n.state}select(n,...r){return O.call(null,n,...r)(this)}selectSignal(n,r){return bd(()=>n(this.state()),r)}lift(n){let r=new e(this,this.actionsObserver,this.reducerManager);return r.operator=n,r}dispatch(n){this.actionsObserver.next(n)}next(n){this.actionsObserver.next(n)}error(n){this.actionsObserver.error(n)}complete(){this.actionsObserver.complete()}addReducer(n,r){this.reducerManager.addReducer(n,r)}removeReducer(n){this.reducerManager.removeReducer(n)}};e.\u0275fac=function(r){return new(r||e)(f(qd),f(Ur),f(Wd))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),PH=[De];function O(t,e,...i){return function(r){let s;if(typeof t=="string"){let o=[e,...i].filter(Boolean);s=r.pipe(bm(t,...o))}else if(typeof t=="function")s=r.pipe(E(o=>t(o,e)));else throw new TypeError(`Unexpected type '${typeof t}' in select operator, expected 'string' or 'function'`);return s.pipe(Xt())}}var tC="https://ngrx.io/guide/store/configuration/runtime-checks";function VM(t){return t===void 0}function HM(t){return t===null}function XM(t){return Array.isArray(t)}function FH(t){return typeof t=="string"}function _H(t){return typeof t=="boolean"}function LH(t){return typeof t=="number"}function ex(t){return typeof t=="object"&&t!==null}function kH(t){return ex(t)&&!XM(t)}function jH(t){if(!kH(t))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function ZE(t){return typeof t=="function"}function UH(t){return ZE(t)&&t.hasOwnProperty("\u0275cmp")}function $H(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var BH=!1;function nC(){return BH}function zM(t,e){return t===e}function VH(t,e,i){for(let n=0;n<t.length;n++)if(!i(t[n],e[n]))return!0;return!1}function tx(t,e=zM,i=zM){let n=null,r=null,s;function o(){n=null,r=null}function a(l=void 0){s={result:l}}function c(){s=void 0}function u(){if(s!==void 0)return s.result;if(!n)return r=t.apply(null,arguments),n=arguments,r;if(!VH(arguments,n,e))return r;let l=t.apply(null,arguments);return n=arguments,i(r,l)?r:(r=l,l)}return{memoized:u,reset:o,setResult:a,clearResult:c}}function A(...t){return zH(tx)(...t)}function HH(t,e,i,n){if(i===void 0){let s=e.map(o=>o(t));return n.memoized.apply(null,s)}let r=e.map(s=>s(t,i));return n.memoized.apply(null,[...r,i])}function zH(t,e={stateFn:HH}){return function(...i){let n=i;if(Array.isArray(n[0])){let[l,...d]=n;n=[...l,...d]}else n.length===1&&GH(n[0])&&(n=WH(n[0]));let r=n.slice(0,n.length-1),s=n[n.length-1],o=r.filter(l=>l.release&&typeof l.release=="function"),a=t(function(...l){return s.apply(null,l)}),c=tx(function(l,d){return e.stateFn.apply(null,[l,r,d,a])});function u(){c.reset(),a.reset(),o.forEach(l=>l.release())}return Object.assign(c.memoized,{release:u,projector:a.memoized,setResult:c.setResult,clearResult:c.clearResult})}}function kn(t){return A(e=>{let i=e[t];return!nC()&&Ee()&&!(t in e)&&console.warn(`@ngrx/store: The feature name "${t}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${t}
12', ...) or StoreModule.forFeature('${t}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),i},e=>e)}function GH(t){return!!t&&typeof t=="object"&&Object.values(t).every(e=>typeof e=="function")}function WH(t){let e=Object.values(t),i=Object.keys(t),n=(...r)=>i.reduce((s,o,a)=>T(v({},s),{[o]:r[a]}),{});return[...e,n]}function qH(t){return t instanceof S?C(t):t}function YH(t,e){return e.map((i,n)=>{if(t[n]instanceof S){let r=C(t[n]);return{key:i.key,reducerFactory:r.reducerFactory?r.reducerFactory:vo,metaReducers:r.metaReducers?r.metaReducers:[],initialState:r.initialState}}return i})}function KH(t){return t.map(e=>e instanceof S?C(e):e)}function nx(t){return typeof t=="function"?t():t}function ZH(t,e){return t.concat(e)}function QH(){if(C(De,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function JH(t,e){return function(i,n){let r=e.action(n)?QE(n):n,s=t(i,r);return e.state()?QE(s):s}}function QE(t){Object.freeze(t);let e=ZE(t);return Object.getOwnPropertyNames(t).forEach(i=>{if(!i.startsWith("\u0275")&&$H(t,i)&&(!e||i!=="caller"&&i!=="callee"&&i!=="arguments")){let n=t[i];(ex(n)||ZE(n))&&!Object.isFrozen(n)&&QE(n)}}),t}function XH(t,e){return function(i,n){if(e.action(n)){let s=JE(n);GM(s,"action")}let r=t(i,n);if(e.state()){let s=JE(r);GM(s,"state")}return r}}function JE(t,e=[]){return(VM(t)||HM(t))&&e.length===0?{path:["root"],value:t}:Object.keys(t).reduce((n,r)=>{if(n)return n;let s=t[r];return UH(s)?n:VM(s)||HM(s)||LH(s)||_H(s)||FH(s)||XM(s)?!1:jH(s)?JE(s,[...e,r]):{path:[...e,r],value:s}},!1)}function GM(t,e){if(t===!1)return;let i=t.path.join("."),n=new Error(`Detected unserializable ${e} at "${i}". ${tC}#strict${e}serializability`);throw n.value=t.value,n.unserializablePath=i,n}function ez(t,e){return function(i,n){if(e.action(n)&&!ye.isInAngularZone())throw new Error(`Action '${n.type}' running outside NgZone. ${tC}#strictactionwithinngzone`);return t(i,n)}}function tz(t){return Ee()?v({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},t):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function nz({strictActionSerializability:t,strictStateSerializability:e}){return i=>t||e?XH(i,{action:n=>t&&!rC(n),state:()=>e}):i}function rz({strictActionImmutability:t,strictStateImmutability:e}){return i=>t||e?JH(i,{action:n=>t&&!rC(n),state:()=>e}):i}function rC(t){return t.type.startsWith("@ngrx")}function iz({strictActionWithinNgZone:t}){return e=>t?ez(e,{action:i=>t&&!rC(i)}):e}function sz(t){return[{provide:$M,useValue:t},{provide:UM,useFactory:oz,deps:[$M]},{provide:ns,deps:[UM],useFactory:tz},{provide:go,multi:!0,deps:[ns],useFactory:rz},{provide:go,multi:!0,deps:[ns],useFactory:nz},{provide:go,multi:!0,deps:[ns],useFactory:iz}]}function rx(){return[{provide:eC,multi:!0,deps:[ns],useFactory:az}]}function oz(t){return t}function az(t){if(!t.strictActionTypeUniqueness)return;let e=Object.entries(KE).filter(([,i])=>i>1).map(([i])=>i);if(e.length)throw new Error(`Action types are registered more than once, ${e.map(i=>`"${i}"`).join(", ")}. ${tC}#strictactiontypeuniqueness`)}function cz(t={},e={}){return[{provide:WM,useFactory:QH},{provide:NM,useValue:e.initialState},{provide:XE,useFactory:nx,deps:[NM]},{provide:qE,useValue:t},{provide:FM,useExisting:t instanceof S?t:qE},{provide:YM,deps:[qE,[new Yl(FM)]],useFactory:qH},{provide:kM,useValue:e.metaReducers?e.metaReducers:[]},{provide:jM,deps:[go,kM],useFactory:ZH},{provide:OM,useValue:e.reducerFactory?e.reducerFactory:vo},{provide:qM,deps:[OM,jM],useFactory:JM},DH,MH,xH,OH,PH,sz(e.runtimeChecks),rx()]}function uz(t,e,i={}){return[{provide:_M,multi:!0,useValue:t instanceof Object?{}:i},{provide:PM,multi:!0,useValue:{key:t instanceof Object?t.name:t,reducerFactory:!(i instanceof S)&&i.reducerFactory?i.reducerFactory:vo,metaReducers:!(i instanceof S)&&i.metaReducers?i.metaReducers:[],initialState:!(i instanceof S)&&i.initialState?i.initialState:void 0}},{provide:KM,deps:[_M,PM],useFactory:YH},{provide:YE,multi:!0,useValue:t instanceof Object?t.reducer:e},{provide:LM,multi:!0,useExisting:e instanceof S?e:YE},{provide:ZM,multi:!0,deps:[YE,[new Yl(LM)]],useFactory:KH},rx()]}var nc=(()=>{let e=class e{constructor(n,r,s,o,a,c){}};e.\u0275fac=function(r){return new(r||e)(f(Ur),f(ec),f(tc),f(De),f(WM,8),f(eC,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),Kd=(()=>{let e=class e{constructor(n,r,s,o,a){this.features=n,this.featureReducers=r,this.reducerManager=s;let c=n.map((u,l)=>{let h=r.shift()[l];return T(v({},u),{reducers:h,initialState:nx(u.initialState)})});s.addFeatures(c)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}};e.\u0275fac=function(r){return new(r||e)(f(KM),f(ZM),f(Wd),f(nc),f(eC,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),$r=(()=>{let e=class e{static forRoot(n,r){return{ngModule:nc,providers:[...cz(n,r)]}}
12static forFeature(n,r,s={}){return{ngModule:Kd,providers:[...uz(n,r,s)]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function ece(...t){let e=t.pop(),i=t.map(n=>n.type);return{reducer:e,types:i}}function tce(t,...e){let i=new Map;for(let n of e)for(let r of n.types){let s=i.get(r);if(s){let o=(a,c)=>n.reducer(s(a,c),c);i.set(r,o)}else i.set(r,n.reducer)}return function(n=t,r){let s=i.get(r.type);return s?s(n,r):n}}var lz={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},Qd="__@ngrx/effects_create__";function Z(t,e={}){let i=e.functional?t:t(),n=v(v({},lz),e);return Object.defineProperty(i,Qd,{value:n}),i}function dz(t){return Object.getOwnPropertyNames(t).filter(n=>t[n]&&t[n].hasOwnProperty(Qd)?t[n][Qd].hasOwnProperty("dispatch"):!1).map(n=>{let r=t[n][Qd];return v({propertyName:n},r)})}function fz(t){return dz(t)}function ax(t){return Object.getPrototypeOf(t)}function hz(t){return!!t.constructor&&t.constructor.name!=="Object"&&t.constructor.name!=="Function"}function cx(t){return typeof t=="function"}function ix(t){return t.filter(cx)}function pz(t){return t instanceof S||cx(t)}function gz(t,e,i){let n=ax(t),s=!!n&&n.constructor.name!=="Object"?n.constructor.name:null,o=fz(t).map(({propertyName:a,dispatch:c,useEffectsErrorHandler:u})=>{let l=typeof t[a]=="function"?t[a]():t[a],d=u?i(l,e):l;return c===!1?d.pipe(ca()):d.pipe(Dm()).pipe(E(p=>({effect:t[a],notification:p,propertyName:a,sourceName:s,sourceInstance:t})))});return gn(...o)}var mz=10;function ux(t,e,i=mz){return t.pipe(F(n=>(e&&e.handleError(n),i<=1?t:ux(t,e,i-1))))}var Pe=(()=>{let e=class e extends U{constructor(n){super(),n&&(this.source=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}};e.\u0275fac=function(r){return new(r||e)(f(tc))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function G(...t){return N(e=>t.some(i=>typeof i=="string"?i===e.type:i.type===e.type))}var lx=new S("@ngrx/effects Internal Root Guard"),Zd=new S("@ngrx/effects User Provided Effects"),sC=new S("@ngrx/effects Internal Root Effects"),dx=new S("@ngrx/effects Internal Root Effects Instances"),sx=new S("@ngrx/effects Internal Feature Effects"),fx=new S("@ngrx/effects Internal Feature Effects Instance Groups"),vz=new S("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>ux}),hx="@ngrx/effects/init",dce=gi(hx);function yz(t,e){if(t.notification.kind==="N"){let i=t.notification.value;!Ez(i)&&e.handleError(new Error(`Effect ${Cz(t)} dispatched an invalid action: ${Sz(i)}`))}}function Ez(t){return typeof t!="function"&&t&&t.type&&typeof t.type=="string"}function Cz({propertyName:t,sourceInstance:e,sourceName:i}){let n=typeof e[t]=="function";return!!i?`"${i}.${String(t)}${n?"()":""}"`:`"${String(t)}()"`}function Sz(t){try{return JSON.stringify(t)}catch{return t}}var Iz="ngrxOnIdentifyEffects";function Dz(t){return oC(t,Iz)}var bz="ngrxOnRunEffects";function wz(t){return oC(t,bz)}var Tz="ngrxOnInitEffects";function Az(t){return oC(t,Tz)}function oC(t,e){return t&&e in t&&typeof t[e]=="function"}var px=(()=>{let e=class e extends oe{constructor(n,r){super(),this.errorHandler=n,this.effectsErrorHandler=r}addEffects(n){this.next(n)}toActions(){return this.pipe(Jr(n=>hz(n)?ax(n):n),q(n=>n.pipe(Jr(Rz))),q(n=>{let r=n.pipe(Jn(o=>Mz(this.errorHandler,this.effectsErrorHandler)(o)),E(o=>(yz(o,this.errorHandler),o.notification)),N(o=>o.kind==="N"&&o.value!=null),Sm()),s=n.pipe(le(1),N(Az),E(o=>o.ngrxOnInitEffects()));return gn(r,s)}))}};e.\u0275fac=function(r){return new(r||e)(f(mt),f(vz))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Rz(t){return Dz(t)?t.ngrxOnIdentifyEffects():""}function Mz(t,e){return i=>{let n=gz(i,t,e);return wz(i)?i.ngrxOnRunEffects(n):n}}var gx=(()=>{let e=class e{get isStarted(){return!!this.effectsSubscription}constructor(n,r){this.effectSources=n,this.store=r,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}};e.\u0275fac=function(r){return new(r||e)(f(px),f(De))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),mx=(()=>{let e=class e{constructor(n,r,s,o,a,c,u){this.sources=n,r.start();for(let l of o)n.addEffects(l);s.dispatch({type:hx})}addEffects(n){this.sources.addEffects(n)}};e.\u0275fac=function(r){return new(r||e)(f(px),f(gx),f(De),f(dx),f(nc,8),f(Kd,8),f(lx,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),xz=(()=>{let e=class e{constructor(n,r,s,o){let a=r.flat();for(let c of a)n.addEffects(c)}};e.\u0275fac=function(r){return new(r||e)(f(mx),f(fx),f(nc,8),f(Kd,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),mi=(()=>
12{let e=class e{static forFeature(...n){let r=n.flat(),s=ix(r);return{ngModule:xz,providers:[s,{provide:sx,multi:!0,useValue:r},{provide:Zd,multi:!0,useValue:[]},{provide:fx,multi:!0,useFactory:ox,deps:[sx,Zd]}]}}static forRoot(...n){let r=n.flat(),s=ix(r);return{ngModule:mx,providers:[s,{provide:sC,useValue:[r]},{provide:lx,useFactory:Nz},{provide:Zd,multi:!0,useValue:[]},{provide:dx,useFactory:ox,deps:[sC,Zd]}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function ox(t,e){let i=[];for(let n of t)i.push(...n);for(let n of e)i.push(...n);return i.map(n=>pz(n)?C(n):n)}function Nz(){let t=C(gx,{optional:!0,skipSelf:!0}),e=C(sC,{self:!0});if(!(e.length===1&&e[0].length===0)&&t)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}var ne="primary",gc=Symbol("RouteTitle"),dC=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function Io(t){return new dC(t)}function Pz(t,e,i){let n=i.path.split("/");if(n.length>t.length||i.pathMatch==="full"&&(e.hasChildren()||n.length<t.length))return null;let r={};for(let s=0;s<n.length;s++){let o=n[s],a=t[s];if(o.startsWith(":"))r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:r}}function Fz(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(!pr(t[i],e[i]))return!1;return!0}function pr(t,e){let i=t?fC(t):void 0,n=e?fC(e):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let s=0;s<i.length;s++)if(r=i[s],!Tx(t[r],e[r]))return!1;return!0}function fC(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Tx(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let i=[...t].sort(),n=[...e].sort();return i.every((r,s)=>n[s]===r)}else return t===e}function Ax(t){return t.length>0?t[t.length-1]:null}function Ei(t){return Ps(t)?t:co(t)?ge(Promise.resolve(t)):I(t)}var _z={exact:Mx,subset:xx},Rx={exact:Lz,subset:kz,ignored:()=>!0};function vx(t,e,i){return _z[i.paths](t.root,e.root,i.matrixParams)&&Rx[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function Lz(t,e){return pr(t,e)}function Mx(t,e,i){if(!is(t.segments,e.segments)||!ef(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Mx(t.children[n],e.children[n],i))return!1;return!0}function kz(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>Tx(t[i],e[i]))}function xx(t,e,i){return Nx(t,e,e.segments,i)}function Nx(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!is(r,i)||e.hasChildren()||!ef(r,i,n))}else if(t.segments.length===i.length){if(!is(t.segments,i)||!ef(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!xx(t.children[r],e.children[r],n))return!1;return!0}else{let r=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!is(t.segments,r)||!ef(t.segments,r,n)||!t.children[ne]?!1:Nx(t.children[ne],e,s,n)}}function ef(t,e,i){return e.every((n,r)=>Rx[i](t[r].parameters,n.parameters))}var vi=class{constructor(e=new be([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Io(this.queryParams),this._queryParamMap}toString(){return $z.serialize(this)}},be=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tf(this)}},rs=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=Io(this.parameters),this._parameterMap}toString(){return Px(this)}};function jz(t,e){return is(t,e)&&t.every((i,n)=>pr(i.parameters,e[n].parameters))}function is(t,e){return t.length!==e.length?!1:t.every((i,n)=>i.path===e[n].path)}function Uz(t,e){let i=[];
vendor: 8,783 bytes, line 12
12return Object.entries(t.children).forEach(([n,r])=>{n===ne&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==ne&&(i=i.concat(e(r,n)))}),i}var as=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:()=>new ss,providedIn:"root"});let t=e;return t})(),ss=class{parse(e){let i=new pC(e);return new vi(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${rc(e.root,!0)}`,n=Hz(e.queryParams),r=typeof e.fragment=="string"?`#${Bz(e.fragment)}`:"";return`${i}${n}${r}`}},$z=new ss;function tf(t){return t.segments.map(e=>Px(e)).join("/")}function rc(t,e){if(!t.hasChildren())return tf(t);if(e){let i=t.children[ne]?rc(t.children[ne],!1):"",n=[];return Object.entries(t.children).forEach(([r,s])=>{r!==ne&&n.push(`${r}:${rc(s,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=Uz(t,(n,r)=>r===ne?[rc(t.children[ne],!1)]:[`${r}:${rc(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[ne]!=null?`${tf(t)}/${i[0]}`:`${tf(t)}/(${i.join("//")})`}}function Ox(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jd(t){return Ox(t).replace(/%3B/gi,";")}function Bz(t){return encodeURI(t)}function hC(t){return Ox(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function nf(t){return decodeURIComponent(t)}function yx(t){return nf(t.replace(/\+/g,"%20"))}function Px(t){return`${hC(t.path)}${Vz(t.parameters)}`}function Vz(t){return Object.entries(t).map(([e,i])=>`;${hC(e)}=${hC(i)}`).join("")}function Hz(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${Jd(i)}=${Jd(r)}`).join("&"):`${Jd(i)}=${Jd(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var zz=/^[^\/()?;#]+/;function aC(t){let e=t.match(zz);return e?e[0]:""}var Gz=/^[^\/()?;=#]+/;function Wz(t){let e=t.match(Gz);return e?e[0]:""}var qz=/^[^=?&#]+/;function Yz(t){let e=t.match(qz);return e?e[0]:""}var Kz=/^[^&#]+/;function Zz(t){let e=t.match(Kz);return e?e[0]:""}var pC=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new be([],{}):new be([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(n[ne]=new be(e,i)),n}parseSegment(){let e=aC(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new L(4009,!1);return this.capture(e),new rs(nf(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=Wz(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=aC(this.remaining);r&&(n=r,this.capture(n))}e[nf(i)]=nf(n)}parseQueryParam(e){let i=Yz(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let o=Zz(this.remaining);o&&(n=o,this.capture(n))}let r=yx(i),s=yx(n);if(e.hasOwnProperty(r)){let o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=aC(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new L(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=ne);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[ne]:new be([],o),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new L(4011,!1)}};function Fx(t){return t.segments.length>0?new be([],{[ne]:t}):t}function _x(t){let e={};for(let[n,r]of Object.entries(t.children)){let s=_x(r);if(n===ne&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[n]=s)}let i=new be(t.segments,e);return Qz(i)}function Qz(t){if(t.numberOfChildren===1&&t.children[ne]){let e=t.children[ne];return new be(t.segments.concat(e.segments),e.children)}return t}function Do(t){return t instanceof vi}function Jz(t,e,i=null,n=null){let r=Lx(t);return kx(r,e,i,n)}function Lx(t){let e;function i(s){let o={};for(let c of s.children){let u=i(c);o[c.outlet]=u}let a=new be(s.url,o);return s===t&&(e=a),a}let n=i(t.root),r=Fx(n);return e??r}function kx(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return cC(r,r,r,i,n);let s=Xz(e);if(s.toRoot())return cC(r,r,new be([],{}),i,n);let o=eG(s,r,t),a=o.processChildren?oc(o.segmentGroup,o.index,s.commands):Ux(o.segmentGroup,o.index,s.commands);return cC(r,o.segmentGroup,a,i,n)}function rf(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function uc(t){return typeof t=="object"&&t!=null&&t.outlets}function cC(t,e,i,n,r){let s={};n&&Object.entries(n).forEach(([c,u])=>{s[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let o;t===e?o=i:o=jx(t,e,i);let a=Fx(_x(o));return new vi(a,s,r)}function jx(t,e,i){let n={};return Object.entries(t.children).forEach(([r,s])=>{s===e?n[r]=i:n[r]=jx(s,e,i)}),new be(t.segments,n)}var sf=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&rf(n[0]))throw new L(4003,!1);let r=n.find(uc);if(r&&r!==Ax(n))throw new L(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Xz(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new sf(!0,0,t);let e=0,i=!1,n=t.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new sf(i,e,n)}var Co=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};function eG(t,e,i){if(t.isAbsolute)return new Co(e,!0,0);if(!i)return new Co(e,!1,NaN);if(i.parent===null)return new Co(i,!0,0);let n=rf(t.commands[0])?0:1,r=i.segments.length-1+n;return tG(i,r,t.numberOfDoubleDots)}function tG(t,e,i){let n=t,r=e,s=i;for(;s>r;){if(s-=r,n=n.parent,!n)throw new L(4005,!1);r=n.segments.length}return new Co(n,!1,r-s)}function nG(t){return uc(t[0])?t[0].outlets:{[ne]:t}}function Ux(t,e,i){if(t??=new be([],{}),t.segments.length===0&&t.hasChildren())return oc(t,e,i);let n=rG(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let s=new be(t.segments.slice(0,n.pathIndex),{});return s.children[ne]=new be(t.segments.slice(n.pathIndex),t.children),oc(s,0,r)}else return n.match&&r.length===0?new be(t.segments,{}):n.match&&!t.hasChildren()?gC(t,e,i):n.match?oc(t,0,r):gC(t,e,i)}function oc(t,e,i){if(i.length===0)return new be(t.segments,{});{let n=nG(i),r={};if(Object.keys(n).some(s=>s!==ne)&&t.children[ne]&&t.numberOfChildren===1&&t.children[ne].segments.length===0){let s=oc(t.children[ne],e,i);return new be(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=Ux(t.children[s],e,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(r[s]=o)}),new be(t.segments,r)}}function rG(t,e,i){let n=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(n>=i.length)return s;let o=t.segments[r],a=i[n];if(uc(a))break;let c=`${a}`,u=n<i.length-1?i[n+1]:null;if(r>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Cx(c,u,o))return s;n+=2}else{if(!Cx(c,{},o))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function gC(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r<i.length;){let s=i[r];if(uc(s)){let c=iG(s.outlets);return new be(n,c)}if(r===0&&rf(i[0])){let c=t.segments[e];n.push(new rs(c.path,Ex(i[0]))),r++;continue}let o=uc(s)?s.outlets[ne]:`${s}`,a=r<i.length-1?i[r+1]:null;o&&a&&rf(a)?(n.push(new rs(o,Ex(a))),r+=2):(n.push(new rs(o,{})),r++)}return new be(n,{})}function iG(t){let e={};return Object.entries(t).forEach(([i,n])=>
12{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=gC(new be([],{}),0,n))}),e}function Ex(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function Cx(t,e,i){return t==i.path&&pr(e,i.parameters)}var ac="imperative",ct=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(ct||{}),Cn=class{constructor(e,i){this.id=e,this.url=i}},Sn=class extends Cn{constructor(e,i,n="imperative",r=null){super(e,i),this.type=ct.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},at=class extends Cn{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=ct.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},un=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(un||{}),of=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(of||{}),In=class extends Cn{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=ct.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},yi=class extends Cn{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=ct.NavigationSkipped}},gr=class extends Cn{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=ct.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},os=class extends Cn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=ct.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mC=class extends Cn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=ct.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vC=class extends Cn{constructor(e,i,n,r,s){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s,this.type=ct.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},yC=class extends Cn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=ct.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},EC=class extends Cn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=ct.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},CC=class{constructor(e){this.route=e,this.type=ct.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},SC=class{constructor(e){this.route=e,this.type=ct.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},IC=class{constructor(e){this.snapshot=e,this.type=ct.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},DC=class{constructor(e){this.snapshot=e,this.type=ct.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bC=class{constructor(e){this.snapshot=e,this.type=ct.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wC=class{constructor(e){this.snapshot=e,this.type=ct.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},af=class{constructor(e,i,n){this.routerEvent=e,this.position=i,this.anchor=n,this.type=ct.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},lc=class{},dc=class{constructor(e){this.url=e}};var TC=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new mc,this.attachRef=null}},mc=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){let s=this.getOrCreateContext(n);s.outlet=r,this.contexts.set(n,s)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new TC,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),cf=class{constructor(e){this._root=e}get root(){return this._root.value}
12parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=AC(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=AC(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=RC(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return RC(e,this._root).map(i=>i.value)}};function AC(t,e){if(t===e.value)return e;for(let i of e.children){let n=AC(t,i);if(n)return n}return null}function RC(t,e){if(t===e.value)return[e];for(let i of e.children){let n=RC(t,i);if(n.length)return n.unshift(e),n}return[]}var cn=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function Eo(t){let e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}var uf=class extends cf{constructor(e,i){super(e),this.snapshot=i,jC(this,e)}toString(){return this.snapshot.toString()}};function $x(t){let e=sG(t),i=new Ae([new rs("",{})]),n=new Ae({}),r=new Ae({}),s=new Ae({}),o=new Ae(""),a=new Br(i,n,s,o,r,ne,t,e.root);return a.snapshot=e.root,new uf(new cn(a,[]),e)}function sG(t){let e={},i={},n={},r="",s=new fc([],e,n,r,i,ne,t,null,{});return new lf("",new cn(s,[]))}var Br=class{constructor(e,i,n,r,s,o,a,c){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(E(u=>u[gc]))??I(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(E(e=>Io(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(E(e=>Io(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function kC(t,e,i="emptyOnly"){let n,{routeConfig:r}=t;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:v(v({},e.params),t.params),data:v(v({},e.data),t.data),resolve:v(v(v(v({},t.data),e.data),r?.data),t._resolvedData)}:n={params:v({},t.params),data:v({},t.data),resolve:v(v({},t.data),t._resolvedData??{})},r&&Vx(r)&&(n.resolve[gc]=r.title),n}var fc=class{get title(){return this.data?.[gc]}constructor(e,i,n,r,s,o,a,c,u){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Io(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Io(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},lf=class extends cf{constructor(e,i){super(i),this.url=e,jC(this,i)}toString(){return Bx(this._root)}};function jC(t,e){e.value._routerState=t,e.children.forEach(i=>jC(t,i))}function Bx(t){let e=t.children.length>0?` { ${t.children.map(Bx).join(", ")} } `:"";return`${t.value}${e}`}function uC(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,pr(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),pr(e.params,i.params)||t.paramsSubject.next(i.params),Fz(e.url,i.url)||t.urlSubject.next(i.url),pr(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function MC(t,e){let i=pr(t.params,e.params)&&jz(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||MC(t.parent,e.parent))}function Vx(t){return typeof t.title=="string"||t.title===null}var oG=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=ne,this.activateEvents=new ht,this.deactivateEvents=new ht,this.attachEvents=new ht,this.detachEvents=new ht,this.parentContexts=C(mc),this.location=C(on),this.changeDetector=C(lr),this.environmentInjector=C(Mt),this.inputBinder=C(gf,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:s}=n.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new L(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new L(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new L(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new L(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new xC(n,c,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:u,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Lt({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ki]});let t=e;return t})(),xC=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,i,n){this.route=e,this.childContexts=i,this.parent=n}get(e,i){return e===Br?this.route:e===mc?this.childContexts:this.parent.get(e,i)}},gf=new S(""),Sx=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,s=Ve([r.queryParams,r.params,r.data]).pipe(M(([o,a,c],u)=>(c=v(v(v({},o),a),c),u===0?I(c):Promise.resolve(c)))).subscribe(o=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let a=LR(r.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,o[c])});this.outletDataSubscriptions.set(n,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})();
vendor: 5,295 bytes, line 12
12function aG(t,e,i){let n=hc(t,e._root,i?i._root:void 0);return new uf(n,e)}function hc(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=e.value;let r=cG(t,e,i);return new cn(n,r)}else{if(t.shouldAttach(e.value)){let s=t.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>hc(t,a)),o}}let n=uG(e.value),r=e.children.map(s=>hc(t,s));return new cn(n,r)}}function cG(t,e,i){return e.children.map(n=>{for(let r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return hc(t,n,r);return hc(t,n)})}function uG(t){return new Br(new Ae(t.url),new Ae(t.params),new Ae(t.queryParams),new Ae(t.fragment),new Ae(t.data),t.outlet,t.component,t)}var Hx="ngNavigationCancelingError";function zx(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=Do(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=Gx(!1,un.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function Gx(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[Hx]=!0,i.cancellationCode=e,i}function lG(t){return Wx(t)&&Do(t.url)}function Wx(t){return!!t&&t[Hx]}var dG=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=tT({type:e,selectors:[["ng-component"]],standalone:!0,features:[SR],decls:1,vars:0,template:function(r,s){r&1&&nE(0,"router-outlet")},dependencies:[oG],encapsulation:2});let t=e;return t})();function fG(t,e){return t.providers&&!t._injector&&(t._injector=vd(t.providers,e,`Route: ${t.path}`)),t._injector??e}function UC(t){let e=t.children&&t.children.map(UC),i=e?T(v({},t),{children:e}):v({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==ne&&(i.component=dG),i}function mr(t){return t.outlet||ne}function hG(t,e){let i=t.filter(n=>mr(n)===e);return i.push(...t.filter(n=>mr(n)!==e)),i}function vc(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var pG=(t,e,i,n)=>E(r=>(new NC(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),NC=class{constructor(e,i,n,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),uC(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){let r=Eo(i);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],n),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,i,o.children)}else this.deactivateChildRoutes(e,i,n);else s&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,s=Eo(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);if(n&&n.outlet){let o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,s=Eo(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){let r=Eo(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],n),this.forwardEvent(new wC(s.value.snapshot))}),e.children.length&&this.forwardEvent(new DC(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(uC(r),r===s)if(r.component){let o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,o.children)}else this.activateChildRoutes(e,i,n);else if(r.component){let o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),uC(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=vc(r.snapshot);o.attachRef=null,o.route=r,o.injector=a,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}},df=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},So=class{constructor(e,i){this.component=e,this.route=i}};function gG(t,e,i){let n=t._root,r=e?e._root:null;return ic(n,r,i,[n.value])}function mG(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function wo(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!H0(t)?t:e.get(t):n}function ic(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=Eo(e);
12return t.children.forEach(o=>{vG(o,s[o.value.outlet],i,n.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>cc(a,i.getContext(o),r)),r}function vG(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let c=yG(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new df(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?ic(t,e,a?a.children:null,n,r):ic(t,e,i,n,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new So(a.outlet.component,o))}else o&&cc(e,a,r),r.canActivateChecks.push(new df(n)),s.component?ic(t,null,a?a.children:null,n,r):ic(t,null,i,n,r);return r}function yG(t,e,i){if(typeof i=="function")return i(t,e);switch(i){case"pathParamsChange":return!is(t.url,e.url);case"pathParamsOrQueryParamsChange":return!is(t.url,e.url)||!pr(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!MC(t,e)||!pr(t.queryParams,e.queryParams);case"paramsChange":default:return!MC(t,e)}}function cc(t,e,i){let n=Eo(t),r=t.value;Object.entries(n).forEach(([s,o])=>{r.component?e?cc(o,e.children.getContext(s),i):cc(o,null,i):cc(o,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new So(e.outlet.component,r)):i.canDeactivateChecks.push(new So(null,r)):i.canDeactivateChecks.push(new So(null,r))}function yc(t){return typeof t=="function"}function EG(t){return typeof t=="boolean"}function CG(t){return t&&yc(t.canLoad)}function SG(t){return t&&yc(t.canActivate)}function IG(t){return t&&yc(t.canActivateChild)}function DG(t){return t&&yc(t.canDeactivate)}function bG(t){return t&&yc(t.canMatch)}function qx(t){return t instanceof Zt||t?.name==="EmptyError"}var Xd=Symbol("INITIAL_VALUE");function bo(){return M(t=>Ve(t.map(e=>e.pipe(le(1),An(Xd)))).pipe(E(e=>{for(let i of e)if(i!==!0){if(i===Xd)return Xd;if(i===!1||i instanceof vi)return i}return!0}),N(e=>e!==Xd),le(1)))}function wG(t,e){return q(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?I(T(v({},i),{guardsResult:!0})):TG(o,n,r,t).pipe(q(a=>a&&EG(a)?AG(n,s,t,e):I(a)),E(a=>T(v({},i),{guardsResult:a})))})}function TG(t,e,i,n){return ge(t).pipe(q(r=>OG(r.component,r.route,i,e,n)),Ft(r=>r!==!0,!0))}function AG(t,e,i,n){return ge(e).pipe(rt(r=>Qn(MG(r.route.parent,n),RG(r.route,n),NG(t,r.path,i),xG(t,r.route,i))),Ft(r=>r!==!0,!0))}function RG(t,e){return t!==null&&e&&e(new bC(t)),I(!0)}function MG(t,e){return t!==null&&e&&e(new IC(t)),I(!0)}function xG(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return I(!0);let r=n.map(s=>We(()=>{let o=vc(e)??i,a=wo(s,o),c=SG(a)?a.canActivate(e,t):On(o,()=>a(e,t));return Ei(c).pipe(Ft())}));return I(r).pipe(bo())}function NG(t,e,i){let n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>mG(o)).filter(o=>o!==null).map(o=>We(()=>{let a=o.guards.map(c=>{let u=vc(o.node)??i,l=wo(c,u),d=IG(l)?l.canActivateChild(n,t):On(u,()=>l(n,t));return Ei(d).pipe(Ft())});return I(a).pipe(bo())}));return I(s).pipe(bo())}function OG(t,e,i,n,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return I(!0);let o=s.map(a=>{let c=vc(e)??r,u=wo(a,c),l=DG(u)?u.canDeactivate(t,e,i,n):On(c,()=>u(t,e,i,n));return Ei(l).pipe(Ft())});return I(o).pipe(bo())}function PG(t,e,i,n){let r=e.canLoad;if(r===void 0||r.length===0)return I(!0);let s=r.map(o=>{let a=wo(o,t),c=CG(a)?a.canLoad(e,i):On(t,()=>a(e,i));return Ei(c)});return I(s).pipe(bo(),Yx(n))}function Yx(t){return ea(j(e=>{if(Do(e))throw zx(t,e)}),E(e=>e===!0))}function FG(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return I(!0);let s=r.map(o=>{let a=wo(o,t),c=bG(a)?a.canMatch(e,i):On(t,()=>a(e,i));return Ei(c)});return I(s).pipe(bo(),Yx(n))}var pc=class{constructor(e){this.segmentGroup=e||null}},ff=class extends Error{constructor(e){super(),this.urlTree=e}};function yo(t){return Pt(new pc(t))}function _G(t){return Pt(new L(4e3,!1))}function LG(t){return Pt(Gx(!1,un.GuardRejected))}
12var OC=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return I(n);if(r.numberOfChildren>1||!r.children[ne])return _G(e.redirectTo);r=r.children[ne]}}applyRedirectCommands(e,i,n){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i.startsWith("/"))throw new ff(r);return r}applyRedirectCreateUrlTree(e,i,n,r){let s=this.createSegmentGroup(e,i.root,n,r);return new vi(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let n={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);n[r]=i[a]}else n[r]=s}),n}createSegmentGroup(e,i,n,r){let s=this.createSegments(e,i.segments,n,r),o={};return Object.entries(i.children).forEach(([a,c])=>{o[a]=this.createSegmentGroup(e,c,n,r)}),new be(s,o)}createSegments(e,i,n,r){return i.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,r):this.findOrReturn(s,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new L(4001,!1);return r}findOrReturn(e,i){let n=0;for(let r of i){if(r.path===e.path)return i.splice(n),r;n++}return e}},PC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function kG(t,e,i,n,r){let s=$C(t,e,i);return s.matched?(n=fG(e,n),FG(n,e,i,r).pipe(E(o=>o===!0?s:v({},PC)))):I(s)}function $C(t,e,i){if(e.path==="**")return jG(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?v({},PC):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Pz)(i,t,e);if(!r)return v({},PC);let s={};Object.entries(r.posParams??{}).forEach(([a,c])=>{s[a]=c.path});let o=r.consumed.length>0?v(v({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function jG(t){return{matched:!0,parameters:t.length>0?Ax(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Ix(t,e,i,n){return i.length>0&&BG(t,i,n)?{segmentGroup:new be(e,$G(n,new be(i,t.children))),slicedSegments:[]}:i.length===0&&VG(t,i,n)?{segmentGroup:new be(t.segments,UG(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new be(t.segments,t.children),slicedSegments:i}}function UG(t,e,i,n){let r={};for(let s of i)if(mf(t,e,s)&&!n[mr(s)]){let o=new be([],{});r[mr(s)]=o}return v(v({},n),r)}function $G(t,e){let i={};i[ne]=e;for(let n of t)if(n.path===""&&mr(n)!==ne){let r=new be([],{});i[mr(n)]=r}return i}function BG(t,e,i){return i.some(n=>mf(t,e,n)&&mr(n)!==ne)}function VG(t,e,i){return i.some(n=>mf(t,e,n))}function mf(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function HG(t,e,i,n){return mr(t)!==n&&(n===ne||!mf(e,i,t))?!1:$C(e,t,i).matched}function zG(t,e,i){return e.length===0&&!t.children[i]}var FC=class{};function GG(t,e,i,n,r,s,o="emptyOnly"){return new _C(t,e,i,n,r,o,s).recognize()}var WG=31,_C=class{constructor(e,i,n,r,s,o,a){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new OC(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new L(4002,`'${e.segmentGroup}'`)}recognize(){let e=Ix(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(E(i=>{let n=new fc([],Object.freeze({}),Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,{},ne,this.rootComponentType,null,{}),r=new cn(n,i),s=new lf("",r),o=Jz(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,ne).pipe(F(n=>{if(n instanceof ff)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof pc?this.noMatchError(n):n}))}inheritParamsAndData(e,i){let n=e.value,r=kC(n,i,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEac
12h(s=>this.inheritParamsAndData(s,n))}processSegmentGroup(e,i,n,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n):this.processSegment(e,i,n,n.segments,r,!0).pipe(E(s=>s instanceof cn?[s]:[]))}processChildren(e,i,n){let r=[];for(let s of Object.keys(n.children))s==="primary"?r.unshift(s):r.push(s);return ge(r).pipe(rt(s=>{let o=n.children[s],a=hG(i,s);return this.processSegmentGroup(e,a,o,s)}),Fi((s,o)=>(s.push(...o),s)),ni(null),Im(),q(s=>{if(s===null)return yo(n);let o=Kx(s);return qG(o),I(o)}))}processSegment(e,i,n,r,s,o){return ge(i).pipe(rt(a=>this.processSegmentAgainstRoute(a._injector??e,i,a,n,r,s,o).pipe(F(c=>{if(c instanceof pc)return I(null);throw c}))),Ft(a=>!!a),F(a=>{if(qx(a))return zG(n,r,s)?I(new FC):yo(n);throw a}))}processSegmentAgainstRoute(e,i,n,r,s,o,a){return HG(n,r,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,s,o):yo(r):yo(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,s,o){let{matched:a,consumedSegments:c,positionalParamSegments:u,remainingSegments:l}=$C(i,r,s);if(!a)return yo(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>WG&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,u);return this.applyRedirects.lineralizeSegments(r,d).pipe(q(h=>this.processSegment(e,n,i,h.concat(l),o,!1)))}matchSegmentAgainstRoute(e,i,n,r,s){let o=kG(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),o.pipe(M(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(M(({routes:c})=>{let u=n._loadedInjector??e,{consumedSegments:l,remainingSegments:d,parameters:h}=a,p=new fc(l,h,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,KG(n),mr(n),n.component??n._loadedComponent??null,n,ZG(n)),{segmentGroup:y,slicedSegments:D}=Ix(i,l,d,c);if(D.length===0&&y.hasChildren())return this.processChildren(u,c,y).pipe(E(R=>R===null?null:new cn(p,R)));if(c.length===0&&D.length===0)return I(new cn(p,[]));let w=mr(n)===s;return this.processSegment(u,c,y,D,w?ne:s,!0).pipe(E(R=>new cn(p,R instanceof cn?[R]:[])))}))):yo(i)))}getChildConfig(e,i,n){return i.children?I({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?I({routes:i._loadedRoutes,injector:i._loadedInjector}):PG(e,i,n,this.urlSerializer).pipe(q(r=>r?this.configLoader.loadChildren(e,i).pipe(j(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):LG(i))):I({routes:[],injector:e})}};function qG(t){t.sort((e,i)=>e.value.outlet===ne?-1:i.value.outlet===ne?1:e.value.outlet.localeCompare(i.value.outlet))}function YG(t){let e=t.value.routeConfig;return e&&e.path===""}function Kx(t){let e=[],i=new Set;for(let n of t){if(!YG(n)){e.push(n);continue}let r=e.find(s=>n.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):e.push(n)}for(let n of i){let r=Kx(n.children);e.push(new cn(n.value,r))}return e.filter(n=>!i.has(n))}function KG(t){return t.data||{}}function ZG(t){return t.resolve||{}}function QG(t,e,i,n,r,s){return q(o=>GG(t,e,i,n,o.extractedUrl,r,s).pipe(E(({state:a,tree:c})=>T(v({},o),{targetSnapshot:a,urlAfterRedirects:c}))))}function JG(t,e){return q(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return I(i);let s=new Set(r.map(c=>c.route)),o=new Set;for(let c of s)if(!o.has(c))for(let u of Zx(c))o.add(u);let a=0;return ge(o).pipe(rt(c=>s.has(c)?XG(c,n,t,e):(c.data=kC(c,c.parent,t).resolve,I(void 0))),j(()=>a++),Ls(1),q(c=>a===o.size?I(i):ve))})}function Zx(t){let e=t.children.map(i=>Zx(i)).flat();return[t,...e]}function XG(t,e,i,n){let r=t.routeConfig,s=t._resolve;return r?.title!==void 0&&!Vx(r)&&(s[gc]=r.title),e8(s,t,e,n).pipe(E(o=>(t._resolvedData=o,t.data=kC(t,t.parent,i).resolve,null)))}function e8(t,e,i,n){let r=fC(t);if(r.length===0)return I({});let s={};return ge(r).pipe(q(o=>t8(t[o],e,i,n).pipe(Ft(),j(a=>{s[o]=a}))),Ls(1),ua(s),F(o=>qx(o)?ve:Pt(o)))}function t8(t,e,i,n){let r=vc(e)??n,s=wo(t,r),o=s.resolve?s.resolve(e,i):On(r,()=>s(e,i));return Ei(o)}function lC(t){return M(e=>{let i=t(e);return i?ge(i).pipe(E(()=>e)):I(e)})}var Qx=(()=>{let e=class e{buildTitle(n){let r,s=n.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===ne);return r}getResolvedTitleForRoute(n){return n.data[gc]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:()=>C(n8),providedIn:"root"});let t=e;return t})(),n8=(()=>{let e=class e extends Qx{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(f(xM))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ec=new S("",{providedIn:"root",factory:()=>({})}),hf=new S(""),BC=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=C(uo)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return I(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Ei(n.loadComponent()).pipe(E(Jx),j(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),wn(()=>{this.componentLoaders.delete(n)})),s=new Xr(r,()=>new oe).pipe(Ns());return this.componentLoaders.set(n,s),s}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return I({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=r8(r,this.compiler,n,this.onLoadEndListener).pipe(wn(()=>{this.childrenLoaders.delete(r)})),a=new Xr(o,()=>new oe).pipe(Ns());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function r8(t,e,i,n){return Ei(t.loadChildren()).pipe(E(Jx),q(r=>r instanceof Wi||Array.isArray(r)?I(r):ge(e.compileModuleAsync(r))),E(r=>{n&&n(t);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(i).injector,o=s.get(hf,[],{optional:!0,self:!0}).flat()),{routes:o.map(UC),injector:s}}
12))}function i8(t){return t&&typeof t=="object"&&"default"in t}function Jx(t){return i8(t)?t.default:t}var VC=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:()=>C(s8),providedIn:"root"});let t=e;return t})(),s8=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Xx=new S(""),eN=new S("");function o8(t,e,i){let n=t.get(eN),r=t.get(Ue);return t.get(ye).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let s,o=new Promise(u=>{s=u}),a=r.startViewTransition(()=>(s(),a8(t))),{onViewTransitionCreated:c}=n;return c&&On(t,()=>c({transition:a,from:e,to:i})),o})}function a8(t){return new Promise(e=>{md(e,{injector:t})})}var HC=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new oe,this.transitionAbortSubject=new oe,this.configLoader=C(BC),this.environmentInjector=C(Mt),this.urlSerializer=C(as),this.rootContexts=C(mc),this.location=C(fr),this.inputBindingEnabled=C(gf,{optional:!0})!==null,this.titleStrategy=C(Qx),this.options=C(Ec,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=C(VC),this.createViewTransition=C(Xx,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>I(void 0),this.rootComponentType=null;let n=s=>this.events.next(new CC(s)),r=s=>this.events.next(new SC(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(T(v(v({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,s){return this.transitions=new Ae({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ac,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(N(o=>o.id!==0),E(o=>T(v({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),M(o=>{let a=!1,c=!1;return I(o).pipe(M(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",un.SupersededByNewNavigation),ve;this.currentTransition=o,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?T(v({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let h="";return this.events.next(new yi(u.id,this.urlSerializer.serialize(u.rawUrl),h,of.IgnoredSameUrlNavigation)),u.resolve(null),ve}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return I(u).pipe(M(h=>{let p=this.transitions?.getValue();return this.events.next(new Sn(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),p!==this.transitions?.getValue()?ve:Promise.resolve(h)}),QG(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),j(h=>{o.targetSnapshot=h.targetSnapshot,o.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=T(v({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let p=new os(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(p)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:h,extractedUrl:p,source:y,restoredState:D,extras:w}=u,R=new Sn(h,this.urlSerializer.serialize(p),y,D);this.events.next(R);let $=$x(this.rootComponentType).snapshot;return this.currentTransition=o=T(v({},u),{targetSnapshot:$,urlAfterRedirects:p,extras:T(v({},w),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=p,I(o)}else{let h="";return this.events.next(new yi(u.id,this.urlSerializer.serialize(u.extractedUrl),h,of.IgnoredByUrlHandlingStrategy)),u.resolve(null),ve}}
12),j(u=>{let l=new mC(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),E(u=>(this.currentTransition=o=T(v({},u),{guards:gG(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),wG(this.environmentInjector,u=>this.events.next(u)),j(u=>{if(o.guardsResult=u.guardsResult,Do(u.guardsResult))throw zx(this.urlSerializer,u.guardsResult);let l=new vC(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),N(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",un.GuardRejected),!1)),lC(u=>{if(u.guards.canActivateChecks.length)return I(u).pipe(j(l=>{let d=new yC(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),M(l=>{let d=!1;return I(l).pipe(JG(this.paramsInheritanceStrategy,this.environmentInjector),j({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",un.NoDataFromResolver)}}))}),j(l=>{let d=new EC(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),lC(u=>{let l=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(j(p=>{d.component=p}),E(()=>{})));for(let p of d.children)h.push(...l(p));return h};return Ve(l(u.targetSnapshot.root)).pipe(ni(null),le(1))}),lC(()=>this.afterPreactivation()),M(()=>{let{currentSnapshot:u,targetSnapshot:l}=o,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?ge(d).pipe(E(()=>o)):I(o)}),E(u=>{let l=aG(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=T(v({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),j(()=>{this.events.next(new lc)}),pG(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),le(1),j({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new at(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),_i(this.transitionAbortSubject.pipe(j(u=>{throw u}))),wn(()=>{!a&&!c&&this.cancelNavigationTransition(o,"",un.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),F(u=>{if(c=!0,Wx(u))this.events.next(new In(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),lG(u)?this.events.next(new dc(u.url)):o.resolve(!1);else{this.events.next(new gr(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0));try{o.resolve(n.errorHandler(u))}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return ve}))}))}cancelNavigationTransition(n,r,s){let o=new In(n.id,this.urlSerializer.serialize(n.extractedUrl),r,s);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function c8(t){return t!==ac}var u8=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:()=>C(l8),providedIn:"root"});let t=e;return t})(),LC=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},l8=(()=>{let e=class e extends LC{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),tN=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:()=>C(d8),providedIn:"root"});let t=e;return t})(),d8=(()=>{let e=class e extends tN{constructor(){super(...arguments),this.location=C(fr),this.urlSerializer
12=C(as),this.options=C(Ec,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=C(VC),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new vi,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=$x(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Sn)this.stateMemento=this.createStateMemento();else if(n instanceof yi)this.rawUrlTree=r.initialUrl;else if(n instanceof os){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else n instanceof lc?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof In&&(n.code===un.GuardRejected||n.code===un.NoDataFromResolver)?this.restoreHistory(r):n instanceof gr?this.restoreHistory(r,!0):n instanceof at&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let s=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let o=this.browserPageId,a=v(v({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(s,"",a)}else{let o=v(v({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),sc=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(sc||{});function nN(t,e){t.events.pipe(N(i=>i instanceof at||i instanceof In||i instanceof gr||i instanceof yi),E(i=>i instanceof at||i instanceof yi?sc.COMPLETE:(i instanceof In?i.code===un.Redirect||i.code===un.SupersededByNewNavigation:!1)?sc.REDIRECTING:sc.FAILED),N(i=>i!==sc.REDIRECTING),le(1)).subscribe(()=>{e()})}function f8(t){throw t}var h8={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},p8={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ke=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=C(Ed),this.stateManager=C(tN),this.options=C(Ec,{optional:!0})||{},this.pendingTasks=C(fi),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=C(HC),this.urlSerializer
12=C(as),this.location=C(fr),this.urlHandlingStrategy=C(VC),this._events=new oe,this.errorHandler=this.options.errorHandler||f8,this.navigated=!1,this.routeReuseStrategy=C(u8),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=C(hf,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!C(gf,{optional:!0}),this.eventsSubscription=new Ce,this.isNgZoneEnabled=C(ye)instanceof ye&&ye.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof In&&r.code!==un.Redirect&&r.code!==un.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof at)this.navigated=!0;else if(r instanceof dc){let a=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||c8(s.source)};this.scheduleNavigation(a,ac,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}m8(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ac,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let u=v({},s);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(UC),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:u}=r,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=v(v({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let p=s?s.snapshot:this.routerState.snapshot.root;h=Lx(p)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),h=this.currentUrlTree.root}return kx(h,n,d,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){let s=Do(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,ac,null,r)}navigate(n,r={skipLocationChange:!1}){return g8(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let s;if(r===!0?s=v({},h8):r===!1?s=v({},p8):s=r,Do(n))return vx(this.currentUrlTree,n,s);let o=this.parseUrl(n);return vx(this.currentUrlTree,o,s)}removeEmptyProps(n){return Object.entries(n).reduce((r,[s,o])=>(o!=null&&(r[s]=o),r),{})}scheduleNavigation(n,r,s,o,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((h,p)=>{c=h,u=p});let d=this.pendingTasks.add();return nN(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function g8(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new L(4008,!1)}function m8(t){return!(t instanceof lc)&&!(t instanceof dc)}var Dx=(()=>{let e=class e{constructor(n,r,s,o,a,c){this.router=n,this.route=r,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new oe,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof at&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,s,o,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||r||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:uA(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}
12applyAttributeValue(n,r){let s=this.renderer,o=this.el.nativeElement;r!==null?s.setAttribute(o,n,r):s.removeAttribute(o,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)(Q(ke),Q(Br),nd("tabindex"),Q(Ji),Q(Fn),Q(jr))},e.\u0275dir=Lt({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,s){r&1&&rE("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Xy("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[mn.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Ha],skipLocationChange:[mn.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Ha],replaceUrl:[mn.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Ha],routerLink:"routerLink"},standalone:!0,features:[Zy,Ki]});let t=e;return t})(),Mce=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,r,s,o,a){this.router=n,this.element=r,this.renderer=s,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ht,this.routerEventsSubscription=n.events.subscribe(c=>{c instanceof at&&this.update()})}ngAfterContentInit(){I(this.links.changes,I(null)).pipe(Zn()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=ge(n).pipe(Zn()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(s=>!!s)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let r=v8(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>{let o=s.urlTree;return o?n.isActive(o,r):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(r){return new(r||e)(Q(ke),Q(Fn),Q(Ji),Q(lr),Q(Dx,8))},e.\u0275dir=Lt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,s,o){if(r&1&&mR(o,Dx,5),r&2){let a;vR(a=yR())&&(s.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ki]});let t=e;return t})();function v8(t){return!!t.paths}var pf=class{};var y8=(()=>{let e=class e{constructor(n,r,s,o,a){this.router=n,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(N(n=>n instanceof at),rt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let s=[];for(let o of r){o.providers&&!o._injector&&(o._injector=vd(o.providers,n,`Route: ${o.path}`));let a=o._injector??n,c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&s.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&s.push(this.processRoutes(c,o.children??o._loadedRoutes))}return ge(s).pipe(Zn())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let s;r.loadChildren&&r.canLoad===void 0?s=this.loader.loadChildren(n,r):s=I(null);let o=s.pipe(q(a=>a===null?I(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return ge([o,a]).pipe(Zn())}else return o}
12)}};e.\u0275fac=function(r){return new(r||e)(f(ke),f(uo),f(Mt),f(pf),f(BC))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),rN=new S(""),E8=(()=>{let e=class e{constructor(n,r,s,o,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=C(Mt),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Sn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof at?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof yi&&n.code===of.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof af&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>ft(this,null,function*(){yield new Promise(s=>{setTimeout(()=>{s()}),md(()=>{s()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new af(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){IA()},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})();function C8(t){return t.routerState.root}function Cc(t,e){return{\u0275kind:t,\u0275providers:e}}function S8(){let t=C(qe);return e=>{let i=t.get(Xi);if(e!==i.components[0])return;let n=t.get(ke),r=t.get(iN);t.get(zC)===1&&n.initialNavigation(),t.get(sN,null,ce.Optional)?.setUpPreloading(),t.get(rN,null,ce.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var iN=new S("",{factory:()=>new oe}),zC=new S("",{providedIn:"root",factory:()=>1});function I8(){return Cc(2,[{provide:zC,useValue:0},{provide:xt,multi:!0,deps:[qe],useFactory:e=>{let i=e.get(jd,Promise.resolve());return()=>i.then(()=>new Promise(n=>{let r=e.get(ke),s=e.get(iN);nN(r,()=>{n(!0)}),e.get(HC).afterPreactivation=()=>(n(!0),s.closed?I(void 0):s),r.initialNavigation()}))}}])}function D8(){return Cc(3,[{provide:xt,multi:!0,useFactory:()=>{let e=C(ke);return()=>{e.setUpLocationChangeListener()}}},{provide:zC,useValue:2}])}var sN=new S("");function b8(t){return Cc(0,[{provide:sN,useExisting:y8},{provide:pf,useExisting:t}])}function w8(){return Cc(8,[Sx,{provide:gf,useExisting:Sx}])}function T8(t){let e=[{provide:Xx,useValue:o8},{provide:eN,useValue:v({skipNextTransition:!!t?.skipInitialTransition},t)}];return Cc(9,e)}var bx=new S("ROUTER_FORROOT_GUARD"),A8=[fr,{provide:as,useClass:ss},ke,mc,{provide:Br,useFactory:C8,deps:[ke]},BC,[]],oN=(()=>{let e=class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[A8,[],{provide:hf,multi:!0,useValue:n},{provide:bx,useFactory:N8,deps:[[ke,new nn,new xa]]},{provide:Ec,useValue:r||{}},r?.useHash?M8():x8(),R8(),r?.preloadingStrategy?b8(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?O8(r):[],r?.bindToComponentInputs?w8().\u0275providers:[],r?.enableViewTransitions?T8().\u0275providers:[],P8()]}}static forChild(n){return{ngModule:e,providers:[{provide:hf,multi:!0,useValue:n}]}}};e.\u0275fac=function(r){return new(r||e)(f(bx,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function R8(){return{provide:rN,useFactory:()=>{let t=C(cM),e=C(ye),i=C(Ec),n=C(HC),r=C(as);return i.scrollOffset&&t.setOffset(i.scrollOffset),new E8(r,n,t,e,i)}}}function M8(){return{provide:jr,useClass:ZR}}function x8(){return{provide:jr,useClass:bE}}function N8(t){return"guarded"}function O8(t){return[t.initialNavigation==="disabled"?D8().\u0275providers:[],t.initialNavigation==="enabledBlocking"?I8().\u0275providers:[]]}var wx=new S("");function P8(){return[{provide:wx,useFactory:S8},{provide:Id,multi:!0,useExisting:wx}]}var vf=class{validateSignature(e){return Promise.resolve(null)}validateAtHash(e){return Promise.resolve(!0)}},yf=class{};var Sc=class{},F8=(()=>{let e=class e extends Sc{now(){return Date.now()}new(){return new Date}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})();var Ef=class{},us=class{},_8=(()=>{let e=class e{constructor(){this.data=new Map}getItem(n){return this.data.get(n)}removeItem(n){this.data.delete(n)}setItem(n,r){this.data.set(n,r)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})();var Ic=class{constructor(e){this.type=e}},jt=class extends Ic{constructor(e,i=null){super(e),this.info=i}},jn=class extends Ic{constructor(e,i=null){super(e),this.info=i}},$e=class extends Ic{constructor(e,i,n=null){super(e),this.reason=i,this.params=n}};function cN(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(e).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function uN(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var To=class{constructor(e){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=1e3*20,this.silentRefreshTimeout=1e3*20,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefresh
12IFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3*1e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=i=>{location.href=i},e&&Object.assign(this,e)}},cs=class{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}},Cf=class{};var lN=(()=>{let e=class e{getHashFragmentParams(n){let r=n||window.location.hash;if(r=decodeURIComponent(r),r.indexOf("#")!==0)return{};let s=r.indexOf("?");return s>-1?r=r.substr(s+1):r=r.substr(1),this.parseQueryString(r)}parseQueryString(n){let r={},s,o,a,c,u,l;if(n===null)return r;let d=n.split("&");for(let h=0;h<d.length;h++)s=d[h],o=s.indexOf("="),o===-1?(a=s,c=null):(a=s.substr(0,o),c=s.substr(o+1)),u=decodeURIComponent(a),l=decodeURIComponent(c),u.substr(0,1)==="/"&&(u=u.substr(1)),r[u]=l;return r}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),dN=32,L8=64,k8=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function GC(t,e,i,n,r){let s,o,a,c,u,l,d,h,p,y,D,w,R;for(;r>=64;){for(s=e[0],o=e[1],a=e[2],c=e[3],u=e[4],l=e[5],d=e[6],h=e[7],y=0;y<16;y++)D=n+y*4,t[y]=(i[D]&255)<<24|(i[D+1]&255)<<16|(i[D+2]&255)<<8|i[D+3]&255;for(y=16;y<64;y++)p=t[y-2],w=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,p=t[y-15],R=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,t[y]=(w+t[y-7]|0)+(R+t[y-16]|0);for(y=0;y<64;y++)w=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&l^~u&d)|0)+(h+(k8[y]+t[y]|0)|0)|0,R=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&o^s&a^o&a)|0,h=d,d=l,l=u,u=c+w|0,c=a,a=o,o=s,s=w+R|0;e[0]+=s,e[1]+=o,e[2]+=a,e[3]+=c,e[4]+=u,e[5]+=l,e[6]+=d,e[7]+=h,n+=64,r-=64}return n}var WC=class{constructor(){this.digestLength=dN,this.blockSize=L8,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let e=0;e<this.buffer.length;e++)this.buffer[e]=0;for(let e=0;e<this.temp.length;e++)this.temp[e]=0;this.reset()}update(e,i=e.length){if(this.finished)throw new Error("SHA256: can't update because hash was finished.");let n=0;if(this.bytesHashed+=i,this.bufferLength>0){for(;this.bufferLength<64&&i>0;)this.buffer[this.bufferLength++]=e[n++],i--;this.bufferLength===64&&(GC(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(i>=64&&(n=GC(this.temp,this.state,e,n,i),i%=64);i>0;)this.buffer[this.bufferLength++]=e[n++],i--;return this}finish(e){if(!this.finished){let i=this.bytesHashed,n=this.bufferLength,r=i/536870912|0,s=i<<3,o=i%64<56?64:128;this.buffer[n]=128;for(let a=n+1;a<o-8;a++)this.buffer[a]=0;this.buffer[o-8]=r>>>24&255,this.buffer[o-7]=r>>>16&255,this.buffer[o-6]=r>>>8&255,this.buffer[o-5]=r>>>0&255,this.buffer[o-4]=s>
12>>24&255,this.buffer[o-3]=s>>>16&255,this.buffer[o-2]=s>>>8&255,this.buffer[o-1]=s>>>0&255,GC(this.temp,this.state,this.buffer,0,o),this.finished=!0}for(let i=0;i<8;i++)e[i*4+0]=this.state[i]>>>24&255,e[i*4+1]=this.state[i]>>>16&255,e[i*4+2]=this.state[i]>>>8&255,e[i*4+3]=this.state[i]>>>0&255;return this}digest(){let e=new Uint8Array(this.digestLength);return this.finish(e),e}_saveState(e){for(let i=0;i<this.state.length;i++)e[i]=this.state[i]}_restoreState(e,i){for(let n=0;n<this.state.length;n++)this.state[n]=e[n];this.bytesHashed=i,this.finished=!1,this.bufferLength=0}};function j8(t){let e=new WC().update(t),i=e.digest();return e.clean(),i}var $ce=new Uint8Array(dN);var Sf=class{};function U8(t){if(typeof t!="string")throw new TypeError("expected string");let e=t,i=new Uint8Array(e.length);for(let n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return i}function $8(t){let e=[];for(let i=0;i<t.length;i++)e.push(String.fromCharCode(t[i]));return e.join("")}var B8=(()=>{let e=class e{calcHash(n,r){return ft(this,null,function*(){return $8(j8(U8(n)))})}toHashString2(n){let r="";for(let s of n)r+=String.fromCharCode(s);return r}toHashString(n){let r=new Uint8Array(n),s="";for(let o of r)s+=String.fromCharCode(o);return s}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),Df=(()=>{let e=class e extends To{constructor(n,r,s,o,a,c,u,l,d,h){super(),this.ngZone=n,this.http=r,this.config=a,this.urlHelper=c,this.logger=u,this.crypto=l,this.dateTimeService=h,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new oe,this.discoveryDocumentLoadedSubject=new oe,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=d,a||(a={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),o&&(this.tokenValidationHandler=o),a&&this.configure(a);try{s?this.setStorage(s):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(p){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",p)}if(this.checkLocalStorageAccessable()){let p=window?.navigator?.userAgent;(p?.includes("MSIE ")||p?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;let n="test";try{return typeof window.localStorage>"u"?!1:(localStorage.setItem(n,n),localStorage.removeItem(n),!0)}catch{return!1}}configure(n){Object.assign(this,new To,n),this.config=Object.assign({},new To,n),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(N(n=>n.type==="token_received")).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(n={},r,s=!0){let o=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe(j(a=>{a.type==="token_received"?o=!0:a.type==="logout"&&(o=!1)}),N(a=>a.type==="token_expires"&&(r==null||r==="any"||a.info===r)),Pi(1e3)).subscribe(()=>{o&&this.refreshInternal(n,s).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(n,r){return!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken():this.silentRefresh(n,r)}loadDiscoveryDocumentAndTryLogin(n=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(n))}loadDiscoveryDocumentAndLogin(n=null){return n=n||{},this.loadDiscoveryDocumentAndTryLogin(n).then(()=>{if(!this.hasValidIdToken()||!this.hasValidAccessToken()){let r=typeof n.state=="string"?n.state:"";return this.initLoginFlow(r),!1}else return!0})}debug(...n){this.showDebugInformation&&this.logger.debug(...n)}validateUrlFromDiscoveryDocument(n){let r=[],s=this.validateUrlForHttps(n),o=this.validateUrlAgainstIssuer(n);return s||r.push("https for all urls required. Also for urls received by discovery."),o||r.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),r}validateUrlForHttps(n){if(!n)return!0;let r=n.toLowerCase();return this.requireHttps===!1||(r.match(/^http:\/\/localhost($|[:/])/)||r.match(/^http:\/\/localhost($|[:/])/))&&this.requireHttps==="remoteOnly"?!0:r.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(n,r){if(!n)throw new Error(`'${r}' should not be null`);if(!this.validateUrlForHttps(n))throw new Error(`'${r}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(n){return!this.strictDiscoveryDocumentValidation||!n?!0:n.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){if(typeof window>"u"){this.debug("timer not supported on this plattform");return}(this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(N(n=>n.type==="token_received")).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){let n=this.getAccessTokenExpiration(),r=this.getAccessTokenStoredAt(),s=this.calcTimeout(r,n);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=I(new jn("token_expires","access_token")).pipe(Tn(s)).subscribe(o=>{this.ngZone.run(()=>{this.eventsSubject.next(o)})})})}setupIdTokenTimer(){let n=this.getIdTokenExpiration(),r=this.getIdTokenStoredAt(),s=this.calcTimeout(r,n);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=I(new jn("token_expires","id_token")).pipe(Tn(s)).subscribe(o=>{this.ngZone.run(()=>{this.eventsSubject.next(o)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}
12calcTimeout(n,r){let s=this.dateTimeService.now(),o=(r-n)*this.timeoutFactor-(s-n),a=Math.max(0,o),c=2147483647;return a>c?c:a}setStorage(n){this._storage=n,this.configChanged()}loadDiscoveryDocument(n=null){return new Promise((r,s)=>{if(n||(n=this.issuer||"",n.endsWith("/")||(n+="/"),n+=".well-known/openid-configuration"),!this.validateUrlForHttps(n)){s("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return}this.http.get(n).subscribe(o=>{if(!this.validateDiscoveryDocument(o)){this.eventsSubject.next(new $e("discovery_document_validation_error",null)),s("discovery_document_validation_error");return}this.loginUrl=o.authorization_endpoint,this.logoutUrl=o.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=o.grant_types_supported,this.issuer=o.issuer,this.tokenEndpoint=o.token_endpoint,this.userinfoEndpoint=o.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=o.jwks_uri,this.sessionCheckIFrameUrl=o.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(o),this.revocationEndpoint=o.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(a=>{let c={discoveryDocument:o,jwks:a},u=new jt("discovery_document_loaded",c);this.eventsSubject.next(u),r(u)}).catch(a=>{this.eventsSubject.next(new $e("discovery_document_load_error",a)),s(a)})},o=>{this.logger.error("error loading discovery document",o),this.eventsSubject.next(new $e("discovery_document_load_error",o)),s(o)})})}loadJwks(){return new Promise((n,r)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(s=>{this.jwks=s,n(s)},s=>{this.logger.error("error loading jwks",s),this.eventsSubject.next(new $e("jwks_load_error",s)),r(s)}):n(null)})}validateDiscoveryDocument(n){let r;return!this.skipIssuerCheck&&n.issuer!==this.issuer?(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+n.issuer),!1):(r=this.validateUrlFromDiscoveryDocument(n.authorization_endpoint),r.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(n.end_session_endpoint),r.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(n.token_endpoint),r.length>0&&this.logger.error("error validating token_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(n.revocation_endpoint),r.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",r),r=this.validateUrlFromDiscoveryDocument(n.userinfo_endpoint),r.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",r),!1):(r=this.validateUrlFromDiscoveryDocument(n.jwks_uri),r.length>0?(this.logger.error("error validating jwks_uri in discovery document",r),!1):(this.sessionChecksEnabled&&!n.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)))))}fetchTokenUsingPasswordFlowAndLoadUserProfile(n,r,s=new fe){return this.fetchTokenUsingPasswordFlow(n,r,s).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((n,r)=>{let s=new fe().set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:s,observe:"response",responseType:"text"}).subscribe(o=>{if(this.debug("userinfo received",JSON.stringify(o)),o.headers.get("content-type").startsWith("application/json")){let a=JSON.parse(o.body),c=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!c.sub||a.sub!==c.sub)){r(`if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc. 13if you are not using oidc but just oauth2 password flow set oidc to fal
13se`);return}a=Object.assign({},c,a),this._storage.setItem("id_token_claims_obj",JSON.stringify(a)),this.eventsSubject.next(new jt("user_profile_loaded")),n({info:a})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new jt("user_profile_loaded")),n(JSON.parse(o.body))},o=>{this.logger.error("error loading user info",o),this.eventsSubject.next(new $e("user_profile_load_error",o)),r(o)})})}fetchTokenUsingPasswordFlow(n,r,s=new fe){let o={username:n,password:r};return this.fetchTokenUsingGrant("password",o,s)}fetchTokenUsingGrant(n,r,s=new fe){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let o=new ze({encoder:new cs}).set("grant_type",n).set("scope",this.scope);if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);s=s.set("Authorization","Basic "+a)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let a of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(a,this.customQueryParams[a]);for(let a of Object.keys(r))o=o.set(a,r[a]);return s=s.set("Content-Type","application/x-www-form-urlencoded"),new Promise((a,c)=>{this.http.post(this.tokenEndpoint,o,{headers:s}).subscribe(u=>{this.debug("tokenResponse",u),this.storeAccessTokenResponse(u.access_token,u.refresh_token,u.expires_in||this.fallbackAccessTokenExpirationTimeInSec,u.scope,this.extractRecognizedCustomParameters(u)),this.oidc&&u.id_token&&this.processIdToken(u.id_token,u.access_token).then(l=>{this.storeIdToken(l),a(u)}),this.eventsSubject.next(new jt("token_received")),a(u)},u=>{this.logger.error("Error performing ${grantType} flow",u),this.eventsSubject.next(new $e("token_error",u)),c(u)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((n,r)=>{let s=new ze({encoder:new cs}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),o=new fe().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+a)}if(this.useHttpBasicAuth||(s=s.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(s=s.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let a of Object.getOwnPropertyNames(this.customQueryParams))s=s.set(a,this.customQueryParams[a]);this.http.post(this.tokenEndpoint,s,{headers:o}).pipe(M(a=>this.oidc&&a.id_token?ge(this.processIdToken(a.id_token,a.access_token,!0)).pipe(j(c=>this.storeIdToken(c)),E(()=>a)):I(a))).subscribe(a=>{this.debug("refresh tokenResponse",a),this.storeAccessTokenResponse(a.access_token,a.refresh_token,a.expires_in||this.fallbackAccessTokenExpirationTimeInSec,a.scope,this.extractRecognizedCustomParameters(a)),this.eventsSubject.next(new jt("token_received")),this.eventsSubject.next(new jt("token_refreshed")),n(a)},a=>{this.logger.error("Error refreshing token",a),this.eventsSubject.next(new $e("token_refresh_error",a)),r(a)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=n=>{let r=this.processMessageEventMessage(n);this.checkOrigin&&n.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:r,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(s=>this.debug("tryLogin during silent refresh failed",s))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(n={},r=!0){let s=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(n.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");
13let o=this.document.getElementById(this.silentRefreshIFrameName);o&&this.document.body.removeChild(o),this.silentRefreshSubject=s.sub;let a=this.document.createElement("iframe");a.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener();let c=this.silentRefreshRedirectUri||this.redirectUri;this.createLoginUrl(null,null,c,r,n).then(h=>{a.setAttribute("src",h),this.silentRefreshShowIFrame||(a.style.display="none"),this.document.body.appendChild(a)});let u=this.events.pipe(N(h=>h instanceof $e),Ft()),l=this.events.pipe(N(h=>h.type==="token_received"),Ft()),d=I(new $e("silent_refresh_timeout",null)).pipe(Tn(this.silentRefreshTimeout));return ym([u,l,d]).pipe(E(h=>{if(h instanceof $e)throw h.type==="silent_refresh_timeout"?this.eventsSubject.next(h):(h=new $e("silent_refresh_error",h),this.eventsSubject.next(h)),h;return h.type==="token_received"&&(h=new jt("silently_refreshed"),this.eventsSubject.next(h)),h})).toPromise()}initImplicitFlowInPopup(n){return this.initLoginFlowInPopup(n)}initLoginFlowInPopup(n){return n=n||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(r=>new Promise((s,o)=>{let c=null;n.windowRef?n.windowRef&&!n.windowRef.closed&&(c=n.windowRef,c.location.href=r):c=window.open(r,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(n));let u,l=D=>{this.tryLogin({customHashFragment:D,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{h(),s(!0)},w=>{h(),o(w)})},d=()=>{(!c||c.closed)&&(h(),o(new $e("popup_closed",{})))};c?u=window.setInterval(d,500):o(new $e("popup_blocked",{}));let h=()=>{window.clearInterval(u),window.removeEventListener("storage",y),window.removeEventListener("message",p),c!==null&&c.close(),c=null},p=D=>{let w=this.processMessageEventMessage(D);w&&w!==null?(window.removeEventListener("storage",y),l(w)):console.log("false event firing")},y=D=>{D.key==="auth_hash"&&(window.removeEventListener("message",p),l(D.newValue))};window.addEventListener("message",p),window.addEventListener("storage",y)}))}calculatePopupFeatures(n){let r=n.height||470,s=n.width||500,o=window.screenLeft+(window.outerWidth-s)/2,a=window.screenTop+(window.outerHeight-r)/2;return`location=no,toolbar=no,width=${s},height=${r},top=${a},left=${o}`}processMessageEventMessage(n){let r="#";if(this.silentRefreshMessagePrefix&&(r+=this.silentRefreshMessagePrefix),!n||!n.data||typeof n.data!="string")return;let s=n.data;if(s.startsWith(r))return"#"+s.substr(r.length)}canPerformSessionCheck(){return this.sessionChecksEnabled?this.sessionCheckIFrameUrl?this.get
13SessionState()?!(typeof this.document>"u"):(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1):!1}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=n=>{let r=n.origin.toLowerCase(),s=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),!s.startsWith(r)){this.debug("sessionCheckEventListener","wrong origin",r,"expected",s,"event",n);return}switch(n.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()});break}this.debug("got info from session check inframe",n)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new jn("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new jn("session_changed")),this.stopSessionCheckTimer(),!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new jn("session_terminated")),this.logOut(!0)}):this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new jn("session_terminated")),this.logOut(!0))}waitForSilentRefreshAfterSessionChange(){this.events.pipe(N(n=>n.type==="silently_refreshed"||n.type==="silent_refresh_timeout"||n.type==="silent_refresh_error"),Ft()).subscribe(n=>{n.type!=="silently_refreshed"&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new jn("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new jn("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;let n=this.document.getElementById(this.sessionCheckIFrameName);n&&this.document.body.removeChild(n);let r=this.document.createElement("iframe");r.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener();let s=this.sessionCheckIFrameUrl;r.setAttribute("src",s),r.style.display="none",this.document.body.appendChild(r),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){let n=this.document.getElementById(this.sessionCheckIFrameName);n||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);let r=this.getSessionState();r||this.stopSessionCheckTimer();let s=this.clientId+" "+r;n.contentWindow.postMessage(s,this.issuer)}createLoginUrl(){return ft(this,arguments,function*(n="",r="",s="",o=!1,a={}){let c=this,u;s?u=s:u=this.redirectUri;let l=yield this.createAndSaveNonce();if(n?n=l+this.config.nonceStateSeparator+encodeURIComponent(n):n=l,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.config.responseType?this.responseType=this.config.responseType:this.oidc&&this.requestAccessToken?this.responseType="id_token token":this.oidc&&!this.requestAccessToken?this.responseType="id_token":this.responseType="token";let d=c.loginUrl.indexOf("?")>-1?"&":"?",h=c.scope;this.oidc&&!h.match(/(^|\s)openid($|\s)/)&&(h="openid "+h);let p=c.loginUrl+d+"response_type="+encodeURIComponent(c.responseType)+"&client_id="+encodeURIComponent(c.clientId)+"&state="+encodeURIComponent(n)+"&redirect_uri="+encodeURIComponent(u)+"&scope="+encodeURIComponent(h);if(this.responseType.includes("code")&&!this.disablePKCE){let[y,D]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",D):this._storage.setItem("PKCE_verifier",D),p+="&c
13ode_challenge="+y,p+="&code_challenge_method=S256"}r&&(p+="&login_hint="+encodeURIComponent(r)),c.resource&&(p+="&resource="+encodeURIComponent(c.resource)),c.oidc&&(p+="&nonce="+encodeURIComponent(l)),o&&(p+="&prompt=none");for(let y of Object.keys(a))p+="&"+encodeURIComponent(y)+"="+encodeURIComponent(a[y]);if(this.customQueryParams)for(let y of Object.getOwnPropertyNames(this.customQueryParams))p+="&"+y+"="+encodeURIComponent(this.customQueryParams[y]);return p})}initImplicitFlowInternal(n="",r=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let s={},o=null;typeof r=="string"?o=r:typeof r=="object"&&(s=r),this.createLoginUrl(n,o,null,!1,s).then(this.config.openUri).catch(a=>{console.error("Error in initImplicitFlow",a),this.inImplicitFlow=!1})}initImplicitFlow(n="",r=""){this.loginUrl!==""?this.initImplicitFlowInternal(n,r):this.events.pipe(N(s=>s.type==="discovery_document_loaded")).subscribe(()=>this.initImplicitFlowInternal(n,r))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(n){let r=this;if(n.onTokenReceived){let s={idClaims:r.getIdentityClaims(),idToken:r.getIdToken(),accessToken:r.getAccessToken(),state:r.state};n.onTokenReceived(s)}}storeAccessTokenResponse(n,r,s,o,a){if(this._storage.setItem("access_token",n),o&&!Array.isArray(o)?this._storage.setItem("granted_scopes",JSON.stringify(o.split(" "))):o&&Array.isArray(o)&&this._storage.setItem("granted_scopes",JSON.stringify(o)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.n
13ow()),s){let c=s*1e3,l=this.dateTimeService.new().getTime()+c;this._storage.setItem("expires_at",""+l)}r&&this._storage.setItem("refresh_token",r),a&&a.forEach((c,u)=>{this._storage.setItem(u,c)})}tryLogin(n=null){return this.config.responseType==="code"?this.tryLoginCodeFlow(n).then(()=>!0):this.tryLoginImplicitFlow(n)}parseQueryString(n){return!n||n.length===0?{}:(n.charAt(0)==="?"&&(n=n.substr(1)),this.urlHelper.parseQueryString(n))}tryLoginCodeFlow(n=null){return ft(this,null,function*(){n=n||{};let r=n.customHashFragment?n.customHashFragment.substring(1):window.location.search,s=this.getCodePartsFromUrl(r),o=s.code,a=s.state,c=s.session_state;if(!n.preventClearHashAfterLogin){let d=location.origin+location.pathname+location.search.replace(/code=[^&$]*/,"").replace(/scope=[^&$]*/,"").replace(/state=[^&$]*/,"").replace(/session_state=[^&$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,d)}let[u,l]=this.parseState(a);if(this.state=l,s.error){this.debug("error trying to login"),this.handleLoginError(n,s);let d=new $e("code_error",{},s);return this.eventsSubject.next(d),Promise.reject(d)}if(!n.disableNonceCheck){if(!u)return this.saveRequestedRoute(),Promise.resolve();if(!n.disableOAuth2StateCheck&&!this.validateNonce(u)){let h=new $e("invalid_nonce_in_state",null);return this.eventsSubject.next(h),Promise.reject(h)}}return this.storeSessionState(c),o&&(yield this.getTokenFromCode(o,n),this.restoreRequestedRoute()),Promise.resolve()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){let n=this._storage.getItem("requested_route");n&&history.replaceState(null,"",window.location.origin+n)}getCodePartsFromUrl(n){return!n||n.length===0?this.urlHelper.getHashFragmentParams():(n.charAt(0)==="?"&&(n=n.substr(1)),this.urlHelper.parseQueryString(n))}getTokenFromCode(n,r){let s=new ze({encoder:new cs}).set("grant_type","authorization_code").set("code",n).set("redirect_uri",r.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let o;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?o=localStorage.getItem("PKCE_verifier"):o=this._storage.getItem("PKCE_verifier"),o?s=s.set("code_verifier",o):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(s,r)}fetchAndProcessToken(n,r){r=r||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let s=new fe().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let o=btoa(`${this.clientId}:${this.dummyClientSecret}`);s=s.set("Authorization","Basic "+o)}return this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),new Promise((o,a)=>{if(this.customQueryParams)for(let c of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(c,this.customQueryParams[c]);this.http.post(this.tokenEndpoint,n,{headers:s}).subscribe(c=>{this.debug("refresh tokenResponse",c),this.storeAccessTokenResponse(c.access_token,c.refresh_token,c.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c.scope,this.extractRecognizedCustomParameters(c)),this.oidc&&c.id_token?this.processIdToken(c.id_token,c.access_token,r.disableNonceCheck).then(u=>{this.storeIdToken(u),this.eventsSubject.next(new jt("token_received")),this.eventsSubject.next(new jt("token_refreshed")),o(c)}).catch(u=>{this.eventsSubject.next(new $e("token_validation_error",u)),console.error("Error validating tokens"),console.error(u),a(u)}):(this.eventsSubject.next(new jt("token_received")),this.eventsSubject.next(new jt("token_refreshed")),o(c))},c=>{console.error("Error getting token",c),this.eventsSubject.next(new $e("token_refresh_error",c)),a(c)})})}tryLoginImplicitFlow(n=null){n=n||{};let r;n.customHashFragment?r=this.urlHelper.getHashFragmentParams(n.customHashFragment):r=this.urlHelper.getHashFragmentParam
13s(),this.debug("parsed url",r);let s=r.state,[o,a]=this.parseState(s);if(this.state=a,r.error){this.debug("error trying to login"),this.handleLoginError(n,r);let h=new $e("token_error",{},r);return this.eventsSubject.next(h),Promise.reject(h)}let c=r.access_token,u=r.id_token,l=r.session_state,d=r.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!c||this.requestAccessToken&&!n.disableOAuth2StateCheck&&!s||this.oidc&&!u)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!l&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!n.disableNonceCheck&&!this.validateNonce(o)){let p=new $e("invalid_nonce_in_state",null);return this.eventsSubject.next(p),Promise.reject(p)}return this.requestAccessToken&&this.storeAccessTokenResponse(c,null,r.expires_in||this.fallbackAccessTokenExpirationTimeInSec,d),this.oidc?this.processIdToken(u,c,n.disableNonceCheck).then(h=>n.validationHandler?n.validationHandler({accessToken:c,idClaims:h.idTokenClaims,idToken:h.idToken,state:s}).then(()=>h):h).then(h=>(this.storeIdToken(h),this.storeSessionState(l),this.clearHashAfterLogin&&!n.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new jt("token_received")),this.callOnTokenReceivedIfExists(n),this.inImplicitFlow=!1,!0)).catch(h=>(this.eventsSubject.next(new $e("token_validation_error",h)),this.logger.error("Error validating tokens"),this.logger.error(h),Promise.reject(h))):(this.eventsSubject.next(new jt("token_received")),this.clearHashAfterLogin&&!n.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(n),Promise.resolve(!0))}parseState(n){let r=n,s="";if(n){let o=n.indexOf(this.config.nonceStateSeparator);o>-1&&(r=n.substr(0,o),s=n.substr(o+this.config.nonceStateSeparator.length))}return[r,s]}validateNonce(n){let r;return this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?r=localStorage.getItem("nonce"):r=this._storage.getItem("nonce"),r!==n?(console.error("Validating access_token failed, wrong state/nonce.",r,n),!1):!0}storeIdToken(n){this._storage.setItem("id_token",n.idToken),this._storage.setItem("id_token_claims_obj",n.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+n.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.n
13ow())}storeSessionState(n){this._storage.setItem("session_state",n)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(n,r){n.onLoginError&&n.onLoginError(r),this.clearHashAfterLogin&&!n.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(n=6e5){return!this.clockSkewInSec&&this.clockSkewInSec!==0?n:this.clockSkewInSec*1e3}processIdToken(n,r,s=!1){let o=n.split("."),a=this.padBase64(o[0]),c=cN(a),u=JSON.parse(c),l=this.padBase64(o[1]),d=cN(l),h=JSON.parse(d),p;if(this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?p=localStorage.getItem("nonce"):p=this._storage.getItem("nonce"),Array.isArray(h.aud)){if(h.aud.every(k=>k!==this.clientId)){let k="Wrong audience: "+h.aud.join(",");return this.logger.warn(k),Promise.reject(k)}}else if(h.aud!==this.clientId){let k="Wrong audience: "+h.aud;return this.logger.warn(k),Promise.reject(k)}if(!h.sub){let k="No sub claim in id_token";return this.logger.warn(k),Promise.reject(k)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==h.sub){let k=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${h.sub}`;return this.logger.warn(k),Promise.reject(k)}if(!h.iat){let k="No iat claim in id_token";return this.logger.warn(k),Promise.reject(k)}if(!this.skipIssuerCheck&&h.iss!==this.issuer){let k="Wrong issuer: "+h.iss;return this.logger.warn(k),Promise.reject(k)}if(!s&&h.nonce!==p){let k="Wrong nonce: "+h.nonce;return this.logger.warn(k),Promise.reject(k)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&(this.responseType==="code"||this.responseType==="id_token")&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!h.at_hash){let k="An at_hash is needed!";return this.logger.warn(k),Promise.reject(k)}
13let y=this.dateTimeService.now(),D=h.iat*1e3,w=h.exp*1e3,R=this.getClockSkewInMsec();if(D-R>=y||w+R-this.decreaseExpirationBySec<=y){let k="Token has expired";return console.error(k),console.error({now:y,issuedAtMSec:D,expiresAtMSec:w}),Promise.reject(k)}let $={accessToken:r,idToken:n,jwks:this.jwks,idTokenClaims:h,idTokenHeader:u,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature($).then(()=>({idToken:n,idTokenClaims:h,idTokenClaimsJson:d,idTokenHeader:u,idTokenHeaderJson:c,idTokenExpiresAt:w})):this.checkAtHash($).then(k=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!k){let B="Wrong at_hash";return this.logger.warn(B),Promise.reject(B)}return this.checkSignature($).then(()=>{let B=!this.disableAtHashCheck,re={idToken:n,idTokenClaims:h,idTokenClaimsJson:d,idTokenHeader:u,idTokenHeaderJson:c,idTokenExpiresAt:w};return B?this.checkAtHash($).then(ue=>{if(this.requestAccessToken&&!ue){let pe="Wrong at_hash";return this.logger.warn(pe),Promise.reject(pe)}else return re}):re})})}getIdentityClaims(){let n=this._storage.getItem("id_token_claims_obj");return n?JSON.parse(n):null}getGrantedScopes(){let n=this._storage.getItem("granted_scopes");return n?JSON.parse(n):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(n){for(;n.length%4!==0;)n+="=";return n}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){let n=this._storage.getItem("expires_at"),r=this.dateTimeService.new();return!(n&&parseInt(n,10)-this.decreaseExpirationBySec<r.getTime()-this.getClockSkewInMsec())}return!1}hasValidIdToken(){if(this.getIdToken()){let n=this._storage.getItem("id_token_expires_at"),r=this.dateTimeService.new();return!(n&&parseInt(n,10)-this.decreaseExpirationBySec<r.getTime()-this.getClockSkewInMsec())}return!1}getCustomTokenResponseProperty(n){return this._storage&&this.config.customTokenParameters&&this.config.customTokenParameters.indexOf(n)>=0&&this._storage.getItem(n)!==null?JSON.parse(this._storage.getItem(n)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(n={},r=""){let s=!1;typeof n=="boolean"&&(s=n,n={});let o=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(c=>this._storage.removeItem(c)),this.silentRefreshSubject=null,this.eventsSubject.next(new jn("logout")),!this.logoutUrl||s)return;let a;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)a=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(o)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let c=new ze({encoder:new cs});o&&(c=c.set("id_token_hint",o));let u=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";u&&(c=c.set("post_logout_redirect_uri",u),r&&(c=c.set("state",r)));for(let l in n)c=c.set(l,n[l]);a=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+c.toString()}this.config.openUri(a)}createAndSaveNonce(){let n=this;return this.createNonce().then(function(r){return n.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",r):n._storage.setItem("nonce",r),r})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();
13let n=this.document.getElementById(this.silentRefreshIFrameName);n&&n.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();let r=this.document.getElementById(this.sessionCheckIFrameName);r&&r.remove()}createNonce(){return new Promise(n=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",s=45,o="",a=typeof self>"u"?null:self.crypto||self.msCrypto;if(a){let c=new Uint8Array(s);a.getRandomValues(c),c.map||(c.map=Array.prototype.map),c=c.map(u=>r.charCodeAt(u%r.length)),o=String.fromCharCode.apply(null,c)}else for(;0<s--;)o+=r[Math.random()*r.length|0];n(uN(o))})}checkAtHash(n){return ft(this,null,function*(){return this.tokenValidationHandler?this.tokenValidationHandler.validateAtHash(n):(this.logger.warn("No tokenValidationHandler configured. Cannot check at_hash."),!0)})}checkSignature(n){return this.tokenValidationHandler?this.tokenValidationHandler.validateSignature(n):(this.logger.warn("No tokenValidationHandler configured. Cannot check signature."),Promise.resolve(null))}initLoginFlow(n="",r={}){return this.responseType==="code"?this.initCodeFlow(n,r):this.initImplicitFlow(n,r)}initCodeFlow(n="",r={}){this.loginUrl!==""?this.initCodeFlowInternal(n,r):this.events.pipe(N(s=>s.type==="discovery_document_loaded")).subscribe(()=>this.initCodeFlowInternal(n,r))}initCodeFlowInternal(n="",r={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let s={},o=null;typeof r=="string"?o=r:typeof r=="object"&&(s=r),this.createLoginUrl(n,o,null,!1,s).then(this.config.openUri).catch(a=>{console.error("Error in initAuthorizationCodeFlow"),console.error(a)})}createChallangeVerifierPairForPKCE(){return ft(this,null,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");let n=yield this.createNonce(),r=yield this.crypto.calcHash(n,"sha-256");return[uN(r),n]})}extractRecognizedCustomParameters(n){let r=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(s=>{n[s]&&r.set(s,JSON.stringify(n[s]))}),r}revokeTokenAndLogout(n={},r=!1){let s=this.revocationEndpoint,o=this.getAccessToken(),a=this.getRefreshToken();if(!o)return Promise.resolve();let c=new ze({encoder:new cs}),u=new fe().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let l=btoa(`${this.clientId}:${this.dummyClientSecret}`);u=u.set("Authorization","Basic "+l)}if(this.useHttpBasicAuth||(c=c.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(c=c.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let l of Object.getOwnPropertyNames(this.customQueryParams))c=c.set(l,this.customQueryParams[l]);return new Promise((l,d)=>{let h,p;if(o){let y=c.set("token",o).set("token_type_hint","access_token");h=this.http.post(s,y,{headers:u})}else h=I(null);if(a){let y=c.set("token",a).set("token_type_hint","refresh_token");p=this.http.post(s,y,{headers:u})}else p=I(null);r&&(h=h.pipe(F(y=>y.status===0?I(null):Pt(y))),p=p.pipe(F(y=>y.status===0?I(null):Pt(y)))),Ve([h,p]).subscribe(y=>{this.logOut(n),l(y),this.logger.info("Token successfully revoked")},y=>{this.logger.error("Error revoking token",y),this.eventsSubject.next(new $e("token_revoke_error",y)),d(y)})})}clearLocationHash(){location.hash!=""&&(location.hash="")}};e.\u0275fac=function(r){return new(r||e)(f(ye),f(Le),f(us,8),f(Cf,8),f(To,8),f(lN),f(Ef),f(Sf,8),f(Ue),f(Sc))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),If=class{},qC=class{handleError(e){return Pt(e)}},V8=(()=>{let e=class e{constructor(n,r,s){this.oAuthService=n,this.errorHandler=r,this.moduleConfig=s}checkUrl(n){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(n):this.moduleConfig.resourceServer.allowedUrls?!!this.moduleConfig.resourceServer.allowedUrls.find(r=>n.toLowerCase().startsWith(r.toLowerCase())):!0}intercept(n,r){let s=n.url.toLowerCase();return!this.moduleConfig||!this.moduleConfig.resourceServer||!this.checkUrl(s)?r.handle(n):this.moduleConfig.resourceServer.sendAccessToken?gn(I(this.oAuthService.getAccessToken()).pipe(N(a=>!!a)),this.oAuthService.events.pipe(N(a=>a.type==="token_received"),Fs(this.oAuthService.waitForTokenInMsec||0),F(()=>I(null)),E(()=>this.oAuthService.getAccessToken()))).pipe(le(1),q(a=>{if(a){let c="Bearer "+a,u=n.headers.set("Authorization",c);n=n.clone({headers:u})}return r.handle(n).pipe(F(c=>this.errorHandler.handleError(c)))})):r.handle(n).pipe(F(a=>this.errorHandler.handleError(a)))}};e.\u0275fac=function(r){return new(r||e)(f(Df),f(If),f(yf,8))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})();function H8(){return console}function z8(){return typeof sessionStorage<"u"?sessionStorage:new _8}function G8(t=null,e=vf){return or([Df,lN,{provide:Ef,useFactory:H8},{provide:us,useFactory:z8},{provide:Cf,useClass:e},{provide:Sf,useClass:B8},{provide:If,useClass:qC},{provide:yf,useValue:t},{provide:Ln,useClass:V8,multi:!0},{provide:Sc,useClass:F8}])}var fN=(()=>{let e=class e{static forRoot(n=null,r=vf){return{ngModule:e,providers:[G8(n,r)]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[ot]});let t=e;return t})();var Bce=new S("AUTH_CONFIG");var mN="@ngrx/router-store/request",Zce=gi(mN,mo()),Tf="@ngrx/router-store/navigation",Qce=gi(Tf,mo()),Af="@ngrx/router-store/cancel",Jce=gi(Af,mo()),Rf="@ngrx/router-store/error",Xce=gi(Rf,mo()),Mf="@ngrx/router-store/navigated",eue=gi(Mf,mo());var bf=class{serialize(e){return{root:this.serializeRoute(e.root),url:e.url}}serializeRoute(e){let i=e.children.map(n=>this.serializeRoute(n));return{params:e.params,data:e.data,url:e.url,outlet:e.outlet,title:e.title,routeConfig:e.routeConfig?{path:e.routeConfig.path,pathMatch:e.routeConfig.pathMatch,redirectTo:e.routeConfig.redirectTo,outlet:e.routeConfig.outlet,title:typeof e.routeConfig.title=="string"?e.routeConfig.title:void 0}:null,queryParams:e.queryParams,fragment:e.fragment,firstChild:i[0],children:i}}},YC=function(t){return t[t.PreActivation=1]="PreActivation",t[t.PostActivation=2]="PostActivation",t}(YC||{}),q8="router",hN=new S("@ngrx/router-store Internal Configuration"),vN=new S("@ngrx/router-store Configuration");function Y8(t){return v({stateKey:q8,serializer:bf,navigationActionTiming:YC.PreActivation},t)}var wf=class{serialize(e){return{root:this.serializeRoute(e.root),url:e.url}}serializeRoute(e){let i=e.children.map(n=>this.serializeRoute(n));return{params:e.params,paramMap:e.paramMap,data:e.data,url:e.url,outlet:e.outlet,title:e.title,routeConfig:e.routeConfig?{component:e.routeConfig.component,path:e.routeConfig.path,pathMatch:e.routeConfig.pathMatch,redirectTo:e.routeConfig.redirectTo,outlet:e.routeConfig.outlet,title:e.routeConfig.title}:null,queryParams:e.queryParams,queryParamMap:e.queryParamMap,fragment:e.fragment,component:e.routeConfig?e.routeConfig.component:void 0,root:void 0,parent:void 0,firstChild:i[0],pathFromRoot:void 0,children:i}}},Ao=class{},vr=function(t){return t[t.NONE=1]="NONE",t[t.ROUTER=2]="ROUTER",t[t.STORE=3]="STORE",t}(vr||{}),pN=(()=>{let e=class e{constructor(n,r,s,o,a,c){this.store=n,this.router=r,this.serializer
13=s,this.errorHandler=o,this.config=a,this.activeRuntimeChecks=c,this.lastEvent=null,this.routerState=null,this.trigger=vr.NONE,this.stateKey=this.config.stateKey,!nC()&&Ee()&&(c?.strictActionSerializability||c?.strictStateSerializability)&&this.serializer instanceof wf&&console.warn("@ngrx/router-store: The serializability runtime checks cannot be enabled with the FullRouterStateSerializer. The FullRouterStateSerializer has an unserializable router state and actions that are not serializable. To use the serializability runtime checks either use the MinimalRouterStateSerializer or implement a custom router state serializer."),this.setUpStoreStateListener(),this.setUpRouterEventsListener()}setUpStoreStateListener(){this.store.pipe(O(this.stateKey),en(this.store)).subscribe(([n,r])=>{this.navigateIfNeeded(n,r)})}navigateIfNeeded(n,r){if(!n||!n.state||this.trigger===vr.ROUTER||this.lastEvent instanceof Sn)return;let s=n.state.url;K8(this.router.url,s)||(this.storeState=r,this.trigger=vr.STORE,this.router.navigateByUrl(s).catch(o=>{this.errorHandler.handleError(o)}))}setUpRouterEventsListener(){let n=this.config.navigationActionTiming===YC.PostActivation,r;this.router.events.pipe(en(this.store)).subscribe(([s,o])=>{this.lastEvent=s,s instanceof Sn?(this.routerState=this.serializer.serialize(this.router.routerState.snapshot),this.trigger!==vr.STORE&&(this.storeState=o,this.dispatchRouterRequest(s))):s instanceof os?(r=s,!n&&this.trigger!==vr.STORE&&this.dispatchRouterNavigation(s)):s instanceof In?(this.dispatchRouterCancel(s),this.reset()):s instanceof gr?(this.dispatchRouterError(s),this.reset()):s instanceof at&&(this.trigger!==vr.STORE&&(n&&this.dispatchRouterNavigation(r),this.dispatchRouterNavigated(s)),this.reset())})}dispatchRouterRequest(n){this.dispatchRouterAction(mN,{event:n})}dispatchRouterNavigation(n){let r=this.serializer.serialize(n.state);this.dispatchRouterAction(Tf,{routerState:r,event:new os(n.id,n.url,n.urlAfterRedirects,r)})}dispatchRouterCancel(n){this.dispatchRouterAction(Af,{storeState:this.storeState,event:n})}dispatchRouterError(n){this.dispatchRouterAction(Rf,{storeState:this.storeState,event:new gr(n.id,n.url,`${n}`)})}dispatchRouterNavigated(n){let r=this.serializer.serialize(this.router.routerState.snapshot);this.dispatchRouterAction(Mf,{event:n,routerState:r})}dispatchRouterAction(n,r){this.trigger=vr.ROUTER;try{this.store.dispatch({type:n,payload:T(v({routerState:this.routerState}
13,r),{event:this.config.routerState===0?r.event:{id:r.event.id,url:r.event.url,urlAfterRedirects:r.event.urlAfterRedirects}})})}finally{this.trigger=vr.NONE}}reset(){this.trigger=vr.NONE,this.storeState=null,this.routerState=null}};e.\u0275fac=function(r){return new(r||e)(f(De),f(ke),f(Ao),f(mt),f(vN),f(ns))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})();function K8(t,e){return gN(t)===gN(e)}function gN(t){return t?.length>0&&t[t.length-1]==="/"?t.substring(0,t.length-1):t}function Z8(t={}){return or([{provide:hN,useValue:t},{provide:vN,useFactory:Y8,deps:[hN]},{provide:Ao,useClass:t.serializer?t.serializer:t.routerState===0?wf:bf},{provide:nr,multi:!0,useFactory(){return()=>C(pN)}},pN])}var yN=(()=>{let e=class e{static forRoot(n={}){return{ngModule:e,providers:[Z8(n)]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function KC(t){"@babel/helpers - typeof";return KC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},KC(t)}var EN=[],nue=EN.forEach,rue=EN.slice;function ZC(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":KC(XMLHttpRequest))==="object"}function J8(t){return!!t&&typeof t.then=="function"}function CN(t){return J8(t)?t:Promise.resolve(t)}var Of=Q_(bN(),1);function wN(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,n)}return i}function TN(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?wN(Object(i),!0).forEach(function(n){X8(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):wN(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}function X8(t,e,i){return(e=e3(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function e3(t){var e=t3(t,"string");return ls(e)=="symbol"?e:e+""}function t3(t,e){if(ls(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,e||"default");if(ls(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ls(t){"@babel/helpers - typeof";return ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ls(t)}var Si=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?Si=global.fetch:typeof window<"u"&&window.fetch&&(Si=window.fetch);var bc;ZC()&&(typeof global<"u"&&global.XMLHttpRequest?bc=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(bc=window.XMLHttpRequest));var Pf;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Pf=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Pf=window.ActiveXObject));!Si&&Of&&!bc&&!Pf&&(Si=Of.default||Of);typeof Si!="function"&&(Si=void 0);var XC=function(e,i){if(i&&ls(i)==="object"){var n="";for(var r in i)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(i[r]);if(!n)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+n.slice(1)}return e},AN=function(e,i,n,r){var s=function(c){if(!c.ok)return n(c.statusText||"Error",{status:c.status});c.text().then(function(u){n(null,{status:c.status,data:u})}).catch(n)};if(r){var o=r(e,i);if(o instanceof Promise){o.then(s).catch(n);return}}typeof fetch=="function"?fetch(e,i).then(s).catch(n):Si(e,i).then(s).catch(n)},RN=!1,n3=function(e,i,n,r){e.queryStringParams&&(i=XC(i,e.queryStringParams));var s=TN({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(s["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,";
13 ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(s["Content-Type"]="application/json");var o=typeof e.requestOptions=="function"?e.requestOptions(n):e.requestOptions,a=TN({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:s},RN?{}:o),c=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{AN(i,a,r,c)}catch(u){if(!o||Object.keys(o).length===0||!u.message||u.message.indexOf("not implemented")<0)return r(u);try{Object.keys(o).forEach(function(l){delete a[l]}),AN(i,a,r,c),RN=!0}catch(l){r(l)}}},r3=function(e,i,n,r){n&&ls(n)==="object"&&(n=XC("",n).slice(1)),e.queryStringParams&&(i=XC(i,e.queryStringParams));try{var s;bc?s=new bc:s=new Pf("MSXML2.XMLHTTP.3.0"),s.open(n?"POST":"GET",i,1),e.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!e.withCredentials,n&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var o=e.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)s.setRequestHeader(a,o[a]);s.onreadystatechange=function(){s.readyState>3&&r(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(n)}catch(c){console&&console.log(c)}},i3=function(e,i,n,r){if(typeof n=="function"&&(r=n,n=void 0),r=r||function(){},Si&&i.indexOf("file:")!==0)return n3(e,i,n,r);if(ZC()||typeof ActiveXObject=="function")return r3(e,i,n,r);r(new Error("No fetch and no xhr implementation found!"))},MN=i3;function Mo(t){"@babel/helpers - typeof";return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mo(t)}function xN(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,n)}return i}function eS(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?xN(Object(i),!0).forEach(function(n){ON(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):xN(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}function s3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function NN(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,PN(n.key),n)}}function o3(t,e,i){return e&&NN(t.prototype,e),i&&NN(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function ON(t,e,i){return(e=PN(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function PN(t){var e=a3(t,"string");return Mo(e)=="symbol"?e:e+""}function a3(t,e){if(Mo(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,e||"default");if(Mo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var c3=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(i){return JSON.parse(i)},stringify:JSON.stringify,parsePayload:function(i,n,r){return ON({},n,r||"")},parseLoadPayload:function(i,n){},request:MN,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},FN=function(){function t(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};s3(this,t),this.services=e,this.options=i,this.allOptions=n,this.type="backend",this.init(e,i,n)}return o3(t,[{key:"init",value:function(i){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=i,this.options=eS(eS(eS({},c3()),this.options||{}),r),this.allOptions=s,this.services&&this.options.reloadInterval){var o=setInterval(function(){return n.reload()},this.options.reloadInterval);Mo(o)==="object"&&typeof o.unref=="function"&&o.unref()}}},{key:"readMulti",value:function(i,n,r){this._readAny(i,i,n,n,r)}},{key:"read",value:function(i,n,r){this._readAny([i],i,[n],n,r)}},{key:"_readAny",value:function(i,n,r,s,o){var a=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(i,r)),c=CN(c),c.then(function(u){if(!u)return o(null,{});var l=a.services.interpolator.interpolate(u,{lng:i.join("+"),ns:r.join("+")});a.loadUrl(l,o,n,s)})}},{key:"loadUrl",value:function(i,n,r,s){var o=this,a=typeof r=="string"?[r]:r,c=typeof s=="string"?[s]:s,u=this.options.parseLoadPayload(a,c);this.options.request(this.options,i,u,function(l,d){if(d&&(d.status>=500&&d.status<600||!d.status))return n("failed loading "+i+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return n("failed loading "+i+"; status code: "+d.status,!1);if(!d&&l&&l.message){var h=l.message.toLowerCase(),p=["failed","fetch","network","load"].find(function(w){return h.indexOf(w)>-1});if(p)return n("failed loading "+i+": "+l.message,!0)}if(l)return n(l,!1);var y,D;
13try{typeof d.data=="string"?y=o.options.parse(d.data,r,s):y=d.data}catch{D="failed parsing "+i+" to json"}if(D)return n(D,!1);n(null,y)})}},{key:"create",value:function(i,n,r,s,o){var a=this;if(this.options.addPath){typeof i=="string"&&(i=[i]);var c=this.options.parsePayload(n,r,s),u=0,l=[],d=[];i.forEach(function(h){var p=a.options.addPath;typeof a.options.addPath=="function"&&(p=a.options.addPath(h,n));var y=a.services.interpolator.interpolate(p,{lng:h,ns:n});a.options.request(a.options,y,c,function(D,w){u+=1,l.push(D),d.push(w),u===i.length&&typeof o=="function"&&o(l,d)})})}}},{key:"reload",value:function(){var i=this,n=this.services,r=n.backendConnector,s=n.languageUtils,o=n.logger,a=r.language;if(!(a&&a.toLowerCase()==="cimode")){var c=[],u=function(d){var h=s.toResolveHierarchy(d);h.forEach(function(p){c.indexOf(p)<0&&c.push(p)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(l){return u(l)}),c.forEach(function(l){i.allOptions.ns.forEach(function(d){r.read(l,d,"read",null,null,function(h,p){h&&o.warn("loading namespace ".concat(d," for language ").concat(l," failed"),h),!h&&p&&o.log("loaded namespace ".concat(d," for language ").concat(l),p),r.loaded("".concat(l,"|").concat(d),h,p)})})})}}}])}();FN.type="backend";var _N=FN;var X=t=>typeof t=="string",wc=()=>{let t,e,i=new Promise((n,r)=>{t=n,e=r});return i.resolve=t,i.reject=e,i},LN=t=>t==null?"":""+t,u3=(t,e,i)=>{t.forEach(n=>{e[n]&&(i[n]=e[n])})},l3=/###/g,kN=t=>t&&t.indexOf("###")>-1?t.replace(l3,"."):t,jN=t=>!t||X(t),Tc=(t,e,i)=>{let n=X(e)?e.split("."):e,r=0;for(;r<n.length-1;){if(jN(t))return{};let s=kN(n[r]);!t[s]&&i&&(t[s]=new i),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={},++r}return jN(t)?{}:{obj:t,k:kN(n[r])}},UN=(t,e,i)=>{let{obj:n,k:r}=Tc(t,e,Object);if(n!==void 0||e.length===1){n[r]=i;return}let s=e[e.length-1],o=e.slice(0,e.length-1),a=Tc(t,o,Object);for(;a.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),a=Tc(t,o,Object),a&&a.obj&&typeof a.obj[`${a.k}.${s}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=i},d3=(t,e,i,n)=>{let{obj:r,k:s}=Tc(t,e,Object);r[s]=r[s]||[],r[s].push(i)},_f=(t,e)=>{let{obj:i,k:n}=Tc(t,e);if(i)return i[n]},f3=(t,e,i)=>{let n=_f(t,i);return n!==void 0?n:_f(e,i)},GN=(t,e,i)=>{for(let n in e)n!=="__proto__"&&n!=="constructor"&&(n in t?X(t[n])||t[n]instanceof String||X(e[n])||e[n]instanceof String?i&&(t[n]=e[n]):GN(t[n],e[n],i):t[n]=e[n]);return t},xo=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),h3={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},p3=t=>X(t)?t.replace(/[&<>"'\/]/g,e=>h3[e]):t,rS=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let i=this.regExpMap.get(e);if(i!==void 0)return i;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},g3=[" ",",","?","!",";"],m3=new rS(20),v3=(t,e,i)=>{e=e||"",i=i||"";let n=g3.filter(o=>e.indexOf(o)<0&&i.indexOf(o)<0);if(n.length===0)return!0;let r=m3.getRegExp(`(${n.map(o=>o==="?"?"\\?":o).join("|")})`),s=!r.test(t);if(!s){let o=t.indexOf(i);o>0&&!r.test(t.substring(0,o))&&(s=!0)}return s},iS=function(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];let n=e.split(i),r=t;for(let s=0;s<n.length;){if(!r||typeof r!="object")return;let o,a="";for(let c=s;c<n.length;++c)if(c!==s&&(a+=i),a+=n[c],o=r[a],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&c<n.length-1)continue;s+=c-s+1;break}r=o}return r},Lf=t=>t&&t.replace("_","-"),y3={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}},sS=class t{constructor(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,i)}init(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=e||y3,this.options=i,this.debug=i.debug}log(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return this.forward(i,"log","",!0)}warn(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return this.forward(i,"warn","",!0)}error(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return this.forward(i,"error","")}deprecate(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(e,i,n,r){return r&&!this.debug?null:(X(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[i](e))}create(e){return new t(this.logger,v({prefix:`${this.prefix}:${e}:`},this.options))}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new t(this.logger,e)}},yr=new sS,Oo=class{constructor(){this.observers={}}on(e,i){return e.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);let r=this.observers[n].get(i)||0;this.observers[n].set(i,r+1)}),this}
vendor: 3,241 bytes, line 13
13off(e,i){if(this.observers[e]){if(!i){delete this.observers[e];return}this.observers[e].delete(i)}}emit(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(o=>{let[a,c]=o;for(let u=0;u<c;u++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[a,c]=o;for(let u=0;u<c;u++)a.apply(a,[e,...n])})}},kf=class extends Oo{constructor(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let i=this.options.ns.indexOf(e);i>-1&&this.options.ns.splice(i,1)}getResource(e,i,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,o=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a;e.indexOf(".")>-1?a=e.split("."):(a=[e,i],n&&(Array.isArray(n)?a.push(...n):X(n)&&s?a.push(...n.split(s)):a.push(n)));let c=_f(this.data,a);return!c&&!i&&!n&&e.indexOf(".")>-1&&(e=a[0],i=a[1],n=a.slice(2).join(".")),c||!o||!X(n)?c:iS(this.data&&this.data[e]&&this.data[e][i],n,s)}addResource(e,i,n,r){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,a=[e,i];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=i,i=a[1]),this.addNamespaces(i),UN(this.data,a,r),s.silent||this.emit("added",e,i,n,r)}addResources(e,i,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let s in n)(X(n[s])||Array.isArray(n[s]))&&this.addResource(e,i,s,n[s],{silent:!0});r.silent||this.emit("added",e,i,n)}addResourceBundle(e,i,n,r,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[e,i];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=i,i=a[1]),this.addNamespaces(i);let c=_f(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?GN(c,n,s):c=v(v({},c),n),UN(this.data,a,c),o.silent||this.emit("added",e,i,n)}removeResourceBundle(e,i){this.hasResourceBundle(e,i)&&delete this.data[e][i],this.removeNamespaces(i),this.emit("removed",e,i)}hasResourceBundle(e,i){return this.getResource(e,i)!==void 0}getResourceBundle(e,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?v({},this.getResource(e,i)):this.getResource(e,i)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let i=this.getDataByLanguage(e);return!!(i&&Object.keys(i)||[]).find(r=>i[r]&&Object.keys(i[r]).length>0)}toJSON(){return this.data}},WN={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,i,n,r){return t.forEach(s=>{this.processors[s]&&(e=this.processors[s].process(e,i,n,r))}),e}},$N={},jf=class t extends Oo{constructor(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),u3(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
13i18nFormat","utils"],e,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=yr.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;let n=this.resolve(e,i);return n&&n.res!==void 0}extractFromKey(e,i){let n=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");let r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=i.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!v3(e,n,r);if(o&&!a){let c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:X(s)?[s]:s};let u=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(s=u.shift()),e=u.join(r)}return{key:e,namespaces:X(s)?[s]:s}}translate(e,i,n){if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i=v({},i)),i||(i={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);let r=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],i),c=a[a.length-1],u=i.lng||this.language,l=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(l){let B=i.nsSeparator||this.options.nsSeparator;return r?{res:`${c}${B}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(i)}:`${c}${B}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(i)}:o}let d=this.resolve(e,i),h=d&&d.res,p=d&&d.usedKey||o,y=d&&d.exactUsedKey||o,D=Object.prototype.toString.apply(h),w=["[object Number]","[object Function]","[object RegExp]"],R=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,$=!this.i18nFormat||this.i18nFormat.handleAsObject,k=!X(h)&&typeof h!="boolean"&&typeof h!="number";if($&&h&&k&&w.indexOf(D)<0&&!(X(R)&&Array.isArray(h))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let B=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,T(v({},i),{ns:a})):`key '${o} (${this.language})' returned an object instead of string.`;return r?(d.res=B,d.usedParams=this.getUsedParamsDetails(i),d):B}if(s){let B=Array.isArray(h),re=B?[]:{},ue=B?y:p;for(let pe in h)if(Object.prototype.hasOwnProperty.call(h,pe)){let Fe=`${ue}${s}${pe}`;re[pe]=this.translate(Fe,T(v({},i),{joinArrays:!1,ns:a})),re[pe]===Fe&&(re[pe]=h[pe])}h=re}}else if($&&X(R)&&Array.isArray(h))h=h.join(R),h&&(h=this.extendTranslation(h,e,i,n));else{let B=!1,re=!1,ue=i.count!==void 0&&!X(i.count),pe=t.hasDefaultValue(i),Fe=ue?this.pluralResolver.getSuffix(u,i.count,i):"",Mi=i.ordinal&&ue?this.pluralResolver.getSuffix(u,i.count,{ordinal:!1}):"",Hn=ue&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),b=Hn&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${Fe}`]||i[`defaultValue${Mi}`]||i.defaultValue;!this.isValidLookup(h)&&pe&&(B=!0,h=b),this.isValidLookup(h)||(re=!0,h=o);let ie=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&re?void 0:h,me=pe&&b!==h&&this.options.updateMissing;if(re||B||me){if(this.logger.log(me?"updateKey":"missingKey",u,c,o,me?b:h),s){let dt=this.resolve(o,T(v({},i),{keySeparator:!1}));dt&&dt.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Te=[],he=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&he&&he[0])for(let dt=0;dt<he.length;dt++)Te.push(he[dt]);else this.options.saveMissingTo==="all"?Te=this.languageUtils.toResolveHierarchy(i.lng||this.language):Te.push(i.lng||this.language);let Tr=(dt,Be,hn)=>{let hu=pe&&hn!==h?hn:ie;this.options.missingKeyHandler?this.options.missingKeyHandler(dt,c,Be,hu,me,i):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(dt,c,Be,hu,me,i),this.emit
vendor: 11,960 bytes, line 13
13("missingKey",dt,c,Be,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ue?Te.forEach(dt=>{let Be=this.pluralResolver.getSuffixes(dt,i);Hn&&i[`defaultValue${this.options.pluralSeparator}zero`]&&Be.indexOf(`${this.options.pluralSeparator}zero`)<0&&Be.push(`${this.options.pluralSeparator}zero`),Be.forEach(hn=>{Tr([dt],o+hn,i[`defaultValue${hn}`]||b)})}):Tr(Te,o,b))}h=this.extendTranslation(h,e,i,d,n),re&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${c}:${o}`),(re||B)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,B?h:void 0):h=this.options.parseMissingKeyHandler(h))}return r?(d.res=h,d.usedParams=this.getUsedParamsDetails(i),d):h}extendTranslation(e,i,n,r,s){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,v(v({},this.options.interpolation.defaultVariables),n),n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(T(v({},n),{interpolation:v(v({},this.options.interpolation),n.interpolation)}));let u=X(e)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),l;if(u){let h=e.match(this.interpolator.nestingRegexp);l=h&&h.length}let d=n.replace&&!X(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(d=v(v({},this.options.interpolation.defaultVariables),d)),e=this.interpolator.interpolate(e,d,n.lng||this.language||r.usedLng,n),u){let h=e.match(this.interpolator.nestingRegexp),p=h&&h.length;l<p&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var h=arguments.length,p=new Array(h),y=0;y<h;y++)p[y]=arguments[y];return s&&s[0]===p[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${i[0]}`),null):o.translate(...p,i)},n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,c=X(a)?[a]:a;return e!=null&&c&&c.length&&n.applyPostProcessor!==!1&&(e=WN.handle(c,e,i,this.options&&this.options.postProcessPassResolved?v({i18nResolved:T(v({},r),{usedParams:this.getUsedParamsDetails(n)})},n):n,this)),e}resolve(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,r,s,o,a;return X(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(n))return;let u=this.extractFromKey(c,i),l=u.key;r=l;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let h=i.count!==void 0&&!X(i.count),p=h&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),y=i.context!==void 0&&(X(i.context)||typeof i.context=="number")&&i.context!=="",D=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);d.forEach(w=>{this.isValidLookup(n)||(a=w,!$N[`${D[0]}-${w}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&($N[`${D[0]}-${w}`]=!0,this.logger.warn(`key "${r}" for languages "${D.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),D.forEach(R=>{if(this.isValidLookup(n))return;o=R;let $=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys($,l,R,w,i);else{let B;h&&(B=this.pluralResolver.getSuffix(R,i.count,i));let re=`${this.options.pluralSeparator}zero`,ue=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&($.push(l+B),i.ordinal&&B.indexOf(ue)===0&&$.push(l+B.replace(ue,this.options.pluralSeparator)),p&&$.push(l+re)),y){let pe=`${l}${this.options.contextSeparator}${i.context}`;$.push(pe),h&&($.push(pe+B),i.ordinal&&B.indexOf(ue)===0&&$.push(pe+B.replace(ue,this.options.pluralSeparator)),p&&$.push(pe+re))}}let k;for(;k=$.pop();)this.isValidLookup(n)||(s=k,n=this.getResource(R,w,k,i))}))})}),{res:n,usedKey:r,exactUsedKey:s,usedLng:o,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,i,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,i,n,r):this.resourceStore.getResource(e,i,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!X(e.replace),r=n?e.replace:e;if(n&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r=v(v({},this.options.interpolation.defaultVariables),r)),!n){r=v({},r);for(let s of i)delete r[s]}return r}static hasDefaultValue(e){let i="defaultValue";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&i===n.substring(0,i.length)&&e[n]!==void 0)return!0;return!1}},tS=t=>t.charAt(0).toUpperCase()+t.slice(1),Uf=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yr.create("languageUtils")}getScriptPartFromCode(e){if(e=Lf(e),!e||e.indexOf("-")<0)return null;let i=e.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(e){if(e=Lf(e),!e||e.indexOf("-")<0)return e;let i=e.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(e){if(X(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(e)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}let i=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(r=>r.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),i.indexOf(n[1].toLowerCase())>-1&&(n[1]=tS(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),i.indexOf(n[1].toLowerCase())>-1&&(n[1]=tS(n[1].toLowerCase())),i.indexOf(n[2].toLowerCase())>-1&&(n[2]=tS(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let i;return e.forEach(n=>{if(i)return;let r=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(r))&&(i=r)}),!i&&this.options.supportedLngs&&e.forEach(n=>{if(i)return;let r=this.getLanguagePartFromCode(n);if(this.isSupportedCode(r))return i=r;i=this.options.supportedLngs.find(s=>{if(s===r)return s;if(!(s.indexOf("-")<0&&r.indexOf("-")<0)&&(s.indexOf("-")>0&&r.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===r||s.indexOf(r)===0&&r.length>1))return s})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(e,i){if(!e)return[];if(typeof e=="function"&&(e=e(i)),X(e)&&(e=[e]),Array.isArray(e))return e;if(!i)return e.default||[];let n=e[i];return n||(n=e[this.getScriptPartFromCode(i)]),n||(n=e[this.formatLanguageCode(i)]),n||(n=e[this.getLanguagePartFromCode(i)]),n||(n=e.default),n||[]}toResolveHierarchy(e,i){let n=this.getFallbackCodes(i||this.options.fallbackLng||[],e),r=[],s=o=>{o&&(this.isSupportedCode(o)?r.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return X(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):X(e)&&s(this.formatLanguageCode(e)),n.forEach(o=>{r.indexOf(o)<0&&s(this.formatLanguageCode(o))}),r}},E3=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],C3={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3},S3=["v1","v2","v3"],I3=["v4"],BN={zero:0,one:1,two:2,few:3,many:4,other:5},D3=()=>{let t={};return E3.forEach(e=>{e.lngs.forEach(i=>{t[i]={numbers:e.nr,plurals:C3[e.fc]}})}),t},oS=class{constructor(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=i,this.logger=yr.create("pluralResolver"),(!this.options.compatibilityJSON||I3.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=D3(),this.pluralRulesCache={}}addRule(e,i){this.rules[e]=i}clearCache(){this.pluralRulesCache={}}getRule(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let n=Lf(e==="dev"?"en":e),r=i.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:n,type:r});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let o;try{o=new Intl.PluralRules(n,{type:r})}catch{if(!e.match(/-|_/))return;let c=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(c,i)}return this.pluralRulesCache[s]=o,o}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,i);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,i){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};
vendor: 1,279 bytes, line 13
13return this.getSuffixes(e,n).map(r=>`${i}${r}`)}getSuffixes(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,i);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((r,s)=>BN[r]-BN[s]).map(r=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r}`):n.numbers.map(r=>this.getSuffix(e,r,i)):[]}getSuffix(e,i){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(i)}`:this.getSuffixRetroCompatible(r,i):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,i){let n=e.noAbs?e.plurals(i):e.plurals(Math.abs(i)),r=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let s=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?s():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}
vendor: 4,976 bytes, line 13
13shouldUseIntlApi(){return!S3.includes(this.options.compatibilityJSON)}},VN=function(t,e,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=f3(t,e,i);return!s&&r&&X(i)&&(s=iS(t,i,n),s===void 0&&(s=iS(e,i,n))),s},nS=t=>t.replace(/\$/g,"$$$$"),aS=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=yr.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(i=>i),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:i,escapeValue:n,useRawValueToEscape:r,prefix:s,prefixEscaped:o,suffix:a,suffixEscaped:c,formatSeparator:u,unescapeSuffix:l,unescapePrefix:d,nestingPrefix:h,nestingPrefixEscaped:p,nestingSuffix:y,nestingSuffixEscaped:D,nestingOptionsSeparator:w,maxReplaces:R,alwaysFormat:$}=e.interpolation;this.escape=i!==void 0?i:p3,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=s?xo(s):o||"{{",this.suffix=a?xo(a):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=l?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=h?xo(h):p||xo("$t("),this.nestingSuffix=y?xo(y):D||xo(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=R||1e3,this.alwaysFormat=$!==void 0?$:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(i,n)=>i&&i.source===n?(i.lastIndex=0,i):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,i,n,r){let s,o,a,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=p=>{if(p.indexOf(this.formatSeparator)<0){let R=VN(i,c,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(R,void 0,n,T(v(v({},r),i),{interpolationkey:p})):R}let y=p.split(this.formatSeparator),D=y.shift().trim(),w=y.join(this.formatSeparator).trim();return this.format(VN(i,c,D,this.options.keySeparator,this.options.ignoreJSONStructure),w,n,T(v(v({},r),i),{interpolationkey:D}))};this.resetRegExp();let l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>nS(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?nS(this.escape(p)):nS(p)}].forEach(p=>{for(a=0;s=p.regex.exec(e);){let y=s[1].trim();if(o=u(y),o===void 0)if(typeof l=="function"){let w=l(e,s,r);o=X(w)?w:""}else if(r&&Object.prototype.hasOwnProperty.call(r,y))o="";else if(d){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${e}`),o="";else!X(o)&&!this.useRawValueToEscape&&(o=LN(o));let D=p.safeValue(o);if(e=e.replace(s[0],D),d?(p.regex.lastIndex+=o.length,p.regex.lastIndex-=s[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,i){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,s,o,a=(c,u)=>{let l=this.nestingOptionsSeparator;if(c.indexOf(l)<0)return c;let d=c.split(new RegExp(`${l}[ ]*{`)),h=`{${d[1]}`;c=d[0],h=this.interpolate(h,o);let p=h.match(/'/g),y=h.match(/"/g);(p&&p.length%2===0&&!y||y.length%2!==0)&&(h=h.replace(/'/g,'"'));try{o=JSON.parse(h),u&&(o=v(v({},u),o))}catch(D){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,D),`${c}${l}${h}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,c};for(;r=this.nestingRegexp.exec(e);){let c=[];o=v({},n),o=o.replace&&!X(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let l=r[1].split(this.formatSeparator).map(d=>d.trim());r[1]=l.shift(),c=l,u=!0}if(s=i(a.call(this,r[1].trim(),o),o),s&&r[0]===e&&!X(s))return s;X(s)||(s=LN(s)),s||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),s=""),u&&(s=c.reduce((l,d)=>this.format(l,d,n.lng,T(v({},n),{interpolationkey:r[1].trim()})),s.trim())),e=e.replace(r[0],s),this.regexp.lastIndex=0}return e}},b3=t=>{let e=t.toLowerCase().trim(),i={};if(t.indexOf("(")>-1){let n=t.split("(");e=n[0].toLowerCase().trim();let r=n[1].substring(0,n[1].length-1);e==="currency"&&r.indexOf(":")<0?i.currency||(i.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?i.range||(i.range=r.trim()):r.split(";").forEach(o=>{if(o){let[a,...c]=o.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),l=a.trim();i[l]||(i[l]=u),u==="false"&&(i[l]=!1),u==="true"&&(i[l]=!0),isNaN(u)||(i[l]=parseInt(u,10))}})}return{formatName:e,formatOptions:i}},No=t=>{let e={};return(i,n,r)=>
vendor: 4,690 bytes, line 13
13{let s=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(s=T(v({},s),{[r.interpolationkey]:void 0}));let o=n+JSON.stringify(s),a=e[o];return a||(a=t(Lf(n),r),e[o]=a),a(i)}},cS=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=yr.create("formatter"),this.options=e,this.formats={number:No((i,n)=>{let r=new Intl.NumberFormat(i,v({},n));return s=>r.format(s)}),currency:No((i,n)=>{let r=new Intl.NumberFormat(i,T(v({},n),{style:"currency"}));return s=>r.format(s)}),datetime:No((i,n)=>{let r=new Intl.DateTimeFormat(i,v({},n));return s=>r.format(s)}),relativetime:No((i,n)=>{let r=new Intl.RelativeTimeFormat(i,v({},n));return s=>r.format(s,n.range||"day")}),list:No((i,n)=>{let r=new Intl.ListFormat(i,v({},n));return s=>r.format(s)})},this.init(e)}init(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=i.interpolation.formatSeparator||","}add(e,i){this.formats[e.toLowerCase().trim()]=i}addCached(e,i){this.formats[e.toLowerCase().trim()]=No(i)}format(e,i,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=i.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(a=>a.indexOf(")")>-1)){let a=s.findIndex(c=>c.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,a)].join(this.formatSeparator)}return s.reduce((a,c)=>{let{formatName:u,formatOptions:l}=b3(c);if(this.formats[u]){let d=a;try{let h=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},p=h.locale||h.lng||r.locale||r.lng||n;d=this.formats[u](a,p,v(v(v({},l),r),h))}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},e)}},w3=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)},uS=class extends Oo{constructor(e,i,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=i,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=yr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,i,n,r){let s={},o={},a={},c={};return e.forEach(u=>{let l=!0;i.forEach(d=>{let h=`${u}|${d}`;!n.reload&&this.store.hasResourceBundle(u,d)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?o[h]===void 0&&(o[h]=!0):(this.state[h]=1,l=!1,o[h]===void 0&&(o[h]=!0),s[h]===void 0&&(s[h]=!0),c[d]===void 0&&(c[d]=!0)))}),l||(a[u]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(c)}}loaded(e,i,n){let r=e.split("|"),s=r[0],o=r[1];i&&this.emit("failedLoading",s,o,i),!i&&n&&this.store.addResourceBundle(s,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=i?-1:2,i&&n&&(this.state[e]=0);let a={};this.queue.forEach(c=>{d3(c.loaded,[s],o),w3(c,e),i&&c.errors.push(i),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{a[u]||(a[u]={});let l=c.loaded[u];l.length&&l.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(c=>!c.done)}read(e,i,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:i,fcName:n,tried:r,wait:s,callback:o});return}this.readingCalls++;let a=(u,l)=>{if(this.readingCalls--,this.waitingReads.length>0){let d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&l&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,i,n,r+1,s*2,o)},s);return}o(u,l)},c=this.backend[n].bind(this.backend);if(c.length===2){try{let u=c(e,i);u&&typeof u.then=="function"?u.then(l=>a(null,l)).catch(a):a(null,u)}catch(u){a(u)}return}return c(e,i,a)}prepareLoading(e,i){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();X(e)&&(e=this.languageUtils.toResolveHierarchy(e)),X(i)&&(i=[i]);let s=this.queueLoad(e,i,n,r);if(!s.toLoad.length)return s.pending.length||r(),null;
vendor: 10,836 bytes, line 13
13s.toLoad.forEach(o=>{this.loadOne(o)})}load(e,i,n){this.prepareLoading(e,i,{},n)}reload(e,i,n){this.prepareLoading(e,i,{reload:!0},n)}loadOne(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e.split("|"),r=n[0],s=n[1];this.read(r,s,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${i}loading namespace ${s} for language ${r} failed`,o),!o&&a&&this.logger.log(`${i}loaded namespace ${s} for language ${r}`,a),this.loaded(e,o,a)})}saveMissing(e,i,n,r,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${n}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){let c=T(v({},o),{isUpdate:s}),u=this.backend.create.bind(this.backend);if(u.length<6)try{let l;u.length===5?l=u(e,i,n,r,c):l=u(e,i,n,r),l&&typeof l.then=="function"?l.then(d=>a(null,d)).catch(a):a(null,l)}catch(l){a(l)}else u(e,i,n,r,a,c)}!e||!e[0]||this.store.addResource(e[0],i,n,r)}}},HN=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),X(t[1])&&(e.defaultValue=t[1]),X(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){let i=t[3]||t[2];Object.keys(i).forEach(n=>{e[n]=i[n]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),zN=t=>(X(t.ns)&&(t.ns=[t.ns]),X(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),X(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),Ff=()=>{},T3=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(i=>{typeof t[i]=="function"&&(t[i]=t[i].bind(t))})},$f=class t extends Oo{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(super(),this.options=zN(e),this.services={},this.logger=yr,this.modules={external:[]},T3(this),i&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,i),this;setTimeout(()=>{this.init(e,i)},0)}}init(){var e=this;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof i=="function"&&(n=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(X(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));let r=HN();this.options=v(v(v({},r),this.options),zN(i)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=v(v({},r.interpolation),this.options.interpolation)),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);let s=l=>l?typeof l=="function"?new l:l:null;if(!this.options.isClone){this.modules.logger?yr.init(s(this.modules.logger),this.options):yr.init(null,this.options);let l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=cS);let d=new Uf(this.options);this.store=new kf(this.options.resources,this.options);let h=this.services;h.logger=yr,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new oS(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(h.formatter=s(l),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new aS(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new uS(s(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(p){for(var y=arguments.length,D=new Array(y>1?y-1:0),w=1;w<y;w++)D[w-1]=arguments[w];e.emit(p,...D)}),this.modules.languageDetector&&(h.languageDetector=s(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=s(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new jf(this.services,this.options),this.translator.on("*",function(p){for(var y=arguments.length,D=new Array(y>1?y-1:0),w=1;w<y;w++)D[w-1]=arguments[w];e.emit(p,...D)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ff),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&l[0]!=="dev"&&(this.options.lng=l[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(l=>{this[l]=function(){return e.store[l](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(l=>{this[l]=function(){return e.store[l](...arguments),e}});let c=wc(),u=()=>{let l=(d,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(h),n(d,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return l(null,this.t.bind(this));this.changeLanguage(this.options.lng,l)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ff,r=X(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();let s=[],o=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&s.indexOf(u)<0&&s.push(u)})};r?o(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>o(c)),this.options.preload&&this.options.preload.forEach(a=>o(a)),this.services.backendConnector.load(s,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(e,i,n){let r=wc();return typeof e=="function"&&(n=e,e=void 0),typeof i=="function"&&(n=i,i=void 0),e||(e=this.languages),i||(i=this.options.ns),n||(n=Ff),this.services.backendConnector.reload(e,i,s=>{r.resolve(),n(s)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&WN.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let i=0;i<this.languages.length;i++){let n=this.languages[i];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,i){var n=this;this.isLanguageChangingTo=e;let r=wc();this.emit("languageChanging",e);let s=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},o=(c,u)=>{u?(s(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),i&&i(c,function(){return n.t(...arguments)})},a=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);let u=X(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||s(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,l=>{o(l,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),r}getFixedT(e,i,n){var r=this;let s=function(o,a){let c;if(typeof a!="object"){for(var u=arguments.length,l=new Array(u>2?u-2:0),d=2;d<u;d++)l[d-2]=arguments[d];c=r.options.overloadTranslationOptionHandler([o,a].concat(l))}else c=v({},a);c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||n||s.keyPrefix);let h=r.options.keySeparator||".",p;return c.keyPrefix&&Array.isArray(o)?p=o.map(y=>`${c.keyPrefix}${h}${y}`):p=c.keyPrefix?`${c.keyPrefix}${h}${o}`:o,r.t(p,c)};return X(e)?s.lng=e:s.lngs=e,s.ns=i,s.keyPrefix=n,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
13if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=i.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;let o=(a,c)=>{let u=this.services.backendConnector.state[`${a}|${c}`];return u===-1||u===0||u===2};if(i.precheck){let a=i.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,e)&&(!r||o(s,e)))}loadNamespaces(e,i){let n=wc();return this.options.ns?(X(e)&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{n.resolve(),i&&i(r)}),n):(i&&i(),Promise.resolve())}loadLanguages(e,i){let n=wc();X(e)&&(e=[e]);let r=this.options.preload||[],s=e.filter(o=>r.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=r.concat(s),this.loadResources(o=>{n.resolve(),i&&i(o)}),n):(i&&i(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";let i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Uf(HN());return i.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new t(e,i)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ff,n=e.forkResourceStore;n&&delete e.forkResourceStore;let r=T(v(v({},this.options),e),{isClone:!0}),s=new t(r);return(e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(a=>{s[a]=this[a]}),s.services=v({},this.services),s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},n&&(s.store=new kf(this.store.data,r),s.services.resourceStore=s.store),s.translator=new jf(s.services,r),s.translator.on("*",function(a){for(var c=arguments.length,u=new Array(c>1?c-1:0),l=1;l<c;l++)u[l-1]=arguments[l];s.emit(a,...u)}),s.init(r,i),s.translator.options=r,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},Et=$f.createInstance();Et.createInstance=$f.createInstance;var due=Et.createInstance,fue=Et.dir,hue=Et.init,pue=Et.loadResources,gue=Et.reloadResources,mue=Et.use,vue=Et.changeLanguage,yue=Et.getFixedT,Eue=Et.t,Cue=Et.exists,Sue=Et.setDefaultNamespace,Iue=Et.hasLoadedNamespace,Due=Et.loadNamespaces,bue=Et.loadLanguages;var qN=function(e){return{type:"backend",init:function(n,r,s){},read:function(n,r,s){if(typeof e=="function"){if(e.length<3){try{var o=e(n,r);o&&typeof o.then=="function"?o.then(function(a){return s(null,a&&a.default||a)}).catch(s):s(null,o)}catch(a){s(a)}return}e(n,r,s);return}s(null,e&&e[n]&&e[n][r])}}};function Gf(t){return t&&typeof t=="object"&&!Array.isArray(t)}function A3(t){return t==="__proto__"||t==="constructor"}function It(t={},...e){if(!e.length)return t;let i=e.shift()||{};if(!Gf(i))return It(t,...e);for(let n in i)A3(n)||(i[n]instanceof Date?t[n]=i[n]:Gf(i[n])?(Gf(t[n])||(t[n]={}),It(t[n],i[n])):t[n]=i[n]);return It(t,...e)}function R3(){return It({},C(CO),C(II))}var qt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:()=>R3(),providedIn:"root"});let t=e;return t})();function M3(){return It({},...C(qo,{optional:!0})??[])}var CO=new S("DefaultConfiguration",{providedIn:"root",factory:M3});function x3(){return It({},...C(Gc,{optional:!0})??[])}var II=new S("RootConfiguration",{providedIn:"root",factory:x3}),Gc=new S("ConfigurationChunk"),qo=new S("DefaultConfigurationChunk");function YN(t={},e=!1){return{provide:e?qo:Gc,useValue:t,multi:!0}}function yS(t,e,i=!1){return{provide:i?qo:Gc,useFactory:t,multi:!0,deps:e}}function Sr(t={}){return{provide:qo,useValue:t,multi:!0}}function Wc(t,e){return{provide:qo,useFactory:t,multi:!0,deps:e}}var DI=function(t){return t.BILLING="BILLING",t.SHIPPING="SHIPPING",t}(DI||{}),we=function(t){return t.CONTENT_PAGE="ContentPage",t.PRODUCT_PAGE="ProductPage",t.CATEGORY_PAGE="CategoryPage",t.CATALOG_PAGE="CatalogPage",t}(we||{});var Fo="userCmsEndpoints",ES=function(t){return t.GIVEN="GIVEN",t.WITHDRAWN="WITHDRAWN",t}(ES||{}),N3="X-Anonymous-Consents",O3=function(t){return t.PRIMARY="PRIMARY",t.GALLERY="GALLERY",t}(O3||{}),Wf=class{};var P3=function(t){return t.BACK_IN_STOCK="BACK_IN_STOCK",t}(P3||{});var F3=function(t){return t.BUY="BUY",t.FROM="FROM",t}(F3||{});var SO="[ENTITY] REMOVE",IO="[ENTITY] REMOVE ALL";function bi(t,e){return{entityType:t,entityId:e}}function DO(t,e){return{entityId:e,entityType:t,entityRemove:!0}}function bO(t){return{entityId:null,entityType:t,entityRemove:!0}}var CS=class{constructor(e,i){this.type=SO,this.meta=DO(e,i)}},SS=class{constructor(e){this.type=IO,this.meta=bO(e)}},wO="[LOADER] LOAD",TO="[LOADER] FAIL",AO="[LOADER] SUCCESS",RO="[LOADER] RESET";function bI(t){return{entityType:t,loader:{load:!0}}}function wI(t,e){return{entityType:t,loader:{error:e||!0}}}function TI(t){return{entityType:t,loader:{success:!0}}}function Eg(t){return{entityType:t,loader:{}}}var ut=class{constructor(e){this.type=wO,this.meta=bI(e)}},Dt=class{constructor(e,i){this.type=TO,this.meta=wI(e,i)}},bt=class{constructor(e){this.type=AO,this.meta=TI(e)}},zr=class{constructor(e){this.type=RO,this.meta=Eg(e)}},AI="[ENTITY] LOAD",RI="[ENTITY] LOAD FAIL",MI="[ENTITY] LOAD SUCCESS",xI="[ENTITY] RESET";function NI(t,e){return v(v({},bI(t)),bi(t,e))}function OI(t,e,i){return v(v({},wI(t,i)),bi(t,e))}function PI(t,e){return v(v({},TI(t)),bi(t,e))}function FI(t,e){return v(v({},Eg(t)),bi(t,e))}var Ut=class{constructor(e,i){this.type=AI,this.meta=NI(e,i)}},Ot=class{constructor(e,i,n){this.type=RI,this.meta=OI(e,i,n)}},lt=class{constructor(e,i,n){this.payload=n,this.type=MI,this.meta=PI(e,i)}},Un=class{constructor(e,i){this.type=xI,this.meta=FI(e,i)}};function et(t){return t.value}function $t(t){return t.loading??!1}function Yo(t){return t.error??!1}function Vn(t){return t.success??!1}var Er={loading:!1,error:!1,success:!1,value:void 0};function Ct(t,e){return(i=Er,n)=>{if(n.meta&&n.meta.loader&&n.meta.entityType===t){let s=n.meta.loader;return s.load?T(v({},i),{loading:!0,value:r(i.value)}):s.error?T(v({},i),{loading:!1,error:!0,success:!1,value:r(void 0)}):s.success?T(v({},i),{value:r(n.payload),loading:!1,error:!1,success:!0}):T(v({},Er),{value:e?e(Er.value,n):Er.value})}
13if(e){let s=e(i.value,n);if(s!==i.value)return T(v({},i),{value:s})}return i;function r(s){return e?e(i.value,n):s}}}function dn(t,e){return t.entities[e]||Er}function _3(t,e){let i=dn(t,e);return et(i)}function L3(t,e){let i=dn(t,e);return $t(i)}function k3(t,e){let i=dn(t,e);return Yo(i)}function j3(t,e){let i=dn(t,e);return Vn(i)}var IS={entities:{}};function qc(t,e){return(n=IS,r)=>{let s=[],o=!1;if(r.meta&&r.meta.entityType===t&&r.meta.entityId!==void 0){if(r.meta.entityId!==null&&(s=[].concat(r.meta.entityId)),r.meta.entityRemove)return i(r,n,s);o=Array.isArray(r.meta.entityId)&&Array.isArray(r.payload)}else s=Object.keys(n.entities);let a={};for(let c=0;c<s.length;c++){let u=s[c],l=o?T(v({},r),{payload:r.payload[c]}):r,d=e(n.entities[u],l);d&&(a[u]=d)}return Object.keys(a).length>0?T(v({},n),{entities:v(v({},n.entities),a)}):n};function i(n,r,s){if(n?.meta?.entityId===null)return IS;{let o=!1,a=Object.keys(r.entities).reduce((c,u)=>(s.includes(u)?o=!0:c[u]=r.entities[u],c),{});return o?{entities:a}:r}}}function ds(t,e){return qc(t,Ct(t,e))}var MO="[PROCESSES LOADER] INCREMENT",xO="[PROCESSES LOADER] DECREMENT",NO="[PROCESSES LOADER] RESET";function _I(t){return{entityType:t,loader:void 0,processesCountDiff:1}}function LI(t){return{entityType:t,loader:void 0,processesCountDiff:-1}}function kI(t){return T(v({},Eg(t)),{processesCountDiff:null})}var DS=class{constructor(e){this.type=NO,this.meta=kI(e)}},bS=class{constructor(e){this.type=MO,this.meta=_I(e)}},wS=class{constructor(e){this.type=xO,this.meta=LI(e)}},OO="[ENTITY] PROCESSES LOADER RESET",PO="[ENTITY] PROCESSES INCREMENT",FO="[ENTITY] PROCESSES DECREMENT";function _O(t,e){return v(v({},kI(t)),bi(t,e))}function LO(t,e){return v(v({},_I(t)),bi(t,e))}function kO(t,e){return v(v({},LI(t)),bi(t,e))}var TS=class{constructor(e,i){this.type=OO,this.meta=_O(e,i)}},AS=class{constructor(e,i){this.type=PO,this.meta=LO(e,i)}},RS=class{constructor(e,i){this.type=FO,this.meta=kO(e,i)}};function jO(t){return!t.processesCount&&!t.loading}function UO(t){return t.processesCount!==void 0&&t.processesCount>0}var qf={processesCount:0};function $O(t,e){return(i=v(v({},qf),Er),n)=>{let r=Ct(t,e)(i,n);if(n.meta&&n.meta.entityType===t){let s=n.meta.processesCountDiff;if(Ee()&&i.processesCount&&s&&i.processesCount+s<0&&console.error(`Action '${n.type}' sets processesCount to value < 0! 14Make sure to keep processesCount in sync. 15There should always be only one decrement action for each increment action. 16Make sure that you don't reset state in between those actions. 17`,n),s)return T(v({},r),{processesCount:i.processesCount?i.processesCount+s:s});if(s===null)return v(v({},r),qf)}return r}}var U3=v(v({},Er),qf);function $3(t,e){let i=dn(t,e);return UO(i)}function B3(t,e){let i=dn(t,e);return jO(i)}function V3(t,e){return t.entities[e]||U3}function H3(t,e){return qc(t,$O(t,e))}function BO(t,e){return t.entities[e]||void 0}var jI=".";function z3(t,e){return t.split(jI).reduce((n,r)=>n?n[r]:void 0,e)}function G3(t,e,i){if(!t||!i||Object.keys(i).length===0)return{};let n=t.split(jI).reduceRight((r,s)=>({[s]:r}),i);return W3(t,e,n)}function UI(t,e,i){if(t&&t.length===0)return{};let n={};for(let r of t){let s=z3(r,i),o=G3(r,e,s);n=It(n,o)}return n}function W3(t,e,i){let n=q3(t,e);if(n.length===0)return i;let r=It({},i);for(let s of n){let o=s.split(jI),a=r;for(let c=0;c<o.length;c++){let u=o[c];c===o.length-1?a&&a[u]&&delete a[u]:a=a[u]}}return r}function q3(t,e){if(!t||!e)return[];let i=[];for(let n of e)n.includes(t)&&i.push(n);return i}function VO(t,e){return t?Object.keys(t).filter(i=>t[i]===e):[]}var Y3="all";function $I(t,e){return`${e??""}?pageSize=${t.pageSize??""}¤tPage=${t.currentPage??""}&sort=${t.sort??""}`}function K3(t,e){return HO(t.list,t.entities,e)}function HO(t,e,i,n){let r=dn(t,i?$I(i,n):n??Y3);if(!r.value||!r.value.ids)return r;let s=Object.assign({},r,{value:{values:r.value.ids.map(o=>dn(e,o).value)}});return i&&s.value&&(s.value.pagination=r.value.pagination,s.value.sorts=r.value.sorts),s}function Z3(t,e){let i=t.values||[],n={ids:i.map(r=>r[e])};return t.pagination&&(n.pagination=t.pagination),t.sorts&&(n.sorts=t.sorts),{values:i,page:n}}function Q3(t,e){return[t,$I(e)].toString()}var Yue=Object.freeze({__proto__:null,ENTITY_FAIL_ACTION:RI,ENTITY_LOAD_ACTION:AI,ENTITY_PROCESSES_DECREMENT_ACTION:FO,ENTITY_PROCESSES_INCREMENT_ACTION:PO,ENTITY_PROCESSES_LOADER_RESET_ACTION:OO,ENTITY_REMOVE_ACTION:SO,ENTITY_REMOVE_ALL_ACTION:IO,ENTITY_RESET_ACTION:xI,ENTITY_SUCCESS_ACTION:MI,EntityFailAction:Ot,EntityLoadAction:Ut,EntityLoaderResetAction:Un,EntityProcessesDecrementAction:RS,EntityProcessesIncrementAction:AS,EntityProcessesLoaderResetAction:TS,EntityRemoveAction:CS,EntityRemoveAllAction:SS,EntitySuccessAction:lt,LOADER_FAIL_ACTION:TO,LOADER_LOAD_ACTION:wO,LOADER_RESET_ACTION:RO,LOADER_SUCCESS_ACTION:AO,LoaderFailAction:Dt,LoaderLoadAction:ut,LoaderResetAction:zr,LoaderSuccessAction:bt,PROCESSES_DECREMENT_ACTION:xO,PROCESSES_INCREMENT_ACTION:MO,PROCESSES_LOADER_RESET_ACTION:NO,ProcessesDecrementAction:wS,ProcessesIncrementAction:bS,ProcessesLoaderResetAction:DS,denormalizeCustomB2BSearch:HO,denormalizeSearch:K3,entityErrorSelector:k3,entityFailMeta:OI,entityHasPendingProcessesSelector:$3,entityIsStableSelector:B3,entityLoadMeta:NI,entityLoaderReducer:ds,entityLoaderStateSelector:dn,entityLoadingSelector:L3,entityMeta:bi,entityProcessesDecrementMeta:kO,entityProcessesIncrementMeta:LO,entityProcessesLoaderReducer:H3,entityProcessesLoaderResetMeta:_O,entityProcessesLoaderStateSelector:V3,entityReducer:qc,entityRemoveAllMeta:bO,entityRemoveMeta:DO,entityResetMeta:FI,entitySelector:BO,entitySuccessMeta:PI,entitySuccessSelector:j3,entityValueSelector:_3,failMeta:wI,getStateSlice:UI,hasPendingProcessesSelector:UO,initialEntityState:IS,initialLoaderState:Er,initialProcessesState:qf,isStableSelector:jO,loadMeta:bI,loaderErrorSelector:Yo,loaderLoadingSelector:$t,loaderReducer:Ct,loader
17SuccessSelector:Vn,loaderValueSelector:et,normalizeListPage:Z3,processesDecrementMeta:LI,processesIncrementMeta:_I,processesLoaderReducer:$O,processesLoaderResetMeta:kI,resetMeta:Eg,serializeParams:Q3,serializeSearchConfig:$I,successMeta:TI}),J3="anonymous-consents",zO="[Anonymous Consents] Anonymous Consents",X3="[Anonymous Consents] Load Anonymous Consent Templates";var eW="[Anonymous Consents] Reset Load Anonymous Consent Templates";var tW="[Anonymous Consents] Set Anonymous Consents",nW="[Anonymous Consents] Give Anonymous Consent",rW="[Anonymous Consents] Withdraw Anonymous Consent",iW="[Anonymous Consents] Toggle Anonymous Consents Banner Dismissed",sW="[Anonymous Consents] Anonymous Consent Templates Updated",oW="[Anonymous Consents] Check Updated Versions",MS=class extends ut{constructor(){super(zO),this.type=X3}};var xS=class extends zr{constructor(){super(zO),this.type=eW}};var NS=class{constructor(e){this.payload=e,this.type=tW}},OS=class{constructor(e){this.templateCode=e,this.type=nW}},PS=class{constructor(e){this.templateCode=e,this.type=rW}},FS=class{constructor(e){this.dismissed=e,this.type=iW}},_S=class{constructor(e){this.updated=e,this.type=sW}},LS=class{constructor(){this.type=oW}};var Cg=kn(J3),Sg=A(Cg,t=>t.templates),kS=A(Sg,t=>et(t)),aW=A(Sg,$t),cW=A(Sg,Vn),uW=A(Sg,Yo),lW=t=>A(kS,e=>e?e.find(i=>i.id===t):void 0),dW=A(Cg,t=>t.ui.updated),fW=A(Cg,t=>t.ui.bannerDismissed),GO=A(Cg,t=>t.consents),hW=t=>A(GO,e=>e.find(i=>i.templateCode===t));var Yf="current",ko="anonymous",pW="guest",gW=Object.freeze({__proto__:null,OCC_USER_ID_ANONYMOUS:ko,OCC_USER_ID_CURRENT:Yf,OCC_USER_ID_GUEST:pW}),Kue="current",wi="[Auth] Login",Ti="[Auth] Logout",xc=class{constructor(){this.type=wi}},Kf=class{constructor(){this.type=Ti}},Zue=Object.freeze({__proto__:null,LOGIN:wi,LOGOUT:Ti,Login:xc,Logout:Kf}),qr=(()=>{let e=class e{constructor(){this._userId=new Kt(1)}setUserId(n){this._userId.next(n)}getUserId(){return this._userId}takeUserId(n=!1){return this.getUserId().pipe(le(1),E(r=>{if(n&&r===ko)throw new Error("Requested user id for logged user while user is not logged in.");return r}))}clearUserId(){this.setUserId(ko)}isEmulated(){return this.getUserId().pipe(E(n=>n!==ko&&n!==Yf))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),mW="oAuthRedirectCodeFlow",Rc=function(t){return t[t.ResourceOwnerPasswordFlow=0]="ResourceOwnerPasswordFlow",t[t.ImplicitFlow=1]="ImplicitFlow",t[t.AuthorizationCode=2]="AuthorizationCode",t}(Rc||{}),vW=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=f(qt),s},providedIn:"root"});let t=e;return t})(),Yr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=f(qt),s},providedIn:"root"});let t=e;return t})(),Ir=(()=>{let e=class e extends Yr{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=f(qt),s},providedIn:"root"});let t=e;return t})(),Ig=(()=>{let e=class e{constructor(n,r){this.authConfig=n,this.occConfig=r}get config(){return this.authConfig?.authentication??{}}getClientId(){return this.config?.client_id??""}getClientSecret(){return this.config?.client_secret??""}getBaseUrl(){return this.config?.baseUrl??(this.occConfig?.backend?.occ?.baseUrl??"")+"/authorizationserver"}getTokenEndpoint(){let n=this.config?.tokenEndpoint??"";return this.prefixEndpoint(n)}getLoginUrl(){let n=this.config?.loginUrl??"";return this.prefixEndpoint(n)}getRevokeEndpoint(){let n=this.config?.revokeEndpoint??"";return this.prefixEndpoint(n)}getLogoutUrl(){let n=this.config?.logoutUrl??"";return this.prefixEndpoint(n)}getUserinfoEndpoint(){let n=this.config?.userinfoEndpoint??"";return this.prefixEndpoint(n)}getOAuthLibConfig(){return this.config?.OAuthLibConfig??{}}prefixEndpoint(n){let r=n;return r.startsWith("/")||(r="/"+r),`${this.getBaseUrl()}${r}`}getOAuthFlow(){let n=this.config?.OAuthLibConfig?.responseType;if(n){let r=n.split(" ");return r.includes("code")?Rc.AuthorizationCode:r.includes("token")?Rc.ImplicitFlow:Rc.ResourceOwnerPasswordFlow}return Rc.ResourceOwnerPasswordFlow}};e.\u0275fac=function(r){return new(r||e)(f(vW),f(Ir))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),yW=new S("SERVER_REQUEST_URL"),EW=new S("SERVER_REQUEST_ORIGIN"),vs=(()=>{let e=class e{constructor(n,r,s,o){this.platformId=r,this.serverUrl=s,this.serverOrigin=o,this.document=n}isBrowser(){return pi(this.platformId)}get nativeWindow(){return this.isBrowser()?window:void 0}get sessionStorage(){return this.nativeWindow?this.nativeWindow.sessionStorage:void 0}get localStorage(){return this.nativeWindow?this.nativeWindow.localStorage:void 0}get location(){if(this.isBrowser())return this.document.location;if(!this.serverUrl)throw new Error("Cannot resolve the href as the SERVER_REQUEST_URL is undefined");if(!this.serverOrigin)throw new Error("Cannot resolve the origin as the SERVER_REQUEST_ORIGIN is undefined");return{href:this.serverUrl,origin:this.serverOrigin}}get resize$(){return this.nativeWindow?oa(this.nativeWindow,"resize").pipe(Pi(300),An({target:this.nativeWindow}),Xt()):I(null)}};e.\u0275fac=function(r){return new(r||e)(f(Ue),f(Ye),f(yW,8),f(EW,8))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),WO=(()=>{let e=class e{constructor(n,r,s,o){this.oAuthService=n,this.authConfigService=r,this.platformId=s,this.winRef=o,this.events$=this.oAuthService.events,this.initialize()}initialize(){let n=!this.winRef.isBrowser();this.oAuthService.configure(v({tokenEndpoint:this.authConfigService.getTokenEndpoint(),loginUrl:this.authConfigService.getLoginUrl(),clientId:this.authConfigService.getClientId(),dummyClientSecret:this.authConfigService.getClientSecret(),revocationEndpoint:this.authConfigService.getRevokeEndpoint(),logoutUrl:this.authConfigService.getLogoutUrl(),userinfoEndpoint:this.authConfigService.getUserinfoEndpoint(),issuer:this.authConfigService.getOAuthLibConfig()?.issuer??this.authConfigService.getBaseUrl(),redirectUri:this.authConfigService.getOAuthLibConfig()?.redirectUri??(n?"":this.winRef.nativeWindow.location.origin)},this.authConfigService.getOAuthLibConfig()))}authorizeWithPasswordFlow(n,r){return this.oAuthService.fetchTokenUsingPasswordFlow(n,r)}refreshToken(){this.oAuthService.refreshToken()}revokeAndLogout(){return new Promise(n=>{this.oAuthService.revokeTokenAndLogout(!0).catch(()=>{this.oAuthService.logOut(!0)}).finally(()=>{n()})})}logout(){this.oAuthService.logOut(!0)}getIdToken(){return this.oAuthService.getIdToken()}initLoginFlow(){return this.winRef.localStorage&&this.winRef.localStorage?.setItem(mW,"true"),this.oAuthService.initLoginFlow()}tryLogin(){return new Promise(n=>{let r,s=this.events$.pipe(N(o=>o.type==="token_received"),le(1)).subscribe(o=>r=o);this.oAuthService.tryLogin({disableOAuth2StateCheck:!0}).then(o=>{n({result:o,tokenReceived:!!r})}).finally(()=>{s.unsubscribe()})})}};e.\u0275fac=function(r){return new(r||e)(f(Df),f(Ig),f(Ye),f(vs))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Yc=(()=>{let e=class e extends us{constructor(){super(...arguments),this._token$=new Ae({})}decode(n,r){return e.nonStringifiedOAuthLibKeys.includes(n)?r:JSON.stringify(r)}encode(n,r){if(e.nonStringifiedOAuthLibKeys.includes(n))return r;try{return JSON.parse(r)}catch{return r}}getToken(){return this._token$}setToken(n){this._token$.next(n)}getItem(n){let r;return this.getToken().subscribe(s=>r=s).unsubscribe(),this.decode(n,r?.[n])}removeItem(n){let r=v({},this._token$.value);delete r[n],this._token$.next(v({},r))}setItem(n,r){n&&this._token$.next(T(v({},this._token$.value),{[n]:this.encode(n,r)}))}};e.nonStringifiedOAuthLibKeys=["PKCE_verifier","access_token","refresh_token","expires_at","access_token_stored_at","id_token","id_token_expires_at","id_token_stored_at","session_state","nonce"],e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qO="[Router] Change Next PageContext",jS=class{constructor(e){this.payload=e,this.type=qO}};var US="router",CW=kn(US),Dg=A(CW,t=>t.router),Que=A(Dg,t=>t.state&&t.state.semanticRoute||""),SW=A(Dg,t=>t.state&&t.state.context||{id:""}),YO=A(Dg,t=>t.nextState&&t.nextState.context),IW=A(YO,t=>!!t);var $S=t=>t.startsWith(":"),KN=t=>t.slice(1);var ee=(()=>{let e=class e{log(...n){console.log(...n)}warn(...n){console.warn(...n)}error(...n){console.error(...n)}info(...n){console.info(...n)}debug(...n){console.debug(...n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),bg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=f(qt),s},providedIn:"root"});let t=e;return t})(),wg=(()=>{let e=class e{constructor(n){this.config=n,this.logger=C(ee)}getRouteConfig(n){let r=this.config?.routing?.routes,s=r&&r[n];return(!r||s===void 0)&&this.warn(`No path was configured for the named route '${n}'!`),s}warn(...n){Ee()&&this.logger.warn(...n)}getLoadStrategy(){return this.config?.routing?.loadStrategy??"always"}getRouteName(n){return this.routeNamesByPath||this.initRouteNamesByPath(),this.routeNamesByPath[n]}initRouteNamesByPath(){this.routeNamesByPath={};for(let[n,r]of Object.entries(this.config?.routing?.routes??{}))r?.paths?.forEach(s=>{Ee()&&this.routeNamesByPath[s]&&this.logger.error(`The same path '${s}' is configured for two different route names: '${this.routeNamesByPath[s]}' and '${n}`),this.routeNamesByPath[s]=n})}};e.\u0275fac=function(r){return new(r||e)(f(bg))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),BI=(()=>{let e=class e{constructor(n){this.router=n}
17getPrimarySegments(n){let r=this.router.parseUrl(n);return this._getPrimarySegmentsFromUrlTree(r.root)}_getPrimarySegmentsFromUrlTree(n){let r=n.segments.map(o=>o.path),s=n.children[ne]?this._getPrimarySegmentsFromUrlTree(n.children[ne]):[];return r.concat(s)}matchPath(n,r){if(n=Array.isArray(n)?n:this.getPrimarySegments(n),r=Array.isArray(r)?r:this.getPrimarySegments(r),n.length!==r.length)return!1;for(let s=0;s<r.length;s++){let o=r[s],a=n[s];if(!$S(o)&&o!==a)return!1}return!0}};e.\u0275fac=function(r){return new(r||e)(f(ke))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Kc=(()=>{let e=class e{constructor(n,r){this.routingConfigService=n,this.urlParser=r,this.ROOT_URL=["/"]}get(n){let r=this.routingConfigService.getRouteConfig(n);return r&&Array.isArray(r.paths)?"/"+r.paths[0]:void 0}transform(n){Array.isArray(n)||(n=[n]);let r=[];for(let s of n)if(!this.isRouteCommand(s))r.push(s);else{let o=this.generateUrlPart(s);if(o===null)return this.ROOT_URL;r.push(...o)}return this.shouldOutputAbsolute(n)&&r.unshift("/"),r}isRouteCommand(n){return n&&!!n.cxRoute}shouldOutputAbsolute(n){return this.isRouteCommand(n[0])}generateUrlPart(n){if(this.standarizeRouteCommand(n),!n.cxRoute)return null;let r=this.routingConfigService.getRouteConfig(n.cxRoute);if(!r||!r.paths)return null;let s=this.findPathWithFillableParams(r,n.params);return s?this.provideParamsValues(s,n.params,r.paramsMapping):null}standarizeRouteCommand(n){n.params=n.params||{}}provideParamsValues(n,r,s){return this.urlParser.getPrimarySegments(n).map(o=>{if($S(o)){let a=KN(o),c=this.getMappedParamName(a,s);return r?.[c]}return o})}findPathWithFillableParams(n,r){let s=n.paths?.find(o=>this.getParams(o).every(a=>{let c=this.getMappedParamName(a,n.paramsMapping);return r?.[c]!==void 0}));return s??null}getParams(n){return this.urlParser.getPrimarySegments(n).filter($S).map(KN)}getMappedParamName(n,r){return r&&r[n]||n}};e.\u0275fac=function(r){return new(r||e)(f(wg),f(BI))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),KO=(()=>{let e=class e{constructor(n){this.router=n,this.routes$=this.router.events.pipe(N(r=>r instanceof at),An(void 0),E(()=>{let r=this.router.routerState.snapshot.root,s=[r];for(;r=r.firstChild;)s.push(r);return s}),it({bufferSize:1,refCount:!0}))}};e.\u0275fac=function(r){return new(r||e)(f(ke))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),DW=(()=>{let e=class e{constructor(n,r){this.router=n,this.activatedRoutesService=r,this.params$=this.activatedRoutesService.routes$.pipe(E(s=>this.findAllParam(s)),it({refCount:!0,bufferSize:1}))}getParams(){return this.params$}findAllParam(n){return Object.assign({},...n.map(r=>r.params))}};e.\u0275fac=function(r){return new(r||e)(f(ke),f(KO))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ai=(()=>{let e=class e{constructor(n,r,s,o,a,c){this.store=n,this.winRef=r,this.semanticPathService=s,this.routingParamsService=o,this.router=a,this.location=c}getParams(){return this.routingParamsService.getParams()}getRouterState(){return this.store.pipe(O(Dg))}getPageContext(){return this.store.pipe(O(SW))}getNextPageContext(){return this.store.pipe(O(YO))}changeNextPageContext(n){this.store.dispatch(new jS(n))}isNavigating(){return this.store.pipe(O(IW))}go(n,r){let s=this.semanticPathService.transform(n);return this.navigate(s,r)}getUrl(n,r){let s=this.router.serializeUrl(this.router.createUrlTree(this.semanticPathService.transform(n),r));return s.startsWith("/")||(s=`/${s}`),s}getFullUrl(n,r){return`${this.winRef.document.location.origin}${this.getUrl(n,r)}`}goByUrl(n,r){return this.router.navigateByUrl(n,r)}back(){if(this.winRef.nativeWindow&&this.winRef.document.referrer.includes(this.winRef.nativeWindow.location.origin)){this.location.back();return}this.go(["/"])}forward(){this.location.forward()}navigate(n,r){return this.router.navigate(n,r)}};e.\u0275fac=function(r){return new(r||e)(f(De),f(vs),f(Kc),f(DW),f(ke),f(fr))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ZO=(()=>{let e=class e{constructor(){this.redirectUrl$=new Ae(void 0)}getRedirectUrl(){return this.redirectUrl$}setRedirectUrl(n){this.redirectUrl$.next(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),bW=(()=>{let e=class e{constructor(n,r){this.config=n,this.urlParsingService=r}get authFlowPaths(){return this._authFlowPaths||(this._authFlowPaths=Object.values(this.config?.routing?.routes||{}).reduce((n,r)=>r.authFlow===!0&&r.paths?.length?n.concat(r?.paths):n,[])),this._authFlowPaths}isAuthFlow(n){return this.authFlowPaths.some(r=>this.urlParsingService.matchPath(n,r))}};e.\u0275fac=function(r){return new(r||e)(f(bg),f(BI))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),VI=(()=>{let e=class e{constructor(n,r,s,o){this.routing=n,this.router=r,this.authRedirectStorageService=s,this.authFlowRoutesService=o,this.init()}init(){this.subscription=this.router.events.subscribe(n=>{n instanceof at&&this.setRedirectUrl(n.urlAfterRedirects)})}ngOnDestroy(){this.subscription?.unsubscribe()}redirect(){this.authRedirectStorageService.getRedirectUrl().pipe(le(1)).subscribe(n=>{n===void 0?this.routing.go("/"):this.routing.goByUrl(n),this.clearRedirectUrl()})}saveCurrentNavigationUrl(){let n=this.router.getCurrentNavigation();if(!n?.finalUrl)return;let r=this.router.serializeUrl(n.finalUrl);this.setRedirectUrl(r)}setRedirectUrl(n){this.authFlowRoutesService.isAuthFlow(n)||this.authRedirectStorageService.setRedirectUrl(n)}clearRedirectUrl(){this.authRedirectStorageService.setRedirectUrl(void 0)}};e.\u0275fac=function(r){return new(r||e)(f(Ai),f(ke),f(ZO),f(bW))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function $n(t){return typeof t<"u"}function Nc(t){return $n(t)&&t!==null}function Zc(t,e){return t.context&&t.context[e]||[]}function Ii(t,e){let i=Zc(t,e);return i&&i.length?i[0]:void 0}var ys="language",Es="currency",Gr="baseSite",wW="theme",HI="[Site-context] Loa
17d BaseSite",QO="[Site-context] Load BaseSite Fail",zI="[Site-context] Load BaseSite Success",GI="[Site-context] Load BaseSites",JO="[Site-context] Load BaseSites Fail",WI="[Site-context] Load BaseSites Success",qI="[Site-context] Set Active BaseSite",XO="[Site-context] BaseSite Change",BS=class{constructor(){this.type=HI}},Zf=class{constructor(e){this.payload=e,this.type=QO}},Qf=class{constructor(e){this.payload=e,this.type=zI}},Jf=class{constructor(){this.type=GI}},Xf=class{constructor(e){this.payload=e,this.type=JO}},eh=class{constructor(e){this.payload=e,this.type=WI}},th=class{constructor(e){this.payload=e,this.type=qI}},VS=class{constructor(){this.type=XO}},YI="[Site-context] Load Currencies",eP="[Site-context] Load Currencies Fail",KI="[Site-context] Load Currencies Success",Tg="[Site-context] Set Active Currency",Qc="[Site-context] Currency Change",nh=class{constructor(){this.type=YI}},rh=class{constructor(e){this.payload=e,this.type=eP}},ih=class{constructor(e){this.payload=e,this.type=KI}},sh=class{constructor(e){this.payload=e,this.type=Tg}},oh=class{constructor(e){this.payload=e,this.type=Qc}},ZI="[Site-context] Load Languages",tP="[Site-context] Load Languages Fail",QI="[Site-context] Load Languages Success",Ag="[Site-context] Set Active Language",Dr="[Site-context] Language Change",ah=class{constructor(){this.type=ZI}},ch=class{constructor(e){this.payload=e,this.type=tP}},uh=class{constructor(e){this.payload=e,this.type=QI}},lh=class{constructor(e){this.payload=e,this.type=Ag}},dh=class{constructor(e){this.payload=e,this.type=Dr}},Jue=Object.freeze({__proto__:null,BASE_SITE_CHANGE:XO,BaseSiteChange:VS,CURRENCY_CHANGE:Qc,CurrencyChange:oh,LANGUAGE_CHANGE:Dr,LOAD_BASE_SITE:HI,LOAD_BASE_SITES:GI,LOAD_BASE_SITES_FAIL:JO,LOAD_BASE_SITES_SUCCESS:WI,LOAD_BASE_SITE_FAIL:QO,LOAD_BASE_SITE_SUCCESS:zI,LOAD_CURRENCIES:YI,LOAD_CURRENCIES_FAIL:eP,LOAD_CURRENCIES_SUCCESS:KI,LOAD_LANGUAGES:ZI,LOAD_LANGUAGES_FAIL:tP,LOAD_LANGUAGES_SUCCESS:QI,LanguageChange:dh,LoadBaseSite:BS,LoadBaseSiteFail:Zf,LoadBaseSiteSuccess:Qf,LoadBaseSites:Jf,LoadBaseSitesFail:Xf,LoadBaseSitesSuccess:eh,LoadCurrencies:nh,LoadCurrenciesFail:rh,LoadCurrenciesSuccess:ih,LoadLanguages:ah,LoadLanguagesFail:ch,LoadLanguagesSuccess:uh,SET_ACTIVE_BASE_SITE:qI,SET_ACTIVE_CURRENCY:Tg,SET_ACTIVE_LANGUAGE:Ag,SetActiveBaseSite:th,SetActiveCurrency:sh,SetActiveLanguage:lh}),JI="siteContext",Jc=kn(JI),TW=t=>t.entities,AW=A(Jc,t=>t.baseSite),ZN=A(Jc,t=>t&&t.baseSite&&t.baseSite.activeSite),Xue=A(Jc,t=>t&&t.baseSite&&t.baseSite.details),RW=A(AW,TW),MW=A(RW,t=>t?Object.keys(t).map(e=>t[e]):null),xW=t=>t.entities,NW=t=>t.activeCurrency,nP=A(Jc,t=>t.currencies),OW=A(nP,xW),HS=A(nP,NW),PW=A(OW,t=>t?Object.keys(t).map(e=>t[e]):null),FW=t=>t.activeLanguage,_W=t=>t.entities,rP=A(Jc,t=>t.languages),LW=A(rP,_W),zS=A(rP,FW),kW=A(LW,t=>t?Object.keys(t).map(e=>t[e]):null);var Cs=(()=>{let e=class e{constructor(n,r){this.store=n,this.config=r}getActive(){return this.store.pipe(O(ZN),N(n=>!!n))}getAll(){return this.store.pipe(O(MW),j(n=>{n||this.store.dispatch(new Jf)}),N(Nc))}get(n){return n?this.getAll().pipe(E(r=>r.find(s=>s.uid===n))):this.getActive().pipe(M(r=>this.getAll().pipe(E(s=>s.find(o=>o.uid===r)))))}setActive(n){this.store.pipe(O(ZN),le(1)).subscribe(r=>{n&&r!==n&&this.store.dispatch(new th(n))})}isInitialized(){let n=!1;return this.getActive().subscribe(()=>n=!0).unsubscribe(),n}isValid(n){return!!n&&Zc(this.config,Gr).includes(n)}};e.\u0275fac=function(r){return new(r||e)(f(De),f(Yr))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),jW=(()=>{let e=class e{constructor(n){this.baseSiteService=n,this.MULTISITE_SEPARATOR="|"}getBaseSiteDecorator(){return this.baseSiteService.get().pipe(le(1),E(n=>n?.isolated?this.MULTISITE_SEPARATOR+n?.uid:""))}decorateUserId(n){return this.getBaseSiteDecorator().pipe(E(r=>n+r))}};e.\u0275fac=function(r){return new(r||e)(f(Cs))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ri=(()=>{let e=class e{constructor(n,r,s,o,a,c,u){this.store=n,this.userIdService=r,this.oAuthLibWrapperService=s,this.authStorageService=o,this.authRedirectService=a,this.routingService=c,this.authMultisiteIsolationService=u,this.refreshInProgress$=new Ae(!1),this.logoutInProgress$=new Ae(!1)}checkOAuthParamsInUrl(){return ft(this,null,function*(){try{let n=yield this.oAuthLibWrapperService.tryLogin(),r=this.authStorageService.getItem("access_token");n.result&&r&&(this.userIdService.setUserId(Yf),this.store.dispatch(new xc),n.tokenReceived&&this.authRedirectService.redirect())}catch{}})}loginWithRedirect(){return this.oAuthLibWrapperService.initLoginFlow(),!0}loginWithCredentials(n,r){return ft(this,null,function*(){let s=n;this.authMultisiteIsolationService&&(s=yield qn(this.authMultisiteIsolationService.decorateUserId(s)));try{yield this.oAuthLibWrapperService.authorizeWithPasswordFlow(s,r),this.userIdService.setUserId(Yf),this.store.dispatch(new xc),this.authRedirectService.redirect()}catch{}})}coreLogout(){return this.setLogoutProgress(!0),this.userIdService.clearUserId(),new Promise(n=>{this.oAuthLibWrapperService.revokeAndLogout().finally(()=>{this.store.dispatch(new Kf),this.setLogoutProgress(!1),n()})})}isUserLoggedIn(){return this.authStorageService.getToken().pipe(E(n=>!!n?.access_token),Xt())}logout(){this.routingService.go({cxRoute:"logout"})}setRefreshProgress(n){this.refreshInProgress$.next(n)}setLogoutProgress(n){this.logoutInProgress$.next(n)}};e.\u0275fac=function(r){return new(r||e)(f(De),f(qr),f(WO),f(Yc),f(VI),f(Ai),f(jW))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),UW=(()=>{let e=class e{constructor(n,r){this.store=n,this.authService=r}loadTemplates(){this.store.dispatch(new MS)}getTemplates(n=!1){return Ku(()=>n,this.store.pipe(O(kS),en(this.getLoadTemplatesLoading()),N(([r,s])=>!s),j(([r,s])=>{r||this.loadTemplates()}),N(([r,s])=>!!r),E(([r,s])=>r)),this.store.pipe(O(kS)))}getTemplate(n){return this.store.pipe(O(lW(n)))}getLoadTemplatesLoading(){return this.store.pipe(O(aW))}getLoadTemplatesSuccess(){return this.store.pipe(O(cW))}getLoadTemplatesError(){return this.store.pipe(O(uW))}
17resetLoadTemplatesState(){this.store.dispatch(new xS)}getConsents(){return this.store.pipe(O(GO))}setConsents(n){return this.store.dispatch(new NS(n))}getConsent(n){return this.authService.isUserLoggedIn().pipe(N(r=>!r),j(()=>this.getTemplates(!0)),M(()=>this.store.pipe(O(hW(n)))))}giveConsent(n){this.store.dispatch(new OS(n))}giveAllConsents(){return this.getTemplates(!0).pipe(j(n=>n.forEach(r=>{r.id&&this.giveConsent(r.id)})))}isConsentGiven(n){return(n&&n.consentState===ES.GIVEN)??!1}withdrawConsent(n){this.store.dispatch(new PS(n))}withdrawAllConsents(){return this.getTemplates(!0).pipe(j(n=>n.forEach(r=>{r.id&&this.withdrawConsent(r.id)})))}isConsentWithdrawn(n){return n&&n.consentState===ES.WITHDRAWN}toggleBannerDismissed(n){this.store.dispatch(new FS(n)),n&&this.toggleTemplatesUpdated(!1)}isBannerDismissed(){return this.store.pipe(O(fW))}getTemplatesUpdated(){return this.getTemplates(!0).pipe(M(()=>this.store.pipe(O(dW))))}toggleTemplatesUpdated(n){this.store.dispatch(new _S(n))}isBannerVisible(){return Ve([this.isBannerDismissed(),this.getTemplatesUpdated()]).pipe(j(()=>this.checkConsentVersions()),E(([n,r])=>!n||r))}checkConsentVersions(){this.store.dispatch(new LS)}detectUpdatedTemplates(n,r){if(r.length!==n.length)return!0;for(let s=0;s<r.length;s++){let o=r[s],a=n[s];if(o.version!==a.version)return!0}return!1}serializeAndEncode(n){if(!n)return"";let r=JSON.stringify(n);return encodeURIComponent(r)}decodeAndDeserialize(n){let r=decodeURIComponent(n);return r.length>0?JSON.parse(r):[]}consentsUpdated(n,r){let s=this.serializeAndEncode(n),o=this.serializeAndEncode(r);return s!==o}};e.\u0275fac=function(r){return new(r||e)(f(De),f(Ri))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),GS="cx-use-client-token",ele="cx-use-csagent-token",Oc=class{static createHeader(e,i,n){return n?n.append(e,JSON.stringify(i)):(n=new fe().set(e,JSON.stringify(i)),n)}static removeHeader(e,i){let n=i.headers.delete(e);return i.clone({headers:n})}static getInterceptorParam(e,i){let n=i.get(e);if(n)return JSON.parse(n)}},iP="client-auth",Rg="[Client auth] Client Token Data",sP="[Token] Load Client Token",$W="[Token] Load Client Token Fail",BW="[Token] Load Client Token Success",fh=class extends ut{constructor(){super(Rg),this.type=sP}},WS=class extends Dt{constructor(e){super(Rg,e),this.payload=e,this.type=$W}},qS=class extends bt{constructor(e){super(Rg),this.payload=e,this.type=BW}};var VW=kn(iP),QN=A(VW,t=>t.clientToken);var oP=(()=>{let e=class e{constructor(n){this.store=n}getClientToken(){return this.store.pipe(O(QN),pn(ei),N(n=>this.isClientTokenLoaded(n)?!0:(n.loading||this.store.dispatch(new fh),!1)),E(n=>n.value))}refreshClientToken(){return this.store.dispatch(new fh),this.store.pipe(O(QN),N(n=>this.isClientTokenLoaded(n)),E(n=>n.value),N($n))}isClientTokenLoaded(n){return!!((n.success||n.error)&&!n.loading)}};e.\u0275fac=function(r){return new(r||e)(f(De))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),HW=(()=>{let e=class e{constructor(n){this.clientTokenService=n}handleExpiredClientToken(n,r){return this.clientTokenService.refreshClientToken().pipe(le(1),M(s=>r.handle(this.createNewRequestWithNewToken(n,s))))}createNewRequestWithNewToken(n,r){return n=n.clone({setHeaders:{Authorization:`${r.token_type||"Bearer"} ${r.access_token}`}}),n}};e.\u0275fac=function(r){return new(r||e)(f(oP))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),YS=class{static resolve(e,i,n){for(let r of Object.keys(i)){let s=new RegExp("\\${"+r+"}","g");e=e.replace(s,n?encodeURIComponent(i[r]):i[r])}return e}},KS=class{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}},Mc="default";function JN(...t){let e=[];t=t.filter(i=>!!i);for(let i of t)e.push(zW(i));return t[0]?.startsWith("/")&&(e[0]="/"+e[0]),t[t.length-1]?.endsWith("/")&&(e[e.length-1]=e[e.length-1]+"/"),e.join("/")}function zW(t){return t=t.startsWith("/")?t.slice(1):t,t=t.endsWith("/")?t.slice(0,-1):t,t}var tt=(()=>{let e=class e{get activeBaseSite(){return this._activeBaseSite??Ii(this.config,Gr)}constructor(n,r){this.config=n,this.baseSiteService=r,this.logger=C(ee),this.baseSiteService&&this.baseSiteService.getActive().subscribe(s=>this._activeBaseSite=s)}getRawEndpointValue(n,r){return this.getEndpointForScope(n,r)}isConfigured(n,r){return!(typeof this.getEndpointFromConfig(n,r)>"u")}getBaseUrl(n={baseUrl:!0,prefix:!0,baseSite:!0}){let r=n.baseUrl===!1?"":this.config?.backend?.occ?.baseUrl??"",s=n.prefix===!1?"":this.getPrefix(),o=n.baseSite===!1?"":this.activeBaseSite;return JN(r,s,o)}buildUrl(n,r,s){let o=this.getEndpointForScope(n,r?.scope);
17if(r){let{urlParams:a,queryParams:c}=r;if(a&&(o=YS.resolve(o,a,!0)),c){let u={encoder:new KS};if(o.includes("?")){let h;[o,h]=o.split("?"),u=T(v({},u),{fromString:h})}let d=this.getHttpParamsFromQueryParams(c,u).toString();d.length&&(o+="?"+d)}}return this.buildUrlFromEndpointString(o,s)}getHttpParamsFromQueryParams(n,r){let s=new ze(r);return Object.keys(n).forEach(o=>{let a=n[o];a!==void 0&&(a===null?s=s.delete(o):s=s.set(o,a))}),s}getEndpointFromConfig(n,r){let s=this.config.backend?.occ?.endpoints;if(!s)return;let o=s[n];return r?r===Mc&&typeof o=="string"?o:o?.[r]:typeof o=="string"?o:o?.[Mc]}getEndpointForScope(n,r){let s=this.config.backend?.occ?.endpoints;if(!s)return"";let o=s[n];if(r){if(o?.[r])return o?.[r];if(r===Mc&&typeof o=="string")return o;Ee()&&this.logger.warn(`${n} endpoint configuration missing for scope "${r}"`)}return(typeof o=="string"?o:o?.[Mc])||n}buildUrlFromEndpointString(n,r){return JN(this.getBaseUrl(r),n)}getPrefix(){return this.config?.backend?.occ?.prefix&&!this.config.backend.occ.prefix.startsWith("/")?"/"+this.config.backend.occ.prefix:this.config?.backend?.occ?.prefix??""}};e.\u0275fac=function(r){return new(r||e)(f(Ir),f(Cs,8))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),GW=(()=>{let e=class e{constructor(n,r,s){this.clientTokenService=n,this.clientErrorHandlingService=r,this.occEndpoints=s}intercept(n,r){let s=this.isClientTokenRequest(n);return s&&(n=Oc.removeHeader(GS,n)),this.getClientToken(s).pipe(le(1),M(o=>(o?.access_token&&n.url.includes(this.occEndpoints.getBaseUrl())&&(n=n.clone({setHeaders:{Authorization:`${o.token_type||"Bearer"} ${o.access_token}`}})),r.handle(n).pipe(F(a=>{if(a instanceof Wt&&a.status===401&&s&&this.isExpiredToken(a))return this.clientErrorHandlingService.handleExpiredClientToken(n,r);throw a})))))}getClientToken(n){return n?this.clientTokenService.getClientToken():I(void 0)}isClientTokenRequest(n){return!!Oc.getInterceptorParam(GS,n.headers)}isExpiredToken(n){return n.error?.errors?.[0]?.type==="InvalidTokenError"}};e.\u0275fac=function(r){return new(r||e)(f(oP),f(HW),f(tt))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),WW=[{provide:Ln,useExisting:GW,multi:!0}],jo=function(t){return t.NO_STORAGE="NO_STORAGE",t.LOCAL_STORAGE="LOCAL_STORAGE",t.SESSION_STORAGE="SESSION_STORAGE",t}(jo||{}),Ko=function(t){return t.TRANSFER_STATE="SSR",t}(Ko||{});function XN(t,e){let i;switch(t){case jo.LOCAL_STORAGE:{i=e.localStorage;break}case jo.SESSION_STORAGE:{i=e.sessionStorage;break}case jo.NO_STORAGE:{i=void 0;break}default:i=e.sessionStorage}return i}function qW(t,e,i){!aP(i)&&e&&i.setItem(t,JSON.stringify(e))}function eO(t,e){if(aP(t))return;let i=t.getItem(e);if(i)return JSON.parse(i)}function aP(t){return!t}var XI=(()=>{let e=class e{constructor(n){this.winRef=n}syncWithStorage({key:n,state$:r,context$:s=I(""),storageType:o=jo.LOCAL_STORAGE,onRead:a=()=>{}}){let c=XN(o,this.winRef),u=new Ce;return u.add(s.pipe(E(l=>c?eO(c,this.generateKeyWithContext(l,n)):void 0),j(l=>a(l))).subscribe()),c&&u.add(r.pipe(en(s)).subscribe(([l,d])=>{qW(this.generateKeyWithContext(d,n),l,c)})),u}readStateFromStorage({key:n,context:r="",storageType:s=jo.LOCAL_STORAGE}){let o=XN(s,this.winRef);if(o)return eO(o,this.generateKeyWithContext(r,n))}generateKeyWithContext(n,r){return`spartacus\u26BF${[].concat(n).join("\u26BF")}\u26BF${r}`}};e.\u0275fac=function(r){return new(r||e)(f(vs))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),cP=(()=>{let e=class e{constructor(n,r,s,o){this.statePersistenceService=n,this.userIdService=r,this.authStorageService=s,this.authRedirectStorageService=o,this.subscription=new Ce,this.key="auth"}initSync(){this.subscription.add(this.statePersistenceService.syncWithStorage({key:this.key,state$:this.getAuthState(),onRead:n=>this.onRead(n)}))}getAuthState(){return Ve([this.authStorageService.getToken().pipe(N(n=>!!n),E(n=>v({},n))),this.userIdService.getUserId(),this.authRedirectStorageService.getRedirectUrl()]).pipe(E(([n,r,s])=>{let o=n;return o&&(o=v({},o),delete o.refresh_token),{token:o,userId:r,redirectUrl:s}}))}onRead(n){n?.token&&this.authStorageService.setToken(n.token),n?.redirectUrl&&this.authRedirectStorageService.setRedirectUrl(n.redirectUrl),n?.userId?this.userIdService.setUserId(n.userId):this.userIdService.clearUserId()}readStateFromStorage(){return this.statePersistenceService.readStateFromStorage({key:this.key})}isUserLoggedIn(){return!!this.readStateFromStorage()?.token?.access_token}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(f(XI),f(qr),f(Yc),f(ZO))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ZS="cx-state";function YW(t,e,i,n){if(e&&i?.state?.ssrTransfer?.keys){if(pi(t))return ZW(e,i.state.ssrTransfer.keys,!!n?.isUserLoggedIn());if(ts(t))return KW(e,i.state.ssrTransfer.keys)}return r=>r}function KW(t,e){let i=VO(e,Ko.TRANSFER_STATE);return function(n){return function(r,s){let o=n(r,s);if(o){let a=UI(i,[],o);t.set(ZS,a)}return o}}}function ZW(t,e,i){let n=VO(e,Ko.TRANSFER_STATE);return function(r){return function(s,o){if(o.type===Yd){if(s||(s=r
17(s,o)),!i&&t.hasKey(ZS)){let a=t.get(ZS,{}),c=UI(n,[],a);s=It({},s,c)}return s}return r(s,o)}}}var tO=new S("TransferStateMetaReducer"),QW=[{provide:tO,useFactory:YW,deps:[Ye,[new nn,ja],[new nn,qt],[new nn,cP]]},{provide:go,useExisting:tO,multi:!0}],Ss=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[...QW]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function K(t,e){if(t instanceof Wf)return t;if(t instanceof Wt){let i=new Wf;return i.message=t.message,i.status=t.status,i.statusText=t.statusText,i.url=t.url,Array.isArray(t.error.errors)?i.details=t.error.errors:typeof t.error.error=="string"&&(i.details=[{type:t.error.error,message:t.error.error_description}]),i}Ee()&&e.error("Error passed to normalizeHttpError is not HttpErrorResponse instance",t)}var JW=(()=>{let e=class e{constructor(n,r){this.http=n,this.authConfigService=r}loadClientAuthenticationToken(){let n=this.authConfigService.getTokenEndpoint(),r=new ze().set("client_id",encodeURIComponent(this.authConfigService.getClientId())).set("client_secret",encodeURIComponent(this.authConfigService.getClientSecret())).set("grant_type","client_credentials"),s=new fe({"Content-Type":"application/x-www-form-urlencoded"});return this.http.post(n,r,{headers:s})}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(Ig))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),XW=(()=>{let e=class e{constructor(n,r){this.actions$=n,this.clientAuthenticationTokenService=r,this.logger=C(ee),this.loadClientToken$=Z(()=>this.actions$.pipe(G(sP),Jn(()=>this.clientAuthenticationTokenService.loadClientAuthenticationToken().pipe(E(s=>new qS(s)),F(s=>I(new WS(K(s,this.logger))))))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(JW))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),e4=[XW];function t4(){return{clientToken:Ct(Rg)}}var uP=new S("ClientAuthReducers"),n4={provide:uP,useFactory:t4},r4=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[n4],imports:[ot,Ss,$r.forFeature(iP,uP),mi.forFeature(e4)]});let t=e;return t})(),i4=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[...WW]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[ot,r4]});let t=e;return t})(),Mg=new S("ConfigInitializer"),lP=new S("CONFIG_INITIALIZER_FORROOT_GUARD"),Bn=(()=>{let e=class e{constructor(n,r,s){this.config=n,this.initializerGuard=r,this.rootConfig=s,this.logger=C(ee),this.ongoingScopes$=new Ae(void 0)}get isStable(){return!this.initializerGuard||this.ongoingScopes$.value?.length===0}getStable(...n){return this.isStable?I(this.config):this.ongoingScopes$.pipe(N(r=>!!r&&this.areReady(n,r)),le(1),E(()=>this.config))}finishScopes(n){let r=[...this.ongoingScopes$.value??[]];for(let s of n)r.splice(r.indexOf(s),1);this.ongoingScopes$.next(r)}areReady(n,r){if(!n.length)return!r.length;for(let s of n)for(let o of r)if(this.scopesOverlap(s,o))return!1;return!0}scopesOverlap(n,r){return r.length>n.length&&([n,r]=[r,n]),n.startsWith(r)&&(n[r.length]||".")==="."}initialize(n){return ft(this,null,function*(){if(this.ongoingScopes$.value)return;let r=[],s=[];for(let o of n||[])if(o){if(!o.scopes||!o.scopes.length)throw new Error("CONFIG_INITIALIZER should provide scope!");Ee()&&!this.areReady(o.scopes,r)&&this.logger.warn("More than one CONFIG_INITIALIZER is initializing the same config scope."),r.push(...o.scopes),s.push(ft(this,null,function*(){let a=yield o.configFactory();It(this.rootConfig,a),It(this.config,a),this.finishScopes(o.scopes)}))}this.ongoingScopes$.next(r),s.length&&(yield Promise.all(s))})}};e.\u0275fac=function(r){return new(r||e)(f(qt),f(lP,8),f(II))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),dP=new S("ConfigurationValidator");function eD(t){return{provide:dP,useValue:t,multi:!0}}function s4(t,e,i){for(let n of e){let r=n(t);r&&i.warn(r)}}function o4(t){if(typeof t?.authentication?.baseUrl>"u"&&typeof t?.backend?.occ?.baseUrl>"u"&&t?.authentication?.OAuthLibConfig?.requireHttps!==!1)return"Authentication might not work correctly without setting either authentication.baseUrl or backend.occ.baseUrl configuration option! Workaround: To support relative urls in angular-oauth2-oidc library you can try setting authentication.OAuthLibConfig.requireHttps to fal
17se."}var a4={authentication:{client_id:"mobile_android",client_secret:"secret",tokenEndpoint:"/oauth/token",revokeEndpoint:"/oauth/revoke",loginUrl:"/oauth/authorize",OAuthLibConfig:{scope:"",customTokenParameters:["token_type"],strictDiscoveryDocumentValidation:!1,skipIssuerCheck:!0,disablePKCE:!0,oidc:!1,clearHashAfterLogin:!1}}};function Di(t,e){return Object.assign(new t,e)}var Wr=(()=>{let e=class e{};e.type="CxEvent";let t=e;return t})(),nO=(()=>{let e=class e extends Wr{};e.type="LogoutEvent";let t=e;return t})(),c4=(()=>{let e=class e extends Wr{};e.type="LoginEvent";let t=e;return t})(),QS=class{constructor(){this.sources=[],this.subscriptionsToSources=new Map,this.output$=new U(e=>(this.consumer=e,this.bindAllSourcesToConsumer(e),()=>{this.consumer=null,this.unbindAllSourcesFromConsumer()})).pipe(xs()),this.consumer=null}add(e){this.has(e)||(this.consumer&&this.bindSourceToConsumer(e,this.consumer),this.sources.push(e))}bindAllSourcesToConsumer(e){this.sources.forEach(i=>this.bindSourceToConsumer(i,e))}unbindAllSourcesFromConsumer(){this.sources.forEach(e=>this.unbindSourceFromConsumer(e))}bindSourceToConsumer(e,i){let n=e.subscribe(r=>i.next(r));this.subscriptionsToSources.set(e,n)}unbindSourceFromConsumer(e){let i=this.subscriptionsToSources.get(e);i!==void 0&&(i.unsubscribe(),this.subscriptionsToSources.delete(e))}remove(e){this.unbindSourceFromConsumer(e);let i;(i=this.sources.findIndex(n=>n===e))!==-1&&this.sources.splice(i,1)}has(e){return this.sources.includes(e)}},Is=(()=>{let e=class e{constructor(){this.logger=C(ee),this.eventsMeta=new Map}register(n,r){let s=this.getEventMeta(n);return s.mergingSubject.has(r)?Ee()&&this.logger.warn("EventService: the event source",r,"has been already registered for the type",n):s.mergingSubject.add(r),()=>s.mergingSubject.remove(r)}get(n){let r=this.getEventMeta(n).mergingSubject.output$;return Ee()&&(r=this.getValidatedEventStream(r,n)),r}dispatch(n,r){r?n instanceof r||(n=Di(r,n)):r=n.constructor,this.getInputSubject(r).next(n)}getInputSubject(n){let r=this.getEventMeta(n);return r.inputSubject$||(r.inputSubject$=new oe,this.register(n,r.inputSubject$)),r.inputSubject$}getEventMeta(n){return this.eventsMeta.get(n)||(Ee()&&this.validateEventType(n),this.createEventMeta(n)),this.eventsMeta.get(n)}createEventMeta(n){let r={inputSubject$:null,mergingSubject:new QS};this.eventsMeta.set(n,r);let s=Object.getPrototypeOf(n);for(;s!==null&&Object.getPrototypeOf(s)!==Object.getPrototypeOf({});)this.register(s,r.mergingSubject.output$),s=Object.getPrototypeOf(s)}validateEventType(n){if(!n?.constructor)throw new Error(`EventService: ${n} is not a valid event type. Please provide a class reference.`);this.validateCxEvent(n)}validateCxEvent(n){let r=n;for(;r!==null&&Object.getPrototypeOf(r)!==Object.getPrototypeOf({});){if(r.type===Wr.type)return;r=Object.getPrototypeOf(r)}this.logger.warn(`The ${n.name} (or one of its parent classes) does not inherit from the ${Wr.type}`)}getValidatedEventStream(n,r){return n.pipe(j(s=>{s instanceof r||this.logger.warn("EventService: The stream",n,"emitted the event",s,"that is not an instance of the declared type",r.name)}))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),fP=(()=>{let e=class e{constructor(n,r){this.actionsSubject=n,this.eventService=r}register(n){return this.eventService.register(n.event,this.getFromAction(n))}getFromAction(n){return this.actionsSubject.pipe(G(...[].concat(n.action))).pipe(E(r=>this.createEvent(r,n.event,n.factory)))}createEvent(n,r,s){return s?s(n):Di(r,n.payload??{})}};e.\u0275fac=function(r){return new(r||e)(f(Ur),f(Is))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),u4=(()=>{let e=class e{constructor(n,r,s){this.stateEventService=n,this.eventService=r,this.authService=s,this.register()}register(){this.registerLoginEvent(),this.registerLogoutEvent()}registerLoginEvent(){this.stateEventService.register({action:wi,event:c4})}registerLogoutEvent(){this.eventService.register(nO,this.buildLogoutEvent())}buildLogoutEvent(){return this.authService.isUserLoggedIn().pipe(ia(),N(([n,r])=>n&&!r),E(()=>Di(nO,{}
17)))}};e.\u0275fac=function(r){return new(r||e)(f(fP),f(Is),f(Ri))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),l4=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(r){return new(r||e)(f(u4))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),je=function(t){return t.MSG_TYPE_CONFIRMATION="[GlobalMessage] Confirmation",t.MSG_TYPE_ERROR="[GlobalMessage] Error",t.MSG_TYPE_INFO="[GlobalMessage] Information",t.MSG_TYPE_WARNING="[GlobalMessage] Warning",t.MSG_TYPE_ASSISTIVE="[GlobalMessage] Assistive",t}(je||{}),hh="[Global-message] Add a Message",hP="[Global-message] Remove a Message",pP="[Global-message] Remove messages by type",JS=class{constructor(e){this.payload=e,this.type=hh}},Pc=class{constructor(e){this.payload=e,this.type=hP}},ph=class{constructor(e){this.payload=e,this.type=pP}};var gP="global-message",d4=kn(gP),mP=A(d4,t=>t.entities),vP=t=>A(mP,e=>e&&e[t]),f4=t=>A(vP(t),e=>e&&e.length);var Zo=(()=>{let e=class e{constructor(n){this.store=n}get(){return this.store.pipe(O(mP),N($n))}add(n,r,s){this.store.dispatch(new JS({text:typeof n=="string"?{raw:n}:n,type:r,timeout:s}))}remove(n,r){this.store.dispatch(r!==void 0?new Pc({type:n,index:r}):new ph(n))}};e.\u0275fac=function(r){return new(r||e)(f(De))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),h4=(()=>{let e=class e{constructor(n,r,s,o,a,c,u){this.authService=n,this.authStorageService=r,this.oAuthLibWrapperService=s,this.routingService=o,this.occEndpoints=a,this.globalMessageService=c,this.authRedirectService=u,this.refreshTokenTrigger$=new oe,this.token$=this.authStorageService.getToken().pipe(E(l=>l?.access_token?l:void 0)),this.stopProgress$=this.token$.pipe(ia(),j(([l,d])=>{l?.access_token!==d?.access_token&&(this.authService.setLogoutProgress(!1),this.authService.setRefreshProgress(!1))})),this.refreshToken$=this.refreshTokenTrigger$.pipe(en(this.authService.refreshInProgress$,this.authService.logoutInProgress$),N(([,l,d])=>!l&&!d),j(([l])=>{l?.refresh_token?(this.oAuthLibWrapperService.refreshToken(),this.authService.setRefreshProgress(!0)):this.handleExpiredRefreshToken()})),this.tokenToRetryRequest$=Ms(()=>this.refreshToken$.subscribe(),()=>this.getStableToken()).pipe(it({refCount:!0,bufferSize:1})),this.subscriptions=new Ce,this.subscriptions.add(this.stopProgress$.subscribe())}shouldCatchError(n){return this.isOccUrl(n.url)}shouldAddAuthorizationHeader(n){let r=!!this.getAuthorizationHeader(n),s=this.isOccUrl(n.url);return!r&&s}alterRequest(n,r){let s=!!this.getAuthorizationHeader(n),o=this.isBaseSitesRequest(n),a=this.isOccUrl(n.url);return!s&&a&&!o?n.clone({setHeaders:v({},this.createAuthorizationHeader(r))}):n}isOccUrl(n){return n.includes(this.occEndpoints.getBaseUrl())}isBaseSitesRequest(n){return n.url.includes(this.occEndpoints.getRawEndpointValue("baseSites"))}getAuthorizationHeader(n){return n.headers.get("Authorization")}createAuthorizationHeader(n){if(n?.access_token)return{Authorization:`${n.token_type||"Bearer"} ${n.access_token}`};let r;return this.authStorageService.getToken().subscribe(s=>r=s).unsubscribe(),r?.access_token?{Authorization:`${r.token_type||"Bearer"} ${r.access_token}`}:{}}handleExpiredAccessToken(n,r,s){return this.getValidToken(s).pipe(M(o=>o?r.handle(this.createNewRequestWithNewToken(n,o)):ve))}handleExpiredRefreshToken(){this.authRedirectService.saveCurrentNavigationUrl(),this.authService.coreLogout().finally(()=>{this.routingService.go({cxRoute:"login"}),this.globalMessageService.add({key:"httpHandlers.sessionExpired"},je.MSG_TYPE_ERROR)})}getStableToken(){return Ve([this.token$,this.authService.refreshInProgress$,this.authService.logoutInProgress$]).pipe(pn(ei),N(([n,r,s])=>!r&&!s),M(()=>this.token$))}getValidToken(n){return We(()=>{let r=!1;return this.tokenToRetryRequest$.pipe(j(s=>{s?.access_token===n?.access_token&&!r&&this.refreshTokenTrigger$.next(s),r=!0}),Am(s=>s?.access_token===n?.access_token),le(1))})}createNewRequestWithNewToken(n,r){return n=n.clone({setHeaders:{Authorization:`${r.token_type||"Bearer"} ${r.access_token}`}}),n}ngOnDestroy(){this.subscriptions.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(f(Ri),f(Yc),f(WO),f(Ai),f(tt),f(Zo),f(VI))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),p4=(()=>{let e=class e{constructor(n,r){this.authHttpHeaderService=n,this.authConfigService=r}intercept(n,r){let s=this.authHttpHeaderService.shouldCatchError(n);return(this.authHttpHeaderService.shouldAddAuthorizationHeader(n)?this.authHttpHeaderService.getStableToken().pipe(le(1)):I(void 0)).pipe(E(u=>
17({token:u,request:this.authHttpHeaderService.alterRequest(n,u)}))).pipe(M(({request:u,token:l})=>r.handle(u).pipe(F(d=>{switch(d.status){case 401:if(this.isExpiredToken(d)&&s)return this.authHttpHeaderService.handleExpiredAccessToken(u,r,l);if(this.errorIsInvalidToken(d))return this.authHttpHeaderService.handleExpiredRefreshToken(),ve;break;case 400:this.errorIsInvalidGrant(d)&&u.body.get("grant_type")==="refresh_token"&&this.authHttpHeaderService.handleExpiredRefreshToken();break}throw d}))))}errorIsInvalidToken(n){return(n.url?.includes(this.authConfigService.getTokenEndpoint())&&n.error.error==="invalid_token")??!1}errorIsInvalidGrant(n){return(n.url?.includes(this.authConfigService.getTokenEndpoint())&&n.error.error==="invalid_grant")??!1}isExpiredToken(n){return n.error?.errors?.[0]?.type==="InvalidTokenError"}};e.\u0275fac=function(r){return new(r||e)(f(h4),f(Ig))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),g4=(()=>{let e=class e{constructor(n,r){this.authStorageService=n,this.authConfigService=r}intercept(n,r){let s=this.isTokenRevocationRequest(n);return this.authStorageService.getToken().pipe(le(1),M(o=>(s&&(n=n.clone({setHeaders:{Authorization:`${o.token_type||"Bearer"} ${o.access_token}`}})),r.handle(n))))}isTokenRevocationRequest(n){return n.url===this.authConfigService.getRevokeEndpoint()}};e.\u0275fac=function(r){return new(r||e)(f(Yc),f(Ig))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),m4=[{provide:Ln,useExisting:p4,multi:!0},{provide:Ln,useExisting:g4,multi:!0}];function v4(t,e){return()=>qn(e.getStable().pipe(M(()=>t.checkOAuthParamsInUrl())))}function y4(t){return()=>t.initSync()}var E4=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[Sr(a4),eD(o4),...m4,{provide:us,useExisting:Yc},{provide:xt,useFactory:y4,deps:[cP],multi:!0},{provide:xt,useFactory:v4,deps:[Ri,Bn],multi:!0}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[ot,fN.forRoot(),l4]});let t=e;return t})(),tle=(()=>{let e=class e{static forRoot(){return{ngModule:e}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[ot,E4.forRoot(),i4.forRoot()]});let t=e;return t})(),C4=(()=>{let e=class e{constructor(n,r,s,o){this.authService=n,this.authRedirectService=r,this.router=s,this.semanticPathService=o}canActivate(){return this.authService.isUserLoggedIn().pipe(E(n=>n||(this.authRedirectService.saveCurrentNavigationUrl(),this.router.parseUrl(this.semanticPathService.get("login")??""))))}};e.\u0275fac=function(r){return new(r||e)(f(Ri),f(VI),f(ke),f(Kc))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),nle=(()=>{let e=class e{constructor(n,r,s){this.authService=n,this.semanticPathService=r,this.router=s}canActivate(){return this.authService.isUserLoggedIn().pipe(E(n=>n?this.router.parseUrl(this.semanticPathService.get("home")??""):!n))}};e.\u0275fac=function(r){return new(r||e)(f(Ri),f(Kc),f(ke))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),rle=(()=>{let e=class e extends Ir{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=f(qt),s},providedIn:"root"});let t=e;return t})();var tD="[User] Load Billing Countries",yP="[User] Load Billing Countries Fail",nD="[User] Load Billing Countries Success",gh=class{constructor(){this.type=tD}},mh=class{constructor(e){this.payload=e,this.type=yP}},vh=class{constructor(e){this.payload=e,this.type=nD}},ae="process";function S4(){return kn(ae)}function xg(t){return A(S4(),e=>dn(e,t))}function Uo(t){return A(xg(t),e=>$t(e))}function fs(t){return A(xg(t),e=>Vn(e))}function _o(t){return A(xg(t),e=>Yo(e))}var ile=Object.freeze({__proto__:null,getProcessErrorFactory:_o,getProcessLoadingFactory:Uo,getProcessStateFactory:xg,getProcessSuccessFactory:fs}),EP="user",I4="registerUser",Ng="giveConsent",Og="withdrawConsent",Xc="updateNotificationPreferences",Bo="addProductInterests",Vo="removeProductInterests",eu="[User] User Consents",br="[User] User Payment Methods",fn="[User] User Addresses",Pg="[User] User Cost Centers",tu="[User] Regions",nu="[User] Customer Coupons",hs="subscribeCustomerCoupon",ps="unsubscribeCustomerCoupon",$o="claimCustomerCoupon",Ho="disclaimCustomerCoupon",ru="[User] Notification Preferences",iu="[User] Product Interests",rD="[User] Load Customer Coupons",CP="[User] Load Customer Coupons Fail",iD="[User] Load Customer Coupons Success",SP="[User] Reset Load Customer Coupons",sD="[User] Subscribe Customer Notification Coupon",IP="[User] Subscribe Customer Coupon Notification Fail",oD="[User] Subscribe Customer Coupon Notification Success",DP="[User] Reset Subscribe Customer Coupon Process",aD="[User] Unsubscribe Customer Notification Coupon",bP="[User] Unsubscribe Customer Coupon Notification Fail",cD="[User] Unsubscribe Customer Coupon Notification Success",wP="[User] Reset Unsubscribe Customer Coupon Process",uD="[User] Claim Customer",TP="[User] Claim Customer Fail",AP="[User] Claim Customer Success",lD="[User] Disclaim Customer",RP="[User] Disclaim Customer Fail",MP="[User] Disclaim Customer Success",xP="[User] Reset Disclaim Customer",yh=class extends ut{constructor(e){super(nu),this.payload=e,this.type=rD}},Eh=class extends Dt{constructor(e){super(nu,e),this.payload=e,this.type=CP}},Ch=class extends bt{constructor(e){super(nu),this.payload=e,this.type=iD}},XS=class extends zr{constructor(){super(nu),this.type=SP}},Sh=class extends Ut{constructor(e){super(ae,hs),this.payload=e,this.type=sD}},Ih=class extends Ot{constructor(e){super(ae,hs,e),this.payload=e,this.type=IP}},Dh=class extends lt{constructor(e){super(ae,hs,e),this.payload=e,this.type=oD}},eI=class extends Un{constructor(){super(ae,hs),this.type=DP}},bh=class extends Ut{constructor(e){super(ae,ps),this.payload=e,this.type=aD}},wh=class extends Ot{constructor(e){super(ae,ps,e),this.payload=e,this.type=bP}},Th=class extends lt{constructor(e){super(ae,ps,e),this.payload=e,this.type=cD}},tI=class extends Un{constructor(){super(ae,ps),this.type=wP}},Ah=class extends Ut{constructor(e){super(ae,$o),this.payload=e,this.type=uD}},Rh=class extends Ut{constructor(e){super(ae,Ho),this.payload=e,this.type=lD}},Mh=class extends Un{constructor(){super(ae,Ho),this.type=xP}},xh=class extends Ot{constructor(e){super(ae,Ho,e),this.payload=e,this.type=RP}},Nh=class extends lt{constructor(e){super(ae,Ho,e),this.payload=e,this.type=MP}},Oh=class extends Ot{constructor(e){super(ae,$o,e),this.payload=e,this.type=TP}},Ph=class extends lt{constructor(e){super(ae,$o,e),this.payload=e,this.type=AP}},dD="[User] Load Delivery Countries",NP="[User] Load Delivery Countries Fail",fD="[User] Load Delivery Countries Success",Fh=class{constructor(){this.type=dD}},_h=class{constructor(e){this.payload=e,this.type=NP}},Lh=class{constructor(e){this.payload=e,this.type=fD}}
17,hD="[User] Load Notification Preferences",pD="[User] Load Notification Preferences Fail",gD="[User] Load Notification Preferences Success",mD="[User] Update Notification Preferences",OP="[User] Update Notification Preferences Fail",vD="[User] Update Notification Preferences Success",PP="[User] Reset Notification Preferences",FP="[User] Clear Notification Preferences",kh=class extends ut{constructor(e){super(ru),this.payload=e,this.type=hD}},jh=class extends Dt{constructor(e){super(ru,e),this.payload=e,this.type=pD}},Uh=class extends bt{constructor(e){super(ru),this.payload=e,this.type=gD}},$h=class extends Ut{constructor(e){super(ae,Xc),this.payload=e,this.type=mD}},Bh=class extends Ot{constructor(e){super(ae,Xc,e),this.payload=e,this.type=OP}},Vh=class extends lt{constructor(e){super(ae,Xc),this.payload=e,this.type=vD}},Hh=class extends Un{constructor(){super(ae,Xc),this.type=PP}},zh=class extends zr{constructor(){super(ru),this.type=FP}},yD="[User] Load User Payment Methods",ED="[User] Load User Payment Methods Fail",CD="[User] Load User Payment Methods Success",SD="[User] Set Default User Payment Method",_P="[User] Set Default User Payment Method Fail",LP="[User] Set Default User Payment Method Success",ID="[User] Delete User Payment Method",kP="[User] Delete User Payment Method Fail",jP="[User] Delete User Payment Method Success",zo=class extends ut{constructor(e){super(br),this.payload=e,this.type=yD}},Gh=class extends Dt{constructor(e){super(br,e),this.payload=e,this.type=ED}},Wh=class extends bt{constructor(e){super(br),this.payload=e,this.type=CD}},qh=class extends ut{constructor(e){super(br),this.payload=e,this.type=SD}},Yh=class extends Dt{constructor(e){super(br,e),this.payload=e,this.type=_P}},Kh=class extends bt{constructor(e){super(br),this.payload=e,this.type=LP}},Zh=class extends ut{constructor(e){super(br),this.payload=e,this.type=ID}},Qh=class extends Dt{constructor(e){super(br,e),this.payload=e,this.type=kP}},Jh=class extends bt{constructor(e){super(br),this.payload=e,this.type=jP}},DD="Load Product Interests",bD="Load Product Interests Fail",wD="Load Product Interests Success",TD="Remove Product Interest",UP="Remove Product Interest Success",$P="Remove Product Interest Fail",AD="Add Product Interest",BP="Add Product Interest Fail",VP="Add Product Interest Success",HP="Add Product Interest Reset",zP="Remove Product Interest Reset",GP="Clear Product Interests",Go=class extends ut{constructor(e){super(iu),this.payload=e,this.type=DD}},Xh=class extends Dt{constructor(e){super(iu,e),this.payload=e,this.type=bD}},ep=class extends bt{constructor(e){super(iu),this.payload=e,this.type=wD}},tp=class extends Ut{constructor(e){super(ae,Vo),this.payload=e,this.type=TD}},np=class extends lt{constructor(e){super(ae,Vo),this.payload=e,this.type=UP}},rp=class extends Ot{constructor(e){super(ae,Vo,e),this.payload=e,this.type=$P}},ip=class extends Ut{constructor(e){super(ae,Bo),this.payload=e,this.type=AD}},sp=class extends lt{constructor(e){super(ae,Bo),this.payload=e,this.type=VP}},op=class extends Ot{constructor(e){super(ae,Bo,e),this.payload=e,this.type=BP}},ap=class extends Un{constructor(){super(ae,Bo),this.type=HP}},cp=class extends Un{constructor(){super(ae,Vo),this.type=zP}},up=class extends zr{constructor(){super(iu),this.type=GP}},RD="[User] Load Regions",MD="[User] Load Regions Success",WP="[User] Load Regions Fail",xD="[User] Clear Regions",lp=class extends ut{constructor(e){super(tu),this.payload=e,this.type=RD}},dp=class extends Dt{constructor(e){super(tu,e),this.payload=e,this.type=WP}},fp=class extends bt{constructor(e){super(tu),this.payload=e,this.type=MD}},hp=class{constructor(){this.type=xD}},ND="[User] Load User Addresses",OD="[User] Load User Addresses Fail",PD="[User] Load User Addresses Success",Fg="[User] Add User Address",qP="[User] Add User Address Fail",FD="[User] Add User Address Success",_g="[User] Update User Address",YP="[User] Update User Address Fail",_D="[User] Update User Address Success",Lg="[User] Delete User Address",KP="[User] Delete User Address Fail",LD="[User] Delete User Address Success",pp=class extends ut{constructor(e){super(fn),this.payload=e,this.type=ND}},gp=class extends Dt{constructor(e){super(fn,e),this.payload=e,this.type=OD}},mp=class extends bt{constructor(e){super(fn),this.payload=e,this.type=PD}},vp=class extends ut{constructor(e){super(fn),this.payload=e,this.type=Fg}},yp=class extends Dt{constructor(e){super(fn,e),this.payload=e,this.type=qP}},Ep=class extends bt{constructor(e){super(fn),this.payload=e,this.type=FD}},Fc=class extends ut{constructor(e){super(fn),this.payload=e,this.type=_g}},Cp=class extends Dt{constructor(e){super(fn,e),this.payload=e,this.type=YP}},Sp=class extends bt{constructor(e){super(fn),this.payload=e,this.type=_D}},Ip=class extends ut{constructor(e){super(fn),this.payload=e,this.type=Lg}},Dp=class extends Dt{constructor(e){super(fn,e),this.payload=e,this.type=KP}},bp=class extends bt{constructor(e){super(fn),this.payload=e,this.type=LD}},kD="[User] Load User Consents",jD="[User] Load User Consents Success",ZP="[User] Load User Consents Fail",QP="[User] Reset Load User Consents",UD="[User] Give User Consent",JP="[User] Give User Consent Fail",$D="[User] Give User Consent Success",XP="[User] Reset Give User Consent Process",wp="[User] Transfer Anonymous Consent",BD="[
17User] Withdraw User Consent",eF="[User] Withdraw User Consent Fail",tF="[User] Withdraw User Consent Success",nF="[User] Reset Withdraw User Consent Process",nI=class extends ut{constructor(e){super(eu),this.payload=e,this.type=kD}},Tp=class extends Dt{constructor(e){super(eu,e),this.payload=e,this.type=ZP}},Ap=class extends bt{constructor(e){super(eu),this.payload=e,this.type=jD}},Rp=class extends zr{constructor(){super(eu),this.type=QP}},rI=class extends Ut{constructor(e){super(ae,Ng),this.payload=e,this.type=UD}},Mp=class extends Ot{constructor(e){super(ae,Ng,e),this.type=JP}},xp=class extends lt{constructor(e){super(ae,Ng),this.consentTemplate=e,this.type=$D}},iI=class extends Un{constructor(){super(ae,Ng),this.type=XP}},sI=class{constructor(e){this.payload=e,this.type=wp}},oI=class extends Ut{constructor(e){super(ae,Og),this.payload=e,this.type=BD}},Np=class extends Ot{constructor(e){super(ae,Og,e),this.type=eF}},Op=class extends lt{constructor(){super(ae,Og),this.type=tF}},aI=class extends Un{constructor(){super(ae,Og),this.type=nF}},VD="[User] Load Active CostCenters",HD="[User] Load Active CostCenters Fail",zD="[User] Load Active CostCenters Success",cI=class extends ut{constructor(e){super(Pg),this.payload=e,this.type=VD}},Pp=class extends Dt{constructor(e){super(Pg,e),this.payload=e,this.type=HD}},Fp=class extends bt{constructor(e){super(Pg),this.payload=e,this.type=zD}},su="[User] Clear User Misc Data",_p=class{constructor(){this.type=su}},rF="[User] Register User Success",uI=class extends lt{constructor(){super(ae,I4),this.type=rF}},sle=Object.freeze({__proto__:null,ADD_PRODUCT_INTEREST:AD,ADD_PRODUCT_INTEREST_FAIL:BP,ADD_PRODUCT_INTEREST_RESET:HP,ADD_PRODUCT_INTEREST_SUCCESS:VP,ADD_USER_ADDRESS:Fg,ADD_USER_ADDRESS_FAIL:qP,ADD_USER_ADDRESS_SUCCESS:FD,AddProductInterest:ip,AddProductInterestFail:op,AddProductInterestSuccess:sp,AddUserAddress:vp,AddUserAddressFail:yp,AddUserAddressSuccess:Ep,CLAIM_CUSTOMER_COUPON:uD,CLAIM_CUSTOMER_COUPON_FAIL:TP,CLAIM_CUSTOMER_COUPON_SUCCESS:AP,CLEAR_NOTIFICATION_PREFERENCES:FP,CLEAR_PRODUCT_INTERESTS:GP,CLEAR_REGIONS:xD,CLEAR_USER_MISCS_DATA:su,ClaimCustomerCoupon:Ah,ClaimCustomerCouponFail:Oh,ClaimCustomerCouponSuccess:Ph,ClearNotificationPreferences:zh,ClearProductInterests:up,ClearRegions:hp,ClearUserMiscsData:_p,DELETE_USER_ADDRESS:Lg,DELETE_USER_ADDRESS_FAIL:KP,DELETE_USER_ADDRESS_SUCCESS:LD,DELETE_USER_PAYMENT_METHOD:ID,DELETE_USER_PAYMENT_METHOD_FAIL:kP,DELETE_USER_PAYMENT_METHOD_SUCCESS:jP,DISCLAIM_CUSTOMER_COUPON:lD,DISCLAIM_CUSTOMER_COUPON_FAIL:RP,DISCLAIM_CUSTOMER_COUPON_SUCCESS:MP,DeleteUserAddress:Ip,DeleteUserAddressFail:Dp,DeleteUserAddressSuccess:bp,DeleteUserPaymentMethod:Zh,DeleteUserPaymentMethodFail:Qh,DeleteUserPaymentMethodSuccess:Jh,DisclaimCustomerCoupon:Rh,DisclaimCustomerCouponFail:xh,DisclaimCustomerCouponSuccess:Nh,GIVE_USER_CONSENT:UD,GIVE_USER_CONSENT_FAIL:JP,GIVE_USER_CONSENT_SUCCESS:$D,GiveUserConsent:rI,GiveUserConsentFail:Mp,GiveUserConsentSuccess:xp,LOAD_ACTIVE_COST_CENTERS:VD,LOAD_ACTIVE_COST_CENTERS_FAIL:HD,LOAD_ACTIVE_COST_CENTERS_SUCCESS:zD,LOAD_BILLING_COUNTRIES:tD,LOAD_BILLING_COUNTRIES_FAIL:yP,LOAD_BILLING_COUNTRIES_SUCCESS:nD,LOAD_CUSTOMER_COUPONS:rD,LOAD_CUSTOMER_COUPONS_FAIL:CP,LOAD_CUSTOMER_COUPONS_SUCCESS:iD,LOAD_DELIVERY_COUNTRIES:dD,LOAD_DELIVERY_COUNTRIES_FAIL:NP,LOAD_DELIVERY_COUNTRIES_SUCCESS:fD,LOAD_NOTIFICATION_PREFERENCES:hD,LOAD_NOTIFICATION_PREFERENCES_FAIL:pD,LOAD_NOTIFICATION_PREFERENCES_SUCCESS:gD,LOAD_PRODUCT_INTERESTS:DD,LOAD_PRODUCT_INTERESTS_FAIL:bD,LOAD_PRODUCT_INTERESTS_SUCCESS:wD,LOAD_REGIONS:RD,LOAD_REGIONS_FAIL:WP,LOAD_REGIONS_SUCCESS:MD,LOAD_USER_ADDRESSES:ND,LOAD_USER_ADDRESSES_FAIL:OD,LOAD_USER_ADDRESSES_SUCCESS:PD,LOAD_USER_CONSENTS:kD,LOAD_USER_CONSENTS_FAIL:ZP,LOAD_USER_CONSENTS_SUCCESS:jD,LOAD_USER_PAYMENT_METHODS:yD,LOAD_USER_PAYMENT_METHODS_FAIL:ED,LOAD_USER_PAYMENT_METHODS_SUCCESS:CD,LoadActiveCostCenters:cI,LoadActiveCostCentersFail:Pp,LoadActiveCostCentersSuccess:Fp,LoadBillingCountries:gh,LoadBillingCountriesFail:mh,LoadBillingCountriesSuccess:vh,LoadCustomerCoupons:yh,LoadCustomerCouponsFail:Eh,LoadCustomerCouponsSuccess:Ch,LoadDeliveryCountries:Fh,LoadDeliveryCountriesFail:_h,LoadDeliveryCountriesSuccess:Lh,LoadNotificationPreferences:kh,Lo
17adNotificationPreferencesFail:jh,LoadNotificationPreferencesSuccess:Uh,LoadProductInterests:Go,LoadProductInterestsFail:Xh,LoadProductInterestsSuccess:ep,LoadRegions:lp,LoadRegionsFail:dp,LoadRegionsSuccess:fp,LoadUserAddresses:pp,LoadUserAddressesFail:gp,LoadUserAddressesSuccess:mp,LoadUserConsents:nI,LoadUserConsentsFail:Tp,LoadUserConsentsSuccess:Ap,LoadUserPaymentMethods:zo,LoadUserPaymentMethodsFail:Gh,LoadUserPaymentMethodsSuccess:Wh,REGISTER_USER_SUCCESS:rF,REMOVE_PRODUCT_INTEREST:TD,REMOVE_PRODUCT_INTEREST_FAIL:$P,REMOVE_PRODUCT_INTEREST_RESET:zP,REMOVE_PRODUCT_INTEREST_SUCCESS:UP,RESET_DISCLAIM_CUSTOMER_COUPON:xP,RESET_GIVE_USER_CONSENT_PROCESS:XP,RESET_LOAD_CUSTOMER_COUPONS:SP,RESET_LOAD_USER_CONSENTS:QP,RESET_NOTIFICATION_PREFERENCES:PP,RESET_SUBSCRIBE_CUSTOMER_COUPON_PROCESS:DP,RESET_UNSUBSCRIBE_CUSTOMER_COUPON_PROCESS:wP,RESET_WITHDRAW_USER_CONSENT_PROCESS:nF,RegisterUserSuccess:uI,RemoveProductInterest:tp,RemoveProductInterestFail:rp,RemoveProductInterestSuccess:np,ResetAddInterestState:ap,ResetDisclaimCustomerCoupon:Mh,ResetGiveUserConsentProcess:iI,ResetLoadCustomerCoupons:XS,ResetLoadUserConsents:Rp,ResetNotificationPreferences:Hh,ResetRemoveInterestState:cp,ResetSubscribeCustomerCouponProcess:eI,ResetUnsubscribeCustomerCouponProcess:tI,ResetWithdrawUserConsentProcess:aI,SET_DEFAULT_USER_PAYMENT_METHOD:SD,SET_DEFAULT_USER_PAYMENT_METHOD_FAIL:_P,SET_DEFAULT_USER_PAYMENT_METHOD_SUCCESS:LP,SUBSCRIBE_CUSTOMER_COUPON:sD,SUBSCRIBE_CUSTOMER_COUPON_FAIL:IP,SUBSCRIBE_CUSTOMER_COUPON_SUCCESS:oD,SetDefaultUserPaymentMethod:qh,SetDefaultUserPaymentMethodFail:Yh,SetDefaultUserPaymentMethodSuccess:Kh,SubscribeCustomerCoupon:Sh,SubscribeCustomerCouponFail:Ih,SubscribeCustomerCouponSuccess:Dh,TRANSFER_ANONYMOUS_CONSENT:wp,TransferAnonymousConsent:sI,UNSUBSCRIBE_CUSTOMER_COUPON:aD,UNSUBSCRIBE_CUSTOMER_COUPON_FAIL:bP,UNSUBSCRIBE_CUSTOMER_COUPON_SUCCESS:cD,UPDATE_NOTIFICATION_PREFERENCES:mD,UPDATE_NOTIFICATION_PREFERENCES_FAIL:OP,UPDATE_NOTIFICATION_PREFERENCES_SUCCESS:vD,UPDATE_USER_ADDRESS:_g,UPDATE_USER_ADDRESS_FAIL:YP,UPDATE_USER_ADDRESS_SUCCESS:_D,UnsubscribeCustomerCoupon:bh,UnsubscribeCustomerCouponFail:wh,UnsubscribeCustomerCouponSuccess:Th,UpdateNotificationPreferences:$h,UpdateNotificationPreferencesFail:Bh,UpdateNotificationPreferencesSuccess:Vh,UpdateUserAddress:Fc,UpdateUserAddressFail:Cp,UpdateUserAddressSuccess:Sp,WITHDRAW_USER_CONSENT:BD,WITHDRAW_USER_CONSENT_FAIL:eF,WITHDRAW_USER_CONSENT_SUCCESS:tF,WithdrawUserConsent:oI,WithdrawUserConsentFail:Np,WithdrawUserConsentSuccess:Op}),lI=class{};var Lp=class{},kp=class{},dI=new S("CmsPageNormalizer"),D4="JspIncludeComponent",b4="CMSFlexComponent";var w4=function(t){return t.DEFER="DEFERRED-LOADING",t.INSTANT="INSTANT-LOADING",t}(w4||{}),GD=(()=>{let e=class e extends Ir{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=f(qt),s},providedIn:"root"});let t=e;return t})(),Vr=function(t){return t.INDEX="INDEX",t.NOINDEX="NOINDEX",t.FOLLOW="FOLLOW",t.NOFOLLOW="NOFOLLOW",t}(Vr||{}),Lo;(function(t){let e;(function(g){g.INDEX_FOLLOW="INDEX_FOLLOW",g.NOINDEX_FOLLOW="NOINDEX_FOLLOW",g.INDEX_NOFOLLOW="INDEX_NOFOLLOW",g.NOINDEX_NOFOLLOW="NOINDEX_NOFOLLOW"})(e=t.PageRobots||(t.PageRobots={}));let i;(function(g){g.Success="SUCCESS",g.Info="INFO",g.Warning="WARNING",g.Error="ERROR"})(i=t.OrderEntryStatus||(t.OrderEntryStatus={}));let n;(function(g){g.BUY="BUY",g.FROM="FROM"})(n=t.PriceType||(t.PriceType={}));let r;(function(g){g.PRIMARY="PRIMARY",g.GALLERY="GALLERY"})(r=t.ImageType||(t.ImageType={}));let s;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(s=t.Fields||(t.Fields={}));let o;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(o=t.Fields1||(t.Fields1={}));let a;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(a=t.Fields2||(t.Fields2={}));let c;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(c=t.Fields3||(t.Fields3={}));let u;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(u=t.Fields4||(t.Fields4={}));let l;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"}
17)(l=t.Fields5||(t.Fields5={}));let d;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(d=t.Fields6||(t.Fields6={}));let h;(function(g){g.CONTENT_PAGE="ContentPage",g.PRODUCT_PAGE="ProductPage",g.CATEGORY_PAGE="CategoryPage",g.CATALOG_PAGE="CatalogPage"})(h=t.PageType||(t.PageType={}));let p;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(p=t.Fields7||(t.Fields7={}));let y;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(y=t.Fields8||(t.Fields8={}));let D;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(D=t.Fields9||(t.Fields9={}));let w;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(w=t.Fields10||(t.Fields10={}));let R;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(R=t.Fields11||(t.Fields11={}));let $;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})($=t.Fields12||(t.Fields12={}));let k;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(k=t.Fields13||(t.Fields13={}));let B;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(B=t.Fields14||(t.Fields14={}));let re;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(re=t.Fields15||(t.Fields15={}));let ue;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(ue=t.Fields16||(t.Fields16={}));let pe;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(pe=t.SortEnum||(t.SortEnum={}));let Fe;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(Fe=t.Fields17||(t.Fields17={}));let Mi;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(Mi=t.Fields18||(t.Fields18={}));let Hn;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(Hn=t.Fields19||(t.Fields19={}));let b;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(b=t.Fields20||(t.Fields20={}));let x;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(x=t.Fields21||(t.Fields21={}));let ie;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(ie=t.Fields22||(t.Fields22={}));let me;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(me=t.Fields23||(t.Fields23={}));let Te;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(Te=t.Fields24||(t.Fields24={}));let he;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(he=t.Fields25||(t.Fields25={}));let Tr;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(Tr=t.Fields26||(t.Fields26={}));let dt;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(dt=t.Fields27||(t.Fields27={}));let Be;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(Be=t.Fields28||(t.Fields28={}));let hn;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(hn=t.Fields29||(t.Fields29={}));let hu;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(hu=t.Fields30||(t.Fields30={}));let f_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(f_=t.Fields31||(t.Fields31={}));let h_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(h_=t.Fields32||(t.Fields32={}));let p_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(p_=t.Fields33||(t.Fields33={}));let g_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(g_=t.Fields34||(t.Fields34={}));let m_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(m_=t.Fields35||(t.Fields35={}));let v_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(v_=t.Fields36||(t.Fields36={}));let y_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(y_=t.Fields37||(t.Fields37={}));let E_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(E_=t.Fields38||(t.Fields38={}));let C_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(C_=t.Fields39||(t.Fields39={}));let S_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(S_=t.Fields40||(t.Fields40={}));let I_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(I_=t.Fields41||(t.Fields41={}));let D_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(D_=t.Fields42||(t.Fields42={}));let b_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(b_=t.Fields43||(t.Fields43={}));let w_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(w_=t.Fields44||(t.Fields44={}));let T_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(T_=t.Fields45||(t.Fields45={}));let A_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(A_=t.Fields46||(t.Fields46={}));let R_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(R_=t.Fields47||(t.Fields47={}));let M_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(M_=t.Fields48||(t.Fields48={}));let x_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(x_=t.Fields49||(t.Fields49={}));let N_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(N_=t.Fields50||(t.Fields50={}));let O_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(O_=t.Fields51||(t.Fields51={}));let P_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(P_=t.Fields52||(t.Fields52={}));let F_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(F_=t.Fields53||(t.Fields53={}));let __;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(__=t.Fields54||(t.Fields54={}));let L_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(L_=t.Fields55||(t.Fields55={}));let k_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(k_=t.Fields56||(t.Fields56={}));let j_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(j_=t.Fields57||(t.Fields57={}));let U_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(U_=t.Fields58||(t.Fields58={}));let $_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})($_=t.Fields59||(t.Fields59={}));let B_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(B_=t.Fields60||(t.Fields60={}));let V_;(function(g){g.BASIC="BASIC",g.DEFAULT="DEFAULT",g.FULL="FULL"})(V_=t.Fields61||(t.Fields61={}));let H_;(function(g){g.All="all",g.Product="product",g.Order="order"})(H_=t.Type||(t.Type={}));let z_;(function(g){g.ANONYMOUS_CONSENT_GIVEN="GIVEN",g.ANONYMOUS_CONSENT_WITHDRAWN="WITHDRAWN"})(z_=t.CONSENT_STATUS||(t.CONSENT_STATUS={}));let G_;(function(g){g.BACK_IN_STOCK="BACK_IN_STOCK"})(G_=t.NotificationType||(t.NotificationType={}));let W_;(function(g){g.DAY="DAY",g.WEEK="WEEK",g.MONTH="MONTH",g.QUARTER="QUARTER",g.YEAR="YEAR"})(W_=t.Period||(t.Period={}));let q_;(function(g){g.MONDAY="MONDAY",g.TUESDAY="TUESDAY",g.WEDNESDAY="WEDNESDAY",g.THURSDAY="THURSDAY",g.FRIDAY="FRIDAY",g.SATURDAY="SATURDAY",g.SUNDAY="SUNDAY"})(q_=t.DaysOfWeek||(t.DaysOfWeek={}));let Y_;(function(g){g.APPROVE="APPROVE",g.REJECT="REJECT"})(Y_=t.OrderApprovalDecisionValue||(t.OrderApprovalDecisionValue={}))})(Lo||(Lo={}));var T4=(()=>{let e=class e{convert(n,r={}){return this.normalizePageData(n,r),this.normalizePageSlotData(n,r),this.normalizePageComponentData(n,r),this.normalizeComponentData(n,r),r}normalizePageData(n,r){if(!n)return;let s={};n.name&&(s.name=n.name),n.typeCode&&(s.type=n.typeCode),n.label&&(s.label=n.label),n.template&&(s.template=n.template),n.uid&&(s.pageId=n.uid),n.title&&(s.title=n.title),n.description&&(s.description=n.description),n.properties&&(s.properties=n.properties),this.normalizeRobots(n,s),r.page=s}normalizePageSlotData(n,r){if(n?.contentSlots){n.contentSlots.contentSlot&&!Array.isArray(n.contentSlots.contentSlot)&&(n.contentSlots.contentSlot=[n.contentSlots.contentSlot]),r.page=r.page??{},r.page.slots={};for(let s of n.contentSlots.contentSlot??[])s.position&&(r.page.slots[s.position]={},s.properties&&(r.page.slots[s.position].properties=s.properties))}}normalizePageComponentData(n,r){if(n?.contentSlots?.contentSlot){for(let s of n.contentSlots.contentSlot)if(Array.isArray(s.components?.component))for(let o of s.components?.component??[]){let a={uid:o.uid,typeCode:o.typeCode};if(o.properties&&(a.properties=o.properties),a.flexType=this.getFlexTypeFromComponent(o),s.position){let c=r.page?.slots?.[s.position];c&&(c.components||(c.components=[]),c.components.push(a))}}}}getFlexTypeFromComponent(n){return n.typeCode===b4?n.flexType:n.typeCode===D4?n.uid:n.typeCode}normalizeComponentData(n,r){if(n?.contentSlots?.contentSlot)for(let s of n.contentSlots.contentSlot)for(let o of s.components?.component??[])o.modifiedtime&&(o.modifiedTime=o.modifiedtime,delete o.modifiedtime),o.properties&&(o.properties=void 0),r.components||(r.components=[]),r.components.push(o)}normalizeRobots(n,r){let s=[];if(n.robotTag)switch(n.robotTag){case Lo.PageRobots.INDEX_FOLLOW:s.push(Vr.INDEX),s.push(Vr.FOLLOW);break;case Lo.PageRobots.NOINDEX_FOLLOW:s.push(Vr.NOINDEX),s.push(Vr.FOLLOW);break;case Lo.PageRobots.INDEX_NOFOLLOW:s.push(Vr.INDEX),s.push(Vr.NOFOLLOW);break;case Lo.PageRobots.NOINDEX_NOFOLLOW:s.push(Vr.NOINDEX),s.push(Vr.NOFOLLOW);break}r.robots=s}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Bf=new S("CmsComponentNormalizer");function iF(t){return typeof t=="object"&&!!t.features}function rO(t,e){if(t==="*")return!0;let i=t.split("."),n=e.split(".");for(let r=0;r<n.length;r++){let s=Number(n[r]),o=Number(i[r])||0;if(s!==o)return o>s}return!0}function sF(t,e){return iF(t)&&t.features.level?e.startsWith("!")?!rO(t.features.level,e.substring(1)):rO(t.features.level,e):!1}function oF(t,e){if(iF(t)){let i=e[0]==="!"?t.features[e.substring(1)]:t.features[e],n=typeof i=="string"?sF(t,i):i;return e.startsWith("!")?!n:!!n}return!1}var A4=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=f(qt),s},providedIn:"root"});let t=e;return t})(),WD=(()=>{let e=class e{constructor(n){this.config=n}isLevel(n){return sF(this.config,n)}isEnabled(n){return oF(this.config,n)}};e.\u0275fac=function(r){return new(r||e)(f(A4))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ole=(()=>{let e=class e{constructor(n,r,s){this.templateRef=n,this.viewContainer=r,this.featureConfig=s,this.hasView=!1}set cxFeature(n){this.featureConfig.isEnabled(n)&&!this.hasView?(this.viewContainer.createEmbeddedView(this.templateRef),this.hasView=!0):!this.featureConfig.isEnabled(n)&&this.hasView&&
17(this.viewContainer.clear(),this.hasView=!1)}};e.\u0275fac=function(r){return new(r||e)(Q(Nn),Q(on),Q(WD))},e.\u0275dir=Lt({type:e,selectors:[["","cxFeature",""]],inputs:{cxFeature:"cxFeature"}});let t=e;return t})(),R4=(()=>{let e=class e{static forRoot(n="3.0"){return{ngModule:e,providers:[Sr({features:{level:n||"*"}})]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function jp(t){let e;return t.subscribe(i=>e=i).unsubscribe(),e}var Vf={},fI=class{constructor(e,i){this.mainInjector=e,this.complementaryInjectors=i}get(e,i,n){if(n&&n.self){if(i!==void 0)return i;throw new Error("CombinedInjector should be used as a parent injector / doesn't support self dependencies")}for(let r of this.complementaryInjectors){let s=r.get(e,Vf,{self:!0});if(s!==Vf)return s}for(let r of this.complementaryInjectors){let s=r.get(e,Vf);if(s!==Vf)return s}return this.mainInjector.get(e,i)}},lS=(()=>{let e=class e extends Wr{};e.type="ModuleInitializedEvent";let t=e;return t})(),aF=new S("MODULE_INITIALIZER"),qD=(()=>{let e=class e{constructor(n,r,s){this.compiler=n,this.injector=r,this.events=s,this.logger=C(ee),this.modules$=qu(this.events.get(lS).pipe(E(o=>o.moduleRef)),{connector:()=>new Kt,resetOnDisconnect:!1}),this.dependencyModules=new Map,this.eventSubscription=this.modules$.connect()}resolveModuleInstance(n,r,s=[]){let o;return s.length?s.length===1?o=s[0].injector:o=new fI(this.injector,s.map(a=>a.injector)):o=this.injector,this.resolveModuleFactory(n).pipe(E(([a])=>a.create(o)),rt(a=>this.runModuleInitializersForModule(a)),j(a=>this.events.dispatch(Di(lS,{feature:r,moduleRef:a}))))}resolveDependencyModuleInstance(n){return this.resolveModuleFactory(n).pipe(E(([r,s])=>{if(!this.dependencyModules.has(s)){let o=r.create(this.injector);this.dependencyModules.set(s,o)}return this.dependencyModules.get(s)}),rt(r=>this.runModuleInitializersForModule(r)),j(r=>this.events.dispatch(Di(lS,{moduleRef:r}))))}runModuleInitializersForModule(n){let r=n.injector.get(aF,[],{self:!0}),s=this.runModuleInitializerFunctions(r);return s.length?ge(Promise.all(s)).pipe(j({error:o=>{this.logger.error("MODULE_INITIALIZER promise was rejected while lazy loading a module.",o)}}),M(()=>I(n))):I(n)}runModuleInitializerFunctions(n){let r=[];try{if(n)for(let s=0;s<n.length;s++){let o=n[s]();this.isObjectPromise(o)&&r.push(o)}return r}catch(s){throw this.logger.error("MODULE_INITIALIZER init function throwed an error. ",s),s}}isObjectPromise(n){return!!n&&typeof n.then=="function"}resolveModuleFactory(n){return ge(n()).pipe(M(r=>r instanceof Wi?I([r,r]):Ve([ge(this.compiler.compileModuleAsync(r)),I(r)])),pn(ei))}ngOnDestroy(){this.eventSubscription&&this.eventSubscription.unsubscribe(),this.dependencyModules.forEach(n=>n.destroy())}};e.\u0275fac=function(r){return new(r||e)(f(uo),f(qe),f(Is))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),iO={},ou=(()=>{let e=class e{constructor(n,r){this.rootInjector=n,this.lazyModules=r,this.injectors$=this.lazyModules.modules$.pipe(E(s=>s.injector),An(this.rootInjector))}get(n,r){return this.injectors$.pipe(E((s,o)=>s.get(n,r??iO,o?{self:!0}:void 0)),N(s=>s!==iO))}getMulti(n){return this.get(n,[]).pipe(N(r=>{if(!Array.isArray(r))throw new Error(`Multi-providers mixed with single providers for ${n.toString()}!`);return r.length>0}),Fi((r,s)=>[...r,...s],[]))}};e.\u0275fac=function(r){return new(r||e)(f(qe),f(qD))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),nt=(()=>{let e=class e{constructor(n){this.unifiedInjector=n,this.subscriptions=new Ce,this.converters=new Map;let r=this.unifiedInjector.injectors$.pipe(j(()=>this.converters.clear()));this.subscriptions.add(r.subscribe())}getConverters(n){if(!this.converters.has(n)){let r=jp(this.unifiedInjector.getMulti(n));r&&this.converters.set(n,r)}return this.converters.get(n)}hasConverters(n){let r=this.getConverters(n);return Array.isArray(r)&&r.length>0}pipeable(n){return this.hasConverters(n)?E(r=>this.convertSource(r,n)):r=>r}pipeableMany(n){return this.hasConverters(n)?E(r=>this.convertMany(r,n)):r=>r}convert(n,r){return this.hasConverters(r)?this.convertSource(n,r):n}convertMany(n,r){return this.hasConverters(r)&&Array.isArray(n)?n.map(s=>this.convertSource(s,r)):n}convertSource(n,r){return this.getConverters(r)?.reduce((s,o)=>o.convert(n,s),void 0)}ngOnDestroy(){this.subscriptions.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(f(ou))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),M4=(()=>{let e=class e{constructor(n,r,s){this.http=n,this.occEndpoints=r,this.converter=s,this.userIdService=C(qr),this.featureConfigService=C(WD),this.headers=new fe().set("Content-Type","application/json")}load(n,r){return this.featureConfigService.isEnabled(Fo)?this.userIdService.getUserId().pipe(M(s=>this.http.get(this.getComponentEndPoint(n,r,s),{headers:this.headers})),this.converter.pipeable(Bf)):this.http.get(this.getComponentEndPoint(n,r),{headers:this.headers}).pipe(this.converter.pipeable(Bf))}findComponentsByIds(n,r,s="DEFAULT",o=0,a=n.length,c){let u=v(v({},this.getContextParams(r)),this.getPaginationParams(o,a,c));return u.componentIds=n.toString(),this.featureConfigService.isEnabled(Fo)?this.userIdService.getUserId().pipe(M(l=>this.http.get(this.getComponentsEndpoint(u,s,l),{headers:this.headers})),E(l=>l.component??[]),this.converter.pipeableMany(Bf)):this.http.get(this.getComponentsEndpoint(u,s),{headers:this.headers}).pipe(E(l=>l.component??[]),this.converter.pipeableMany(Bf))}getComponentEndPoint(n,r,s){if(this.featureConfigService.isEnabled(Fo)){let o=this.getContextParams(r),a=s?{urlParam
17s:{id:n,userId:s},queryParams:o}:{urlParams:{id:n},queryParams:o};return this.occEndpoints.buildUrl("component",a)}return this.occEndpoints.buildUrl("component",{urlParams:{id:n},queryParams:this.getContextParams(r)})}getComponentsEndpoint(n,r,s){if(this.featureConfigService.isEnabled(Fo)){let o=v({fields:r},n),a=s?{urlParams:{userId:s},queryParams:o}:{queryParams:o};return this.occEndpoints.buildUrl("components",a)}return this.occEndpoints.buildUrl("components",{queryParams:v({fields:r},n)})}getPaginationParams(n,r,s){let o={};return n!==void 0&&(o.currentPage=n.toString()),r!==void 0&&(o.pageSize=r.toString()),s!==void 0&&(o.sort=s),o}getContextParams(n){let r={};switch(n.type){case we.PRODUCT_PAGE:{r={productCode:n.id};break}case we.CATEGORY_PAGE:{r={categoryCode:n.id};break}case we.CATALOG_PAGE:{r={catalogCode:n.id};break}}return r}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(tt),f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),cF="__HOMEPAGE__",uF="smartedit-preview",sO=class{constructor(e,i){this.id=e,this.type=i}},x4=(()=>{let e=class e{constructor(n,r,s){this.http=n,this.occEndpoints=r,this.converter=s,this.userIdService=C(qr),this.featureConfigService=C(WD),this.headers=new fe().set("Content-Type","application/json")}load(n){let r=this.getPagesRequestParams(n);if(this.featureConfigService.isEnabled(Fo))return this.userIdService.getUserId().pipe(M(o=>{let a=n.type?this.occEndpoints.buildUrl("pages",{urlParams:{userId:o},queryParams:r}):this.occEndpoints.buildUrl("page",{urlParams:{id:n.id,userId:o}});return this.http.get(a,{headers:this.headers})}),this.converter.pipeable(dI));let s=n.type?this.occEndpoints.buildUrl("pages",{queryParams:r}):this.occEndpoints.buildUrl("page",{urlParams:{id:n.id}});return this.http.get(s,{headers:this.headers}).pipe(this.converter.pipeable(dI))}getPagesRequestParams(n){if(n.id===cF||n.id===uF)return{};let r={};return n.type&&(r.pageType=n.type),n.type===we.CONTENT_PAGE?r.pageLabelOrId=n.id:r.code=n.id,r}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(tt),f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),N4=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[{provide:kp,useExisting:x4},{provide:dI,useExisting:T4,multi:!0},{provide:Lp,useExisting:M4}],imports:[ot]});let t=e;return t})();var ale=new S("CostCenterNormalizer"),O4=new S("CostCentersListNormalizer"),cle=new S("CostCenterSerializer");var P4=(()=>{let e=class e{constructor(n,r,s,o){this.rootConfig=n,this.defaultConfig=r,this.unifiedInjector=s,this.ambientDefaultConfig={},this.ambientConfig={},this.config=o,this.unifiedConfig$=new Ae(o),this.subscription=this.feedUnifiedConfig().subscribe()}feedUnifiedConfig(){let n=this.unifiedInjector.get(Gc,[]),r=this.unifiedInjector.get(qo,[]);return Oi(n,r).pipe(Tm(1),j(([s,o])=>this.processConfig(s,o)))}processConfig(n,r){r?.length&&It(this.ambientDefaultConfig,...r),n.length&&It(this.ambientConfig,...n),(n.length||r.length)&&this.emitUnifiedConfig()}emitUnifiedConfig(){let n=It({},this.defaultConfig,this.ambientDefaultConfig,this.ambientConfig,this.rootConfig);this.unifiedConfig$.next(n),oF(this.config,"disableConfigUpdates")||It(this.config,n)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.unifiedConfig$.complete()}};e.\u0275fac=function(r){return new(r||e)(f(II),f(CO),f(ou),f(qt))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),F4=(()=>{let e=class e{constructor(n){}static withConfig(n){return{ngModule:e,providers:[YN(n)]}}static withConfigFactory(n,r){return{ngModule:e,providers:[yS(n,r)]}}static forRoot(n={}){return{ngModule:e,providers:[YN(n)]}}};e.\u0275fac=function(r){return new(r||e)(f(P4))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();var _4=(()=>{let e=class e{constructor(n){this.config=n}convert(n,r){return r===void 0&&(r=v({},n)),n.images&&(r.images=this.normalize(n.images)),r}normalize(n){let r={};if(n)for(let s of n){let o=this.hasGalleryIndex(s);if(s.imageType){r.hasOwnProperty(s.imageType)||(r[s.imageType]=o?[]:{});let a=this.getImageContainer(o,r,s),c=v({},s);c.url=this.normalizeImageUrl(c.url??""),s.format&&(a[s.format]=c)}}return r}getImageContainer(n,r,s){return n?this.getImageGroups(r,s)[s.galleryIndex]:r[s.imageType]}getImageGroups(n,r){let s=n[r.imageType];return s[r.galleryIndex]||(s[r.galleryIndex]={}),s}normalizeImageUrl(n){return new RegExp(/^(http|data:image|\/\/)/i).test(n)?n:(this.config.backend?.media?.baseUrl||this.config.backend?.occ?.baseUrl||"")+n}hasGalleryIndex(n){return(n.galleryIndex??!1)!==!1}};e.\u0275fac=function(r){return new(r||e)(f(Ir))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ule=(()=>{let e=class e{convert(n,r){return r===void 0&&(r=v({},n)),n.productReferences&&(r.productReferences=this.normalize(n.productReferences)),r}normalize(n){let r={};if(n)for(let s of n)s.referenceType&&(r.hasOwnProperty(s.referenceType)||(r[s.referenceType]=[]),r[s.referenceType].push(s));return r}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),ms=new S("ProductNormalizer"),L4=(()=>{let e=class e{constructor(n){this.converterService=n,this.DEFAULT_TOP_VALUES=6}convert(n,r={}){return r=v(v({},r),n),this.normalizeFacets(r),n.products&&(r.products=n.products.map(s=>
17this.converterService.convert(s,ms))),r}normalizeFacets(n){this.normalizeFacetValues(n),this.normalizeUselessFacets(n)}normalizeUselessFacets(n){n.facets&&(n.facets=n.facets.filter(r=>!n.pagination||!n.pagination.totalResults||(!r.hasOwnProperty("visible")||r.visible)&&r.values&&r.values.find(s=>s.selected||(s.count??0)<(n.pagination?.totalResults??0))))}normalizeFacetValues(n){n.facets&&(n.facets=n.facets.map(r=>{let a=r,{topValues:s}=a,o=Jg(a,["topValues"]);return o.topValueCount=s&&s.length>0?s.length:this.DEFAULT_TOP_VALUES,o}))}};e.\u0275fac=function(r){return new(r||e)(f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),k4=(()=>{let e=class e{constructor(n){this.converter=n}convert(n,r=[]){return r===void 0&&(r=v({},n)),n&&n.references?(r=n.references.map(s=>T(v({},s),{target:this.converter.convert(s.target,ms)})),r):[]}};e.\u0275fac=function(r){return new(r||e)(f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),j4=(()=>{let e=class e{constructor(n){this.config=n,this.reservedSlugCharacters=" !*'();:@&=+$,/?%#[]",this.slugChar="-",this.slugRegex=new RegExp(`[${this.reservedSlugCharacters.split("").join("\\")}]`,"g"),this.sanitizeMultipleSlugChars=new RegExp(`${this.slugChar}+`,"g")}convert(n,r){return r=r??v({},n),n.name&&(r.name=this.normalize(n.name),r.slug=this.normalizeSlug(n.name),r.nameHtml=n.name),r}normalize(n){return n.replace(/<[^>]*>/g,"")}normalizeSlug(n){return this.normalize(n).trim().toLowerCase().replace(this.slugRegex,this.slugChar).replace(this.sanitizeMultipleSlugChars,this.slugChar)}};e.\u0275fac=function(r){return new(r||e)(f(Ir))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),lF=new S("ProductReferencesListNormalizer"),U4=(()=>{let e=class e{constructor(n,r,s){this.http=n,this.occEndpoints=r,this.converter=s}load(n,r,s){return this.http.get(this.getEndpoint(n,r,s)).pipe(this.converter.pipeable(lF))}getEndpoint(n,r,s){return this.occEndpoints.buildUrl("productReferences",{urlParams:{productCode:n},queryParams:{referenceType:r,pageSize:s}})}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(tt),f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),$4=new S("ProductReviewNormalizer"),B4=new S("ProductReviewSerializer"),V4=(()=>{let e=class e{constructor(n,r,s){this.http=n,this.occEndpoints=r,this.converter=s}load(n,r){return this.http.get(this.getEndpoint(n,r)).pipe(E(s=>s.reviews),E(s=>s??[]),this.converter.pipeableMany($4))}post(n,r){r=this.converter.convert(r,B4);let s=new fe({"Content-Type":"application/x-www-form-urlencoded"}),o=new URLSearchParams;return o.append("headline",r.headline),o.append("comment",r.comment),o.append("rating",r.rating.toString()),o.append("alias",r.alias),this.http.post(this.getEndpoint(n),o.toString(),{headers:s})}getEndpoint(n,r){return this.occEndpoints.buildUrl("productReviews",{urlParams:{productCode:n},queryParams:{maxCount:r}})}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(tt),f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),dF=new S("ProductSearchPageNormalizer"),H4=new S("ProductSuggestionNormalizer"),fF=new Ya(()=>({}));function z4(t){let e=t.map(n=>typeof n=="string"?kg(n):n),i=hF(It({},...e));return pF(i)}function hF(t={}){let e=Object.keys(t);return e.includes("FULL")?(delete t.DEFAULT,delete t.BASIC):e.includes("DEFAULT")&&delete t.BASIC,Object.keys(t).forEach(i=>{t[i]=hF(t[i])}),t}function kg(t,e=0){let i={},n=e;for(;n<t.length;){if(t[n]===",")n>e&&(i[t.substring(e,n)]={}),e=n+1;else if(t[n]==="("){let r=kg(t,n+1);if(!Array.isArray(r))return i;i[t.substring(e,n)]=r[0],e=r[1],n=e-1}else if(t[n]===")")return n>e&&(i[t.substring(e,n)]={}),[i,n+1];n++}return e<t.length&&(i[t.substring(e,n)]={}),i}function pF(t){return Object.keys(t).map(e=>{let i=pF(t[e]);return i?`${e}(${i})`:e}).join(",")}function G4(t,e){let i=typeof e=="string"?kg(e):e;return gF(t,i)}function gF(t,e){if(!Gf(t))return t;let i=Object.keys(e);if(i.length===0||i.find(r=>r==="BASIC"||r==="DEFAULT"||r==="FULL"))return t;let n={};
17return i.forEach(r=>{t.hasOwnProperty(r)&&(n[r]=gF(t[r],e[r]))}),n}var lle=new S("List of OCC constants that pass for user IDs.",{providedIn:"root",factory:()=>gW}),W4=(()=>{let e=class e{constructor(n,r,s){this.http=n,this.occEndpoints=r,this.converter=s,this.DEFAULT_SEARCH_CONFIG={pageSize:20}}search(n,r=this.DEFAULT_SEARCH_CONFIG){let s=new ho().set(fF,{sendUserIdAsHeader:!0});return this.http.get(this.getSearchEndpoint(n,r),{context:s}).pipe(this.converter.pipeable(dF))}loadSuggestions(n,r=3){return this.http.get(this.getSuggestionEndpoint(n,r.toString())).pipe(E(s=>s.suggestions??[]),this.converter.pipeableMany(H4))}getSearchEndpoint(n,r){return this.occEndpoints.buildUrl("productSearch",{queryParams:v({query:n},r)})}getSuggestionEndpoint(n,r){return this.occEndpoints.buildUrl("productSuggestions",{queryParams:{term:n,max:r}})}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(tt),f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),q4=(()=>{let e=class e{constructor(n){this.http=n,this.FIELDS_PARAM="fields"}getOptimalUrlGroups(n){let r={};for(let o of n){let[a,c]=this.splitFields(o.url??"");r[a]||(r[a]={}),o.fields=c?kg(c):{},o.scopedData.scope!==void 0&&(r[a][o.scopedData.scope]=o)}let s={};for(let[o,a]of Object.entries(r)){let c=this.getUrlWithFields(o,Object.values(a).map(u=>u.fields));s[c]=a}return s}splitFields(n){let[r,s]=n.split("?"),o={};s&&s.split("&").forEach(u=>{let l=u.split("=");o[l[0]]=l[1]});let c=Object.keys(o).sort().reduce((u,l)=>(l!==this.FIELDS_PARAM&&u.push(o[l]?`${l}=${o[l]}`:l),u),[]).join("&");return[c?`${r}?${c}`:r,o[this.FIELDS_PARAM]]}getUrlWithFields(n,r){let s=z4(r);return s&&(n+=n.includes("?")?"&":"?",n+=`${this.FIELDS_PARAM}=${s}`),n}};e.\u0275fac=function(r){return new(r||e)(f(Le))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Y4=(()=>{let e=class e{constructor(n,r){this.http=n,this.occFields=r}scopedDataLoad(n,r){let s=[];r||(r=a=>this.http.get(a));let o=this.occFields.getOptimalUrlGroups(n);return Object.entries(o).forEach(([a,c])=>{let u=Object.values(c);if(u.length===1)s.push(T(v({},u[0].scopedData),{data$:r?.(a)}));else{let l=r?.(a).pipe(it(1));u.forEach(d=>{s.push(T(v({},d.scopedData),{data$:l?.pipe(E(h=>G4(h,d.fields)))}))})}}),s}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(q4))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),K4=(()=>{let e=class e{constructor(n,r,s,o){this.http=n,this.occEndpoints=r,this.converter=s,this.requestsOptimizer=o}load(n,r){return this.http.get(this.getEndpoint(n,r)).pipe(this.converter.pipeable(ms))}loadMany(n){let r=n.map(s=>({scopedData:s,url:this.getEndpoint(s.code,s.scope)}));return this.requestsOptimizer.scopedDataLoad(r).map(s=>T(v({},s),{data$:s.data$?.pipe(this.converter.pipeable(ms))}))}getEndpoint(n,r){return this.occEndpoints.buildUrl("product",{urlParams:{productCode:n},scope:r})}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(tt),f(nt),f(Y4))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),Up=class{},$p=class{},Bp=class{},Vp=class{},Z4={backend:{occ:{endpoints:{product:{default:"products/${productCode}?fields=DEFAULT,averageRating,images(FULL),classifications,manufacturer,numberOfReviews,categories(FULL),baseOptions,baseProduct,variantOptions,variantType",list:"products/${productCode}?fields=code,name,summary,price(formattedValue),images(DEFAULT,galleryIndex),baseProduct",details:"products/${productCode}?fields=averageRating,stock(DEFAULT),description,availableForPickup,code,url,price(DEFAULT),numberOfReviews,manufacturer,categories(FULL),priceRange,multidimensional,tags,images(FULL)",attributes:"products/${productCode}?fields=classifications",price:"products/${productCode}?fields=price(formattedValue)",stock:"products/${productCode}?fields=stock(DEFAULT)"},productReviews:"products/${productCode}/reviews",productReferences:"products/${productCode}/references?fields=DEFAULT,references(target(images(FULL)))",productSearch:"products/search?fields=products(code,name,summary,configurable,configuratorType,multidimensional,price(FULL),images(DEFAULT),stock(FULL),averageRating,variantOptions),facets,breadcrumbs,pagination(DEFAULT),sorts(DEFAULT),freeTextSearch,currentQuery",productSuggestions:"products/suggestions"}},loadingScopes:{product:{details:{include:["list","variants"]}}}}},dle=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[Sr(Z4),{provide:Up,useClass:K4},{provide:ms,useExisting:_4,multi:!0},{provide:ms,useExisting:j4,multi:!0},{provide:$p,useClass:U4},{provide:lF,useExisting:k4,multi:!0},{provide:Vp,useClass:W4},{provide:dF,useExisting:L4,multi:!0},{provide:Bp,useClass:V4}],imports:[ot]});let t=e;return t})(),Q4=(()=>{let e=class e{constructor(){}convert(n,r){return r===void 0&&(r=v({},n)),r.baseStore=n.stores?.[0],delete r.stores,r}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),J4=new S("LanguageNormalizer"),X4=new S("CurrencyNormalizer"),eq=new S("CountryNormalizer"),tq=new S("RegionNormalizer"),mF=new S("BaseSiteNormalizer"),nq=(()=>{let e=class e{constructor(n,r,s){this.http=n,this.occEndpointsService=r,this.converterService=s}loadLanguages(){return this.http.get(this.occEndpointsService.buildUrl("languages")).pipe(E(n=>n.languages??[]),this.converterService.pipeableMany(J4))}loadCurrencies(){return this.http.get(this.occEndpointsService.buildUrl("currencies")).pipe(E(n=>n.currencies??[]),this.converterService.pipeableMany(X4))}loadCountries(n){return this.http.get(this.occEndpointsService.buildUrl("countries",{queryParams:n?{type:n}:void 0})).pipe(E(r=>r.countries??[]),this.converterService.pipeableMany(eq))}loadRegions(n){return this.http.get(this.occEndpointsService.buildUrl("regions",{urlParam
17s:{isoCode:n}})).pipe(E(r=>r.regions??[]),this.converterService.pipeableMany(tq))}loadBaseSite(n){return n||(n=this.occEndpointsService.getBaseUrl().split("/").pop()),this.http.get(this.occEndpointsService.buildUrl("baseSites",{},{baseSite:!1})).pipe(E(r=>r.baseSites.find(s=>s.uid===n)))}loadBaseSites(){return this.http.get(this.occEndpointsService.buildUrl("baseSites",{},{baseSite:!1})).pipe(E(n=>n.baseSites),this.converterService.pipeableMany(mF))}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(tt),f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),Hp=class{},rq={backend:{occ:{endpoints:{languages:"languages",currencies:"currencies",countries:"countries",regions:"countries/${isoCode}/regions?fields=regions(name,isocode,isocodeShort)",baseSites:"basesites?fields=FULL"}}}},Ds=(()=>{let e=class e{constructor(n,r){this.store=n,this.config=r}getAll(){return this.store.pipe(O(kW),j(n=>{n||this.store.dispatch(new ah)}),N(Nc))}getActive(){return this.store.pipe(O(zS),N(Nc))}setActive(n){this.store.pipe(O(zS),le(1)).subscribe(r=>{r!==n&&this.isValid(n)&&this.store.dispatch(new lh(n))})}isInitialized(){let n=!1;return this.getActive().subscribe(()=>n=!0).unsubscribe(),n}isValid(n){return!!n&&Zc(this.config,ys).includes(n)}};e.\u0275fac=function(r){return new(r||e)(f(De),f(Yr))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),au=(()=>{let e=class e{constructor(n,r){this.store=n,this.config=r}getAll(){return this.store.pipe(O(PW),j(n=>{n||this.store.dispatch(new nh)}),N(Nc))}getActive(){return this.store.pipe(O(HS),N(Nc))}setActive(n){this.store.pipe(O(HS),le(1)).subscribe(r=>{r!==n&&this.isValid(n)&&this.store.dispatch(new sh(n))})}isInitialized(){let n=!1;return this.getActive().subscribe(()=>n=!0).unsubscribe(),n}isValid(n){return!!n&&Zc(this.config,Es).includes(n)}};e.\u0275fac=function(r){return new(r||e)(f(De),f(Yr))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),iq=(()=>{let e=class e{constructor(n,r,s,o){this.languageService=n,this.currencyService=r,this.occEndpoints=s,this.config=o,this.activeLang=Ii(this.config,ys),this.activeCurr=Ii(this.config,Es),this.languageService.getActive().subscribe(a=>this.activeLang=a),this.currencyService.getActive().subscribe(a=>{this.activeCurr=a})}intercept(n,r){return n.url.includes(this.occEndpoints.getBaseUrl())&&(n=n.clone({setParams:{lang:this.activeLang??"",curr:this.activeCurr??""}})),r.handle(n)}};e.\u0275fac=function(r){return new(r||e)(f(Ds),f(au),f(tt),f(Yr))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),sq=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[Sr(rq),{provide:Hp,useClass:nq},{provide:Ln,useExisting:iq,multi:!0},{provide:mF,useExisting:Q4,multi:!0}],imports:[ot]});let t=e;return t})(),oq=(()=>{let e=class e{constructor(n){this.anonymousConsentsService=n}convert(n){return this.anonymousConsentsService.decodeAndDeserialize(n)}};e.\u0275fac=function(r){return new(r||e)(f(UW))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),aq=(()=>{let e=class e{constructor(n){this.converter=n}convert(n,r){return r===void 0&&(r=v({},n)),n&&n.results&&(r.results=n.results.map(s=>T(v({},s),{product:this.converter.convert(s.product,ms)}))),r}};e.\u0275fac=function(r){return new(r||e)(f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),vF=new S("AnonymousConsentNormalizer"),hI=new S("ConsentTemplateNormalizer"),cq=(()=>{let e=class e{constructor(n,r,s){this.http=n,this.occEndpoints=r,this.converter=s,this.logger=C(ee)}loadAnonymousConsentTemplates(){let n=this.occEndpoints.buildUrl("anonymousConsentTemplates");return this.http.get(n).pipe(F(r=>{throw K(r,this.logger)}),E(r=>r.consentTemplates??[]),this.converter.pipeableMany(hI))}loadAnonymousConsents(){let n=this.occEndpoints.buildUrl("anonymousConsentTemplates");return this.http.head(n,{observe:"response"}).pipe(F(r=>{throw K(r,this.logger)}),E(r=>r.headers.get(N3)??""),this.converter.pipeable(vF))}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(tt),f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),uq=new S("CustomerCouponSearchResultNormalizer"),lq=(()=>{let e=class e{constructor(n,r,s){this.http=n,this.occEndpoints=r,this.converter=s}getCustomerCoupons(n,r,s,o){if(n===ko)return I({});
17let a=this.occEndpoints.buildUrl("customerCoupons",{urlParams:{userId:n}}),c=new ze().set("sort",o||"startDate:asc");r&&(c=c.set("pageSize",r.toString())),s&&(c=c.set("currentPage",s.toString()));let u=this.newHttpHeader();return this.http.get(a,{headers:u,params:c}).pipe(this.converter.pipeable(uq))}turnOffNotification(n,r){let s=this.occEndpoints.buildUrl("couponNotification",{urlParams:{userId:n,couponCode:r}}),o=this.newHttpHeader();return this.http.delete(s,{headers:o})}turnOnNotification(n,r){let s=this.occEndpoints.buildUrl("couponNotification",{urlParams:{userId:n,couponCode:r}}),o=this.newHttpHeader();return this.http.post(s,{headers:o})}claimCustomerCoupon(n,r){let s=this.occEndpoints.buildUrl("claimCoupon",{urlParams:{userId:n,couponCode:r}}),o=this.newHttpHeader();return this.http.post(s,{headers:o})}disclaimCustomerCoupon(n,r){let s=this.occEndpoints.buildUrl("claimCoupon",{urlParams:{userId:n,couponCode:r}}),o=this.newHttpHeader();return this.http.delete(s,{headers:o})}newHttpHeader(){return new fe({"Content-Type":"application/json"})}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(tt),f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),yF=new S("AddressNormalizer"),dq=new S("AddressesNormalizer"),dS=new S("AddressSerializer"),fq=new S("AddressValidationNormalizer"),Ac={"Content-Type":"application/json"},hq=(()=>{let e=class e{constructor(n,r,s){this.http=n,this.occEndpoints=r,this.converter=s,this.logger=C(ee)}loadAll(n){let r=this.occEndpoints.buildUrl("addresses",{urlParams:{userId:n}}),s=new fe(v({},Ac));return this.http.get(r,{headers:s}).pipe(F(o=>{throw K(o,this.logger)}),E(o=>o.addresses??[]),this.converter.pipeableMany(yF))}add(n,r){let s=this.occEndpoints.buildUrl("addresses",{urlParams:{userId:n}}),o=new fe(v({},Ac));return r=this.converter.convert(r,dS),this.http.post(s,r,{headers:o}).pipe(F(a=>{throw K(a,this.logger)}))}update(n,r,s){let o=this.occEndpoints.buildUrl("addressDetail",{urlParams:{userId:n,addressId:r}}),a=new fe(v({},Ac));return s=this.converter.convert(s,dS),this.http.patch(o,s,{headers:a}).pipe(F(c=>{throw K(c,this.logger)}))}verify(n,r){let s=this.occEndpoints.buildUrl("addressVerification",{urlParams:{userId:n}}),o=new fe(v({},Ac));return n===ko&&(o=Oc.createHeader(GS,!0,o)),r=this.converter.convert(r,dS),this.http.post(s,r,{headers:o}).pipe(F(a=>{throw K(a,this.logger)}),this.converter.pipeable(fq))}delete(n,r){let s=this.occEndpoints.buildUrl("addressDetail",{urlParams:{userId:n,addressId:r}}),o=new fe(v({},Ac));return this.http.delete(s,{headers:o}).pipe(F(a=>{throw K(a,this.logger)}))}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(tt),f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),pq=(()=>{let e=class e{constructor(n,r,s){this.http=n,this.occEndpoints=r,this.converter=s,this.logger=C(ee)}loadConsents(n){let r=this.occEndpoints.buildUrl("consentTemplates",{urlParams:{userId:n}}),s=new fe({"Cache-Control":"no-cache"});return this.http.get(r,{headers:s}).pipe(F(o=>{throw K(o,this.logger)}),E(o=>o.consentTemplates??[]),this.converter.pipeableMany(hI))}giveConsent(n,r,s){let o=this.occEndpoints.buildUrl("consents",{urlParams:{userId:n}}),a=new ze().set("consentTemplateId",r).set("consentTemplateVersion",s.toString()),c=new fe({"Content-Type":"application/x-www-form-urlencoded","Cache-Control":"no-cache"});return this.http.post(o,a,{headers:c}).pipe(F(u=>{throw K(u,this.logger)}),this.converter.pipeable(hI))}withdrawConsent(n,r){let s=new fe({"Cache-Control":"no-cache"}),o=this.occEndpoints.buildUrl("consentDetail",{urlParams:{userId:n,consentId:r}});return this.http.delete(o,{headers:s})}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(tt),f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),EF=new S("ProductInterestsNormalizer"),oO=new fe({"Content-Type":"application/json"}),gq=(()=>{let e=class e{constructor(n,r,s,o){this.http=n,this.occEndpoints=r,this.config=s,this.converter=o,this.logger=C(ee)}getInterests(n,r,s,o,a,c){let u=new ze().set("sort",o||"name:asc");return r&&(u=u.set("pageSize",r.toString())),s&&(u=u.set("currentPage",s.toString())),a&&(u=u.set("productC
17ode",a)),c&&(u=u.set("notificationType",c.toString())),this.http.get(this.occEndpoints.buildUrl("getProductInterests",{urlParams:{userId:n}}),{headers:oO,params:u}).pipe(this.converter.pipeable(EF),F(l=>{throw K(l,this.logger)}))}removeInterest(n,r){let s=[];return r.productInterestEntry?.forEach(o=>{let a=new ze().set("productCode",r.product?.code??"").set("notificationType",o.interestType);s.push(this.http.delete(this.occEndpoints.buildUrl("productInterests",{urlParams:{userId:n}}),{params:a}).pipe(F(c=>{throw K(c,this.logger)})))}),Yu(s)}addInterest(n,r,s){let o=new ze().set("productCode",r).set("notificationType",s.toString());return this.http.post(this.occEndpoints.buildUrl("productInterests",{urlParams:{userId:n}}),{},{headers:oO,params:o}).pipe(F(a=>{throw K(a,this.logger)}))}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(tt),f(Ir),f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),mq=new S("NotificationPreferenceSerializer"),vq=new S("NotificationPreferenceNormalizer"),zp=class{},yq=(()=>{let e=class e{constructor(n){this.adapter=n}loadAll(n){return this.adapter.loadAll(n)}update(n,r){return this.adapter.update(n,r)}};e.\u0275fac=function(r){return new(r||e)(f(zp))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),aO=new fe({"Content-Type":"application/json"}),Eq=(()=>{let e=class e{constructor(n,r,s){this.http=n,this.converter=r,this.occEndpoints=s,this.logger=C(ee)}loadAll(n){return this.http.get(this.occEndpoints.buildUrl("notificationPreference",{urlParams:{userId:n}}),{headers:aO}).pipe(E(r=>r.preferences??[]),this.converter.pipeableMany(vq),F(r=>{throw K(r,this.logger)}))}update(n,r){return r=this.converter.convert(r,mq),this.http.patch(this.occEndpoints.buildUrl("notificationPreference",{urlParams:{userId:n}}),{preferences:r},{headers:aO}).pipe(F(s=>{throw K(s,this.logger)}))}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(nt),f(tt))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),Cq=new S("PaymentDetailsNormalizer"),fS={"Content-Type":"application/json"},Sq=(()=>{let e=class e{constructor(n,r,s){this.http=n,this.occEndpoints=r,this.converter=s,this.logger=C(ee)}loadAll(n){let r=this.occEndpoints.buildUrl("paymentDetailsAll",{urlParams:{userId:n}})+"?saved=true",s=new fe(v({},fS));return this.http.get(r,{headers:s}).pipe(F(o=>{throw K(o,this.logger)}),E(o=>o.payments??[]),this.converter.pipeableMany(Cq))}delete(n,r){let s=this.occEndpoints.buildUrl("paymentDetail",{urlParams:{userId:n,paymentDetailId:r}}),o=new fe(v({},fS));return this.http.delete(s,{headers:o}).pipe(F(a=>{throw K(a,this.logger)}))}setDefault(n,r){let s=this.occEndpoints.buildUrl("paymentDetail",{urlParams:{userId:n,paymentDetailId:r}}),o=new fe(v({},fS));return this.http.patch(s,{billingAddress:{titleCode:"mr"},defaultPayment:!0},{headers:o}).pipe(F(a=>{throw K(a,this.logger)}))}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(tt),f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),Gp=class{},Wp=class{},qp=class{},Yp=class{},Kp=class{},Zp=class{},Iq=(()=>{let e=class e{constructor(n){this.converter=n}convert(n,r){return r===void 0&&(r=v({},n)),r.values=n.addresses?.map(s=>v({},this.converter.convert(s,yF)))??[],r}};e.\u0275fac=function(r){return new(r||e)(f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Dq={backend:{occ:{endpoints:{paymentDetailsAll:"users/${userId}/paymentdetails",paymentDetail:"users/${userId}/paymentdetails/${paymentDetailId}",anonymousConsentTemplates:"users/anonymous/consenttemplates",consentTemplates:"users/${userId}/consenttemplates",consents:"users/${userId}/consents",consentDetail:"users/${userId}/consents/${consentId}",addresses:"users/${userId}/addresses",addressDetail:"users/${userId}/addresses/${addressId}",addressVerification:"users/${userId}/addresses/verification",customerCoupons:"users/${userId}/customercoupons",claimCoupon:"users/${userId}/customercoupons/${couponCode}/claim",couponNotification:"users/${userId}/customercoupons/${couponCode}/notification",notificationPreference:"users/${userId}/notificationpreferences",productInterests:"users/${userId}/productinterests",getProductInterests:"users/${userId}/productinterests?fields=sorts,pagination,results(productInterestEntry,product(code))"}}}},bq=(()=>{let e=class e{constructor(n,r,s){this.http=n,this.occEndpoints=r,this.converter=s}loadActiveList(n){let r=new ho().set(fF,{sendUserIdAsHeader:!0});return this.http.get(this.getCostCentersEndpoint(n),{context:r}).pipe(this.converter.pipeable(O4))}getCostCentersEndpoint(n,r){return this.occEndpoints.buildUrl("getActiveCostCenters",{urlParam
17s:{userId:n},queryParams:r})}};e.\u0275fac=function(r){return new(r||e)(f(Le),f(tt),f(nt))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),fle=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[Sr(Dq),{provide:Gp,useClass:hq},{provide:Wp,useClass:pq},{provide:lI,useClass:cq},{provide:Zp,useClass:Sq},{provide:Yp,useClass:lq},{provide:zp,useClass:Eq},{provide:Kp,useClass:gq},{provide:qp,useClass:bq},{provide:EF,useExisting:aq,multi:!0},{provide:vF,useExisting:oq,multi:!0},{provide:dq,useExisting:Iq,multi:!0}],imports:[ot]});let t=e;return t})(),wq={backend:{occ:{prefix:"/occ/v2/"},media:{}}};function Tq(t){if(t.backend===void 0||t.backend.occ===void 0||t.backend.occ.baseUrl===void 0)return"Please configure backend.occ.baseUrl before using storefront library!"}var Aq=(()=>{let e=class e{constructor(n){this.config=n}intercept(n,r){return this.requiresWithCredentials(n)&&(n=n.clone({withCredentials:!0})),r.handle(n)}requiresWithCredentials(n){return this.occConfig?.useWithCredentials!==void 0&&n.url.indexOf(this.occConfig?.prefix??"")>-1}get occConfig(){return this.config.backend?.occ}};e.\u0275fac=function(r){return new(r||e)(f(Ir))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Rq=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[{provide:Ln,useExisting:Aq,multi:!0},Sr(wq),eD(Tq)]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[N4,sq]});let t=e;return t})(),Mq="occ-backend-base-url",xq="OCC_BACKEND_BASE_URL_VALUE",Nq="media-backend-base-url",Oq="MEDIA_BACKEND_BASE_URL_VALUE";function Pq(t){let e=CF(Mq,t);return e&&e!==xq?{backend:{occ:{baseUrl:e}}}:{}}function Fq(t){let e=CF(Nq,t);return e&&e!==Oq?{backend:{media:{baseUrl:e}}}:{}}function CF(t,e){let i=e.getTag(`name="${t}"`);return i&&i.content}function _q(){return[yS(Pq,[zE]),yS(Fq,[zE])]}var Lq=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[..._q()]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),kq=(()=>{let e=class e{constructor(n){this.config=n}expand(n,r){let s=this.config?.backend?.loadingScopes?.[n];if(s){let o=[...r],a=o.length;for(;a>0;){a--;let c=s[o[a]]?.include;if(c)for(let u of c)o.includes(u)||(o.splice(a,0,u),a++)}return o}return r}getMaxAge(n,r){return(this.config.backend?.loadingScopes?.[n]?.[r]?.maxAge??0)*1e3}getReloadTriggers(n,r){return this.config.backend?.loadingScopes?.[n]?.[r]?.reloadOn??[]}};e.\u0275fac=function(r){return new(r||e)(f(Ir))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),wr=kn(EP),jq=A(wr,t=>t.billingCountries),Uq=A(jq,t=>t.entities),$q=A(Uq,t=>Object.keys(t).map(e=>t[e])),jg=A(wr,t=>t.customerCoupons),Bq=A(jg,t=>Vn(t)),Vq=A(jg,t=>$t(t)),hle=A(jg,t=>et(t)),Hq=A(wr,t=>t.countries),SF=A(Hq,t=>t.entities),zq=A(SF,t=>Object.keys(t).map(e=>t[e])),Gq=t=>A(SF,e=>Object.keys(e).length!==0?e[t]:null),YD=A(wr,t=>t.notificationPreferences),Wq=A(YD,t=>et(t)),qq=A(YD,t=>et(t).filter(e=>e.enabled)),Yq=A(YD,t=>$t(t)),KD=A(wr,t=>t.payments),Kq=A(KD,t=>et(t)),Zq=A(KD,t=>$t(t)),Qq=A(KD,t=>Vn(t)&&!$t(t)),ZD=A(wr,t=>t.productInterests),Jq=A(ZD,t=>et(t)),Xq=A(ZD,t=>$t(t)),cu=A(wr,t=>t.regions),ple=A(cu,t=>et(t).entities),e6=A(cu,t=>({loaded:Vn(t),loading:$t(t),regions:et(t).entities,country:et(t).country})),gle=A(cu,t=>et(t).country),mle=A(cu,t=>$t(t)),vle=A(cu,t=>Vn(t)),QD=A(wr,t=>t.addresses),t6=A(QD,t=>et(t)),n6=A(QD,t=>$t(t)),r6=A(QD,t=>Vn(t)&&!$t(t)),Ug=A(wr,t=>t.consents),yle=A(Ug,t=>et(t));var Ele=A(Ug,$t),Cle=A(Ug,Vn),Sle=A(Ug,Yo),i6=A(wr,t=>t.costCenters),Ile=A(i6,t=>et(t));var s6=(()=>{let e=class e{constructor(){this.logger=C(ee),this.EXTRACT_JAVA_REGEXP_MODIFIERS=/^(\(\?([a-z]+)\))?(.*)/}toJsRegExp(n){let r=n.match(this.EXTRACT_JAVA_REGEXP_MODIFIERS);if(!r)return null;let[,,s,o]=r;try{return new RegExp(o,s)}catch(a){return Ee()&&this.logger.warn(`WARNING: Could not convert Java regexp into Javascript. Original regexp: ${n} 18Message: ${a}`),null}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),o6=(()=>{let e=class e{constructor(n,r,s){this.baseSiteService=n,this.javaRegExpConverter=r,this.winRef=s,this.scopes=["context"],this.configFactory=()=>qn(this.resolveConfig())}get currentUrl(){return this.winRef.location.href}resolveConfig(){return this.baseSiteService.getAll().pipe(E(n=>n?.find(r=>this.isCurrentBaseSite(r))),N(n=>{if(!n)throw new Error(`Error: Cannot get base site config! Current url (${this.currentUrl}) doesn't match any of url patterns of any base sites.`);return!!n}),E(n=>this.getConfig(n)),le(1))}getConfig(n){return{context:{urlParameters:this.getUrlParams(n.urlEncodingAttributes),[Gr]:[n.uid],[ys]:this.getIsoCodes(n.baseStore?.languages,n.defaultLanguage||n.baseStore?.defaultLanguage),[Es]:this.getIsoCodes(n.baseStore?.currencies,n.baseStore?.defaultCurrency),[wW]:[n.theme]}}}isCurrentBaseSite(n){return(n.urlPatterns||[]).findIndex(s=>{let o=this.javaRegExpConverter.toJsRegExp(s);if(o)return o.test(this.currentUrl)})!==-1}getUrlParams(n){let r="storefront";return(n||[]).map(s=>s===r?Gr:s)}getIsoCodes(n,r){if(n&&r)return this.moveToFirst(n,o=>o.isocode===r.isocode).map(o=>o.isocode)}moveToFirst(n,r){n=[...n];let s=n.findIndex(r);if(s!==-1){let[o]=n.splice(s,1);n.unshift(o)}return n}};e.\u0275fac=function(r){return new(r||e)(f(Cs),f(s6),f(vs))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Qo=(()=>{let e=class e{constructor(n){this.adapter=n}getLanguages(){return this.adapter.loadLanguages()}getCurrencies(){return this.adapter.loadCurrencies()}getCountries(n){return this.adapter.loadCountries(n)}getRegions(n){return this.adapter.loadRegions(n)}getBaseSite(n){return this.adapter.loadBaseSite(n)}getBaseSites(){return this.adapter.loadBaseSites()}};e.\u0275fac=function(r){return new(r||e)(f(Hp))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),cO=(()=>{let e=class e extends Wr{};e.type="LanguageSetEvent";let t=e;return t})(),uO=(()=>{let e=class e extends Wr{};e.type="CurrencySetEvent";let t=e;return t})(),a6=(()=>{let e=class e{constructor(n,r){this.actionsSubject=n,this.eventService=r,this.register()}register(){this.registerSetLanguage(),this.registerSetCurrency()}registerSetLanguage(){let n=this.actionsSubject.pipe(G(Ag),E(r=>Di(cO,{activeLanguage:r.payload})));this.eventService.register(cO,n)}registerSetCurrency(){let n=this.actionsSubject.pipe(G(Tg),E(r=>Di(uO,{activeCurrency:r.payload})));this.eventService.register(uO,n)}};e.\u0275fac=function(r){return new(r||e)(f(Ur),f(Is))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),c6=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(r){return new(r||e)(f(a6))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),Qp=class{};function u6(){return{[ys]:Ds,[Es]:au,[Gr]:Cs}}var l6={provide:Qp,useFactory:u6},d6=(()=>{let e=class e{constructor(n,r){this.baseSiteService=n,this.configInit=r}initialize(){this.subscription=this.configInit.getStable("context").pipe(M(()=>this.setFallbackValue())).subscribe()}setFallbackValue(){return this.configInit.getStable("context").pipe(j(n=>this.setDefaultFromConfig(n)))}setDefaultFromConfig(n){let r=Ii(n,Gr);!this.baseSiteService.isInitialized()&&r&&this.baseSiteService.setActive(r)}ngOnDestroy(){this.subscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(f(Cs),f(Bn))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),f6=(()=>{let e=class e{constructor(n,r,s){this.statePersistenceService=n,this.currencyService=r,this.config=s,this.initialized$=new Kt(1)}initSync(){return this.statePersistenceService.syncWithStorage({key:Es,state$:this.currencyService.getActive(),onRead:n=>this.onRead(n)}),this.initialized$}onRead(n){!this.currencyService.isInitialized()&&n&&this.currencyService.setActive(n),this.initialized$.closed||(this.initialized$.next(void 0),this.initialized$.complete())}};e.\u0275fac=function(r){return new(r||e)(f(XI),f(au),f(Yr))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function h6(t,e){return()=>t.initialize(e)}function p6(t){return qn(t.getStable())}var g6=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[{provide:lP,useValue:!0},{provide:xt,multi:!0,useFactory:h6,deps:[Bn,[new nn,Mg]]},{provide:jd,useFactory:p6,deps:[Bn]}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function m6(t,e){let i=C(ee);return()=>{Ee()&&t.getStable().subscribe(n=>s4(n,e||[],i))}}var v6=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[{provide:xt,multi:!0,useFactory:m6,deps:[Bn,[new nn,dP]]}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();var Dle=new S("TEST_CONFIG_COOKIE_NAME");var y6=(()=>{let e=class e{constructor(n,r,s){this.currencyService=n,this.currencyStatePersistenceService=r,this.configInit=s}initialize(){this.subscription=this.configInit.getStable("context").pipe(M(()=>this.currencyStatePersistenceService.initSync()),M(()=>this.setFallbackValue())).subscribe()}setFallbackValue(){return this.configInit.getStable("context").pipe(j(n=>this.setDefaultFromConfig(n)))}setDefaultFromConfig(n){let r=Ii(n,Es);!this.currencyService.isInitialized()&&r&&this.currencyService.setActive(r)}ngOnDestroy(){this.subscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(f(au),f(f6),f(Bn))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),E6=(()=>{let e=class e{constructor(n,r,s){this.statePersistenceService=n,this.languageService=r,this.config=s,this.initialized$=new Kt(1)}initSync(){return this.statePersistenceService.syncWithStorage({key:ys,state$:this.languageService.getActive(),onRead:n=>this.onRead(n)}),this.initialized$}onRead(n){!this.languageService.isInitialized()&&n&&this.languageService.setActive(n),this.initialized$.closed||(this.initialized$.next(void 0),this.initialized$.complete())}};e.\u0275fac=function(r){return new(r||e)(f(XI),f(Ds),f(Yr))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),C6=(()=>{let e=class e{constructor(n,r,s){this.languageService=n,this.languageStatePersistenceService=r,this.configInit=s}initialize(){this.subscription=this.configInit.getStable("context").pipe(M(()=>this.languageStatePersistenceService.initSync()),M(()=>this.setFallbackValue())).subscribe()}setFallbackValue(){return this.configInit.getStable("context").pipe(j(n=>this.setDefaultFromConfig(n)))}setDefaultFromConfig(n){let r=Ii(n,ys);!this.languageService.isInitialized()&&r&&this.languageService.setActive(r)}ngOnDestroy(){this.subscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(f(Ds),f(E6),f(Bn))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),JD=(()=>{let e=class e{constructor(n,r,s){this.config=n,this.injector=r,this.serviceMap=s,this.logger=C(ee)}getContextParameters(){return this.config.context?Object.keys(this.config.context).filter(n=>n!=="urlParameters"):[]}getUrlEncodingParameters(){return this.config.context&&this.config.context.urlParameters||[]}getParamValues(n){return Zc(this.config,n)}getParamDefaultValue(n){return Ii(this.config,n)}getSiteContextService(n){if(this.serviceMap[n])try{return this.injector.get(this.serviceMap[n])}catch{Ee()&&this.logger.warn(`Couldn't find site context service for '${n}'.`);return}}getValue(n){let r,s=this.getSiteContextService(n);return s&&s.getActive().subscribe(o=>r=o).unsubscribe(),r!==void 0?r:this.getParamDefaultValue(n)}setValue(n,r){let s=this.getSiteContextService(n);s&&s.setActive(r)}getValues(n){return n.length===0?I([]):Ve(n.map(r=>{let s=this.getSiteContextService(r);return s?s.getActive().pipe(Xt()):I("")})).pipe(N(r=>r.every(s=>!!s)))}};e.\u0275fac=function(r){return new(r||e)(f(Yr),f(qe),f(Qp))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),pI=(()=>{let e=class e extends ss{get urlEncodingParameters(){return this.siteContextParams.getUrlEncodingParameters()}get hasContextInRoutes(){return this.urlEncodingParameters.length>0}constructor(n){super(),this.siteContextParams=n,this.URL_SPLIT=/(^[^#?]*)(.*)/}parse(n){if(this.hasContextInRoutes){let r=this.urlExtractContextParameters(n),s=super.parse(r.url);return this.urlTreeIncludeContextParameters(s,r.params),s}else return super.parse(n)}urlExtractContextParameters(n){let[,r,s]=n.match(this.URL_SPLIT)??[,"",""],o=r?.split("/")??[];o[0]===""&&o.shift();let a={},c=0,u=0;for(;c<this.urlEncodingParameters.length&&u<o.length;){let l=this.urlEncodingParameters[c];this.siteContextParams.getParamValues(l).includes(o[u])&&(a[l]=o[u],u++),c++}return n=o.slice(u).join("/")+s,{url:n,params:a}}urlTreeIncludeContextParameters(n,r){n.siteContext=r}
18serialize(n){let r=this.urlTreeExtractContextParameters(n),s=super.serialize(n);return this.urlIncludeContextParameters(s,r)}urlTreeExtractContextParameters(n){return n.siteContext?n.siteContext:{}}urlIncludeContextParameters(n,r){return this.urlEncodingParameters.map(o=>r[o]?r[o]:this.siteContextParams.getValue(o)).join("/")+n}};e.\u0275fac=function(r){return new(r||e)(f(JD))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})();function S6(t){if(Ii(t,Gr)===void 0)return"Please configure context.parameters.baseSite before using storefront library!"}function I6(){return{context:{[ys]:["en","de","ja","zh","ru","fr","tr","it","es","uk","pl","nl","hi","ar","pt","bn","pa"],[Es]:["USD","EUR","JPY","GBP","AUD","CAD","CHF","CNY","SEK","NZD","MXN","SGD","HKD","NOK","KRW","TRY","RUB","INR","BRL","ZAR"]}}}function D6(t){return()=>{t.initialize()}}function b6(t){return()=>{t.initialize()}}function w6(t){return()=>{t.initialize()}}var T6=[{provide:xt,useFactory:b6,deps:[C6],multi:!0},{provide:xt,useFactory:D6,deps:[y6],multi:!0},{provide:xt,useFactory:w6,deps:[d6],multi:!0}],A6=(()=>{let e=class e{constructor(n,r,s){this.siteContextParams=n,this.serializer=r,this.injector=s,this.subscription=new Ce,this.contextValues={},this.isNavigating=!1}init(){this.router=this.injector.get(ke),this.location=this.injector.get(fr);let n=this.siteContextParams.getUrlEncodingParameters();n.length&&(this.setContextParamsFromRoute(this.location.path(!0)),this.subscribeChanges(n),this.subscribeRouting())}subscribeChanges(n){n.forEach(r=>{let s=this.siteContextParams.getSiteContextService(r);s&&this.subscription.add(s.getActive().subscribe(o=>{if(!this.isNavigating&&this.contextValues[r]&&this.contextValues[r]!==o){let a=this.router.parseUrl(this.router.url),c=this.router.serializeUrl(a);this.location.replaceState(c)}this.contextValues[r]=o}))})}subscribeRouting(){this.subscription.add(this.router.events.pipe(N(n=>n instanceof Sn||n instanceof at||n instanceof gr||n instanceof In)).subscribe(n=>{this.isNavigating=n instanceof Sn,this.isNavigating&&this.setContextParamsFromRoute(n.url)}))}setContextParamsFromRoute(n){let{params:r}=this.serializer.urlExtractContextParameters(n);Object.keys(r).forEach(s=>this.siteContextParams.setValue(s,r[s]))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(f(JD),f(pI),f(qe))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function R6(t,e){return()=>qn(t.getStable("context").pipe(j(()=>{e.init()})))}var M6=[Cs,Ds,au,{provide:xt,useFactory:R6,deps:[Bn,A6],multi:!0}],x6=[JD,pI,{provide:as,useExisting:pI}],N6=(()=>{let e=class e{constructor(n,r){this.actions$=n,this.siteConnector=r,this.logger=C(ee),this.loadBaseSite$=Z(()=>this.actions$.pipe(G(HI),Jn(()=>this.siteConnector.getBaseSite().pipe(E(s=>{if(s)return new Qf(s);throw new Error("BaseSite is not found")}),F(s=>I(new Zf(K(s,this.logger)))))))),this.loadBaseSites$=Z(()=>this.actions$.pipe(G(GI),Jn(()=>this.siteConnector.getBaseSites().pipe(E(s=>new eh(s)),F(s=>I(new Xf(K(s,this.logger))))))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(Qo))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),O6=(()=>{let e=class e{constructor(n,r,s){this.actions$=n,this.siteConnector=r,this.state=s,this.logger=C(ee),this.loadCurrencies$=Z(()=>this.actions$.pipe(G(YI),Jn(()=>this.siteConnector.getCurrencies().pipe(E(o=>new ih(o)),F(o=>I(new rh(K(o,this.logger)))))))),this.activateCurrency$=Z(()=>this.state.select(HS).pipe(Zu(2,1),N(([o])=>!!o),E(([o,a])=>new oh({previous:o,current:a}))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(Qo),f(De))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),P6=(()=>{let e=class e{constructor(n,r,s){this.actions$=n,this.siteConnector=r,this.state=s,this.logger=C(ee),this.loadLanguages$=Z(()=>this.actions$.pipe(G(ZI),Jn(()=>this.siteConnector.getLanguages().pipe(E(o=>new uh(o)),F(o=>I(new ch(K(o,this.logger)))))))),this.activateLanguage$=Z(()=>this.state.select(zS).pipe(Zu(2,1),N(([o])=>!!o),E(([o,a])=>new dh({previous:o,current:a}))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(Qo),f(De))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),F6=[P6,O6,N6],_6={entities:null,details:{},activeSite:""};function L6(t=_6,e){switch(e.type){case zI:return T(v({},t),{details:e.payload});case qI:{let i={};return t.entities&&(i=t.entities[e.payload]),T(v({},t),{details:i,activeSite:e.payload})}case WI:{let n=e.payload.reduce((s,o)=>T(v({},s),{[o.uid??""]:o}),v({},t.entities)),r=n[t.activeSite];return T(v({},t),{details:r,entities:n})}}return t}var k6={entities:null,activeCurrency:null};function j6(t=k6,e){switch(e.type){case KI:{let n=e.payload.reduce((r,s)=>T(v({},r),{[s.isocode??""]:s}),v({},t.entities));return T(v({},t),{entities:n})}case Tg:{let i=e.payload;return T(v({},t),{activeCurrency:i})}}return t}var U6={entities:null,activeLanguage:null};function $6(t=U6,e){switch(e.type){case QI:{let n=e.payload.reduce((r,s)=>T(v({},r),{[s.isocode??""]:s}),v({},t.entities));return T(v({},t),{entities:n})}case Ag:{let i=e.payload;return T(v({},t),{activeLanguage:i})}}return t}function B6(){return{languages:$6,currencies:j6,baseSite:L6}}var IF=new S("SiteContextReducers"),V6={provide:IF,useFactory:B6};function H6(){return{state:{ssrTransfer:{keys:{[JI]:Ko.TRANSFER_STATE}}}}}var z6=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[Wc(H6),V6],imports:[ot,$r.forFeature
18(JI,IF),mi.forFeature(F6)]});let t=e;return t})();function G6(t,e){return e.context?.[Gr]?null:t}var W6=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[Wc(I6),l6,...M6,...x6,eD(S6),{provide:Mg,useFactory:G6,deps:[o6,Yr],multi:!0},...T6]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[Ss,z6,c6]});let t=e;return t})();var ble=new S("AnonymousConsentsReducers");var DF={backend:{occ:{endpoints:{component:"cms/components/${id}",components:"cms/components",pages:"cms/pages",page:"cms/pages/${id}"}}},cmsComponents:{},componentsLoading:{pageSize:50}},q6=T(v({},DF),{backend:{occ:{endpoints:{component:"users/${userId}/cms/components/${id}",components:"users/${userId}/cms/components",pages:"users/${userId}/cms/pages",page:"users/${userId}/cms/pages/${id}"}}}}),XD="cms",$g="[Cms] Navigation Entity",uu="[Cms] Component Entity",Bg="[Cms] Load Component",Vg="[Cms] Load Component Fail",Hg="[Cms] Load Component Success",zg="[Cms] Get Component from Page",_c=class extends Ut{constructor(e){super(uu,e.uid),this.payload=e,this.type=Bg}},Lc=class extends Ot{constructor(e){super(uu,e.uid,e.error),this.payload=e,this.type=Vg}},Jp=class extends lt{constructor(e){super(uu,e.uid||e.component.uid||""),this.payload=e,this.type=Hg}},Xp=class extends lt{constructor(e){super(uu,[].concat(e).map(i=>i.component.uid)),this.payload=e,this.type=zg}},eb="[Cms] Load NavigationEntry items",bF="[Cms] Load NavigationEntry items Fail",tb="[Cms] Load NavigationEntry items Success",eg=class extends Ut{constructor(e){super($g,e.nodeId),this.payload=e,this.type=eb}},kc=class extends Ot{constructor(e,i){super($g,e,i),this.payload=i,this.type=bF}},tg=class extends lt{constructor(e){super($g,e.nodeId),this.payload=e,this.type=tb}},nb="[Cms] Load Page Data",rb="[Cms] Load Page Data Fail",Gg="[Cms] Load Page Data Success",ib="[Cms] Set Page Success Index",sb="[Cms] Set Page Fail Index",gs=class extends Ut{constructor(e){super(e.type??"",e.id),this.payload=e,this.type=nb}},ng=class extends Ot{constructor(e,i){super(e.type??"",e.id,i),this.type=rb}},rg=class extends lt{constructor(e,i){super(e.type??"",e.id,i),this.type=Gg}},ig=class extends lt{constructor(e,i){super(e.type??"",e.id,i),this.type=ib}},sg=class extends Ot{constructor(e,i){super(e.type??"",e.id),this.payload=i,this.type=sb}},wle=Object.freeze({__proto__:null,CMS_GET_COMPONENT_FROM_PAGE:zg,CMS_SET_PAGE_FAIL_INDEX:sb,CMS_SET_PAGE_SUCCESS_INDEX:ib,CmsGetComponentFromPage:Xp,CmsSetPageFailIndex:sg,CmsSetPageSuccessIndex:ig,LOAD_CMS_COMPONENT:Bg,LOAD_CMS_COMPONENT_FAIL:Vg,LOAD_CMS_COMPONENT_SUCCESS:Hg,LOAD_CMS_NAVIGATION_ITEMS:eb,LOAD_CMS_NAVIGATION_ITEMS_FAIL:bF,LOAD_CMS_NAVIGATION_ITEMS_SUCCESS:tb,LOAD_CMS_PAGE_DATA:nb,LOAD_CMS_PAGE_DATA_FAIL:rb,LOAD_CMS_PAGE_DATA_SUCCESS:Gg,LoadCmsComponent:_c,LoadCmsComponentFail:Lc,LoadCmsComponentSuccess:Jp,LoadCmsNavigationItems:eg,LoadCmsNavigationItemsFail:kc,LoadCmsNavigationItemsSuccess:tg,LoadCmsPageData:gs,LoadCmsPageDataFail:ng,LoadCmsPageDataSuccess:rg}),Wg=kn(XD),wF=A(Wg,t=>t.components),ob=t=>A(wF,e=>BO(e,t)),ab=(t,e)=>A(ob(t),i=>i&&i.pageContext&&i.pageContext[e]||Er),TF=(t,e)=>A(ab(t,e),i=>et(i)),AF=t=>A(ob(t),e=>e?e.component:void 0),RF=(t,e)=>A(AF(t),TF(t,e),(i,n)=>{switch(n){case!0:return i;case!1:return null;case void 0:return}}),MF=A(Wg,t=>t.navigation),xF=t=>A(MF,e=>dn(e,t)),NF=t=>A(xF(t),e=>et(e)),Y6=t=>t.pageData.entities,K6=(t,e)=>{switch(e){case we.CONTENT_PAGE:return t.content;case we.PRODUCT_PAGE:return t.product;case we.CATEGORY_PAGE:return t.category;case we.CATALOG_PAGE:return t.catalog;default:return{entities:{}}}},Z6=t=>{let e=new Set;if(t&&t.slots)for(let i of Object.keys(t.slots))for(let n of t.slots[i].components||[])e.add(n.flexType??"");return Array.from(e)},cb=A(Wg,t=>t.page),OF=A(cb,t=>t.index),PF=t=>A(OF,e=>K6(e,t.type)),ub=t=>A(PF(t),e=>dn(e,t.id)),lb=t=>A(ub(t),e=>et(e)),FF=A(cb,Y6),jc=t=>A(FF,lb(t),(e,i)=>e[i]),_F=t=>A(jc(t),e=>Z6(e)),LF=(t,e)=>A(jc(t),i=>{if(i)return i.slots?.[e]||{components:[]}}),Tle=Object.freeze({__proto__:null,componentsContextExistsSelectorFactory:TF,componentsContextSelectorFactory:ob,components
18DataSelectorFactory:AF,componentsLoaderStateSelectorFactory:ab,componentsSelectorFactory:RF,getCmsState:Wg,getComponentsState:wF,getCurrentSlotSelectorFactory:LF,getNavigationEntryItemState:MF,getNavigationEntryItems:NF,getPageComponentTypes:_F,getPageData:jc,getPageEntities:FF,getPageState:cb,getPageStateIndex:OF,getPageStateIndexEntityLoaderState:PF,getPageStateIndexLoaderState:ub,getPageStateIndexValue:lb,getSelectedNavigationEntryItemState:xF}),Q6="current";function Hr(t,e){return t?e&&t.type===we.CONTENT_PAGE?`${t.type}`:`${t.type}-${t.id}`:Q6}var qg=(()=>{let e=class e{constructor(n,r){this.store=n,this.routingService=r,this.components={}}getCurrentPage(){return this.routingService.getPageContext().pipe(M(n=>this.store.select(jc(n))))}getComponentData(n,r){let s=Hr(r,!0);this.components[n]||(this.components[n]={});let o=this.components[n];return o[s]||(o[s]=this.createComponentData(n,r)),o[s]}createComponentData(n,r){if(!r)return this.routingService.getPageContext().pipe(N(c=>!!c),M(c=>this.getComponentData(n,c)));let s=Hr(r,!0),o=Ve([this.routingService.getNextPageContext(),this.store.pipe(O(ab(n,s)))]).pipe(pn(ei),j(([c,u])=>{let l=u.loading||u.success||u.error,d=c?Hr(c,!0)===s:!1;!l&&!d&&this.store.dispatch(new _c({uid:n,pageContext:r}))})),a=this.store.pipe(O(RF(n,s)),N($n));return Ms(()=>o.subscribe(),()=>a).pipe(it({bufferSize:1,refCount:!0}))}getContentSlot(n){return this.routingService.getPageContext().pipe(M(r=>this.store.pipe(O(LF(r,n)),N($n))))}getNavigationEntryItems(n){return this.store.pipe(O(NF(n)))}loadNavigationItems(n,r){this.store.dispatch(new eg({nodeId:n,items:r}))}refreshLatestPage(){this.routingService.getPageContext().pipe(le(1)).subscribe(n=>this.store.dispatch(new gs(n)))}refreshPageById(n){let r={id:n};this.store.dispatch(new gs(r))}refreshComponent(n,r){this.store.dispatch(new _c({uid:n,pageContext:r}))}getPageState(n){return this.store.pipe(O(jc(n)))}getPageComponentTypes(n){return this.store.pipe(O(_F(n)))}hasPage(n,r=!1){return this.store.pipe(O(ub(n)),j(s=>{let o=s.loading||s.success||s.error,a=r&&!s.loading;(!o||a)&&(this.store.dispatch(new gs(n)),r=!1)}),N(s=>s.hasOwnProperty("value")?!!(s.success||s.error&&!s.loading):!1),E(s=>!!s.success),F(()=>I(!1)))}getPage(n,r=!1){return this.hasPage(n,r).pipe(M(s=>s?this.getPageState(n):I(null)))}getPageIndex(n){return this.store.pipe(O(lb(n)))}setPageFailIndex(n,r){this.store.dispatch(new sg(n,r))}};e.\u0275fac=function(r){return new(r||e)(f(De),f(Ai))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),J6={pageMeta:{resolvers:[{property:"title",method:"resolveTitle"},{property:"heading",method:"resolveHeading"},{property:"breadcrumbs",method:"resolveBreadcrumbs"},{property:"description",method:"resolveDescription",disabledInCsr:!0},{property:"image",method:"resolveImage",disabledInCsr:!0},{property:"robots",method:"resolveRobots",disabledInCsr:!0},{property:"canonicalUrl",method:"resolveCanonicalUrl",disabledInCsr:!0}],canonicalUrl:{forceHttps:!0,forceWww:!1,removeQueryParams:!0,forceTrailingSlash:!0}}},ln=class{getScore(e){let i=0;return this.pageType&&(i+=e.type===this.pageType?1:-1),this.pageTemplate&&(i+=e.template===this.pageTemplate?1:-1),this.pageUid&&(i+=e.pageId===this.pageUid?10:-10),i}hasMatch(e){return this.getScore(e)>0}getPriority(e){return this.getScore(e)}},Cr=class{},X6=(()=>{let e=class e{constructor(n){this.translation=n}resolveBreadcrumbs({url:n,pageMetaConfig:r}){let s=r?.breadcrumb;return s?typeof s!="string"&&s.raw?I([{link:n,label:s.raw}]):this.translateBreadcrumbLabel(s).pipe(E(o=>[{label:o,link:n}])):I([])}translateBreadcrumbLabel(n){let r=typeof n=="string"?n:n.i18n;return this.getParams().pipe(M(s=>this.translation.translate(r??"",s??{})))}getParams(){return I({})}};e.\u0275fac=function(r){return new(r||e)(f(Cr))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),e5=(()=>{let e=class e{constructor(n,r){this.activatedRoutesService=n,this.injector=r,this.routes$=this.activatedRoutesService.routes$.pipe(E(s=>s=s.slice(1,s.length))),this.routesWithExtras$=this.routes$.pipe(E(s=>s.reduce((o,a)=>{let c=o.length?o[o.length-1]:{route:null,resolver:this.injector.get(X6),url:""},u=this.getResolver(a)??c.resolver,l=this.getUrlPart(a),d=c.url+(l?`/${l}`:"");return o.concat({route:a,resolver:u,url:d})},[])),it({bufferSize:1,refCount:!0}))}resolveBreadcrumbs(n){return this.routesWithExtras$.pipe(E(r=>n?.includeCurrentRoute?r:this.trimCurrentRoute(r)),M(r=>r.length?Ve(r.map(s=>this.resolveRouteBreadcrumb(s))):I([])),E(r=>r.flat()))}getResolver(n){let r=this.getPageMetaConfig(n);return typeof r!="string"&&r?.resolver?this.injector.get(r.resolver,null):null}resolveRouteBreadcrumb({route:n,resolver:r,url:s}){let o=r;return typeof o.resolveBreadcrumbs=="function"?o.resolveBreadcrumbs({route:n,url:s,pageMetaConfig:this.getPageMetaConfig(n)}):I([])}trimCurrentRoute(n){let r=n.length-1;for(;n[r]?.route?.url.length===0&&r>=0;)r--;return n.slice(0,r)}getUrlPart(n){return n.url.map(r=>r.path).join("/")}getPageMetaConfig(n){return n?.routeConfig?.data?.cxPageMeta}};e.\u0275fac=function(r){return new(r||e)(f(KO),f(qe))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),kF=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=f(qt),s},providedIn:"root"});let t=e;return t})(),jF=(()=>{let e=class e{constructor(n,r){this.pageMetaConfig=n,this.winRef=r}getCanonicalUrl(n,r){let s=v(v({},this.pageMetaConfig?.pageMeta?.canonicalUrl),n);return this.buildCanonicalUrl(r??this.winRef.location.href??"",s)}buildCanonicalUrl(n,r){return r.forceHttps&&(n=n.replace(/^http(?!s):/i,"https:")),r.forceWww&&(n=n.replace(/^(https?:\/\/)(?!www\.)(.*)/i,"$1www.$2")),r.removeQueryParams&&(n=this.removeQueryParams(n,r)),r.forceTrailingSlash&&(n=n.replace(/^([^\?]+[^\/\?]$)$/i,"$1/")),n}removeQueryParams(n,r){let s=n.indexOf("?");if(s>-1){let o=n.substring(0,s),a=new URLSearchParams(n.substring(s));
18n=o,Array.isArray(r.removeQueryParams)&&(r.removeQueryParams.forEach(c=>{a.delete(c)}),a.toString().length>0&&(n=`${o}?${a.toString()}`))}return n}};e.\u0275fac=function(r){return new(r||e)(f(kF),f(vs))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Yg=(()=>{let e=class e{constructor(n,r,s,o,a){this.cmsService=n,this.translation=r,this.routingPageMetaResolver=s,this.router=o,this.pageLinkService=a,this.page$=We(()=>this.cmsService.getCurrentPage()).pipe(N(c=>!!c)),this.title$=this.page$.pipe(E(c=>c.title)),this.description$=this.page$.pipe(E(c=>c.description)),this.robots$=this.page$.pipe(E(c=>c.robots||[])),this.homeBreadcrumb$=this.translation.translate("common.home").pipe(E(c=>[{label:c,link:"/"}])),this.breadcrumb$=Ve([this.homeBreadcrumb$,We(()=>this.routingPageMetaResolver?.resolveBreadcrumbs())]).pipe(E(c=>c.flat()),it({bufferSize:1,refCount:!0}))}resolveTitle(){return this.title$}resolveDescription(){return this.description$}resolveBreadcrumbs(){return this.breadcrumb$}resolveRobots(){return this.robots$}resolveCanonicalUrl(n){return this.router.events.pipe(N(r=>r instanceof at),An(null),E(()=>this.pageLinkService.getCanonicalUrl(n)))}};e.\u0275fac=function(r){return new(r||e)(f(qg),f(Cr),f(e5),f(ke),f(jF))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),t5=(()=>{let e=class e extends ln{constructor(n){super(),this.basePageMetaResolver=n,this.pageType=we.CONTENT_PAGE}resolveTitle(){return this.basePageMetaResolver.resolveTitle()}resolveDescription(){return this.basePageMetaResolver.resolveDescription()}resolveBreadcrumbs(){return this.basePageMetaResolver.resolveBreadcrumbs()}resolveRobots(){return this.basePageMetaResolver.resolveRobots()}resolveCanonicalUrl(){return this.basePageMetaResolver.resolveCanonicalUrl()}};e.\u0275fac=function(r){return new(r||e)(f(Yg))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),n5=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[Sr(J6)]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[{provide:ln,useExisting:t5,multi:!0}]});let t=e;return t})();function UF(t=0,e){return i=>{let n=[];return i.pipe(j(r=>n.push(r)),Pi(t,e),E(()=>n),j(()=>n=[]))}}function db(t){return e=>t.pipe(An(void 0),M(()=>e))}var r5=(()=>{let e=class e extends GD{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=f(qt),s},providedIn:"root"});let t=e;return t})(),$F=(()=>{let e=class e{constructor(n){this.cmsDataConfig=n}mergePageStructure(n,r){return this.mergePage(n,r).pipe(M(s=>this.mergeSlots(s)))}shouldIgnoreBackend(n){return this.getPageFromConfig(n).pipe(E(r=>!!r&&!!r.ignoreBackend))}getComponentFromConfig(n){return I(this.getComponentById(n))}getComponentsFromConfig(n){return I(n.map(r=>this.getComponentById(r)))}getPageFromConfig(n){return I(this.cmsDataConfig.cmsStructure&&this.cmsDataConfig.cmsStructure.pages?this.cmsDataConfig.cmsStructure.pages.find(r=>r.pageId===n):void 0)}mergePage(n,r){return this.getPageFromConfig(n).pipe(M(s=>s?(r.page||(r.page=v({},s),r.page.slots={}),r.page.slots||(r.page.slots={}),this.mergeSlots(r,s.slots)):I(r)))}mergeSlots(n,r){if(!r&&this.cmsDataConfig.cmsStructure?.slots&&(r=this.cmsDataConfig.cmsStructure.slots),!r)return I(n);for(let s of Object.keys(r))if(n.page?.slots&&!Object.keys(n.page.slots).includes(s)){n.page.slots[s]={};for(let o of this.getComponentsByPosition(r,s))n.page.slots[s].components=n.page.slots[s].components??[],n.page.slots[s].components?.push({uid:o.uid,flexType:o.flexType,typeCode:o.typeCode}),n.components=n.components??[],n.components.push(o)}return I(n)}getComponentsByPosition(n,r){let s=[];if(n[r]&&n[r].componentIds){for(let o of n[r].componentIds??[])if(this.cmsDataConfig.cmsStructure&&this.cmsDataConfig.cmsStructure.components){let a=this.cmsDataConfig.cmsStructure.components[o];a&&s.push(v({uid:o},a))}}return s}getComponentById(n){return this.cmsDataConfig.cmsStructure&&this.cmsDataConfig.cmsStructure.components?this.cmsDataConfig.cmsStructure.components[n]:void 0}};e.\u0275fac=function(r){return new(r||e)(f(r5))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),BF=(()=>{let e=class e{constructor(n,r,s){this.cmsStructureConfigService=n,this.cmsComponentAdapter=r,this.config=s}get(n,r){return this.cmsStructureConfigService.getComponentFromConfig(n).pipe(M(s=>s?I(s):this.cmsComponentAdapter.load(n,r)))}getList(n,r){return this.cmsStructureConfigService.getComponentsFromConfig(n).pipe(M(s=>{let o=s.reduce((a,c,u)=>(c===void 0&&a.push(n[u]),a),[]);if(o.length>0){let a=this.config.componentsLoading?.pageSize||o.length,c=Math.ceil(o.length/a),u=[],l=0;for(;l<c;)u.push(this.cmsComponentAdapter.findComponentsByIds(o.slice(l*a,(l+1)*a),r)),l++;return Oi(...u).pipe(E(d=>
18[...s.filter(Boolean)].concat(...d)))}else return I(s)}))}};e.\u0275fac=function(r){return new(r||e)(f($F),f(Lp),f(GD))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),i5=(()=>{let e=class e{constructor(n,r){this.actions$=n,this.cmsComponentConnector=r,this.logger=C(ee),this.contextChange$=this.actions$.pipe(G(Dr,Ti,wi)),this.loadComponent$=Z(()=>({scheduler:s,debounce:o=0}={})=>this.actions$.pipe(G(Bg),Jr(a=>Hr(a.payload.pageContext)),q(a=>a.pipe(UF(o,s),q(c=>this.loadComponentsEffect(c.map(u=>u.payload.uid),c[0].payload.pageContext??{id:""})))),db(this.contextChange$)))}loadComponentsEffect(n,r){return this.cmsComponentConnector.getList(n,r).pipe(M(s=>{let o=[],a=new Set(n);for(let c of s)o.push(new Jp({component:c,uid:c.uid,pageContext:r})),a.delete(c.uid??"");return a.forEach(c=>{o.push(new Lc({uid:c,pageContext:r}))}),ge(o)}),F(s=>ge(n.map(o=>new Lc({uid:o,error:K(s,this.logger),pageContext:r})))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(BF))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),s5="[^/]",o5="[^/]*",a5="(?:.+\\/)?",VF=[{replace:/\./g,with:"\\."},{replace:/\+/g,with:"\\+"},{replace:/\*/g,with:o5}],c5=[...VF,{replace:/\?/g,with:s5}],u5=[...VF,{replace:/\?/g,with:"\\?"}];function l5(t,e=!1){let i=e?u5:c5,n=t.split("/").reverse(),r="";for(;n.length>0;){let s=n.pop();if(s==="**")n.length>0?r+=a5:r+=".*";else{let o=i.reduce((a,c)=>a?.replace(c.replace,c.with),s);r+=o,n.length>0&&(r+="\\/")}}return r}function d5(t){return t.map(e=>{let i=!e.startsWith("!");return e=i?e:e.substring(1),{positive:i,regex:`^${l5(e)}$`}})}var f5=(()=>{let e=class e{getValidator(n){let r=d5(n).map(({positive:a,regex:c})=>({positive:a,regex:new RegExp(c)})),s=r.filter(a=>a.positive),o=r.filter(a=>!a.positive);return a=>s.some(c=>c.regex.test(a))&&!o.some(c=>c.regex.test(a))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),HF=(()=>{let e=class e{constructor(n){this.globService=n}getFalsy(){return function(){return null}}getFromPaths(n){let r=n.map(o=>this.getFromPath(o)),s=this.getCombined(r);return Ee()&&(s._paths=n),s}getCombined(n){let r=function(o,a,c){for(let u=0;u<n.length;u++){let l=n[u](o,a,c);if(l)return l}return null};return Ee()&&(r._matchers=n),r}getFromPath(n=""){let r=function(u,l,d){if(n==="")return s(u,l,d);let h=n.split("/");if(o(h.length>u.length,a(d.pathMatch==="full",o(l.hasChildren(),h.length<u.length))))return null;let p={};for(let y=0;y<h.length;y++){let D=h[y],w=u[y];if(D.startsWith(":"))p[D.substring(1)]=w;else if(D!==w.path)return null}return{consumed:u.slice(0,h.length),posParams:p}};return Ee()&&(r._path=n),r;function s(c,u,l){return a(l.pathMatch==="full",o(u.hasChildren(),c.length>0))?null:{consumed:[],posParams:{}}}function o(c,u){return c||u}function a(c,u){return c&&u}}
18getOpposite(n){let r=function(o,a,c){return n(o,a,c)?null:{consumed:o,posParams:{}}};return Ee()&&(r._originalMatcher=n),r}getFromGlob(n){let r=this.globService.getValidator(n),s=function(a){let c=`/${a.map(u=>u.path).join("/")}`;return r(c)?{consumed:a,posParams:{}}:null};return Ee()&&(s._globPatterns=n),s}};e.\u0275fac=function(r){return new(r||e)(f(f5))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),h5=(()=>{let e=class e{constructor(n,r,s){this.injector=n,this.routingConfigService=r,this.urlMatcherService=s,this.logger=C(ee),this.initCalled=!1}init(){this.initCalled||(this.initCalled=!0,this.configure())}configure(){let n=this.injector.get(ke);n.resetConfig(this.configureRoutes(n.config))}configureRoutes(n){return n.map(r=>{let s=this.configureRoute(r);return r.children&&r.children.length&&(s.children=this.configureRoutes(r.children)),s})}configureRoute(n){let r=this.getRouteName(n);if(r){let s=this.routingConfigService.getRouteConfig(r);return this.validateRouteConfig(s,r,n),s?.disabled?(delete n.path,T(v({},n),{matcher:this.urlMatcherService.getFalsy()})):s?.matchers?(delete n.path,T(v({},n),{matcher:this.resolveUrlMatchers(n,s?.matchers)})):s?.paths?.length===1?(delete n.matcher,T(v({},n),{path:s?.paths[0]})):(delete n.path,T(v({},n),{matcher:this.urlMatcherService.getFromPaths(s?.paths||[])}))}return n}resolveUrlMatchers(n,r){let s=r?.map(o=>typeof o=="function"?o:this.resolveUrlMatcherFactory(n,o))??[];return this.urlMatcherService.getCombined(s)}resolveUrlMatcherFactory(n,r){return this.injector.get(r)(n)}getRouteName(n){return n.data&&n.data.cxRoute}validateRouteConfig(n,r,s){if(Ee()){if(n===null||n?.paths===null||n?.matchers)return;if(!n?.paths){this.warn(`Could not configure the named route '${r}'`,s,"due to undefined config or undefined 'paths' property for this route");return}}}warn(...n){Ee()&&this.logger.warn(...n)}};e.\u0275fac=function(r){return new(r||e)(f(qe),f(wg),f(HF))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ale=(()=>{let e=class e{constructor(n){this.urlService=n}transform(n){return this.urlService.transform(n)}};e.\u0275fac=function(r){return new(r||e)(Q(Kc,16))},e.\u0275pipe=rn({name:"cxUrl",type:e,pure:!0});let t=e;return t})(),Rle=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[ot]});let t=e;return t})();var p5=(()=>{let e=class e{get routingConfig(){return this.config&&this.config.routing}get shouldProtect(){return!!this.routingConfig?.protected}constructor(n,r){this.config=n,this.urlParsingService=r,this.nonProtectedPaths=[],this.shouldProtect&&(this.nonProtectedPaths=this.getNonProtectedPaths().map(s=>this.getSegments(s)))}isUrlProtected(n){return this.shouldProtect&&!this.matchAnyPath(n,this.nonProtectedPaths)}matchAnyPath(n,r){return r.some(s=>this.matchPath(n,s))}matchPath(n,r){return this.urlParsingService.matchPath(n,r)}getNonProtectedPaths(){return Object.values(this.routingConfig?.routes??{}).reduce((n,r)=>r.protected===!1&&r.paths&&r.paths.length?n.concat(r?.paths??[]):n,[])}getSegments(n){return(n||"").split("/")}};e.\u0275fac=function(r){return new(r||e)(f(bg),f(BI))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mle=(()=>{let e=class e{constructor(n,r){this.service=n,this.authGuard=r}canActivate(n){let r=n.url.map(s=>s.path);return r=r.length?r:[""],this.service.isUrlProtected(r)?this.authGuard.canActivate():I(!0)}};e.\u0275fac=function(r){return new(r||e)(f(p5),f(C4))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),g5=(()=>{let e=class e{constructor(n,r){this.baseSiteService=n,this.configInit=r,this.scopes=["routing"],this.configFactory=()=>qn(this.resolveConfig())}resolveConfig(){return this.configInit.getStable("context").pipe(M(n=>{let r=n?.context?.[Gr]?.[0];return this.baseSiteService.get(r).pipe(j(s=>{if(!s)throw new Error(`Error: Cannot get base site config for ${r}.`)}),E(s=>this.getRoutingConfig(s)),le(1))}))}getRoutingConfig(n){return{routing:{protected:n?.requiresAuthentication}}}};e.\u0275fac=function(r){return new(r||e)(f(Cs),f(Bn))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),m5=(()=>{let e=class e{constructor(n,r){this.actions$=n,this.router=r,this.clearCmsRoutes$=Z(()=>this.actions$.pipe(G(Dr,Ti,wi),j(()=>{let s=this.router.config.filter(o=>!(o.data&&o.data.cxCmsRouteContext));s.length!==this.router.config.length&&this.router.resetConfig(s)})),{dispatch:!1})}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(ke))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),v5=[m5],y5={navigationId:0,state:{url:"",queryParams:{},params:{},context:{id:""},cmsRequired:!1,semanticRoute:void 0},nextState:void 0};function E5(){return{router:C5}}function C5(t=y5,e){switch(e.type){case Tf:return T(v({},t),{nextState:e.payload.routerState,navigationId:e.payload.event.id});case Rf:case Af:return T(v({},t),{nextState:void 0});case qO:return t.nextState?T(v({},t),{nextState:T(v({},t.nextState),{context:e.payload})}):t;case Mf:return{state:T(v({},e.payload.routerState),{context:t.nextState?.context??e.payload.routerState.context}),navigationId:e.payload.event.id,nextState:void 0};default:return t}}var zF=new S("RouterReducers"),S5={provide:zF,useFactory:E5},I5=(()=>
18{let e=class e{serialize(n){let r=n.root,s=!1,o,a,c="";for(;r.firstChild;)r=r.firstChild,c+="/"+r.url.map(l=>l.path).join("/"),r.data?.cxRoute&&(a=r.data?.cxRoute),r.data?.cxCmsRouteContext&&(o=r.data?.cxCmsRouteContext),!s&&(o||r.routeConfig?.canActivate?.find(l=>l&&l.guardName==="CmsPageGuard"))&&(s=!0);a=a||this.lookupSemanticRoute(c);let{params:u}=r;return o=this.getPageContext(o,r),{url:n.url,queryParams:n.root.queryParams,params:u,context:o,cmsRequired:s,semanticRoute:a}}getPageContext(n,r){let s=n;if(r.url.length>0&&r.url[0].path==="cx-preview"&&r.queryParams.cmsTicketId!==void 0)s={id:uF,type:we.CONTENT_PAGE};else{let{params:o}=r;o.productCode?s={id:o.productCode,type:we.PRODUCT_PAGE}:o.categoryCode?s={id:o.categoryCode,type:we.CATEGORY_PAGE}:o.brandCode?s={id:o.brandCode,type:we.CATEGORY_PAGE}:r.data.pageLabel!==void 0&&(s={id:r.data.pageLabel,type:we.CONTENT_PAGE})}return s||(r.url.length>0?s={id:"/"+r.url.map(a=>a.path).join("/"),type:we.CONTENT_PAGE}:s={id:cF,type:we.CONTENT_PAGE}),s}lookupSemanticRoute(n){return this.routingConfig.getRouteName(n.substr(1))}constructor(n){this.routingConfig=n}};e.\u0275fac=function(r){return new(r||e)(f(wg))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})();function D5(t){return()=>t.init()}function b5(t,e){return e.routing?.protected===void 0?t:null}var xle=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[S5,{provide:Ao,useClass:I5},{provide:xt,useFactory:D5,deps:[h5],multi:!0},{provide:Mg,useFactory:b5,deps:[g5,bg],multi:!0}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[$r.forFeature(US,zF),mi.forFeature(v5),yN.forRoot({routerState:1,stateKey:US})]});let t=e;return t})();function w5(t,e){return n=>{let r=n.data&&n.data.cxRoute,s=t.getRouteConfig(r),o=s&&s.paths||[];return e.getFromPaths(o)}}var Nle=new S("DEFAULT_URL_MATCHER",{providedIn:"root",factory:()=>w5(C(wg),C(HF))}),T5=(()=>{let e=class e{getIdListByItemType(n){let r=[],s=[],o=[];return n.forEach(a=>{a.superType==="AbstractCMSComponent"?s.push(a.id):a.superType==="AbstractPage"?r.push(a.id):a.superType==="AbstractMedia"&&o.push(a.id)}),{pageIds:r,componentIds:s,mediaIds:o}}constructor(n,r,s){this.actions$=n,this.cmsComponentConnector=r,this.routingService=s,this.logger=C(ee),this.loadNavigationItems$=Z(()=>this.actions$.pipe(G(eb),E(o=>o.payload),E(o=>({ids:this.getIdListByItemType(o.items),nodeId:o.nodeId})),q(o=>o.ids.componentIds.length>0?this.routingService.getRouterState().pipe(N($n),E(a=>a.state.context),le(1),q(a=>this.cmsComponentConnector.getList(o.ids.componentIds,a).pipe(E(c=>new tg({nodeId:o.nodeId,components:c})),F(c=>I(new kc(o.nodeId,K(c,this.logger))))))):I(new kc(o.nodeId,"navigation nodes are empty")))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(BF),f(Ai))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),A5=(()=>{let e=class e{constructor(n,r){this.cmsPageAdapter=n,this.cmsStructureConfigService=r}get(n){return this.cmsStructureConfigService.shouldIgnoreBackend(n.id).pipe(M(r=>r?I({}):this.cmsPageAdapter.load(n).pipe(F(s=>{if(s instanceof Wt&&s.status===400)return I({});throw s}))),M(r=>this.mergeDefaultPageStructure(n,r)))}mergeDefaultPageStructure(n,r){return this.cmsStructureConfigService.mergePageStructure(n.id,r)}};e.\u0275fac=function(r){return new(r||e)(f(kp),f($F))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),R5=(()=>{let e=class e{constructor(n,r,s){this.actions$=n,this.cmsPageConnector=r,this.routingService=s,this.logger=C(ee),this.refreshPage$=Z(()=>this.actions$.pipe(G(Dr,Ti,wi),M(()=>this.routingService.getRouterState().pipe(N(o=>o&&o.state&&o.state.cmsRequired&&!o.nextState),le(1),E(o=>o.state.context),q(o=>I(new gs(o))))))),this.loadPageData$=Z(()=>this.actions$.pipe(G(nb),E(o=>o.payload),Jr(o=>Hr(o)),q(o=>o.pipe(M(a=>this.cmsPageConnector.get(a).pipe(q(c=>{let u=[new Xp((c.components??[]).map(d=>({component:d,pageContext:a}))),new rg(a,c.page??{})],l=c.page?.label;return l&&l!==a.id&&u.unshift(new ig({id:l,type:a.type},c.page??{})),u}),F(c=>I(new ng(a,K(c,this.logger))))))))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(A5),f(Ai))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),M5=[R5,i5,T5],x5={component:void 0,pageContext:{}};function Hf(t,e){switch(e.type){case Vg:return!1;case zg:case Hg:return!0}return t}function N5(t=x5,e){switch(e.type){case Bg:{let i=Ct(e.meta.entityType,Hf),n=Hr(e.payload.pageContext,!0);return T(v({},t),{pageContext:T(v({}
18,t.pageContext),{[n]:i(t.pageContext[n],e)})})}case Vg:{let i=Ct(e.meta.entityType,Hf),n=Hr(e.payload.pageContext,!0);return T(v({},t),{pageContext:T(v({},t.pageContext),{[n]:i(t.pageContext[n],e)})})}case Hg:{let i=Ct(e.meta.entityType,Hf),n=Hr(e.payload.pageContext,!0);return T(v({},t),{component:e.payload.component,pageContext:T(v({},t.pageContext),{[n]:i(t.pageContext[n],e)})})}case zg:{let i=Ct(e.meta.entityType,Hf);if(!Array.isArray(e.payload)){let n=Hr(e.payload.pageContext,!0);return T(v({},t),{component:e.payload.component,pageContext:T(v({},t.pageContext),{[n]:i(t.pageContext[n],e)})})}}}return t}var O5=void 0;function P5(t=O5,e){switch(e.type){case tb:if(e.payload.components.length){let n=e.payload.components.reduce((r,s)=>T(v({},r),{[`${s.uid}_AbstractCMSComponent`]:s}),{});return v(v({},t),n)}}return t}var F5={entities:{}};function _5(t=F5,e){switch(e.type){case Gg:{let i=e.payload;return T(v({},t),{entities:T(v({},t.entities),{[i.pageId??""]:i})})}}return t}var lO=void 0;function zf(t){return(e=lO,i)=>{if(i.meta&&i.meta.entityType===t)switch(i.type){case Gg:return i.payload.pageId;case rb:return lO;case sb:return i.payload;case ib:return i.payload.pageId}return e}}function L5(){return{page:vo({pageData:_5,index:vo({content:ds(we.CONTENT_PAGE,zf(we.CONTENT_PAGE)),product:ds(we.PRODUCT_PAGE,zf(we.PRODUCT_PAGE)),category:ds(we.CATEGORY_PAGE,zf(we.CATEGORY_PAGE)),catalog:ds(we.CATALOG_PAGE,zf(we.CATALOG_PAGE))})}),components:qc(uu,N5),navigation:ds($g,P5)}}var GF=new S("CmsReducers"),k5={provide:GF,useFactory:L5};function j5(t){return function(e,i){return(i.type===Dr||i.type===Ti||i.type===wi)&&(e=void 0),t(e,i)}}var U5=[j5];function $5(){return{state:{ssrTransfer:{keys:{[XD]:Ko.TRANSFER_STATE}}}}}var B5=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[Wc($5),k5],imports:[ot,Ss,$r.forFeature(XD,GF,{metaReducers:U5}),mi.forFeature(M5)]});let t=e;return t})();function V5(t){let e=!1;return t.find(i=>{let n=i.features?.[Fo];n&&(e=n)}),e?q6:DF}var H5=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[qg,Wc(V5,[Gc])]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[B5,n5.forRoot()]});let t=e;return t})(),z5=(()=>{let e=class e{constructor(){this.logger=C(ee)}handleError(n){this.logger.error(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),G5=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[{provide:mt,useClass:z5}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),Kr=function(t){return t[t.UNKNOWN=-1]="UNKNOWN",t[t.BAD_REQUEST=400]="BAD_REQUEST",t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.CONFLICT=409]="CONFLICT",t[t.BAD_GATEWAY=502]="BAD_GATEWAY",t[t.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t}(Kr||{}),St=(()=>{let e=class e{constructor(n,r){this.globalMessageService=n,this.platformId=r}hasMatch(n){return n.status===this.responseStatus}getErrorTranslationKey(n){let r="httpHandlers.badRequest";return n?`${r}.${n.toLowerCase().replace(/ /g,"_")}`:`${r}PleaseLoginAgain`}isSsr(){return this.platformId?!pi(this.platformId):!1}};e.\u0275fac=function(r){return new(r||e)(f(Zo),f(Ye))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),W5=(()=>{let e=class e extends St{constructor(){super(...arguments),this.responseStatus=Kr.BAD_GATEWAY}handleError(){this.globalMessageService.add({key:"httpHandlers.badGateway"},je.MSG_TYPE_ERROR)}getPriority(){return-10}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),q5="/authorizationserver/oauth/token",Y5=(()=>{let e=class e extends St{constructor(){super(...arguments),this.responseStatus=Kr.BAD_REQUEST}handleError(n,r){this.handleBadPassword(n,r),this.handleBadLoginResponse(n,r),this.handleValidationError(n,r),this.handleGuestDuplicateEmail(n,r),this.handleUnknownIdentifierError(n,r)}handleBadPassword(n,r){r.url?.includes(q5)&&r.error?.error==="invalid_grant"&&n.body?.get("grant_type")==="password"&&(this.globalMessageService.add({key:this.getErrorTranslationKey(r.error?.error_description),params:{errorMessage:r.error.error_description||r.message||""}},je.MSG_TYPE_ERROR),this.globalMessageService.remove(je.MSG_TYPE_CONFIRMATION))}handleBadLoginResponse(n,r){this.getErrors(r).filter(s=>s.type==="PasswordMismatchError").forEach(()=>{let o=new URL(n.url).pathname.endsWith("/password")?"httpHandlers.badRequestOldPasswordIncorrect":"httpHandlers.validationErrors.invalid.password";this.globalMessageService.add({key:o},je.MSG_TYPE_ERROR)})}handleValidationError(n,r){this.getErrors(r).filter(s=>s.type==="ValidationError").forEach(s=>{this.globalMessageService.add({key:`httpHandlers.validationErrors.${s.reason}.${s.subject}`},je.MSG_TYPE_ERROR)})}handleGuestDuplicateEmail(n,r){this.getErrors(r).filter(s=>s.type==="DuplicateUidError").forEach(s=>{this.globalMessageService.add({key:"httpHandlers.badRequestGuestDuplicateEmail",params:{errorMessage:s.message||""}},je.MSG_TYPE_ERROR)})}handleUnknownIdentifierError(n,r){this.getErrors(r).filter(s=>s.type==="UnknownIdentifierError").forEach(s=>{this.globalMessageService.add(s.message?s.message:{key:"httpHandlers.unknownIdentifier"},je.MSG_TYPE_ERROR)})}getErrors(n){return(n.error?.errors||[]).filter(r=>r.type!=="JaloObjectNoLongerValidError")}getPriority(){return-10}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),K5=(()=>{let e=class e extends St{constructor(){super(...arguments),this.responseStatus=Kr.CONFLICT}handleError(){this.globalMessageService.add({key:"httpHandlers.conflict"},je.MSG_TYPE_ERROR)}getPriority(){return-10}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Z5=(()=>{let e=class e extends St{handleError(n){n.url.endsWith(this.occEndpoints.buildUrl("user",{urlParam
18s:{userId:"current"}}))&&this.authService.logout(),this.globalMessageService.add({key:"httpHandlers.forbidden"},je.MSG_TYPE_ERROR)}getPriority(){return-10}constructor(n,r,s){super(n),this.globalMessageService=n,this.authService=r,this.occEndpoints=s,this.responseStatus=Kr.FORBIDDEN}};e.\u0275fac=function(r){return new(r||e)(f(Zo),f(Ri),f(tt))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Q5=(()=>{let e=class e extends St{constructor(){super(...arguments),this.responseStatus=Kr.GATEWAY_TIMEOUT}handleError(){this.globalMessageService.add({key:"httpHandlers.gatewayTimeout"},je.MSG_TYPE_ERROR)}getPriority(){return-10}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),J5=(()=>{let e=class e extends St{constructor(){super(...arguments),this.responseStatus=Kr.INTERNAL_SERVER_ERROR}handleError(){this.globalMessageService.add({key:"httpHandlers.internalServerError"},je.MSG_TYPE_ERROR)}getPriority(){return-10}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),X5=(()=>{let e=class e extends St{constructor(){super(...arguments),this.responseStatus=Kr.NOT_FOUND}handleError(){}getPriority(){return-10}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),eY=(()=>{let e=class e extends St{constructor(){super(...arguments),this.responseStatus=Kr.UNKNOWN,this.logger=C(ee)}hasMatch(n){return!0}handleError(n,r){(Ee()||this.isSsr())&&this.logger.warn(`An unknown http error occurred 19`,r.message)}getPriority(){return-50}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function fb(t,e=[],i=[]){let n=(t??[]).filter(s=>!s.hasMatch||s.hasMatch(...e));if(n.length<2)return n[0];let r=-1/0;return n.reduce((s,o)=>{let a=o.getPriority?o.getPriority(...i):0;return r>a?s:(r=a,o)},void 0)}var tY=(()=>{let e=class e{constructor(n){this.unifiedInjector=n,this.handlers$=this.unifiedInjector.getMulti(St).pipe(it(1))}intercept(n,r){return r.handle(n).pipe(j({error:s=>{s instanceof Wt&&this.handleErrorResponse(n,s)}}))}handleErrorResponse(n,r){let s=this.getResponseHandler(r);s&&s.handleError(n,r)}getResponseHandler(n){return fb(jp(this.handlers$)??[],[n])}};e.\u0275fac=function(r){return new(r||e)(f(ou))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),nY=[{provide:St,useExisting:eY,multi:!0},{provide:St,useExisting:W5,multi:!0},{provide:St,useExisting:Y5,multi:!0},{provide:St,useExisting:K5,multi:!0},{provide:St,useExisting:Z5,multi:!0},{provide:St,useExisting:Q5,multi:!0},{provide:St,useExisting:J5,multi:!0},{provide:St,useExisting:X5,multi:!0}],rY=[{provide:Ln,useExisting:tY,multi:!0}],iY={entities:{}};function sY(t=iY,e){switch(e.type){case hh:{let i=e.payload;if(t.entities[i.type]===void 0)return T(v({},t),{entities:T(v({},t.entities),{[i.type]:[i.text]})});{let n=t.entities[i.type];return T(v({},t),{entities:T(v({},t.entities),{[i.type]:[...n,i.text]})})}}case hP:{let i=e.payload.type,n=e.payload.index;if(Object.keys(t.entities).length===0||!t.entities[i])return t;let r=[...t.entities[i]];return r.splice(n,1),T(v({},t),{entities:T(v({},t.entities),{[i]:r})})}case pP:{let i=T(v({},t.entities),{[e.payload]:[]});return T(v({},t),{entities:i})}}return t}function oY(){return sY}var WF=new S("GlobalMessageReducers"),aY={provide:WF,useFactory:oY},cY=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[aY],imports:[Ss,$r.forFeature(gP,WF)]});let t=e;return t})(),Uc=class{static shallowEqualObjects(e,i){if(e===i)return!0;if(!e||!i)return!1;let n=Object.keys(e),r=Object.keys(i),s=n.length,o=r.length;if(s!==o)return!1;for(let a=0;a<s;a++){let c=n[a];if(e[c]!==i[c])return!1}return!0}static deepEqualObjects(e,i){return e===i?!0:!(e instanceof Object)||!(i instanceof Object)||e.constructor!==i.constructor?!1:this.compareObjectProperties(e,i)}static compareObjectProperties(e,i){for(let n in e)if(e.hasOwnProperty(n)){if(!i.hasOwnProperty(n))return!1;if(e[n]!==i[n]&&(typeof e[n]!="object"||!this.deepEqualObjects(e[n],i[n])))return!1}for(let n in i)if(i.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}static countOfDeepEqualObjects(e,i){return i.reduce((n,r)=>(this.deepEqualObjects(e,r)&&n++,n),0)}static indexOfFirstOccurrence(e,i){for(let n=0;n<i.length;n++)if(this.deepEqualObjects(i[n],e))return n}},uY=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=f(qt),s},providedIn:"root"});let t=e;return t})(),lY=(()=>{let e=class e{constructor(n,r,s,o){this.actions$=n,this.store=r,this.config=s,this.platformId=o,this.removeDuplicated$=Z(()=>this.actions$.pipe(G(hh),E(a=>a.payload),M(a=>I(a.text).pipe(en(this.store.pipe(O(vP(a.type)))),N(([c,u])=>Uc.countOfDeepEqualObjects(c,u)>1),E(([c,u])=>{let l=Uc.indexOfFirstOccurrence(c,u);if(l!==void 0)return new Pc({type:a.type,index:l})}),N($n))))),this.hideAfterDelay$=Z(()=>pi(this.platformId)?this.actions$.pipe(G(hh),E(a=>a.payload),rt(a=>{let c=this.config.globalMessages?.[a.type];return this.store.pipe(O(f4(a.type)),le(1),N(u=>(c&&c.timeout!==void 0||a.timeout!==void 0)&&u>0),Tn(a.timeout||c?.timeout),M(()=>I(new Pc({type:a.type,index:0}))))})):()=>ve)}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(De),f(uY),f(Ye))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),dY={globalMessages:{[je.MSG_TYPE_CONFIRMATION]:{timeout:3e3},[je.MSG_TYPE_INFO]:{timeout:3e3},[je.MSG_TYPE_ERROR]:{timeout:7e3},[je.MSG_TYPE_WARNING]:{timeout:7e3},[je.MSG_TYPE_ASSISTIVE]:{timeout:7e3}}},fY=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[...nY,...rY]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}
19),e.\u0275inj=H({providers:[Sr(dY)],imports:[cY,mi.forFeature([lY])]});let t=e;return t})(),hY={backend:{timeout:{server:2e4}}},pY=new Ya(()=>{});var gY=(()=>{let e=class e{constructor(n,r){this.windowRef=n,this.config=r,this.logger=C(ee)}intercept(n,r){let s=this.getTimeoutValue(n);return typeof s>"u"?r.handle(n):r.handle(n).pipe(M(o=>o.type===hr.Sent?vm.pipe(An(o),Fs(s)):I(o)),F(o=>{throw this.convertTimeoutToHttpErrorResponse({error:o,request:n,timeoutValue:s})}))}getTimeoutValue(n){let r=n.context.get(pY),s=this.config?.backend?.timeout,o=r??s??{};return this.windowRef.isBrowser()?o?.browser:o?.server}convertTimeoutToHttpErrorResponse({error:n,request:r,timeoutValue:s}){if(n instanceof Wu){let o=this.buildError(r,s);return new Wt({url:r.url,error:o})}return n}buildError(n,r){let s=`Request to URL '${n.url}' exceeded expected time of ${r}ms and was aborted.`;return this.logger.warn(s),new Error(s)}};e.\u0275fac=function(r){return new(r||e)(f(vs),f(Ir))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),mY=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[{provide:Ln,useExisting:gY,multi:!0},Sr(hY)]});let t=e;return t})(),vY=(()=>{let e=class e{static forRoot(){return{ngModule:e}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[mY]});let t=e;return t})(),yY={i18n:{fallbackLang:void 0,debug:!1}},Jo=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=f(qt),s},providedIn:"root"});let t=e;return t})(),EY=(()=>{let e=class e{constructor(n){this.configInit=n,this.scopes=["i18n.fallbackLang"],this.configFactory=()=>qn(this.resolveConfig())}resolveConfig(){return this.configInit.getStable("context.language").pipe(E(n=>({i18n:{fallbackLang:n?.context?.language?.[0]}})))}};e.\u0275fac=function(r){return new(r||e)(f(Bn))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ole=(()=>{let e=class e extends sM{constructor(n){super(""),this.language=n,this.logger=C(ee)}transform(n,r,s){return super.transform(n,r,s,this.getLang())}getLang(){let n=this.getActiveLang();try{return TE(n),n}catch{return this.reportMissingLocaleData(n),"en"}}getActiveLang(){let n="";return this.language.getActive().subscribe(r=>n=r).unsubscribe(),n}reportMissingLocaleData(n){Ee()&&this.logger.warn(`cxDate pipe: No locale data registered for '${n}' (see https://angular.io/api/common/registerLocaleData).`)}};e.\u0275fac=function(r){return new(r||e)(Q(Ds,16))},e.\u0275pipe=rn({name:"cxDate",type:e,pure:!0});let t=e;return t})(),gI=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),Kg=new S("I18NEXT_INSTANCE",{providedIn:"root",factory:()=>Et.createInstance()}),CY=new S("I18NEXT_HTTP_BACKEND_CLIENT",{providedIn:"root",factory:()=>{let t=C(Le);return(e,i,n,r)=>{t.get(i,{responseType:"text"}).subscribe({next:s=>r(null,{status:200,data:s}),error:s=>r(s,{data:null,status:s.status})})}}}),SY=(()=>{let e=class e{constructor(n,r,s,o){this.i18next=n,this.i18nextHttpClient=r,this.config=s,this.windowRef=o}hasMatch(){return!!this.config.i18n?.backend?.loadPath}initialize(){return this.i18next.use(_N),{backend:this.getBackendConfig()}}getBackendConfig(){if(!this.config.i18n?.backend?.loadPath)throw new Error("Missing config `i18n.backend.loadPath`.");return{loadPath:this.getLoadPath(this.config.i18n.backend.loadPath),request:this.i18nextHttpClient,reloadInterval:!1}}getLoadPath(n){return!this.windowRef.isBrowser()&&!n.match(/^http(s)?:\/\//)?(n.startsWith("/")&&(n=n.slice(1)),n.startsWith("./")&&(n=n.slice(2)),`${this.windowRef.location.origin}/${n}`):n}};e.\u0275fac=function(r){return new(r||e)(f(Kg),f(CY),f(Jo),f(vs))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),IY=(()=>{let e=class e{constructor(n,r){this.config=n,this.i18next=r}hasMatch(){return!!this.config.i18n?.backend?.loader}initialize(){let n=this.config.i18n?.backend?.loader;if(!n)throw new Error("Missing config `i18n.backend.loader`.");return this.i18next.use(qN(n)),{backend:{}}}};e.\u0275fac=function(r){return new(r||e)(f(Jo),f(Kg))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),DY=[{provide:gI,useExisting:SY,multi:!0},{provide:gI,useExisting:IY,multi:!0}],bY=new S("I18NEXT_LOGGER_PLUGIN",{providedIn:"root",factory:()=>{let t=C(ee);return{type:"logger",log:e=>t.log(...e),warn:e=>t.warn(...e),error:e=>t.error(...e)}}}),mI=class{},Po=function(t){return t[t.Parallel=0]="Parallel",t[t.Queue=1]="Queue",t[t.CancelPrevious=2]="CancelPrevious",t[t.ErrorPrevious=3]="ErrorPrevious",t}(Po||{}),wY=(()=>{let e=class e{constructor(){this.subscriptions=new Ce}create(n,r){let s=new oe,o=new oe,a=l=>({next:d=>l.next(d),error:d=>l.error(d),complete:()=>l.complete()}),c;
19switch(r?.strategy){case Po.CancelPrevious:case Po.ErrorPrevious:c=Oi(s,o).pipe(M(([l,d])=>We(()=>n(l)).pipe(j(a(d)),F(()=>ve),wn(()=>{!d.closed&&!d.hasError&&(r.strategy===Po.ErrorPrevious?d.error(new Error("Canceled by next command")):d.complete())}))));break;case Po.Parallel:c=Oi(s,o).pipe(q(([l,d])=>We(()=>n(l)).pipe(j(a(d)),F(()=>ve))));break;case Po.Queue:default:c=Oi(s,o).pipe(rt(([l,d])=>We(()=>n(l)).pipe(j(a(d)),F(()=>ve))));break}return this.subscriptions.add(c.subscribe()),new class extends mI{constructor(){super(...arguments),this.execute=l=>{let d=new Kt;return o.next(d),s.next(l),d}}}}ngOnDestroy(){this.subscriptions.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ple=(()=>{let e=class e{constructor(n){this.eventService=n,this.subscriptions=new Ce}create(n,r){let s={data:void 0,error:!1,loading:!0},o=new Ae(s),a=Ku(()=>o.value.loading,I(void 0),ve),c=this.getTriggersStream([a,...r?.reloadOn??[],...r?.resetOn??[]]),u=this.getTriggersStream(r?.resetOn??[]),l=this.getTriggersStream(r?.reloadOn??[]),d=n().pipe(_i(u)),h=c.pipe(j(()=>{o.value.loading||o.next(T(v({},o.value),{loading:!0}))}),M(()=>d),j(D=>{o.next({loading:!1,error:!1,data:D})}),F((D,w)=>(o.next({loading:!1,error:D,data:void 0}),w)),xs());r?.reloadOn?.length&&this.subscriptions.add(l.subscribe(()=>{o.value.loading||o.next(T(v({},o.value),{loading:!0}))})),r?.resetOn?.length&&this.subscriptions.add(u.subscribe(()=>{(o.value.data!==void 0||o.value.error!==!1||o.value.loading!==!1)&&o.next(s)}));let p=Ms(()=>h.subscribe(),()=>o),y=p.pipe(E(D=>D.data),Xt());return{get:()=>y,getState:()=>p}}getTriggersStream(n){if(!n.length)return ve;let r=n.map(s=>Ps(s)?s:this.eventService.get(s));return gn(...r)}ngOnDestroy(){this.subscriptions.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(f(Is))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Fle(t){return t.details?.[0]?.type==="JaloObjectNoLongerValidError"}var _le=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Lle=/^(?=.*?[A-Z])(?=.*?[0-9])(?=.*?[!@#$%^*()_\-+{};:.,]).{6,}$/;function kle(t){let e=t?.shouldRetry??(()=>!0),i=t?.maxTries??3,n=t?.delay??300;return r=>r.pipe(wm({delay:(s,o)=>{if(o>i||!e(s))throw s;let a=o*o;return Jt(a*n)}}))}function qF(t){return We(()=>{let e=0,i=new U(n=>{let r=()=>{n.next(),n.complete()};e?gm.schedule(r):r(),e++});return Ve(t).pipe(aa(()=>i))})}var vI=function(t){return t.HEAD="head",t.BODY="body",t}(vI||{}),jle=(()=>{let e=class e{constructor(n,r){this.document=n,this.platformId=r}embedScript(n){let{src:r,params:s,attributes:o,callback:a,errorCallback:c,placement:u=vI.HEAD}=n,l=ts(this.platformId);if((a||c)&&l)return;let d=s?r+this.parseParams(s):r;if(!l&&this.hasScript(d))return;let h=this.document.createElement("script");h.src=d,h.async=!0,h.defer=!0,o&&Object.keys(o).forEach(p=>{p.startsWith("data-")?h.setAttribute(p,o[p]):h[p]=o[p]}),a&&h.addEventListener("load",a),c&&h.addEventListener("error",c),u===vI.HEAD?this.document.head.appendChild(h):this.document.body.appendChild(h)}hasScript(n){return!!this.document.querySelector(`script[src="${n}"]`)}parseParams(n){let r="",s=Object.keys(n);return s.length>0&&(r="?"+s.map(o=>encodeURI(o)+"="+encodeURI(n[o])).join("&")),r}};e.\u0275fac=function(r){return new(r||e)(f(Ue),f(Ye))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var dO=class t{static getLocalTimezoneOffset(e){let i=new Date().getTimezoneOffset()*-1,n=Math.abs(Math.floor(i/60)).toString().padStart(2,"0"),r=(i%60).toString().padStart(2,"0");return`${i>=0?e?"-":"+":e?"+":"-"}${n}:${r}`}static convertDateToDatetime(e,i){return`${e}T${i?"23:59:59":"00:00:00"}${t.getLocalTimezoneOffset()}`}static convertDatetimeToDate(e){return new Date(`${e.substring(0,19)}${t.getLocalTimezoneOffset(!0)}`).toISOString().substring(0,10)}},TY=(()=>{let e=class e{constructor(n){this.backendInitializers=n}
19initialize(){return fb(this.backendInitializers??[])?.initialize()??{}}};e.\u0275fac=function(r){return new(r||e)(f(gI,8))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),AY=(()=>{let e=class e{constructor(n,r,s,o){this.i18next=n,this.config=r,this.languageService=s,this.i18nextBackendService=o,this.loggerPlugin=C(bY)}initialize(){let n=this.getI18nextConfig();return this.i18next.use(this.loggerPlugin).init(n,()=>{this.addTranslationResources(),this.synchronizeLanguage()})}getI18nextConfig(){let n={ns:[],fallbackLng:this.config.i18n?.fallbackLang,debug:this.config.i18n?.debug,interpolation:{escapeValue:!1,skipOnVariables:!1}};return this.config.i18n?.backend&&(n=v(v({},n),this.i18nextBackendService.initialize())),n}addTranslationResources(){let n=this.config.i18n?.resources??{};Object.keys(n).forEach(r=>{Object.keys(n[r]).forEach(s=>{this.i18next.addResourceBundle(r,s,n[r][s],!0,!0)})})}synchronizeLanguage(){this.subscription=this.subscription??this.languageService.getActive().subscribe(n=>this.i18next.changeLanguage(n))}ngOnDestroy(){this.subscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(f(Kg),f(Jo),f(Ds),f(TY))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),RY=[{provide:xt,useFactory:()=>{let t=C(Bn),e=C(AY);return()=>qn(t.getStable("i18n")).then(()=>e.initialize())},multi:!0},...DY],MY=(()=>{let e=class e{constructor(n){this.config=n,this.duplicates={},this.chunks={},this.logger=C(ee),this.KEY_SEPARATOR=".";let r=n.i18n&&n.i18n.chunks||{};Object.keys(r).forEach(s=>{r[s].forEach(o=>{this.chunks.hasOwnProperty(o)?(this.duplicates[o]||(this.duplicates[o]=[this.chunks[o]]),this.duplicates[o].push(s)):this.chunks[o]=s})}),Object.keys(this.duplicates).length>0&&Ee()&&this.warnDuplicates(this.duplicates)}getChunkNameForKey(n){let r=(n||"").split(this.KEY_SEPARATOR)[0],s=this.chunks&&this.chunks[r];return s||r}warnDuplicates(n){let r=[];Object.keys(n).forEach(s=>{r.push(`* '${s}' found in chunks: ${n[s].join(", ")}. Used '${this.chunks[s]}.${s}'.`)}),this.logger.warn(`Duplicated keys has been found in the config of i18n chunks: 20${r.join(` 21`)}`)}};e.\u0275fac=function(r){return new(r||e)(f(Jo))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xY=(()=>{let e=class e{constructor(n,r,s){this.config=n,this.translationChunk=r,this.i18next=s,this.NON_BREAKING_SPACE="\xA0",this.NAMESPACE_SEPARATOR=":",this.logger=C(ee)}translate(n,r={},s=!1){let o=this.translationChunk.getChunkNameForKey(n),a=this.getNamespacedKey(n,o);return new U(c=>{let u=()=>{this.i18next.isInitialized&&(this.i18next.exists(a,r)?c.next(this.i18next.t(a,r)):(s&&c.next(this.NON_BREAKING_SPACE),this.i18next.loadNamespaces(o,()=>{this.i18next.exists(a,r)?c.next(this.i18next.t(a,r)):(this.reportMissingKey(n,o),c.next(this.getFallbackValue(a)))})))};return u(),this.i18next.on("languageChanged",u),()=>this.i18next.off("languageChanged",u)})}loadChunks(n){return this.i18next.loadNamespaces(n)}getFallbackValue(n){return Ee()?`[${n}]`:this.NON_BREAKING_SPACE}reportMissingKey(n,r){Ee()&&this.logger.warn(`Translation key missing '${n}' in the chunk '${r}'`)}getNamespacedKey(n,r){return r+this.NAMESPACE_SEPARATOR+n}};e.\u0275fac=function(r){return new(r||e)(f(Jo),f(MY),f(Kg))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ule=(()=>{let e=class e{constructor(n,r){this.service=n,this.cd=r,this.logger=C(ee)}transform(n,r={}){if(!n)return Ee()&&this.logger.error(`The given input for the cxTranslate pipe (${n}) is invalid and cannot be translated`),"";if(n.raw)return n.raw??"";let s=typeof n=="string"?n:n.key;return typeof n!="string"&&(r=v(v({},r),n.params)),this.translate(s,r),this.translatedValue}translate(n,r){(n!==this.lastKey||!Uc.shallowEqualObjects(r,this.lastOptions))&&(this.lastKey=n,this.lastOptions=r,this.sub&&this.sub.unsubscribe(),this.sub=this.service.translate(n,r,!0).subscribe(s=>this.markForCheck(s)))}markForCheck(n){this.translatedValue=n,this.cd.markForCheck()}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(Q(Cr,16),Q(lr,16))},e.\u0275pipe=rn({name:"cxTranslate",type:e,pure:!1});let t=e;return t})();function NY(t,e){return e?.i18n?.fallbackLang!==void 0?null:t}var OY=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[Sr(yY),{provide:Cr,useExisting:xY},...RY,{provide:Mg,useFactory:NY,deps:[EY,Jo],multi:!0}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function PY(t,e){let i=C(ee);return()=>Promise.all(t.runModuleInitializerFunctions(e)).catch(n=>{throw i.error("MODULE_INITIALIZER promise was rejected during app initialization.",n),n})}var FY=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[{provide:xt,useFactory:PY,deps:[qD,[new nn,aF]],multi:!0}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function _Y(){return ds(ae)}var YF=new S("ProcessReducers"),LY={provide:YF,useFactory:_Y},kY=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}
21),e.\u0275inj=H({providers:[LY],imports:[Ss,$r.forFeature(ae,YF)]});let t=e;return t})(),jY=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[kY]});let t=e;return t})(),$le=(()=>{let e=class e{static forRoot(){return{ngModule:e}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[Ss.forRoot(),F4.forRoot(),g6.forRoot(),v6.forRoot(),OY.forRoot(),H5.forRoot(),fY.forRoot(),jY.forRoot(),R4.forRoot(),W6.forRoot(),Lq.forRoot(),Rq.forRoot(),FY.forRoot(),vY.forRoot(),G5.forRoot()]});let t=e;return t})(),Ble=new S("PointOfServiceNormalizer"),UY=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),$Y=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),Vle=(()=>{let e=class e{constructor(n,r,s,o){this.cms=n,this.unifiedInjector=r,this.pageMetaConfig=s,this.platformId=o,this.resolvers$=this.unifiedInjector.getMulti(ln).pipe(it({bufferSize:1,refCount:!0})),this.meta$=We(()=>this.cms.getCurrentPage()).pipe(N(a=>!!a),M(a=>this.getMetaResolver(a)),M(a=>a?this.resolve(a):I(null)),it({bufferSize:1,refCount:!0}))}getMeta(){return this.meta$}resolve(n){let r=this.getResolverMethods(),s=Object.keys(r).filter(o=>n[r[o]]).map(o=>n[r[o]]().pipe(E(a=>({[o]:a}))));return s.length===0?I({}):qF(s).pipe(E(o=>Object.assign({},...o)))}getResolverMethods(){let n={};return this.pageMetaConfig?.pageMeta?.resolvers?.filter(r=>!pi(this.platformId??"")||!r.disabledInCsr||Ee()&&this.pageMetaConfig?.pageMeta?.enableInDevMode).forEach(r=>n[r.property]=r.method),n}getMetaResolver(n){return this.resolvers$.pipe(E(r=>fb(r,[n],[n])))}};e.\u0275fac=function(r){return new(r||e)(f(qg),f(ou),f(kF),f(Ye))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Hle=(()=>{let e=class e{constructor(n){this.unifiedInjector=n,this.componentDecorators$=this.unifiedInjector.getMulti(UY).pipe(it(1)),this.slotDecorators$=this.unifiedInjector.getMulti($Y).pipe(it(1))}addAttributesToComponent(n,r,s){(jp(this.componentDecorators$)||[]).forEach(o=>o.decorate(n,r,s))}addAttributesToSlot(n,r,s){(jp(this.slotDecorators$)||[]).forEach(o=>o.decorate(n,r,s))}};e.\u0275fac=function(r){return new(r||e)(f(ou))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var BY=(()=>{let e=class e{constructor(n,r){this.cmsConfig=n,this.lazyModules=r,this.features=new Map}isConfigured(n){return!!this.getFeatureConfig(n)?.module}resolveFeature(n){return n=this.resolveFeatureAlias(n),We(()=>{if(!this.features.has(n)){if(!this.isConfigured(n))return Pt(()=>new Error("No module defined for Feature Module "+n));let r=this.getFeatureConfig(n);this.features.set(n,this.resolveDependencies(r?.dependencies).pipe(M(s=>this.lazyModules.resolveModuleInstance(r?.module,n,s)),it()))}return this.features.get(n)??ve})}getFeatureConfig(n){return this.cmsConfig.featureModules?.[this.resolveFeatureAlias(n)]}resolveFeatureAlias(n){for(;typeof this.cmsConfig.featureModules?.[n]=="string";)n=this.cmsConfig.featureModules?.[n];return n}resolveDependencies(n=[]){return n?.length?Yu(n.map(r=>typeof r=="string"?this.resolveFeature(r):this.lazyModules.resolveDependencyModuleInstance(r))):I(void 0)}};e.\u0275fac=function(r){return new(r||e)(f(GD),f(qD))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),fO="proxyFacadeInstance",VY=(()=>{let e=class e{constructor(n,r){this.featureModules=n,this.injector=r}getResolver(n,r,s=!1){if(!this.featureModules.isConfigured(n))return Pt(()=>new Error(`Feature ${n} is not configured properly`));let o=this.featureModules.resolveFeature(n).pipe(E(a=>a.injector),E(a=>a.get(r)));return s&&(o=o.pipe(Tn(0))),o.pipe(it())}call(n,r,s){let o=qu(n.pipe(E(a=>a[r](...s))),{connector:()=>new Kt,resetOnDisconnect:!1});return o.connect(),o.pipe(M(a=>Ps(a)?a:ve))}get(n,r){return n.pipe(M(s=>s[r]))}create({facade:n,feature:r,methods:s,properties:o,async:a}){let c=this.getResolver(r,n,a),u=new class extends n{};
21return(s??[]).forEach(l=>{u[l]=(...d)=>this.call(c,l,d)}),(o??[]).forEach(l=>{u[l]=this.get(c,l)}),u[fO]=!0,u}isProxyFacadeInstance(n){return!!n?.[fO]}};e.\u0275fac=function(r){return new(r||e)(f(BY),f(qe))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function zle(t){return C(VY).create(t)}var HY=(()=>{let e=class e{constructor(n){this.adapter=n}get(n,r=""){return this.adapter.load(n,r)}getMany(n){return this.adapter.loadMany?this.adapter.loadMany(n):n.map(r=>T(v({},r),{data$:this.adapter.load(r.code,r.scope)}))}};e.\u0275fac=function(r){return new(r||e)(f(Up))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),zY=(()=>{let e=class e{constructor(n){this.adapter=n}get(n,r,s){return this.adapter.load(n,r,s)}};e.\u0275fac=function(r){return new(r||e)(f($p))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),GY=(()=>{let e=class e{constructor(n){this.adapter=n}get(n,r){return this.adapter.load(n,r)}add(n,r){return this.adapter.post(n,r)}};e.\u0275fac=function(r){return new(r||e)(f(Bp))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),WY=(()=>{let e=class e{constructor(n){this.adapter=n}search(n,r){return this.adapter.search(n,r)}getSuggestions(n,r){return this.adapter.loadSuggestions(n,r)}};e.\u0275fac=function(r){return new(r||e)(f(Vp))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),hO=(()=>{let e=class e extends Wr{};e.type="FacetChangedEvent";let t=e;return t})(),hb="[Product] Load Product References Data",KF="[Product] Load Product References Data Fail",pb="[Product] Load Product References Data Success",gb="[Product] Clean Product References",yI=class{constructor(e){this.payload=e,this.type=hb}},og=class{constructor(e){this.payload=e,this.type=KF}},ag=class{constructor(e){this.payload=e,this.type=pb}},EI=class{constructor(){this.type=gb}},mb="[Product] Load Product Reviews Data",ZF="[Product] Load Product Reviews Data Fail",vb="[Product] Load Product Reviews Data Success",yb="[Product] Post Product Review",Eb="[Product] Post Product Review Fail",Cb="[Product] Post Product Review Success",CI=class{constructor(e){this.payload=e,this.type=mb}},cg=class{constructor(e){this.payload=e,this.type=ZF}},ug=class{constructor(e){this.payload=e,this.type=vb}},SI=class{constructor(e){this.payload=e,this.type=yb}},lg=class{constructor(e){this.payload=e,this.type=Eb}},dg=class{constructor(e){this.payload=e,this.type=Cb}},Sb="[Product] Search Products",QF="[Product] Search Products Fail",Ib="[Product] Search Products Success",Db="[Product] Get Product Suggestions",bb="[Product] Get Product Suggestions Success",JF="[Product] Get Product Suggestions Fail",wb="[Product] Clear Product Search Result",$c=class{constructor(e,i){this.payload=e,this.auxiliary=i,this.type=Sb}},fg=class{constructor(e,i){this.payload=e,this.auxiliary=i,this.type=QF}},hg=class{constructor(e,i){this.payload=e,this.auxiliary=i,this.type=Ib}},pg=class{constructor(e){this.payload=e,this.type=Db}},Bc=class{constructor(e){this.payload=e,this.type=bb}},gg=class{constructor(e){this.payload=e,this.type=JF}},Vc=class{constructor(e={clearPageResults:!1,clearSearchboxResults:!1}){this.payload=e,this.type=wb}},Wo;(function(t){function e(u,l,d){return T(v({},NI(u,l)),{scope:d})}t.entityScopedLoadMeta=e;function i(u,l,d,h){return T(v({},OI(u,l,h)),{scope:d})}t.entityScopedFailMeta=i;function n(u,l,d){return T(v({},PI(u,l)),{scope:d})}t.entityScopedSuccessMeta=n;function r(u,l,d){return T(v({},FI(u,l)),{scope:d})}t.entityScopedResetMeta=r;class s{constructor(l,d,h){this.type=AI,this.meta=e(l,d,h)}}t.EntityScopedLoadAction=s;class o{constructor(l,d,h,p){this.type=RI,this.meta=i(l,d,h,p)}}t.EntityScopedFailAction=o;class a{constructor(l,d,h,p){this.payload=p,this.type=MI,this.meta=n(l,d,h)}}t.EntityScopedSuccessAction=a;class c{constructor(l,d,h){this.type=xI,this.meta=r(l,d,h)}}t.EntityScopedResetAction=c})(Wo||(Wo={}));var Tb="product",lu="[Product] Detail Entity",Zg="[Product] Load Product Data",Ab="[Product] Load Product Data Fail",Rb="[Product] Load Product Data Success",XF="[Product] Clear Product PRICE",mg=class extends Wo.EntityScopedLoadAction{constructor(e,i=""){super(lu,e,i),this.payload=e,this.type=Zg}},Hc=class extends Wo.EntityScopedFailAction{constructor(e,i,n=""){super(lu,e,n,i),this.payload=i,this.type=Ab}},vg=class extends Wo.EntityScopedSuccessAction{constructor(e,i=""){super(lu,e.code??"",i),this.payload=e,this.type=Rb}},yg=class extends Wo.EntityScopedResetAction{constructor(){super(lu,void 0,"price"),this.type=XF}},Gle=Object.freeze({__proto__:null,CLEAN_PRODUCT_REFERENCES:gb,CLEAR_PRODUCT_PRICE:XF,CLEAR_PRODUCT_SEARCH_RESULT:wb,CleanProductReferences:EI,ClearProductPrice:yg,ClearProductSearchResult:Vc,GET_PRODUCT_SUGGESTIONS:Db,GET_PRODUCT_SUGGESTIONS_FAIL:JF,GET_PRODUCT_SUGGESTIONS_SUCCESS:bb,GetProductSuggestions:pg,GetProductSuggestionsFail:gg,GetProductSuggestionsSuccess:Bc,LOAD_PRODUCT:Zg,LOAD_PRODUCT_FAIL:Ab,LOAD_PRODUCT_REFERENCES:hb,LOAD_PRODUCT_REFERENCES_FAIL:KF,LOAD_PRODUCT_REFERENCES_SUCCESS:pb,LOAD_PRODUCT_REVIEWS:mb,LOAD_PRODUCT_REVIEWS_FAIL:ZF,LOAD_PRODUCT_REVIEWS_SUCCESS:vb,LOAD_PRODUCT_SUCCESS:Rb,LoadProduct:mg,LoadProductFail:Hc,LoadProductReferences:yI,LoadProductReferencesFail:og,LoadProductReferencesSuccess:ag,LoadProductReviews:CI,LoadProductReviewsFail:cg,LoadProductReviewsSuccess:ug,LoadProductSuccess:vg,POST_PRODUCT_REVIEW:yb,POST_PRODUCT_REVIEW_FAIL:Eb,POST_PRODUCT_REVIEW_SUCCESS:Cb,PostProductReview:SI,PostProductReviewFail:lg,PostProductReviewSuccess:dg,SEARCH_PRODUCTS:Sb,SEARCH_PRODUCTS_FAIL:QF,SEARCH_PRODUCTS_SUCCESS:Ib,SearchProducts:$c,SearchProductsFail:fg,SearchProductsSuccess:hg}),du=kn(Tb),e_=A(du,t=>t.references),qY=(t,e)=>A(e_,i=>
21i.productCode===t&&i.list?e?i.list.filter(n=>n.referenceType===e):i.list:[]),t_=A(du,t=>t.reviews),YY=t=>A(t_,e=>{if(e.productCode===t)return e.list}),KY={results:{},suggestions:[],auxResults:{}};function ZY(t=KY,e){switch(e.type){case Ib:{let i=e.payload,n=e.auxiliary?{auxResults:i}:{results:i};return v(v({},t),n)}case bb:{let i=e.payload;return T(v({},t),{suggestions:i})}case wb:return T(v({},t),{results:e.payload.clearPageResults?{}:t.results,suggestions:e.payload.clearSearchboxResults?[]:t.suggestions,auxResults:e.payload.clearSearchboxResults?{}:t.auxResults})}return t}var QY=t=>t.results,JY=t=>t.auxResults,XY=t=>t.suggestions,Qg=A(du,t=>t.search),n_=A(Qg,QY),r_=A(Qg,JY),i_=A(Qg,XY),Mb=A(du,t=>t.details),Xo=(t,e="")=>A(Mb,i=>dn(i,t)[e]||Er),s_=(t,e="")=>A(Xo(t,e),i=>et(i)),xb=(t,e="")=>A(Xo(t,e),i=>$t(i)),o_=(t,e="")=>A(Xo(t,e),i=>Vn(i)),a_=(t,e="")=>A(Xo(t,e),i=>Yo(i)),e9=A(Mb,t=>Object.keys(t.entities)),Wle=Object.freeze({__proto__:null,getAllProductCodes:e9,getAuxSearchResults:r_,getProductReferencesState:e_,getProductReviewsState:t_,getProductState:Mb,getProductSuggestions:i_,getProductsSearchState:Qg,getProductsState:du,getSearchResults:n_,getSelectedProductErrorFactory:a_,getSelectedProductFactory:s_,getSelectedProductLoadingFactory:xb,getSelectedProductReferencesFactory:qY,getSelectedProductReviewsFactory:YY,getSelectedProductStateFactory:Xo,getSelectedProductSuccessFactory:o_}),fu=(()=>{let e=class e{constructor(n){this.store=n}search(n,r){n&&this.store.dispatch(new $c({queryText:n,searchConfig:r}))}getResults(){return this.store.pipe(O(n_))}clearResults(){this.store.dispatch(new Vc({clearPageResults:!0}))}};e.\u0275fac=function(r){return new(r||e)(f(De))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),t9=(()=>{let e=class e{constructor(n,r){this.eventService=n,this.productSearchService=r,this.register()}register(){this.eventService.register(hO,this.buildFacetChangedEvent())}buildFacetChangedEvent(){return this.productSearchService.getResults().pipe(ia(),N(([n,r])=>this.compareSearchResults(n,r)),E(([n,r])=>{let s=this.getToggledBreadcrumb(r.breadcrumbs,n.breadcrumbs)||this.getToggledBreadcrumb(n.breadcrumbs,r.breadcrumbs);if(s)return Di(hO,{code:s.facetCode,name:s.facetName,valueCode:s.facetValueCode,valueName:s.facetValueName,selected:r.breadcrumbs&&n.breadcrumbs&&r.breadcrumbs.length>n.breadcrumbs.length})}))}compareSearchResults(n,r){if(n&&Object.keys(n).length!==0){let s=n.freeTextSearch!==""&&n.freeTextSearch===r.freeTextSearch,o=r.breadcrumbs?.[0]?.facetCode==="allCategories"&&n.breadcrumbs?.[0]?.facetCode===r.breadcrumbs[0]?.facetCode&&n.breadcrumbs[0].facetValueCode===r.breadcrumbs[0].facetValueCode;return s||o}return!1}getToggledBreadcrumb(n,r){if(n&&r&&n.length-r.length===1)return n.find(s=>!r.find(o=>o.facetCode===s.facetCode&&o.facetValueCode===s.facetValueCode))}};e.\u0275fac=function(r){return new(r||e)(f(Is),f(fu))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),n9=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(r){return new(r||e)(f(t9))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),r9=(()=>{let e=class e{constructor(n,r){this.actions$=n,this.productReferencesConnector=r,this.logger=C(ee),this.loadProductReferences$=Z(()=>this.actions$.pipe(G(hb),E(s=>s.payload),q(s=>this.productReferencesConnector.get(s.productCode,s.referenceType,s.pageSize).pipe(E(o=>new ag({productCode:s.productCode,list:o})),F(o=>I(new og(K(o,this.logger))))))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(zY))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),i9=(()=>{let e=class e{constructor(n,r,s){this.actions$=n,this.productReviewsConnector=r,this.globalMessageService=s,this.logger=C(ee),this.loadProductReviews$=Z(()=>this.actions$.pipe(G(mb),E(o=>o.payload),q(o=>this.productReviewsConnector.get(o).pipe(E(a=>new ug({productCode:o,list:a})),F(a=>I(new cg(K(a,this.logger)))))))),this.postProductReview=Z(()=>this.actions$.pipe(G(yb),E(o=>o.payload),q(o=>
21this.productReviewsConnector.add(o.productCode,o.review).pipe(E(a=>new dg(a)),F(a=>I(new lg(K(a,this.logger)))))))),this.showGlobalMessageOnPostProductReviewSuccess$=Z(()=>this.actions$.pipe(G(Cb),j(()=>{this.globalMessageService.add({key:"productReview.thankYouForReview"},je.MSG_TYPE_CONFIRMATION)})),{dispatch:!1}),this.showGlobalMessageOnPostProductReviewFail$=Z(()=>this.actions$.pipe(G(Eb),j(()=>{this.globalMessageService.add({key:"productReview.postReviewFail"},je.MSG_TYPE_ERROR)})),{dispatch:!1})}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(GY),f(Zo))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),s9=(()=>{let e=class e{constructor(n,r){this.actions$=n,this.productSearchConnector=r,this.logger=C(ee),this.searchProducts$=Z(()=>this.actions$.pipe(G(Sb),Jr(s=>s.auxiliary),q(s=>s.pipe(M(o=>this.productSearchConnector.search(o.payload.queryText,o.payload.searchConfig).pipe(E(a=>new hg(a,o.auxiliary)),F(a=>I(new fg(K(a,this.logger),o.auxiliary))))))))),this.getProductSuggestions$=Z(()=>this.actions$.pipe(G(Db),E(s=>s.payload),M(s=>this.productSearchConnector.getSuggestions(s.term,s.searchConfig?.pageSize).pipe(E(o=>o===void 0?new Bc([]):new Bc(o)),F(o=>I(new gg(K(o,this.logger))))))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(WY))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),o9=(()=>{let e=class e{productLoadEffect(n){return n.data$?.pipe(E(r=>new vg(v({code:n.code},r),n.scope)),F(r=>I(new Hc(n.code,K(r,this.logger),n.scope))))??I(new Hc(n.code,"Scoped product data does not exist",n.scope))}constructor(n,r){this.actions$=n,this.productConnector=r,this.logger=C(ee),this.contextChange$=this.actions$.pipe(G(Qc,Dr)),this.loadProduct$=Z(()=>({scheduler:s,debounce:o=0}={})=>this.actions$.pipe(G(Zg),E(a=>({code:a.payload,scope:a.meta.scope})),UF(o,s),q(a=>gn(...this.productConnector.getMany(a).map(c=>this.productLoadEffect(c)))),db(this.contextChange$))),this.clearProductPrice$=Z(()=>this.actions$.pipe(G(Ti,wi),E(()=>new yg)))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(HY))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),a9=[s9,o9,i9,r9],c9={};function u9(t,e){let i=Ct(t,e);return(n=c9,r)=>r&&r.meta&&r.meta.entityType===t?T(v({},n),{[r.meta.scope??""]:i(n[r.meta.scope??""],r)}):n}function l9(t,e){return qc(t,u9(t,e))}var pO={productCode:"",list:[]};function d9(t=pO,e){switch(e.type){case pb:{let i=e.payload.productCode,n=e.payload.list;return T(v({},t),{list:[...t.list,...n||[]].reduce((r,s)=>(r.some(o=>o.referenceType===s.referenceType&&o.target?.code===s.target?.code)||r.push(s),r),[]),productCode:i})}case gb:return pO}return t}var f9={productCode:"",list:[]};function h9(t=f9,e){switch(e.type){case vb:{let i=e.payload.productCode,n=e.payload.list;return T(v({},t),{productCode:i,list:n})}}return t}function p9(){return{search:ZY,details:l9(lu),reviews:h9,references:d9}}var c_=new S("ProductReducers"),g9={provide:c_,useFactory:p9};function m9(t){return function(e,i){return(i.type===Qc||i.type===Dr)&&(e=void 0),t(e,i)}}var v9=[m9];var y9=(()=>{let e=class e{constructor(n,r,s,o,a){this.store=n,this.loadingScopes=r,this.actions$=s,this.platformId=o,this.eventService=a,this.products={}}get(n,r){return r=this.loadingScopes.expand("product",r),this.initProductScopes(n,r),this.products[n][this.getScopesIndex(r)]}initProductScopes(n,r){this.products[n]||(this.products[n]={});for(let s of r)this.products[n][s]||(this.products[n][s]=this.getProductForScope(n,s));r.length>1&&(this.products[n][this.getScopesIndex(r)]=qF(r.map(s=>this.products[n][s])).pipe(E(s=>s.every(Boolean)?It({},...s):void 0),Xt()))}getScopesIndex(n){return n.join("\u0275")}getProductForScope(n,r){let s=this.store.pipe(O(Xo(n,r)),E(u=>!u.loading&&!u.success&&!u.error),Xt(),N(u=>u)),o=this.store.pipe(O(xb(n,r))),a=gn(s,...this.getProductReloadTriggers(n,r)).pipe(Pi(0),en(o),j(([,u])=>{u||this.store.dispatch(new mg(n,r))})),c=this.store.pipe(O(s_(n,r)));return Ms(()=>a.subscribe(),()=>c).pipe(it({bufferSize:1,refCount:!0}))}getProductReloadTriggers(n,r){let s=[],o=this.loadingScopes.getMaxAge("product",r);if(o&&pi(this.platformId)){let c=this.actions$.pipe(G(Rb,Ab),N(l=>
21l.meta.entityId===n&&l.meta.scope===r)),u=this.actions$.pipe(G(Zg),N(l=>l.payload===n&&l.meta.scope===r));s.push(this.getMaxAgeTrigger(u,c,o))}let a=this.loadingScopes.getReloadTriggers("product",r).map(c=>this.eventService.get(c));return s.concat(a)}getMaxAgeTrigger(n,r,s,o){let a=0,c=()=>o?o.now():Date.now(),u=r.pipe(j(()=>a=c()));return We(()=>{let d=c()-a,h=u.pipe(Tn(s,o),E(()=>!0),db(n));return d>s?gn(I(!0),h):d===0?h:gn(I(!0).pipe(Tn(s-d,o)),h)})}};e.\u0275fac=function(r){return new(r||e)(f(De),f(kq),f(Pe),f(Ye),f(Is))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),E9=(()=>{let e=class e{constructor(n,r){this.store=n,this.productLoading=r}get(n,r=Mc){return n?this.productLoading.get(n,[].concat(r)):I(void 0)}isLoading(n,r=""){return this.store.pipe(O(xb(n,r)))}isSuccess(n,r=""){return this.store.pipe(O(o_(n,r)))}hasError(n,r=""){return this.store.pipe(O(a_(n,r)))}};e.\u0275fac=function(r){return new(r||e)(f(De),f(y9))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qle=(()=>{let e=class e extends fu{search(n,r){this.store.dispatch(new $c({queryText:n,searchConfig:r},!0))}getResults(){return this.store.pipe(O(r_))}clearResults(){this.store.dispatch(new Vc({clearSearchboxResults:!0}))}getSuggestionResults(){return this.store.pipe(O(i_))}searchSuggestions(n,r){this.store.dispatch(new pg({term:n,searchConfig:r}))}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Ge(e)))(s||e)}})(),e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),C9=(()=>{let e=class e extends ln{constructor(n,r,s,o){super(),this.productSearchService=n,this.cms=r,this.translation=s,this.basePageMetaResolver=o,this.searchPage$=this.cms.getCurrentPage().pipe(N(a=>!!a),M(a=>this.hasProductListComponent(a)?this.productSearchService.getResults().pipe(N(c=>!!c)):I(a))),this.pageType=we.CATEGORY_PAGE}resolveTitle(){return this.searchPage$.pipe(N(n=>!!n.pagination),M(n=>this.translation.translate("pageMetaResolver.category.title",{count:n.pagination?.totalResults,query:n.breadcrumbs?.length?n.breadcrumbs[0].facetValueName:void 0})))}resolveBreadcrumbs(){return Ve([this.searchPage$.pipe(),this.translation.translate("common.home")]).pipe(E(([n,r])=>n.breadcrumbs?this.resolveBreadcrumbData(n,r):[]))}resolveBreadcrumbData(n,r){let s=[];s.push({label:r,link:"/"});for(let o of n.breadcrumbs??[])o.facetValueName&&((o.facetCode==="category"||o.facetCode==="allCategories")&&s.push({label:o.facetValueName,link:`/c/${o.facetValueCode}`}),o.facetCode==="brand"&&s.push({label:o.facetValueName,link:`/Brands/${o.facetValueName}/c/${o.facetValueCode}`}));return s}hasProductListComponent(n){return!!Object.keys(n.slots||{}).find(r=>!!n.slots?.[r].components?.find(s=>s.typeCode==="CMSProductListComponent"||s.typeCode==="ProductGridComponent"))}resolveRobots(){return this.basePageMetaResolver.resolveRobots()}resolveCanonicalUrl(){return this.basePageMetaResolver.resolveCanonicalUrl()}};e.\u0275fac=function(r){return new(r||e)(f(fu),f(qg),f(Cr),f(Yg))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),S9=(()=>{let e=class e extends ln{constructor(n,r,s,o,a){super(),this.productSearchService=n,this.translation=r,this.authService=s,this.route=o,this.semanticPathService=a,this.total$=this.productSearchService.getResults().pipe(N(c=>!!c?.pagination),E(c=>c.pagination?.totalResults??0)),this.pageType=we.CONTENT_PAGE,this.pageTemplate="SearchResultsListPageTemplate"}resolveBreadcrumbs(){return Ve([this.translation.translate("common.home"),this.translation.translate("myCoupons.myCoupons"),this.authService.isUserLoggedIn()]).pipe(E(([n,r,s])=>{let o=[];return o.push({label:n,link:"/"}),s&&o.push({label:r,link:this.semanticPathService.transform({cxRoute:"coupons"})}),o}))}resolveTitle(){return this.total$.pipe(M(n=>this.translation.translate("pageMetaResolver.search.findProductTitle",{count:n,coupon:this.couponCode})))}getScore(n){return super.getScore(n)+(this.couponCode?1:-1)}get couponCode(){return this.route.snapshot?.queryParams?.couponcode}};e.\u0275fac=function(r){return new(r||e)(f(fu),f(Cr),f(Ri),f(Br),f(Kc))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),I9=(()=>{let e=class e extends ln{constructor(n,r,s,o,a){super(),this.routingService=n,this.productService=r,this.translation=s,this.basePageMetaResolver=o,this.pageLinkService=a,this.product$=this.routingService.getRouterState().pipe(E(c=>
21c.state.params.productCode),N(c=>!!c),M(c=>this.productService.get(c,"details")),N($n)),this.pageType=we.PRODUCT_PAGE}resolveHeading(){return this.product$.pipe(M(n=>this.translation.translate("pageMetaResolver.product.heading",{heading:n.name})))}resolveTitle(){return this.product$.pipe(M(n=>{let r=n.name;return r+=this.resolveFirstCategory(n),r+=this.resolveManufacturer(n),this.translation.translate("pageMetaResolver.product.title",{title:r})}))}resolveDescription(){return this.product$.pipe(M(n=>this.translation.translate("pageMetaResolver.product.description",{description:n.summary})))}resolveBreadcrumbs(){return Ve([this.product$.pipe(),this.translation.translate("common.home")]).pipe(E(([n,r])=>{let s=[];s.push({label:r,link:"/"});for(let{name:o,code:a,url:c}of n.categories||[])s.push({label:o||a,link:c});return s}))}resolveImage(){return this.product$.pipe(E(n=>n.images?.PRIMARY?.zoom?.url??null))}resolveFirstCategory(n){let r=n?.categories?.[0];return r?` | ${r.name||r.code}`:""}resolveManufacturer(n){return n.manufacturer?` | ${n.manufacturer}`:""}resolveRobots(){return this.basePageMetaResolver.resolveRobots()}resolveCanonicalUrl(){return this.product$.pipe(M(n=>this.findBaseProduct(n)),E(n=>{let r=this.routingService.getFullUrl({cxRoute:"product",params:n});return this.pageLinkService.getCanonicalUrl({},r)}))}findBaseProduct(n){return n?.baseProduct?this.productService.get(n.baseProduct,"list").pipe(N($n),M(r=>this.findBaseProduct(r))):I(n)}};e.\u0275fac=function(r){return new(r||e)(f(Ai),f(E9),f(Cr),f(Yg),f(jF))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),D9=(()=>{let e=class e extends ln{constructor(n,r,s,o){super(),this.routingService=n,this.productSearchService=r,this.translation=s,this.basePageMetaResolver=o,this.total$=this.productSearchService.getResults().pipe(N(a=>!!a?.pagination),E(a=>a.pagination?.totalResults)),this.query$=this.routingService.getRouterState().pipe(E(a=>a.state.params.query)),this.pageType=we.CONTENT_PAGE,this.pageTemplate="SearchResultsListPageTemplate"}resolveTitle(){let n=[this.total$,this.query$];return Ve(n).pipe(M(([r,s])=>this.translation.translate("pageMetaResolver.search.default_title").pipe(q(o=>this.translation.translate("pageMetaResolver.search.title",{count:r,query:s||o})))))}resolveRobots(){return this.basePageMetaResolver.resolveRobots()}resolveCanonicalUrl(){return this.basePageMetaResolver.resolveCanonicalUrl()}};e.\u0275fac=function(r){return new(r||e)(f(Ai),f(fu),f(Cr),f(Yg))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function b9(){return{state:{ssrTransfer:{keys:{[Tb]:Ko.TRANSFER_STATE}}}}}var w9=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[Wc(b9),g9],imports:[ot,$r.forFeature(Tb,c_,{metaReducers:v9}),mi.forFeature(a9)]});let t=e;return t})(),T9=[{provide:ln,useExisting:I9,multi:!0},{provide:ln,useExisting:C9,multi:!0},{provide:ln,useExisting:D9,multi:!0},{provide:ln,useExisting:S9,multi:!0}],Yle=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[...T9]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[w9,n9]});let t=e;return t})(),u_=(()=>{let e=class e{constructor(n){this.adapter=n}getAll(n){return this.adapter.loadAll(n)}add(n,r){return this.adapter.add(n,r)}update(n,r,s){return this.adapter.update(n,r,s)}verify(n,r){return this.adapter.verify(n,r)}delete(n,r){return this.adapter.delete(n,r)}};e.\u0275fac=function(r){return new(r||e)(f(Gp))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),A9=(()=>{let e=class e{constructor(n){this.adapter=n}loadConsents(n){return this.adapter.loadConsents(n)}giveConsent(n,r,s){return this.adapter.giveConsent(n,r,s)}withdrawConsent(n,r,s){return this.adapter.withdrawConsent(n,r,s)}};e.\u0275fac=function(r){return new(r||e)(f(Wp))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),R9=(()=>{let e=class e{constructor(n){this.adapter=n}getActiveList(n){return this.adapter.loadActiveList(n)}};e.\u0275fac=function(r){return new(r||e)(f(qp))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),M9=(()=>{let e=class e{constructor(n){this.adapter=n}getCustomerCoupons(n,r,s,o){return this.adapter.getCustomerCoupons(n,r,s,o)}turnOnNotification(n,r){return this.adapter.turnOnNotification(n,r)}turnOffNotification(n,r){return this.adapter.turnOffNotification(n,r)}claimCustomerCoupon(n,r){return this.adapter.claimCustomerCoupon(n,r)}disclaimCustomerCoupon(n,r){return this.adapter.disclaimCustomerCoupon(n,r)}};e.\u0275fac=function(r){return new(r||e)(f(Yp))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),x9=(()=>{let e=class e{constructor(n){this.adapter=n}getInterests(n,r,s,o,a,c){return this.adapter.getInterests(n,r,s,o,a,c)}removeInterest(n,r){return this.adapter.removeInterest(n,r)}addInterest(n,r,s){return this.adapter.addInterest(n,r,s)}};e.\u0275fac=function(r){return new(r||e)(f(Kp))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),N9=(()=>{let e=class e{constructor(n){this.adapter=n}getAll(n){return this.adapter.loadAll(n)}delete(n,r){return this.adapter.delete(n,r)}setDefault(n,r){return this.adapter.setDefault(n,r)}};e.\u0275fac=function(r){return new(r||e)(f(Zp))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),zc=class extends Wr{},O9=(()=>{let e=class e extends zc{};e.type="UpdateUserAddressEvent";let t=e;return t})(),P9=(()=>{let e=class e extends zc{};e.type="DeleteUserAddressEvent";let t=e;return t})(),F9=(()=>{let e=class e extends zc{};e.type="AddUserAddressEvent";let t=e;return t})();var l_=(()=>{let e=class e{constructor(n){this.stateEventService=n,this.register()}register(){this.updateUserAddressEvent(),this.deleteUserAddressEvent(),this.addUserAddressEvent()}updateUserAddressEvent(){this.stateEventService.register({action:_g,event:O9})}addUserAddressEvent(){this.stateEventService.register({action:Fg,event:F9})}deleteUserAddressEvent(){this.stateEventService.register({action:Lg,event:P9})}};e.\u0275fac=function(r){return new(r||e)(f(fP))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),_9=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(r){return new(r||e)(f(l_))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();var Kle=(()=>{let e=class e{constructor(n,r){this.store=n,this.userIdService=r}loadCustomerCoupons(n,r,s){this.userIdService.takeUserId().subscribe(o=>{this.store.dispatch(new yh({userId:o,pageSize:n,currentPage:r,sort:s}))})}getCustomerCoupons(n){return Ve([this.store.pipe(O(jg)),this.getClaimCustomerCouponResultLoading()]).pipe(N(([,r])=>!r),j(([r])=>{r.loading||r.success||r.error||this.loadCustomerCoupons(n)}),E(([r])=>r.value),N($n))}getCustomerCouponsLoaded(){return this.store.pipe(O(Bq))}getCustomerCouponsLoading(){return this.store.pipe(O(Vq))}subscribeCustomerCoupon(n){this.userIdService.takeUserId().subscribe(r=>{this.store.dispatch(new Sh({userId:r,couponCode:n}))})}getSubscribeCustomerCouponResultLoading(){return this.store.pipe(O(Uo(hs)))}getSubscribeCustomerCouponResultSuccess(){return this.store.pipe(O(fs(hs)))}getSubscribeCustomerCouponResultError(){return this.store.pipe(O(_o(hs)))}unsubscribeCustomerCoupon(n){this.userIdService.takeUserId().subscribe(r=>{this.store.dispatch(new bh({userId:r,couponCode:n}))})}getUnsubscribeCustomerCouponResultLoading(){return this.store.pipe(O(Uo(ps)))}getUnsubscribeCustomerCouponResultSuccess(){return this.store.pipe(O(fs(ps)))}getUnsubscribeCustomerCouponResultError(){return this.store.pipe(O(_o(ps)))}claimCustomerCoupon(n){this.userIdService.takeUserId().subscribe(r=>{this.store.dispatch(new Ah({userId:r,couponCode:n}))})}disclaimCustomerCoupon(n){this.userIdService.takeUserId().subscribe(r=>{this.store.dispatch(new Rh({userId:r,couponCode:n}))})}resetDisclaimCustomerCoupon(){this.store.dispatch(new Mh)}getClaimCustomerCouponResultSuccess(){return this.store.pipe(O(fs($o)))}getClaimCustomerCouponResultLoading(){return this.store.pipe(O(Uo($o)))}getDisclaimCustomerCouponResultSuccess(){return this.store.pipe(O(fs(Ho)))}getClaimCustomerCouponResultError(){return this.store.pipe(O(_o($o)))}getDisclaimCustomerCouponResultError(){return this.store.pipe(O(_o(Ho)))}};e.\u0275fac=function(r){return new(r||e)(f(De),f(qr))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t}
21)(),L9=(()=>{let e=class e{constructor(n,r,s,o){this.store=n,this.userIdService=r,this.userAddressConnector=s,this.command=o,this.userAddressVerificationCommand=this.command.create(a=>this.userIdService.takeUserId(!1).pipe(M(c=>this.userAddressConnector.verify(c,a.address))))}loadAddresses(){this.userIdService.takeUserId().subscribe(n=>{this.store.dispatch(new pp(n))})}addUserAddress(n){this.userIdService.takeUserId().subscribe(r=>{this.store.dispatch(new vp({userId:r,address:n}))})}setAddressAsDefault(n){this.userIdService.takeUserId().subscribe(r=>{this.store.dispatch(new Fc({userId:r,addressId:n,address:{defaultAddress:!0}}))})}updateUserAddress(n,r){this.userIdService.takeUserId().subscribe(s=>{this.store.dispatch(new Fc({userId:s,addressId:n,address:r}))})}deleteUserAddress(n){this.userIdService.takeUserId().subscribe(r=>{this.store.dispatch(new Ip({userId:r,addressId:n}))})}getAddresses(){return this.store.pipe(O(t6))}getAddressesLoading(){return this.store.pipe(O(n6))}getAddressesLoadedSuccess(){return this.store.pipe(O(r6))}loadDeliveryCountries(){this.store.dispatch(new Fh)}getDeliveryCountries(){return this.store.pipe(O(zq))}getCountry(n){return this.store.pipe(O(Gq(n)))}loadRegions(n){this.store.dispatch(new lp(n))}clearRegions(){this.store.dispatch(new hp)}getRegions(n){return this.store.pipe(O(e6),E(({regions:r,country:s,loading:o,loaded:a})=>!n&&(o||a)?(this.clearRegions(),[]):o&&!a?[]:!o&&n!==s&&n?(s&&this.clearRegions(),this.loadRegions(n),[]):r))}verifyAddress(n){return this.userAddressVerificationCommand.execute({address:n})}};e.\u0275fac=function(r){return new(r||e)(f(De),f(qr),f(u_),f(wY))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Zle=(()=>{let e=class e{constructor(n,r){this.store=n,this.userIdService=r}loadProductInterests(n,r,s,o,a){this.userIdService.takeUserId().subscribe(c=>{this.store.dispatch(new Go({userId:c,pageSize:n,currentPage:r,sort:s,productCode:o,notificationType:a}))})}getProductInterests(){return this.store.pipe(O(Jq))}getAndLoadProductInterests(n){return this.store.pipe(O(ZD),j(r=>{r.loading||r.success||r.error||this.loadProductInterests(n)}),E(r=>r.value),N($n))}getProdutInterestsLoading(){return this.store.pipe(O(Xq))}removeProdutInterest(n,r){this.userIdService.takeUserId().subscribe(s=>{this.store.dispatch(new tp({userId:s,item:n,singleDelete:r}))})}getRemoveProdutInterestLoading(){return this.store.pipe(O(Uo(Vo)))}getRemoveProdutInterestSuccess(){return this.store.pipe(O(fs(Vo)))}addProductInterest(n,r){this.userIdService.takeUserId().subscribe(s=>{this.store.dispatch(new ip({userId:s,productCode:n,notificationType:r}))})}getAddProductInterestSuccess(){return this.store.pipe(O(fs(Bo)))}getAddProductInterestError(){return this.store.pipe(O(_o(Bo)))}resetAddInterestState(){this.store.dispatch(new ap)}resetRemoveInterestState(){this.store.dispatch(new cp)}clearProductInterests(){this.store.dispatch(new up)}};e.\u0275fac=function(r){return new(r||e)(f(De),f(qr))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Qle=(()=>{let e=class e{constructor(n,r){this.store=n,this.userIdService=r}getPreferences(){return this.store.pipe(O(Wq))}getEnabledPreferences(){return this.store.pipe(O(qq))}loadPreferences(){this.userIdService.takeUserId().subscribe(n=>{this.store.dispatch(new kh(n))})}clearPreferences(){this.store.dispatch(new zh)}getPreferencesLoading(){return this.store.pipe(O(Yq))}updatePreferences(n){this.userIdService.takeUserId().subscribe(r=>{this.store.dispatch(new $h({userId:r,preferences:n}))})}getUpdatePreferencesResultLoading(){return this.store.select(Uo(Xc))}resetNotificationPreferences(){this.store.dispatch(new Hh)}};e.\u0275fac=function(r){return new(r||e)(f(De),f(qr))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Jle=(()=>{let e=class e{constructor(n,r){this.store=n,this.userIdService=r}loadPaymentMethods(){this.userIdService.takeUserId().subscribe(n=>{this.store.dispatch(new zo(n))})}getPaymentMethods(){return this.store.pipe(O(Kq))}getPaymentMethodsLoading(){return this.store.pipe(O(Zq))}getPaymentMethodsLoadedSuccess(){return this.store.pipe(O(Qq))}setPaymentMethodAsDefault(n){this.userIdService.takeUserId().subscribe(r=>{this.store.dispatch(new qh({userId:r,paymentMethodId:n}))})}deletePaymentMethod(n){this.userIdService.takeUserId().subscribe(r=>{this.store.dispatch(new Zh({userId:r,paymentMethodId:n}))})}
21getAllBillingCountries(){return this.store.pipe(O($q))}loadBillingCountries(){this.store.dispatch(new gh)}};e.\u0275fac=function(r){return new(r||e)(f(De),f(qr))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),gO=class{},k9=(()=>{let e=class e{constructor(n,r){this.actions$=n,this.siteConnector=r,this.logger=C(ee),this.loadBillingCountries$=Z(()=>this.actions$.pipe(G(tD),M(()=>this.siteConnector.getCountries(DI.BILLING).pipe(E(s=>new vh(s)),F(s=>I(new mh(K(s,this.logger))))))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(Qo))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),j9=(()=>{let e=class e{constructor(n){this.actions$=n,this.clearMiscsData$=Z(()=>this.actions$.pipe(G(Dr,Qc),E(()=>new _p)))}};e.\u0275fac=function(r){return new(r||e)(f(Pe))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),U9=(()=>{let e=class e{constructor(n,r){this.actions$=n,this.customerCouponConnector=r,this.logger=C(ee),this.loadCustomerCoupons$=Z(()=>this.actions$.pipe(G(rD),E(s=>s.payload),q(s=>this.customerCouponConnector.getCustomerCoupons(s.userId,s.pageSize,s.currentPage,s.sort).pipe(E(o=>new Ch(o)),F(o=>I(new Eh(K(o,this.logger)))))))),this.subscribeCustomerCoupon$=Z(()=>this.actions$.pipe(G(sD),E(s=>s.payload),q(s=>this.customerCouponConnector.turnOnNotification(s.userId,s.couponCode).pipe(E(o=>new Dh(o)),F(o=>I(new Ih(K(o,this.logger)))))))),this.unsubscribeCustomerCoupon$=Z(()=>this.actions$.pipe(G(aD),E(s=>s.payload),q(s=>this.customerCouponConnector.turnOffNotification(s.userId,s.couponCode).pipe(E(()=>new Th(s.couponCode)),F(o=>I(new wh(K(o,this.logger)))))))),this.claimCustomerCoupon$=Z(()=>this.actions$.pipe(G(uD),E(s=>s.payload),q(s=>this.customerCouponConnector.claimCustomerCoupon(s.userId,s.couponCode).pipe(E(o=>new Ph(o)),F(o=>I(new Oh(K(o,this.logger)))))))),this.disclaimCustomerCoupon$=Z(()=>this.actions$.pipe(G(lD),E(s=>s.payload),q(s=>this.customerCouponConnector.disclaimCustomerCoupon(s.userId,s.couponCode).pipe(E(o=>new Nh(o)),F(o=>I(new xh(K(o,this.logger))))))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(M9))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),$9=(()=>{let e=class e{constructor(n,r){this.actions$=n,this.siteConnector=r,this.logger=C(ee),this.loadDeliveryCountries$=Z(()=>this.actions$.pipe(G(dD),M(()=>this.siteConnector.getCountries(DI.SHIPPING).pipe(E(s=>new Lh(s)),F(s=>I(new _h(K(s,this.logger))))))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(Qo))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),B9=(()=>{let e=class e{constructor(n,r){this.actions$=n,this.connector=r,this.logger=C(ee),this.loadPreferences$=Z(()=>this.actions$.pipe(G(hD),E(s=>s.payload),M(s=>this.connector.loadAll(s).pipe(E(o=>new Uh(o)),F(o=>I(new jh(K(o,this.logger)))))))),this.updatePreferences$=Z(()=>this.actions$.pipe(G(mD),E(s=>s.payload),q(s=>this.connector.update(s.userId,s.preferences).pipe(E(()=>new Vh(s.preferences)),F(o=>I(new Bh(K(o,this.logger))))))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(yq))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),V9=(()=>{let e=class e{constructor(n,r,s){this.actions$=n,this.userPaymentMethodConnector=r,this.globalMessageService=s,this.logger=C(ee),this.loadUserPaymentMethods$=Z(()=>this.actions$.pipe(G(yD),E(o=>o.payload),q(o=>this.userPaymentMethodConnector.getAll(o).pipe(E(a=>new Wh(a)),F(a=>I(new Gh(K(a,this.logger)))))))),this.setDefaultUserPaymentMethod$=Z(()=>this.actions$.pipe(G(SD),E(o=>o.payload),q(o=>this.userPaymentMethodConnector.setDefault(o.userId,o.paymentMethodId).pipe(M(a=>[new Kh(a),new zo(o.userId)]),F(a=>I(new Yh(K(a,this.logger)))))))),this.deleteUserPaymentMethod$=Z(()=>this.actions$.pipe(G(ID),E(o=>o.payload),q(o=>this.userPaymentMethodConnector.delete(o.userId,o.paymentMethodId).pipe(M(a=>(this.globalMessageService.add({key:"paymentCard.deletePaymentSuccess"},je.MSG_TYPE_CONFIRMATION),[new Jh(a),new zo(o.userId)])),F(a=>I(new Qh(K(a,this.logger))))))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(N9),f(Zo))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),H9=(()=>{let e=class e{constructor(n,r){this.actions$=n,this.userInterestsConnector=r,this.logger=C(ee),this.loadProductInteres$=Z(()=>this.actions$.pipe(G(DD),E(s=>s.payload),M(s=>this.userInterestsConnector.getInterests(s.userId,s.pageSize,s.currentPage,s.sort,s.productC
21ode,s.notificationType).pipe(E(o=>new ep(o)),F(o=>I(new Xh(K(o,this.logger)))))))),this.removeProductInterest$=Z(()=>this.actions$.pipe(G(TD),E(s=>s.payload),M(s=>this.userInterestsConnector.removeInterest(s.userId,s.item).pipe(M(o=>[new Go(s.singleDelete?{userId:s.userId,productCode:s.item.product?.code,notificationType:s.item.productInterestEntry?.[0].interestType}:{userId:s.userId}),new np(o)]),F(o=>I(new rp(K(o,this.logger)))))))),this.addProductInterest$=Z(()=>this.actions$.pipe(G(AD),E(s=>s.payload),M(s=>this.userInterestsConnector.addInterest(s.userId,s.productCode,s.notificationType).pipe(M(o=>[new Go({userId:s.userId,productCode:s.productCode,notificationType:s.notificationType}),new sp(o)]),F(o=>I(new op(K(o,this.logger))))))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(x9))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),z9=(()=>{let e=class e{constructor(n,r){this.actions$=n,this.siteConnector=r,this.logger=C(ee),this.loadRegions$=Z(()=>this.actions$.pipe(G(RD),E(s=>s.payload),M(s=>this.siteConnector.getRegions(s).pipe(E(o=>new fp({entities:o,country:s})),F(o=>I(new dp(K(o,this.logger)))))))),this.resetRegions$=Z(()=>this.actions$.pipe(G(su,xD),E(()=>new zr(tu))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(Qo))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),G9=(()=>{let e=class e{constructor(n,r,s,o){this.actions$=n,this.userAddressConnector=r,this.userAddressService=s,this.messageService=o,this.logger=C(ee),this.loadUserAddresses$=Z(()=>this.actions$.pipe(G(ND),E(a=>a.payload),M(a=>this.userAddressConnector.getAll(a).pipe(E(c=>new mp(c)),F(c=>I(new gp(K(c,this.logger)))))))),this.addUserAddress$=Z(()=>this.actions$.pipe(G(Fg),E(a=>a.payload),q(a=>this.userAddressConnector.add(a.userId,a.address).pipe(E(c=>new Ep(c)),F(c=>I(new yp(K(c,this.logger)))))))),this.updateUserAddress$=Z(()=>this.actions$.pipe(G(_g),E(a=>a.payload),q(a=>this.userAddressConnector.update(a.userId,a.addressId,a.address).pipe(E(()=>new Sp(a)),F(c=>(this.showGlobalMessage("addressForm.invalidAddress",je.MSG_TYPE_ERROR),I(new Cp(K(c,this.logger))))))))),this.deleteUserAddress$=Z(()=>this.actions$.pipe(G(Lg),E(a=>a.payload),q(a=>this.userAddressConnector.delete(a.userId,a.addressId).pipe(E(c=>new bp(c)),F(c=>I(new Dp(K(c,this.logger)))))))),this.showGlobalMessageOnAddSuccess$=Z(()=>this.actions$.pipe(G(FD),j(()=>{this.loadAddresses(),this.showGlobalMessage("addressForm.userAddressAddSuccess")})),{dispatch:!1}),this.showGlobalMessageOnUpdateSuccess$=Z(()=>this.actions$.pipe(G(_D),E(a=>a.payload),j(a=>{this.loadAddresses(),(Object.keys(a?.address).length!==1||!a?.address?.defaultAddress)&&this.showGlobalMessage("addressForm.userAddressUpdateSuccess")})),{dispatch:!1}),this.showGlobalMessageOnDeleteSuccess$=Z(()=>this.actions$.pipe(G(LD),j(()=>{this.loadAddresses(),this.showGlobalMessage("addressForm.userAddressDeleteSuccess")})),{dispatch:!1})}showGlobalMessage(n,r){this.messageService.add({key:n},r??je.MSG_TYPE_CONFIRMATION)}loadAddresses(){this.userAddressService.loadAddresses()}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(u_),f(L9),f(Zo))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),W9=(()=>{let e=class e{constructor(n,r){this.actions$=n,this.userConsentConnector=r,this.logger=C(ee),this.resetConsents$=Z(()=>this.actions$.pipe(G(Dr),E(()=>new Rp))),this.getConsents$=Z(()=>this.actions$.pipe(G(kD),E(s=>s.payload),rt(s=>this.userConsentConnector.loadConsents(s).pipe(E(o=>new Ap(o)),F(o=>I(new Tp(K(o,this.logger)))))))),this.giveConsent$=Z(()=>this.actions$.pipe(G(UD,wp),rt(s=>this.userConsentConnector.giveConsent(s.payload.userId,s.payload.consentTemplateId??"",s.payload.consentTemplateVersion??0).pipe(E(o=>new xp(o)),F(o=>{let a=[new Mp(K(o,this.logger))];return s.type===wp&&o.status===409&&a.push(new ph(je.MSG_TYPE_ERROR)),I(...a)}))))),this.withdrawConsent$=Z(()=>this.actions$.pipe(G(BD),E(s=>s.payload),rt(({userId:s,consentCode:o,consentId:a})=>this.userConsentConnector.withdrawConsent(s,o,a).pipe(E(()=>new Op),F(c=>I(new Np(K(c,this.logger))))))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(A9))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),q9=(()=>{let e=class e{constructor(n,r){this.actions$=n,this.userCostCenterConnector=r,this.logger=C(ee),this.loadActiveCostCenters$=Z(()=>this.actions$.pipe(G(VD),E(s=>s.payload),M(s=>this.userCostCenterConnector.getActiveList(s).pipe(E(o=>new Fp(o.values)),F(o=>I(new Pp(K(o,this.logger))))))))}};e.\u0275fac=function(r){return new(r||e)(f(Pe),f(R9))},e.\u0275prov=m({token:e,factory:e.\u0275fac});let t=e;return t})(),Y9=[j9,$9,z9,G9,V9,k9,W9,U9,B9,H9,q9],mO={entities:{}};function K9(t=mO,e){switch(e.type){case nD:{let n=e.payload.reduce((r,s)=>T(v({},r),{[s.isocode]:s}),v({},t.entities));return T(v({},t),{entities:n})}case su:return mO}return t}var Z9={coupons:[],sorts:[],pagination:{}};function Q9(t=Z9,e){switch(e.type){case iD:return e.payload;case oD:{let i=e.payload.coupon,n=new Array(t.coupons?.length??0);return t.coupons?.forEach((r,s)=>i&&r.couponId===i.couponId?n[s]=i:n[s]=r),T(v({},t),{coupons:n})}case cD:{let i=e.payload,n=new Array(t.coupons?.length??0);return t.coupons?.forEach((r,s)=>r.couponId===i?n[s]=T(v({},r),{notificationOn:!1}):n[s]=r),T(v({},t),{coupons:n})}}return t}var vO={entities:{}};function J9(t=vO,e){switch(e.type){case fD:{let n=e.payload.reduce((r,s)=>T(v({},r),{[s.isocode??""]:s}),v({},t.entities));return T(v({},t),{entities:n})}case su:return vO}return t}var hS=[];function X9(t=hS,e){switch(e.type){case pD:return hS;case gD:case vD:return e.payload?e.payload:hS}return t}var pS=[];function e7(t=pS,e){switch(e.type){case CD:return e.payload?e.payload:pS;
21case ED:return pS}return t}var gS={results:[],pagination:{},sorts:[]};function t7(t=gS,e){switch(e.type){case wD:return e.payload?e.payload:gS;case bD:return gS}return t}var yO={entities:[],country:null};function n7(t=yO,e){switch(e.type){case MD:{let i=e.payload.entities,n=e.payload.country;return i||n?T(v({},t),{entities:i,country:n}):yO}}return t}var mS=[];function r7(t=mS,e){switch(e.type){case OD:return mS;case PD:return e.payload?e.payload:mS}return t}var EO=[];function i7(t=EO,e){switch(e.type){case jD:{let i=e.payload;return i||EO}case $D:{let i=e.consentTemplate;return t.map(n=>n.id===i.id?i:n)}}return t}var vS=[];function s7(t=vS,e){switch(e.type){case HD:return vS;case zD:return e.payload?e.payload:vS}return t}function o7(){return{addresses:Ct(fn,r7),billingCountries:K9,consents:Ct(eu,i7),payments:Ct(br,e7),countries:J9,regions:Ct(tu,n7),customerCoupons:Ct(nu,Q9),notificationPreferences:Ct(ru,X9),productInterests:Ct(iu,t7),costCenters:Ct(Pg,s7)}}var d_=new S("UserReducers"),a7={provide:d_,useFactory:o7};function c7(t){return function(e,i){return i.type===Ti&&(e=void 0),t(e,i)}}var u7=[c7],l7=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[a7],imports:[ot,Ss,$r.forFeature(EP,d_,{metaReducers:u7}),mi.forFeature(Y9),oN]});let t=e;return t})(),Xle=(()=>{let e=class e{static forRoot(){return{ngModule:e}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[l_],imports:[l7,_9]});let t=e;return t})();export{Ce as a,U as b,oe as c,Ae as d,Kt as e,gm as f,ei as g,AL as h,ve as i,Vb as j,Hb as k,oL as l,cm as m,pn as n,ge as o,I as p,Pt as q,Ps as r,qn as s,RL as t,Fs as u,E as v,Ve as w,q as x,Qn as y,We as z,Yu as A,oa as B,Ku as C,Jt as D,kL as E,gn as F,vm as G,N as H,Ms as I,$L as J,F as K,VL as L,HL as M,rt as N,SL as O,Pi as P,ni as Q,le as R,ua as S,Tn as T,Xt as U,DL as V,WL as W,Jn as X,wn as Y,qL as Z,Ft as _,Jr as $,ia as aa,bm as ba,KL as ca,wm as da,Fi as ea,xs as fa,it as ga,Tm as ha,Am as ia,An as ja,M as ka,_i as la,ZL as ma,j as na,QL as oa,en as pa,L as qa,B0 as ra,m as sa,H as ta,S as ua,f as va,C as wa,Yl as xa,nn as ya,xa as za,K0 as Aa,mn as Ba,tT as Ca,z as Da,Lt as Ea,rn as Fa,or as Ga,Yk as Ha,Ki as Ia,Vse as Ja,Hse as Ka,zse as La,Gse as Ma,Ge as Na,nd as Oa,Wse as Pa,qe as Qa,mt as Ra,di as Sa,Fn as Ta,ht as Ua,hv as Va,ka as Wa,Ye as Xa,qse as Ya,Oy as Za,yn as _a,Yse as $a,Kse as ab,VU as bb,HU as cb,Zse as db,Qse as eb,Jse as fb,Q as gb,IA as hb,Nn as ib,Pl as jb,Av as kb,Fl as lb,gd as mb,Aa as nb,Ji as ob,ye as pb,on as qb,B$ as rb,Z$ as sb,Zy as tb,Bv as ub,Xy as vb,SB as wb,nR as xb,IB as yb,noe as zb,roe as Ab,ioe as Bb,soe as Cb,ooe as Db,aoe as Eb,coe as Fb,uoe as Gb,loe as Hb,lR as Ib,dR as Jb,nE as Kb,fR as Lb,hR as Mb,jB as Nb,doe as Ob,$B as Pb,BB as Qb,rE as Rb,YB as Sb,foe as Tb,hoe as Ub,poe as Vb,QB as Wb,gR as Xb,JB as Yb,XB as Zb,mR as _b,goe as $b,vR as ac,yR as bc,moe as cc,voe as dc,nV as ec,ER as fc,rV as gc,iV as hc,sV as ic,oV as jc,yoe as kc,aV as lc,Eoe as mc,SR as nc,Coe as oc,Soe as pc,Ioe as qc,Doe as rc,boe as sc,woe as tc,Toe as uc,Aoe as vc,Roe as wc,Moe as xc,xoe as yc,Noe as zc,Ooe as Ac,Poe as Bc,Foe as Cc,_oe as Dc,Loe as Ec,co as Fc,xt as Gc,Id as Hc,Xi as Ic,lo as Jc,Ee as Kc,lr as Lc,Dd as Mc,Ha as Nc,kV as Oc,_R as Pc,hi as Qc,Ue as Rc,KR as Sc,fr as Tc,QV as Uc,m2 as Vc,Xoe as Wc,eae as Xc,tae as Yc,nae as Zc,iM as _c,rae as $c,iae as ad,sae as bd,oae as cd,aae as dd,cae as ed,uae as fd,lae as gd,M2 as hd,dae as id,fae as jd,ot as kd,pi as ld,ts as md,cM as nd,fe as od,ze as pd,hr as qd,po as rd,Wt as sd,Le as td,Ln as ud,bae as vd,wae as wd,Tae as xd,iH as yd,DM as zd,jae as Ad,Uae as Bd,zE as Cd,xM as Dd,EH as Ed,IH as Fd,gi as Gd,mo as Hd,Ur as Id,go as Jd,De as Kd,O as Ld,A as Md,kn as Nd,$r as Od,ece as Pd,tce as Qd,Z as Rd,Pe as Sd,G as Td,mi as Ud,vi as Vd,as as Wd,Sn as Xd,at as Yd,In as Zd,yi as _d,gr as $d,os as ae,af as be,Br as ce,oG as de,ke as ee,Dx as fe,Mce as ge,oN as he,_N as ie,Et as je,Gf as ke,It as le,qt as me,Gc as ne,qo as oe,YN as pe,yS as qe,Sr as re,Wc as se,we as te,ES as ue,O3 as ve,Wf as we,P3 as xe,F3 as ye,Yue as ze,Yf as Ae,ko as Be,pW as Ce,Kue as De,Zue as Ee,qr as Fe,mW as Ge,Rc as He,Yr as Ie,Ir as Je,Ig as Ke,EW as Le,vs as Me,WO as Ne,Yc as Oe,ee as Pe,wg as Qe,Kc as Re,DW as Se,Ai as Te,VI as Ue,$n as Ve,Nc as We,Ii as Xe,ys as Ye,Es as Ze,Gr as _e,wW as $e,Jue as af,JI as bf,Cs as cf,jW as df,Ri as ef,UW as ff,GS as gf,ele as hf,Oc as if,iP as jf,Rg as kf,Mc as lf,JN as mf,tt as nf,GW as of,jo as pf,Ko as qf,XI as rf,cP as sf,Ss as tf,K as uf,JW as vf,Mg as wf,Bn as xf,eD as yf,Di as zf,Wr as Af,nO as Bf,c4 as Cf,Is as Df,fP as Ef,je as Ff,Zo as Gf,h4 as Hf,p4 as If,tle as Jf,C4 as Kf,nle as Lf,rle as Mf,ae as Nf,ile as Of,Bo as Pf,Vo as Qf,iu as Rf,sle as Sf,kp as Tf,dI as Uf,D4 as Vf,w4 as Wf,GD as Xf,Vr as Yf,Lo as Zf,T4 as _f,ole as $f,R4 as ag,jp as bg,aF as cg,ou as dg,nt as eg,cF as fg,uF as gg,sO as hg,x4 as ig,F4 as jg,_4 as kg,ule as lg,ms as mg,L4 as ng,k4 as og,lF as pg,dF as qg,H4 as rg,fF as sg,lle as tg,W4 as ug,Y4 as vg,K4 as wg,Up as xg,Vp as yg,dle as zg,nq as Ag,Hp as Bg,Ds as Cg,au as Dg,dS as Eg,hq as Fg,Sq as Gg,Gp as Hg,fle as Ig,Tq as Jg,cO as Kg,g6 as Lg,JD as Mg,pI as Ng,XD as Og,wle as Pg,Tle as Qg,qg as Rg,ln as Sg,Cr as Tg,kF as Ug,Yg as Vg,t5 as Wg,db as Xg,HF as Yg,Ale as Zg,Rle as _g,Mle as $g,xle as ah,Nle as bh,H5 as ch,Kr as dh,St as eh,fb as fh,fY as gh,Jo as hh,Ole as ih,Po as jh,wY as kh,Ple as lh,Fle as mh,_le as nh,Lle as oh,kle as ph,jle as qh,dO as rh,MY as sh,xY as th,Ule as uh,OY as vh,jY as wh,$le as xh,Ble as yh,UY as zh,$Y as Ah,Vle as Bh,Hle as Ch,BY as Dh,zle as Eh,HY as Fh,WY as Gh,Tb as Hh,Gle as Ih,Wle as Jh,fu as Kh,y9 as Lh,E9 as Mh,qle as Nh,C9 as Oh,I9 as Ph,D9 as Qh,Yle as Rh,u_ as Sh,x9 as Th,Kle as Uh,L9 as Vh,Zle as Wh,Qle as Xh,Jle as Yh,gO as Zh,Xle as _h};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.