@mxtommy/kip 3.9.0-beta.11 → 3.9.0-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/.github/instructions/angular.instructions.md +46 -0
  2. package/README.md +49 -12
  3. package/package.json +2 -2
  4. package/public/3rdpartylicenses.txt +77 -77
  5. package/public/assets/help-docs/configuration.md +4 -4
  6. package/public/assets/help-docs/dashboards.md +4 -2
  7. package/public/assets/svg/icons.svg +1 -1
  8. package/public/chunk-3PHQNZHK.js +3 -0
  9. package/public/{chunk-35L7BBBD.js → chunk-4BZUNPAS.js} +12 -12
  10. package/public/{chunk-HCXH72CD.js → chunk-4TXMPFLE.js} +1 -1
  11. package/public/{chunk-4JJLPUET.js → chunk-5ZFD7GS7.js} +1 -1
  12. package/public/{chunk-CQXWGD3T.js → chunk-7ROSR534.js} +1 -1
  13. package/public/chunk-A7JAKUEN.js +2 -0
  14. package/public/{chunk-ZBCOJLI4.js → chunk-AWECVMCK.js} +5 -5
  15. package/public/{chunk-KKHPIFEB.js → chunk-B2TLSQTS.js} +1 -1
  16. package/public/chunk-BAGWY54D.js +11 -0
  17. package/public/chunk-DSUPPAGD.js +1 -0
  18. package/public/chunk-E44UUOOY.js +1 -0
  19. package/public/chunk-EURN6O7T.js +1 -0
  20. package/public/chunk-FI56NUZD.js +2 -0
  21. package/public/chunk-IQFEZZ5Q.js +6 -0
  22. package/public/chunk-JGYVOFIW.js +1 -0
  23. package/public/{chunk-2YVW3TBK.js → chunk-JRXB4H3R.js} +1 -1
  24. package/public/chunk-KH2LYQ34.js +1 -0
  25. package/public/chunk-L4UIO6KZ.js +3 -0
  26. package/public/{chunk-PKNLASTF.js → chunk-NMRNE6VS.js} +1 -1
  27. package/public/chunk-PECKIPUO.js +1 -0
  28. package/public/{chunk-VYUMZVH2.js → chunk-SOVSVBLY.js} +1 -1
  29. package/public/chunk-UE2C4S42.js +4 -0
  30. package/public/chunk-UYHYM4HU.js +9 -0
  31. package/public/{chunk-KTDDP73O.js → chunk-WQ6UD7J4.js} +1 -1
  32. package/public/index.html +18 -16
  33. package/public/main-IMSYBGZF.js +53 -0
  34. package/public/{styles-GMXUNVLC.css → styles-PDNHT2L2.css} +1 -1
  35. package/public/chunk-3LEMFOCV.js +0 -3
  36. package/public/chunk-53YH6WHF.js +0 -1
  37. package/public/chunk-65LQUQJE.js +0 -2
  38. package/public/chunk-7O6MKSQ3.js +0 -1
  39. package/public/chunk-AS4F4I3P.js +0 -6
  40. package/public/chunk-CBUY7NMR.js +0 -2
  41. package/public/chunk-JNFARXLF.js +0 -11
  42. package/public/chunk-JY3WVS7C.js +0 -2
  43. package/public/chunk-NMEZOCU2.js +0 -1
  44. package/public/chunk-NS2FPVWM.js +0 -4
  45. package/public/chunk-Q2Y75POI.js +0 -1
  46. package/public/chunk-RRTCHHRC.js +0 -3
  47. package/public/chunk-TA4GACKT.js +0 -4
  48. package/public/chunk-TXPLRBW5.js +0 -2
  49. package/public/chunk-VHFBF47T.js +0 -1
  50. package/public/main-5BGEDP4B.js +0 -53
