import{Ga as S,Ha as P,Ic as ne,Ja as G,Jc as re,Ka as H,La as K,Ld as ie,Ma as w,Oa as k,Qa as g,Qc as A,Ra as v,Rc as oe,Sa as Y,Sc as se,Ta as q,Ua as W,Uc as f,Va as X,Wa as J,Xa as Q,Ya as ee,Za as m,aa as y,ca as l,cb as M,fa as L,ha as c,ia as Z,jb as te,la as E,ne as ae,qe as _,ra as z,ue as ce}from"./chunk-6V7GSX3W.js";import{a as N,b as $}from"./chunk-EQDQRRRY.js";var U=class extends se{constructor(){super(...arguments),this.supportsDOMEvents=!0}},F=class s extends U{static makeCurrent(){oe(new s)}onAndCancel(e,o,t){return e.addEventListener(o,t),()=>{e.removeEventListener(o,t)}}dispatchEvent(e,o){e.dispatchEvent(o)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,o){return o=o||this.getDefaultDocument(),o.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,o){return o==="window"?window:o==="document"?e:o==="body"?e.body:null}getBaseHref(e){let o=ge();return o==null?null:ve(o)}resetBaseElement(){T=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ie(document.cookie,e)}},T=null;function ge(){return T=T||document.querySelector("base"),T?T.getAttribute("href"):null}function ve(s){return new URL(s,document.baseURI).pathname}var Ee=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=l({token:e,factory:e.\u0275fac});let s=e;return s})(),b=new L(""),fe=(()=>{let e=class e{constructor(t,n){this._zone=n,this._eventNameToPlugin=new Map,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,n,r){return this._findPluginFor(n).addEventListener(t,n,r)}getZone(){return this._zone}_findPluginFor(t){let n=this._eventNameToPlugin.get(t);if(n)return n;if(n=this._plugins.find(i=>i.supports(t)),!n)throw new y(5101,!1);return this._eventNameToPlugin.set(t,n),n}};e.\u0275fac=function(n){return new(n||e)(c(b),c(S))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let s=e;return s})(),R=class{constructor(e){this._doc=e}},j="ng-app-id",he=(()=>{let e=class e{constructor(t,n,r,i={}){this.doc=t,this.appId=n,this.nonce=r,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=_(i),this.resetHostNodes()}addStyles(t){for(let n of t)this.changeUsageCount(n,1)===1&&this.onStyleAdded(n)}removeStyles(t){for(let n of t)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(n=>n.remove()),t.clear());for(let n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let n of this.getAllStyles())this.addStyleToHost(t,n)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let n of this.hostNodes)this.addStyleToHost(n,t)}onStyleRemoved(t){let n=this.styleRef;n.get(t)?.elements?.forEach(r=>r.remove()),n.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${j}="${this.appId}"]`);if(t?.length){let n=new Map;return t.forEach(r=>{r.textContent!=null&&n.set(r.textContent,r)}),n}return null}changeUsageCount(t,n){let r=this.styleRef;if(r.has(t)){let i=r.get(t);return i.usage+=n,i.usage}return r.set(t,{usage:n,elements:[]}),n}getStyleElement(t,n){let r=this.styleNodesInDOM,i=r?.get(n);if(i?.parentNode===t)return r.delete(n),i.removeAttribute(j),i;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=n,this.platformIsServer&&a.setAttribute(j,this.appId),t.appendChild(a),a}}addStyleToHost(t,n){let r=this.getStyleElement(t,n),i=this.styleRef,a=i.get(n)?.elements;a?a.push(r):i.set(n,{elements:[r],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(n){return new(n||e)(c(f),c(H),c(k,8),c(w))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let s=e;return s})(),x={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},V=/%COMP%/g,pe="%COMP%",Se=`_nghost-${pe}`,we=`_ngcontent-${pe}`,Me=!0,Te=new L("",{providedIn:"root",factory:()=>Me});function Re(s){return we.replace(V,s)}function De(s){return Se.replace(V,s)}function me(s,e){return e.map(o=>o.replace(V,s))}var ue=(()=>{let e=class e{constructor(t,n,r,i,a,u,d,h=null){this.eventManager=t,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestroy=i,this.doc=a,this.platformId=u,this.ngZone=d,this.nonce=h,this.rendererByCompId=new Map,this.platformIsServer=_(u),this.defaultRenderer=new D(t,a,d,this.platformIsServer)}createRenderer(t,n){if(!t||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===E.ShadowDom&&(n=$(N({},n),{encapsulation:E.Emulated}));let r=this.getOrCreateRenderer(t,n);return r instanceof O?r.applyToHost(t):r instanceof C&&r.applyStyles(),r}getOrCreateRenderer(t,n){let r=this.rendererByCompId,i=r.get(n.id);if(!i){let a=this.doc,u=this.ngZone,d=this.eventManager,h=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,I=this.platformIsServer;switch(n.encapsulation){case E.Emulated:i=new O(d,h,n,this.appId,p,a,u,I);break;case E.ShadowDom:return new B(d,h,t,n,a,u,this.nonce,I);default:i=new C(d,h,n,p,a,u,I);break}r.set(n.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(n){return new(n||e)(c(fe),c(he),c(H),c(Te),c(f),c(w),c(S),c(k))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let s=e;return s})(),D=class{constructor(e,o,t,n){this.eventManager=e,this.doc=o,this.ngZone=t,this.platformIsServer=n,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,o){return o?this.doc.createElementNS(x[o]||o,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,o){(de(e)?e.content:e).appendChild(o)}insertBefore(e,o,t){e&&(de(e)?e.content:e).insertBefore(o,t)}removeChild(e,o){e&&e.removeChild(o)}selectRootElement(e,o){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new y(-5104,!1);return o||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,o,t,n){if(n){o=n+":"+o;let r=x[n];r?e.setAttributeNS(r,o,t):e.setAttribute(o,t)}else e.setAttribute(o,t)}removeAttribute(e,o,t){if(t){let n=x[t];n?e.removeAttributeNS(n,o):e.removeAttribute(`${t}:${o}`)}else e.removeAttribute(o)}addClass(e,o){e.classList.add(o)}removeClass(e,o){e.classList.remove(o)}setStyle(e,o,t,n){n&(M.DashCase|M.Important)?e.style.setProperty(o,t,n&M.Important?"important":""):e.style[o]=t}removeStyle(e,o,t){t&M.DashCase?e.style.removeProperty(o):e.style[o]=""}setProperty(e,o,t){e!=null&&(e[o]=t)}setValue(e,o){e.nodeValue=o}listen(e,o,t){if(typeof e=="string"&&(e=A().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${o}`);return this.eventManager.addEventListener(e,o,this.decoratePreventDefault(t))}decoratePreventDefault(e){return o=>{if(o==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(o)):e(o))===!1&&o.preventDefault()}}};function de(s){return s.tagName==="TEMPLATE"&&s.content!==void 0}var B=class extends D{constructor(e,o,t,n,r,i,a,u){super(e,r,i,u),this.sharedStylesHost=o,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=me(n.id,n.styles);for(let h of d){let p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=h,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,o){return super.appendChild(this.nodeOrShadowRoot(e),o)}insertBefore(e,o,t){return super.insertBefore(this.nodeOrShadowRoot(e),o,t)}removeChild(e,o){return super.removeChild(this.nodeOrShadowRoot(e),o)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},C=class extends D{constructor(e,o,t,n,r,i,a,u){super(e,r,i,a),this.sharedStylesHost=o,this.removeStylesOnCompDestroy=n,this.styles=u?me(u,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},O=class extends C{constructor(e,o,t,n,r,i,a,u){let d=n+"-"+t.id;super(e,o,t,r,i,a,u,d),this.contentAttr=Re(d),this.hostAttr=De(d)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,o){let t=super.createElement(e,o);return super.setAttribute(t,this.contentAttr,""),t}},Ce=(()=>{let e=class e extends R{constructor(t){super(t)}supports(t){return!0}addEventListener(t,n,r){return t.addEventListener(n,r,!1),()=>this.removeEventListener(t,n,r)}removeEventListener(t,n,r){return t.removeEventListener(n,r)}};e.\u0275fac=function(n){return new(n||e)(c(f))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let s=e;return s})(),Ae=(()=>{let e=class e extends R{constructor(t){super(t),this.delegate=Z(re,{optional:!0})}supports(t){return this.delegate?this.delegate.supports(t):!1}addEventListener(t,n,r){return this.delegate.addEventListener(t,n,r)}removeEventListener(t,n,r){return this.delegate.removeEventListener(t,n,r)}};e.\u0275fac=function(n){return new(n||e)(c(f))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let s=e;return s})(),le=["alt","control","meta","shift"],be={"\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"},Oe={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey},Ie=(()=>{let e=class e extends R{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,n,r){let i=e.parseEventName(n),a=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>A().onAndCancel(t,i.domEventName,a))}static parseEventName(t){let n=t.toLowerCase().split("."),r=n.shift();if(n.length===0||!(r==="keydown"||r==="keyup"))return null;let i=e._normalizeKey(n.pop()),a="",u=n.indexOf("code");if(u>-1&&(n.splice(u,1),a="code."),le.forEach(h=>{let p=n.indexOf(h);p>-1&&(n.splice(p,1),a+=h+".")}),a+=i,n.length!=0||i.length===0)return null;let d={};return d.domEventName=r,d.fullKey=a,d}static matchEventFullKeyCode(t,n){let r=be[t.key]||t.key,i="";return n.indexOf("code.")>-1&&(r=t.code,i="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),le.forEach(a=>{if(a!==r){let u=Oe[a];u(t)&&(i+=a+".")}}),i+=r,i===n)}static eventCallback(t,n,r){return i=>{e.matchEventFullKeyCode(i,t)&&r.runGuarded(()=>n(i))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(n){return new(n||e)(c(f))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let s=e;return s})();function mt(s,e){return ne(N({rootComponent:s},Ne(e)))}function Ne(s){return{appProviders:[..._e,...s?.providers??[]],platformProviders:ke}}function Le(){F.makeCurrent()}function Pe(){return new P}function He(){return G(document),document}var ke=[{provide:w,useValue:ae},{provide:K,useValue:Le,multi:!0},{provide:f,useFactory:He,deps:[]}];var _e=[{provide:z,useValue:"root"},{provide:P,useFactory:Pe,deps:[]},{provide:b,useClass:Ce,multi:!0,deps:[f,S,w]},{provide:b,useClass:Ie,multi:!0,deps:[f]},{provide:b,useClass:Ae,multi:!0},ue,he,fe,{provide:te,useExisting:ue},{provide:ce,useClass:Ee,deps:[]},[]];var yt=(()=>{let e=class e{constructor(t){this._doc=t,this._dom=A()}addTag(t,n=!1){return t?this._getOrCreateElement(t,n):null}addTags(t,n=!1){return t?t.reduce((r,i)=>(i&&r.push(this._getOrCreateElement(i,n)),r),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];let n=this._doc.querySelectorAll(`meta[${t}]`);return n?[].slice.call(n):[]}updateTag(t,n){if(!t)return null;n=n||this._parseSelector(t);let r=this.getTag(n);return r?this._setMetaElementAttributes(t,r):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,n=!1){if(!n){let a=this._parseSelector(t),u=this.getTags(a).filter(d=>this._containsAttributes(t,d))[0];if(u!==void 0)return u}let r=this._dom.createElement("meta");return this._setMetaElementAttributes(t,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}_setMetaElementAttributes(t,n){return Object.keys(t).forEach(r=>n.setAttribute(this._getMetaKeyMap(r),t[r])),n}_parseSelector(t){let n=t.name?"name":"property";return`${n}="${t[n]}"`}_containsAttributes(t,n){return Object.keys(t).every(r=>n.getAttribute(this._getMetaKeyMap(r))===t[r])}_getMetaKeyMap(t){return je[t]||t}};e.\u0275fac=function(n){return new(n||e)(c(f))},e.\u0275prov=l({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),je={httpEquiv:"http-equiv"},gt=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(n){return new(n||e)(c(f))},e.\u0275prov=l({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var xe=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=l({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=c(Ue),r},providedIn:"root"});let s=e;return s})(),Ue=(()=>{let e=class e extends xe{constructor(t){super(),this._doc=t}sanitize(t,n){if(n==null)return null;switch(t){case m.NONE:return n;case m.HTML:return v(n,"HTML")?g(n):ee(this._doc,String(n)).toString();case m.STYLE:return v(n,"Style")?g(n):n;case m.SCRIPT:if(v(n,"Script"))return g(n);throw new y(5200,!1);case m.URL:return v(n,"URL")?g(n):Q(String(n));case m.RESOURCE_URL:if(v(n,"ResourceURL"))return g(n);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(t){return Y(t)}bypassSecurityTrustStyle(t){return q(t)}bypassSecurityTrustScript(t){return W(t)}bypassSecurityTrustUrl(t){return X(t)}bypassSecurityTrustResourceUrl(t){return J(t)}};e.\u0275fac=function(n){return new(n||e)(c(f))},e.\u0275prov=l({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();export{ue as a,mt as b,yt as c,gt as d,xe as e};