@@ -0,0 +1 @@
1
+ import{d as g}from"./chunk-JGYVOFIW.js";import{g as p,h as u}from"./chunk-FI56NUZD.js";import{$b as n,Ac as i,Bc as d,Ee as h,Je as f,_b as e,bd as c,jc as l,mb as m,ta as r,xb as s}from"./chunk-4BZUNPAS.js";var T=(()=>{class t{pageTitle=c();_router=r(g);backPage(){this._router.navigate(["/home"])}closePage(){this._router.navigate(["/dashboard"])}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=s({type:t,selectors:[["page-header"]],inputs:{pageTitle:[1,"pageTitle"]},decls:10,vars:1,consts:[[1,"fullpage-header"],[1,"fullpage-header-title"],[1,"dialog-close-icon"],["mat-icon-button","",3,"click"]],template:function(a,o){a&1&&(e(0,"div",0)(1,"h6",1),i(2),n(),e(3,"div",2)(4,"button",3),l("click",function(){return o.backPage()}),e(5,"mat-icon"),i(6,"arrow_back_ios"),n()(),e(7,"button",3),l("click",function(){return o.closePage()}),e(8,"mat-icon"),i(9,"close"),n()()()()),a&2&&(m(2),d(o.pageTitle()))},dependencies:[f,h,u,p],styles:[".fullpage-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.fullpage-header-title[_ngcontent-%COMP%]{margin-block-start:0px;margin-block-end:0px;padding:18px 24px 13px;color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, .87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, .03125em))}.dialog-close-icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;gap:5px;padding-right:15px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:max-content}"]})}return t})();export{T as a};
@@ -0,0 +1 @@
1
+ import{a as c}from"./chunk-KH2LYQ34.js";import{a as g}from"./chunk-B2TLSQTS.js";import"./chunk-JRXB4H3R.js";import{g as a,i as r,w as l}from"./chunk-IQFEZZ5Q.js";import{ta as t,xb as s}from"./chunk-4BZUNPAS.js";var v=(()=>{class o{dialog=t(l);auth=t(a);appService=t(g);appSettingsService=t(r);connectionConfig=null;ngOnInit(){this.connectionConfig=this.appSettingsService.getConnectionConfig(),this.openUserCredentialModal("Sign in failed: Incorrect user/password. Enter valide credentials or access the Confifuration/Settings menu, validate the server URL or/and disable the user Sign in option")}openUserCredentialModal(e){this.dialog.open(c,{disableClose:!0,data:{user:this.connectionConfig.loginName,password:this.connectionConfig.loginPassword,error:e}}).afterClosed().subscribe(i=>{i===void 0||!i||(this.connectionConfig.loginName=i.user,this.connectionConfig.loginPassword=i.password,this.appSettingsService.setConnectionConfig(this.connectionConfig),this.serverLogin())})}serverLogin(e){this.auth.login({usr:this.connectionConfig.loginName,pwd:this.connectionConfig.loginPassword,newUrl:e}).then(()=>{this.appSettingsService.reloadApp()}).catch(n=>{n.status==401?(this.openUserCredentialModal("Sign in failed: Invalide user/password. Enter valide credentials"),console.log("[Setting-SignalK Component] Sign in failed: "+n.error.message)):n.status==404?(this.appService.sendSnackbarNotification("Sign in failed: Login API not found at URL. See connection detail status in Configuration/Settings",5e3,!1),console.log("[Setting-SignalK Component] Sign in failed: "+n.error.message)):n.status==0?(this.appService.sendSnackbarNotification("Sign in failed: Cannot reach server at Signal K URL. See connection detail status in Configuration/Settings",5e3,!1),console.log("[Setting-SignalK Component] Sign in failed: Cannot reach server at Signal K URL:"+n.message)):(this.appService.sendSnackbarNotification("Unknown authentication failure: "+JSON.stringify(n),5e3,!1),console.log("[Setting-SignalK Component] Unknown login error response: "+JSON.stringify(n)))})}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=s({type:o,selectors:[["app-widget-login"]],decls:0,vars:0,template:function(n,i){},encapsulation:2})}return o})();export{v as WidgetLoginComponent};
@@ -0,0 +1 @@
1
+ import{a,b}from"./chunk-3PHQNZHK.js";import"./chunk-L4UIO6KZ.js";import"./chunk-4TXMPFLE.js";import"./chunk-WQ6UD7J4.js";import"./chunk-AWECVMCK.js";import"./chunk-FI56NUZD.js";import"./chunk-JRXB4H3R.js";import"./chunk-IQFEZZ5Q.js";import"./chunk-4BZUNPAS.js";export{a as SettingsDatasetsComponent,b as SettingsDatasetsModalComponent};
@@ -0,0 +1,2 @@
1
+ import{$a as ye,$c as Ue,A as T,Ea as f,Fb as be,Fd as Ve,G as fe,Ga as y,Gd as $e,Hb as w,Hd as Ge,Id as We,Kb as Oe,Lb as j,Ld as Ye,M as he,Mb as B,Nb as Q,Qa as _e,R as pe,Sa as Se,Sb as Ne,Ta as K,Ua as Ee,Va as O,W as me,Xa as X,Ya as J,Za as R,_a as D,a as q,ab as Ie,bb as we,ca as ge,cb as Me,db as Ce,eb as Te,fb as Re,g as ue,gb as p,hd as xe,ia as k,id as ke,jd as je,la as m,ma as g,mc as Le,nb as N,nc as Fe,nd as A,oa as h,od as Be,pa as b,pb as De,pd as ze,ra as E,sa as c,t as C,ta as v,u as de,ue as ee,wa as ve,xb as Ae,xc as Pe,yb as L,zc as He}from"./chunk-4BZUNPAS.js";var $=new E(""),se=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(n=>{n.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,n,s){return this._findPluginFor(t).addEventListener(e,t,n,s)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new m(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||r)(c($),c(w))};static \u0275prov=h({token:r,factory:r.\u0275fac})}return r})(),F=class{_doc;constructor(o){this._doc=o}manager},te="ng-app-id";function Ze(r){for(let o of r)o.remove()}function qe(r,o){let e=o.createElement("style");return e.textContent=r,e}function lt(r,o,e,t){let n=r.head?.querySelectorAll(`style[${te}="${o}"],link[${te}="${o}"]`);if(n)for(let s of n)s.removeAttribute(te),s instanceof HTMLLinkElement?t.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]})}function re(r,o){let e=o.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var ie=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,n,s={}){this.doc=e,this.appId=t,this.nonce=n,lt(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let n of e)this.addUsage(n,this.inline,qe);t?.forEach(n=>this.addUsage(n,this.external,re))}removeStyles(e,t){for(let n of e)this.removeUsage(n,this.inline);t?.forEach(n=>this.removeUsage(n,this.external))}addUsage(e,t,n){let s=t.get(e);s?s.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,n(e,this.doc)))})}removeUsage(e,t){let n=t.get(e);n&&(n.usage--,n.usage<=0&&(Ze(n.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Ze(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:n}]of this.inline)n.push(this.addElement(e,qe(t,this.doc)));for(let[t,{elements:n}]of this.external)n.push(this.addElement(e,re(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),e.appendChild(t)}static \u0275fac=function(t){return new(t||r)(c(f),c(K),c(X,8),c(O))};static \u0275prov=h({token:r,factory:r.\u0275fac})}return r})(),ne={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"},ae=/%COMP%/g;var Xe="%COMP%",ut=`_nghost-${Xe}`,dt=`_ngcontent-${Xe}`,ft=!0,ht=new E("",{providedIn:"root",factory:()=>ft});function pt(r){return dt.replace(ae,r)}function mt(r){return ut.replace(ae,r)}function Je(r,o){return o.map(e=>e.replace(ae,r))}var ce=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,n,s,i,a,l,u=null,d=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=a,this.ngZone=l,this.nonce=u,this.tracingService=d,this.platformIsServer=!1,this.defaultRenderer=new P(e,i,l,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let n=this.getOrCreateRenderer(e,t);return n instanceof z?n.applyToHost(e):n instanceof H&&n.applyStyles(),n}getOrCreateRenderer(e,t){let n=this.rendererByCompId,s=n.get(t.id);if(!s){let i=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,I=this.platformIsServer,S=this.tracingService;switch(t.encapsulation){case J.Emulated:s=new z(l,u,t,this.appId,d,i,a,I,S);break;case J.ShadowDom:return new oe(l,u,e,t,i,a,this.nonce,I,S);default:s=new H(l,u,t,d,i,a,I,S);break}n.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||r)(c(se),c(ie),c(K),c(ht),c(f),c(O),c(w),c(X),c(be,8))};static \u0275prov=h({token:r,factory:r.\u0275fac})}return r})(),P=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(o,e,t,n,s){this.eventManager=o,this.doc=e,this.ngZone=t,this.platformIsServer=n,this.tracingService=s}destroy(){}destroyNode=null;createElement(o,e){return e?this.doc.createElementNS(ne[e]||e,o):this.doc.createElement(o)}createComment(o){return this.doc.createComment(o)}createText(o){return this.doc.createTextNode(o)}appendChild(o,e){(Ke(o)?o.content:o).appendChild(e)}insertBefore(o,e,t){o&&(Ke(o)?o.content:o).insertBefore(e,t)}removeChild(o,e){e.remove()}selectRootElement(o,e){let t=typeof o=="string"?this.doc.querySelector(o):o;if(!t)throw new m(-5104,!1);return e||(t.textContent=""),t}parentNode(o){return o.parentNode}nextSibling(o){return o.nextSibling}setAttribute(o,e,t,n){if(n){e=n+":"+e;let s=ne[n];s?o.setAttributeNS(s,e,t):o.setAttribute(e,t)}else o.setAttribute(e,t)}removeAttribute(o,e,t){if(t){let n=ne[t];n?o.removeAttributeNS(n,e):o.removeAttribute(`${t}:${e}`)}else o.removeAttribute(e)}addClass(o,e){o.classList.add(e)}removeClass(o,e){o.classList.remove(e)}setStyle(o,e,t,n){n&(N.DashCase|N.Important)?o.style.setProperty(e,t,n&N.Important?"important":""):o.style[e]=t}removeStyle(o,e,t){t&N.DashCase?o.style.removeProperty(e):o.style[e]=""}setProperty(o,e,t){o!=null&&(o[e]=t)}setValue(o,e){o.nodeValue=e}listen(o,e,t,n){if(typeof o=="string"&&(o=A().getGlobalEventTarget(this.doc,o),!o))throw new m(5102,!1);let s=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(s=this.tracingService.wrapEventListener(o,e,s)),this.eventManager.addEventListener(o,e,s,n)}decoratePreventDefault(o){return e=>{if(e==="__ngUnwrap__")return o;o(e)===!1&&e.preventDefault()}}};function Ke(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var oe=class extends P{sharedStylesHost;hostEl;shadowRoot;constructor(o,e,t,n,s,i,a,l,u){super(o,s,i,l,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=n.styles;d=Je(n.id,d);for(let S of d){let M=document.createElement("style");a&&M.setAttribute("nonce",a),M.textContent=S,this.shadowRoot.appendChild(M)}let I=n.getExternalStyles?.();if(I)for(let S of I){let M=re(S,s);a&&M.setAttribute("nonce",a),this.shadowRoot.appendChild(M)}}nodeOrShadowRoot(o){return o===this.hostEl?this.shadowRoot:o}appendChild(o,e){return super.appendChild(this.nodeOrShadowRoot(o),e)}insertBefore(o,e,t){return super.insertBefore(this.nodeOrShadowRoot(o),e,t)}removeChild(o,e){return super.removeChild(null,e)}parentNode(o){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(o)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},H=class extends P{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(o,e,t,n,s,i,a,l,u){super(o,s,i,a,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=n;let d=t.styles;this.styles=u?Je(u,d):d,this.styleUrls=t.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},z=class extends H{contentAttr;hostAttr;constructor(o,e,t,n,s,i,a,l,u){let d=n+"-"+t.id;super(o,e,t,s,i,a,l,u,d),this.contentAttr=pt(d),this.hostAttr=mt(d)}applyToHost(o){this.applyStyles(),this.setAttribute(o,this.hostAttr,"")}createElement(o,e){let t=super.createElement(o,e);return super.setAttribute(t,this.contentAttr,""),t}};var G=class r extends ze{supportsDOMEvents=!0;static makeCurrent(){Be(new r)}onAndCancel(o,e,t,n){return o.addEventListener(e,t,n),()=>{o.removeEventListener(e,t,n)}}dispatchEvent(o,e){o.dispatchEvent(e)}remove(o){o.remove()}createElement(o,e){return e=e||this.getDefaultDocument(),e.createElement(o)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(o){return o.nodeType===Node.ELEMENT_NODE}isShadowRoot(o){return o instanceof DocumentFragment}getGlobalEventTarget(o,e){return e==="window"?window:e==="document"?o:e==="body"?o.body:null}getBaseHref(o){let e=gt();return e==null?null:vt(e)}resetBaseElement(){U=null}getUserAgent(){return window.navigator.userAgent}getCookie(o){return $e(document.cookie,o)}},U=null;function gt(){return U=U||document.head.querySelector("base"),U?U.getAttribute("href"):null}function vt(r){return new URL(r,document.baseURI).pathname}var W=class{addToWindow(o){g.getAngularTestability=(t,n=!0)=>{let s=o.findTestabilityInTree(t,n);if(s==null)throw new m(5103,!1);return s},g.getAllAngularTestabilities=()=>o.getAllTestabilities(),g.getAllAngularRootElements=()=>o.getAllRootElements();let e=t=>{let n=g.getAllAngularTestabilities(),s=n.length,i=function(){s--,s==0&&t()};n.forEach(a=>{a.whenStable(i)})};g.frameworkStabilizers||(g.frameworkStabilizers=[]),g.frameworkStabilizers.push(e)}findTestabilityInTree(o,e,t){if(e==null)return null;let n=o.getTestability(e);return n??(t?A().isShadowRoot(e)?this.findTestabilityInTree(o,e.host,!0):this.findTestabilityInTree(o,e.parentElement,!0):null)}},_t=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||r)};static \u0275prov=h({token:r,factory:r.\u0275fac})}return r})(),et=(()=>{class r extends F{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n,s){return e.addEventListener(t,n,s),()=>this.removeEventListener(e,t,n,s)}removeEventListener(e,t,n,s){return e.removeEventListener(t,n,s)}static \u0275fac=function(t){return new(t||r)(c(f))};static \u0275prov=h({token:r,factory:r.\u0275fac})}return r})(),Qe=["alt","control","meta","shift"],St={"\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"},Et={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},tt=(()=>{class r extends F{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,n,s){let i=r.parseEventName(t),a=r.eventCallback(i.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>A().onAndCancel(e,i.domEventName,a,s))}static parseEventName(e){let t=e.toLowerCase().split("."),n=t.shift();if(t.length===0||!(n==="keydown"||n==="keyup"))return null;let s=r._normalizeKey(t.pop()),i="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),i="code."),Qe.forEach(u=>{let d=t.indexOf(u);d>-1&&(t.splice(d,1),i+=u+".")}),i+=s,t.length!=0||s.length===0)return null;let l={};return l.domEventName=n,l.fullKey=i,l}static matchEventFullKeyCode(e,t){let n=St[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(n=e.code,s="code."),n==null||!n?!1:(n=n.toLowerCase(),n===" "?n="space":n==="."&&(n="dot"),Qe.forEach(i=>{if(i!==n){let a=Et[i];a(e)&&(s+=i+".")}}),s+=n,s===t)}static eventCallback(e,t,n){return s=>{r.matchEventFullKeyCode(s,e)&&n.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||r)(c(f))};static \u0275prov=h({token:r,factory:r.\u0275fac})}return r})();function yt(r,o){let e=q({rootComponent:r},It(o));return ke(e)}function It(r){return{appProviders:[...nt,...r?.providers??[]],platformProviders:Tt}}function wt(){G.makeCurrent()}function Mt(){return new y}function Ct(){return Se(document),document}var Tt=[{provide:O,useValue:We},{provide:Ee,useValue:wt,multi:!0},{provide:f,useFactory:Ct}];var Rt=[{provide:j,useClass:W},{provide:Oe,useClass:B,deps:[w,Q,j]},{provide:B,useClass:B,deps:[w,Q,j]}],nt=[{provide:ve,useValue:"root"},{provide:y,useFactory:Mt},{provide:$,useClass:et,multi:!0,deps:[f]},{provide:$,useClass:tt,multi:!0,deps:[f]},ce,ie,se,{provide:De,useExisting:ce},{provide:Ge,useClass:_t},[]],Dt=(()=>{class r{constructor(){}static \u0275fac=function(t){return new(t||r)};static \u0275mod=L({type:r});static \u0275inj=b({providers:[...nt,...Rt],imports:[Ve,xe]})}return r})();var bn=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||r)(c(f))};static \u0275prov=h({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var le=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=h({token:r,factory:function(t){let n=null;return t?n=new(t||r):n=c(Ot),n},providedIn:"root"})}return r})(),Ot=(()=>{class r extends le{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case p.NONE:return t;case p.HTML:return D(t,"HTML")?R(t):Re(this._doc,String(t)).toString();case p.STYLE:return D(t,"Style")?R(t):t;case p.SCRIPT:if(D(t,"Script"))return R(t);throw new m(5200,!1);case p.URL:return D(t,"URL")?R(t):Te(String(t));case p.RESOURCE_URL:if(D(t,"ResourceURL"))return R(t);throw new m(5201,!1);default:throw new m(5202,!1)}}bypassSecurityTrustHtml(e){return ye(e)}bypassSecurityTrustStyle(e){return Ie(e)}bypassSecurityTrustScript(e){return we(e)}bypassSecurityTrustUrl(e){return Me(e)}bypassSecurityTrustResourceUrl(e){return Ce(e)}static \u0275fac=function(t){return new(t||r)(c(f))};static \u0275prov=h({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Y;function Lt(){if(Y===void 0&&(Y=null,typeof window<"u")){let r=window;r.trustedTypes!==void 0&&(Y=r.trustedTypes.createPolicy("angular#components",{createHTML:o=>o}))}return Y}function x(r){return Lt()?.createHTML(r)||r}function rt(r){return Error(`Unable to find icon with the name "${r}"`)}function Ft(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function ot(r){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${r}".`)}function st(r){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${r}".`)}var _=class{url;svgText;options;svgElement;constructor(o,e,t){this.url=o,this.svgText=e,this.options=t}},at=(()=>{class r{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,t,n,s){this._httpClient=e,this._sanitizer=t,this._errorHandler=s,this._document=n}addSvgIcon(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}addSvgIconLiteral(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}addSvgIconInNamespace(e,t,n,s){return this._addSvgIconConfig(e,t,new _(n,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,n,s){let i=this._sanitizer.sanitize(p.HTML,n);if(!i)throw st(n);let a=x(i);return this._addSvgIconConfig(e,t,new _("",a,s))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,n){return this._addSvgIconSetConfig(e,new _(t,null,n))}addSvgIconSetLiteralInNamespace(e,t,n){let s=this._sanitizer.sanitize(p.HTML,t);if(!s)throw st(t);let i=x(s);return this._addSvgIconSetConfig(e,new _("",i,n))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let t=this._sanitizer.sanitize(p.RESOURCE_URL,e);if(!t)throw ot(e);let n=this._cachedIconsByUrl.get(t);return n?C(Z(n)):this._loadSvgIconFromConfig(new _(e,null)).pipe(k(s=>this._cachedIconsByUrl.set(t,s)),T(s=>Z(s)))}getNamedSvgIcon(e,t=""){let n=it(t,e),s=this._svgIconConfigs.get(n);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(t,e),s)return this._svgIconConfigs.set(n,s),this._getSvgFromConfig(s);let i=this._iconSetConfigs.get(t);return i?this._getSvgFromIconSetConfigs(e,i):de(rt(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?C(Z(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(T(t=>Z(t)))}_getSvgFromIconSetConfigs(e,t){let n=this._extractIconWithNameFromAnySet(e,t);if(n)return C(n);let s=t.filter(i=>!i.svgText).map(i=>this._loadSvgIconSetFromConfig(i).pipe(he(a=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(p.RESOURCE_URL,i.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(u)),C(null)})));return fe(s).pipe(T(()=>{let i=this._extractIconWithNameFromAnySet(e,t);if(!i)throw rt(e);return i}))}_extractIconWithNameFromAnySet(e,t){for(let n=t.length-1;n>=0;n--){let s=t[n];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){let i=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(i,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(k(t=>e.svgText=t),T(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?C(null):this._fetchIcon(e).pipe(k(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,n){let s=e.querySelector(`[id="${t}"]`);if(!s)return null;let i=s.cloneNode(!0);if(i.removeAttribute("id"),i.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(i,n);if(i.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(i),n);let a=this._svgElementFromString(x("<svg></svg>"));return a.appendChild(i),this._setSvgAttributes(a,n)}_svgElementFromString(e){let t=this._document.createElement("DIV");t.innerHTML=e;let n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(e){let t=this._svgElementFromString(x("<svg></svg>")),n=e.attributes;for(let s=0;s<n.length;s++){let{name:i,value:a}=n[s];i!=="id"&&t.setAttribute(i,a)}for(let s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[s].cloneNode(!0));return t}_setSvgAttributes(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}_fetchIcon(e){let{url:t,options:n}=e,s=n?.withCredentials??!1;if(!this._httpClient)throw Ft();if(t==null)throw Error(`Cannot fetch icon from URL "${t}".`);let i=this._sanitizer.sanitize(p.RESOURCE_URL,t);if(!i)throw ot(t);let a=this._inProgressUrlFetches.get(i);if(a)return a;let l=this._httpClient.get(i,{responseType:"text",withCredentials:s}).pipe(T(u=>x(u)),me(()=>this._inProgressUrlFetches.delete(i)),ge());return this._inProgressUrlFetches.set(i,l),l}_addSvgIconConfig(e,t,n){return this._svgIconConfigs.set(it(e,t),n),this}_addSvgIconSetConfig(e,t){let n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){let t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let n=0;n<this._resolvers.length;n++){let s=this._resolvers[n](t,e);if(s)return Pt(s)?new _(s.url,null,s.options):new _(s,null)}}static \u0275fac=function(t){return new(t||r)(c(Ye,8),c(le),c(f,8),c(y))};static \u0275prov=h({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Z(r){return r.cloneNode(!0)}function it(r,o){return r+":"+o}function Pt(r){return!!(r.url&&r.options)}var Ht=["*"],Ut=new E("MAT_ICON_DEFAULT_OPTIONS"),xt=new E("mat-icon-location",{providedIn:"root",factory:kt});function kt(){let r=v(f),o=r?r.location:null;return{getPathname:()=>o?o.pathname+o.search:""}}var ct=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],jt=ct.map(r=>`[${r}]`).join(", "),Bt=/^url\(['"]?#(.*?)['"]?\)$/,Kn=(()=>{class r{_elementRef=v(_e);_iconRegistry=v(at);_location=v(xt);_errorHandler=v(y);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=ue.EMPTY;constructor(){let e=v(new Ue("aria-hidden"),{optional:!0}),t=v(Ut,{optional:!0});t&&(t.color&&(this.color=this._defaultColor=t.color),t.fontSet&&(this.fontSet=t.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){let n=e.childNodes[t];(n.nodeType!==1||n.nodeName.toLowerCase()==="svg")&&n.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(n=>n.length>0);this._previousFontSetClass.forEach(n=>e.classList.remove(n)),t.forEach(n=>e.classList.add(n)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let t=this._elementsWithExternalReferences;t&&t.forEach((n,s)=>{n.forEach(i=>{s.setAttribute(i.name,`url('${e}#${i.value}')`)})})}_cacheChildrenWithExternalReferences(e){let t=e.querySelectorAll(jt),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<t.length;s++)ct.forEach(i=>{let a=t[s],l=a.getAttribute(i),u=l?l.match(Bt):null;if(u){let d=n.get(a);d||(d=[],n.set(a,d)),d.push({name:i,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[t,n]=this._splitIconName(e);t&&(this._svgNamespace=t),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,t).pipe(pe(1)).subscribe(s=>this._setSvgElement(s),s=>{let i=`Error retrieving icon ${t}:${n}! ${s.message}`;this._errorHandler.handleError(new Error(i))})}}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=Ae({type:r,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(t,n){t&2&&(Ne("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),He(n.color?"mat-"+n.color:""),Pe("mat-icon-inline",n.inline)("mat-icon-no-color",n.color!=="primary"&&n.color!=="accent"&&n.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",je],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:Ht,decls:1,vars:0,template:function(t,n){t&1&&(Le(),Fe(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}
2
+ `],encapsulation:2,changeDetection:0})}return r})(),Xn=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=L({type:r});static \u0275inj=b({imports:[ee,ee]})}return r})();export{ce as a,yt as b,Dt as c,bn as d,le as e,at as f,Kn as g,Xn as h};