@signalk/freeboard-sk 2.24.0 → 2.24.2
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.
- package/CHANGELOG.md +19 -0
- package/assets/icons/icon-192x192.png +0 -0
- package/docs/screenshots/1_freeboard-sk.png +0 -0
- package/docs/screenshots/README.md +31 -0
- package/package.json +26 -7
- package/public/3rdpartylicenses.txt +9 -361
- package/public/chunk-2AF4T5IB.js +1 -0
- package/public/chunk-346FAZUS.js +1 -0
- package/public/{chunk-BTVNOQ7K.js → chunk-3GHIRJ3C.js} +2 -2
- package/public/chunk-4SHFYAXK.js +1 -0
- package/public/{chunk-2LV2AYBP.js → chunk-64QDJX7X.js} +1 -1
- package/public/chunk-A4TULHTL.js +1 -0
- package/public/chunk-AEB5DG3B.js +1 -0
- package/public/chunk-AFVK3UQJ.js +5482 -0
- package/public/chunk-AX3UMUXB.js +1 -0
- package/public/{chunk-TLBNKF2R.js → chunk-EFVTFEXB.js} +1 -1
- package/public/chunk-FALIRPMH.js +1035 -0
- package/public/{chunk-A7QJNGJ7.js → chunk-FEIJMPL7.js} +2 -2
- package/public/chunk-G4GM24WE.js +1 -0
- package/public/{chunk-DPEXDGKO.js → chunk-GQXHMDKV.js} +1 -1
- package/public/chunk-KFWFMRV7.js +1 -0
- package/public/chunk-LXUTMJYP.js +1145 -0
- package/public/chunk-NTIQMWPW.js +2718 -0
- package/public/chunk-QIOZNURQ.js +1 -0
- package/public/chunk-RWJHAOI2.js +1 -0
- package/public/chunk-SBFXQ3G7.js +1 -0
- package/public/chunk-TAJAMNLU.js +1 -0
- package/public/chunk-UEUVGTXJ.js +1 -0
- package/public/{chunk-WUXY5N7A.js → chunk-WA2ENVQZ.js} +1 -1
- package/public/index.html +2 -2
- package/public/main-AZEF35BN.js +466 -0
- package/public/polyfills-RV3JTMEC.js +2 -0
- package/public/styles-FMJMFQ5P.css +1 -0
- package/public/worker-AUTVLQL7.js +3 -0
- package/public/worker-FRXPLBUO.js +12 -0
- package/public/worker-T4RJR7DG.js +12 -0
- package/public/worker-Y35X2QU7.js +26 -0
- package/public/chunk-3MOH2GUU.js +0 -1
- package/public/chunk-3ZBG3EOD.js +0 -1
- package/public/chunk-4SN3Q6K3.js +0 -1
- package/public/chunk-5KDMJ54F.js +0 -1
- package/public/chunk-67IVDHNW.js +0 -1
- package/public/chunk-AZK5ODAA.js +0 -1
- package/public/chunk-GMWUHE7S.js +0 -131
- package/public/chunk-GQRIAFM6.js +0 -1
- package/public/chunk-HQSHA6SH.js +0 -13
- package/public/chunk-LXWUCH7T.js +0 -1
- package/public/chunk-QPQHN5VS.js +0 -22
- package/public/chunk-RBFFWNLA.js +0 -1
- package/public/chunk-TQPGRJVE.js +0 -19
- package/public/chunk-V3DD3MHN.js +0 -1
- package/public/chunk-Y6FV7FIU.js +0 -1
- package/public/chunk-YPACWLLV.js +0 -1
- package/public/chunk-YUTPR5Z4.js +0 -1
- package/public/main-SF5NH7GR.js +0 -11
- package/public/polyfills-5CFQRCPP.js +0 -2
- package/public/styles-N7HVRSAT.css +0 -1
- package/public/worker-42LKK6ER.js +0 -26
- package/public/worker-FPJG6QKK.js +0 -5
- package/public/worker-UZNU4LIJ.js +0 -12
- package/public/worker-WYOFLVNH.js +0 -12
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
import{$ as Zi,B as ct,Ba as gn,C as Ii,Ca as Cn,D as Mi,Da as bn,E as Ri,F as Di,Ga as vn,H as Li,Ha as wn,I as Pi,Ia as xn,Ja as yn,K as Vi,Ka as En,L as Oi,La as Tn,M as Fi,Ma as Sn,N as Ni,O as $i,S as Bi,T as qi,U as Ui,V as Gi,W as zi,X as ji,Y as Wi,Z as Hi,_ as Xi,a as ci,aa as Ki,b as fi,ba as Qi,ca as Yi,d as hi,da as Ji,ea as en,f as gi,h as Ci,i as bi,ia as tn,j as vi,ja as nn,k as wi,ka as on,l as xi,m as Ei,n as Ti,o as Si,oa as an,pa as rn,qa as sn,ra as ln,sa as cn,ta as pn,ua as dn,va as un,w as Ai,wa as mn,x as lt,xa as _n,y as ki,ya as fn,za as hn}from"./chunk-AFVK3UQJ.js";import"./chunk-LXUTMJYP.js";import{e as yi}from"./chunk-FALIRPMH.js";import{$c as ai,Aa as h,B as Ye,Ca as qt,D as G,Da as nt,Db as Ut,Ea as ot,Ec as ti,Fa as w,Fd as pi,Ga as r,H as xe,Ha as s,I as Je,Ia as v,Ic as ii,Jd as di,K as E,Kd as ui,L as u,M as m,Mb as Gt,Md as mi,Nd as _i,Ob as ke,P as et,Pa as y,Q as ye,Qb as Ie,Ra as _,S as Ee,T as re,Ta as l,Tb as zt,Tc as ni,U as N,Ua as te,V as se,Va as U,Vc as oi,Wa as at,X as Te,Xa as fe,Ya as Z,Yb as jt,Z as le,Za as K,Zb as Wt,_ as Ft,_c as De,ac as Ht,ba as Nt,bb as he,bc as Xt,c as Y,ca as $t,cb as ie,cc as Zt,cd as ri,db as H,dc as Me,ea as c,fa as tt,gb as p,gd as oe,hb as J,hc as Kt,ia as Se,ib as ne,j as Ke,jc as rt,kd as Le,lc as Qt,ma as q,na as Ae,nc as Re,oa as Bt,pc as Yt,q as Pt,qa as _e,qc as pe,r as me,rb as ce,rc as Jt,rd as si,sa as z,ub as Q,uc as st,ud as li,v as Vt,va as j,w as Ot,wa as W,wc as ei,x as Qe,ya as it,za as f}from"./chunk-NTIQMWPW.js";import{c as A,e as Aa,f as F}from"./chunk-EQVTEUXC.js";var de=A((fd,Ln)=>{"use strict";var Ga="2.0.0",za=Number.MAX_SAFE_INTEGER||9007199254740991,ja=16,Wa=250,Ha=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Ln.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ja,MAX_SAFE_BUILD_LENGTH:Wa,MAX_SAFE_INTEGER:za,RELEASE_TYPES:Ha,SEMVER_SPEC_VERSION:Ga,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ge=A((hd,Pn)=>{"use strict";var Xa=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Pn.exports=Xa});var ue=A((X,Vn)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:_t,MAX_SAFE_BUILD_LENGTH:Za,MAX_LENGTH:Ka}=de(),Qa=ge();X=Vn.exports={};var Ya=X.re=[],Ja=X.safeRe=[],C=X.src=[],er=X.safeSrc=[],b=X.t={},tr=0,ft="[a-zA-Z0-9-]",ir=[["\\s",1],["\\d",Ka],[ft,Za]],nr=i=>{for(let[t,e]of ir)i=i.split(`${t}*`).join(`${t}{0,${e}}`).split(`${t}+`).join(`${t}{1,${e}}`);return i},k=(i,t,e)=>{let n=nr(t),o=tr++;Qa(i,o,t),b[i]=o,C[o]=t,er[o]=n,Ya[o]=new RegExp(t,e?"g":void 0),Ja[o]=new RegExp(n,e?"g":void 0)};k("NUMERICIDENTIFIER","0|[1-9]\\d*");k("NUMERICIDENTIFIERLOOSE","\\d+");k("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${ft}*`);k("MAINVERSION",`(${C[b.NUMERICIDENTIFIER]})\\.(${C[b.NUMERICIDENTIFIER]})\\.(${C[b.NUMERICIDENTIFIER]})`);k("MAINVERSIONLOOSE",`(${C[b.NUMERICIDENTIFIERLOOSE]})\\.(${C[b.NUMERICIDENTIFIERLOOSE]})\\.(${C[b.NUMERICIDENTIFIERLOOSE]})`);k("PRERELEASEIDENTIFIER",`(?:${C[b.NONNUMERICIDENTIFIER]}|${C[b.NUMERICIDENTIFIER]})`);k("PRERELEASEIDENTIFIERLOOSE",`(?:${C[b.NONNUMERICIDENTIFIER]}|${C[b.NUMERICIDENTIFIERLOOSE]})`);k("PRERELEASE",`(?:-(${C[b.PRERELEASEIDENTIFIER]}(?:\\.${C[b.PRERELEASEIDENTIFIER]})*))`);k("PRERELEASELOOSE",`(?:-?(${C[b.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${C[b.PRERELEASEIDENTIFIERLOOSE]})*))`);k("BUILDIDENTIFIER",`${ft}+`);k("BUILD",`(?:\\+(${C[b.BUILDIDENTIFIER]}(?:\\.${C[b.BUILDIDENTIFIER]})*))`);k("FULLPLAIN",`v?${C[b.MAINVERSION]}${C[b.PRERELEASE]}?${C[b.BUILD]}?`);k("FULL",`^${C[b.FULLPLAIN]}$`);k("LOOSEPLAIN",`[v=\\s]*${C[b.MAINVERSIONLOOSE]}${C[b.PRERELEASELOOSE]}?${C[b.BUILD]}?`);k("LOOSE",`^${C[b.LOOSEPLAIN]}$`);k("GTLT","((?:<|>)?=?)");k("XRANGEIDENTIFIERLOOSE",`${C[b.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);k("XRANGEIDENTIFIER",`${C[b.NUMERICIDENTIFIER]}|x|X|\\*`);k("XRANGEPLAIN",`[v=\\s]*(${C[b.XRANGEIDENTIFIER]})(?:\\.(${C[b.XRANGEIDENTIFIER]})(?:\\.(${C[b.XRANGEIDENTIFIER]})(?:${C[b.PRERELEASE]})?${C[b.BUILD]}?)?)?`);k("XRANGEPLAINLOOSE",`[v=\\s]*(${C[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${C[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${C[b.XRANGEIDENTIFIERLOOSE]})(?:${C[b.PRERELEASELOOSE]})?${C[b.BUILD]}?)?)?`);k("XRANGE",`^${C[b.GTLT]}\\s*${C[b.XRANGEPLAIN]}$`);k("XRANGELOOSE",`^${C[b.GTLT]}\\s*${C[b.XRANGEPLAINLOOSE]}$`);k("COERCEPLAIN",`(^|[^\\d])(\\d{1,${_t}})(?:\\.(\\d{1,${_t}}))?(?:\\.(\\d{1,${_t}}))?`);k("COERCE",`${C[b.COERCEPLAIN]}(?:$|[^\\d])`);k("COERCEFULL",C[b.COERCEPLAIN]+`(?:${C[b.PRERELEASE]})?(?:${C[b.BUILD]})?(?:$|[^\\d])`);k("COERCERTL",C[b.COERCE],!0);k("COERCERTLFULL",C[b.COERCEFULL],!0);k("LONETILDE","(?:~>?)");k("TILDETRIM",`(\\s*)${C[b.LONETILDE]}\\s+`,!0);X.tildeTrimReplace="$1~";k("TILDE",`^${C[b.LONETILDE]}${C[b.XRANGEPLAIN]}$`);k("TILDELOOSE",`^${C[b.LONETILDE]}${C[b.XRANGEPLAINLOOSE]}$`);k("LONECARET","(?:\\^)");k("CARETTRIM",`(\\s*)${C[b.LONECARET]}\\s+`,!0);X.caretTrimReplace="$1^";k("CARET",`^${C[b.LONECARET]}${C[b.XRANGEPLAIN]}$`);k("CARETLOOSE",`^${C[b.LONECARET]}${C[b.XRANGEPLAINLOOSE]}$`);k("COMPARATORLOOSE",`^${C[b.GTLT]}\\s*(${C[b.LOOSEPLAIN]})$|^$`);k("COMPARATOR",`^${C[b.GTLT]}\\s*(${C[b.FULLPLAIN]})$|^$`);k("COMPARATORTRIM",`(\\s*)${C[b.GTLT]}\\s*(${C[b.LOOSEPLAIN]}|${C[b.XRANGEPLAIN]})`,!0);X.comparatorTrimReplace="$1$2$3";k("HYPHENRANGE",`^\\s*(${C[b.XRANGEPLAIN]})\\s+-\\s+(${C[b.XRANGEPLAIN]})\\s*$`);k("HYPHENRANGELOOSE",`^\\s*(${C[b.XRANGEPLAINLOOSE]})\\s+-\\s+(${C[b.XRANGEPLAINLOOSE]})\\s*$`);k("STAR","(<|>)?=?\\s*\\*");k("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");k("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Fe=A((gd,On)=>{"use strict";var or=Object.freeze({loose:!0}),ar=Object.freeze({}),rr=i=>i?typeof i!="object"?or:i:ar;On.exports=rr});var ht=A((Cd,$n)=>{"use strict";var Fn=/^[0-9]+$/,Nn=(i,t)=>{if(typeof i=="number"&&typeof t=="number")return i===t?0:i<t?-1:1;let e=Fn.test(i),n=Fn.test(t);return e&&n&&(i=+i,t=+t),i===t?0:e&&!n?-1:n&&!e?1:i<t?-1:1},sr=(i,t)=>Nn(t,i);$n.exports={compareIdentifiers:Nn,rcompareIdentifiers:sr}});var L=A((bd,qn)=>{"use strict";var Ne=ge(),{MAX_LENGTH:Bn,MAX_SAFE_INTEGER:$e}=de(),{safeRe:Be,t:qe}=ue(),lr=Fe(),{compareIdentifiers:gt}=ht(),cr=(i,t)=>{let e=t.split(".");if(e.length>i.length)return!1;for(let n=0;n<e.length;n++)if(gt(i[n],e[n])!==0)return!1;return!0},Ct=class i{constructor(t,e){if(e=lr(e),t instanceof i){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Bn)throw new TypeError(`version is longer than ${Bn} characters`);Ne("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;let n=t.trim().match(e.loose?Be[qe.LOOSE]:Be[qe.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>$e||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$e||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$e||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let a=+o;if(a>=0&&a<$e)return a}return o}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Ne("SemVer.compare",this.version,this.options,t),!(t instanceof i)){if(typeof t=="string"&&t===this.version)return 0;t=new i(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof i||(t=new i(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof i||(t=new i(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{let n=this.prerelease[e],o=t.prerelease[e];if(Ne("prerelease compare",e,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return gt(n,o)}while(++e)}compareBuild(t){t instanceof i||(t=new i(t,this.options));let e=0;do{let n=this.build[e],o=t.build[e];if(Ne("build compare",e,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return gt(n,o)}while(++e)}inc(t,e,n){if(t.startsWith("pre")){if(!e&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(e){let o=`-${e}`.match(this.options.loose?Be[qe.PRERELEASELOOSE]:Be[qe.PRERELEASE]);if(!o||o[1]!==e)throw new Error(`invalid identifier: ${e}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,n),this.inc("pre",e,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",e,n),this.inc("pre",e,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let o=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(e===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(e){let a=[e,o];if(n===!1&&(a=[e]),cr(this.prerelease,e)){let d=this.prerelease[e.split(".").length];isNaN(d)&&(this.prerelease=a)}else this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};qn.exports=Ct});var ee=A((vd,Gn)=>{"use strict";var Un=L(),pr=(i,t,e=!1)=>{if(i instanceof Un)return i;try{return new Un(i,t)}catch(n){if(!e)return null;throw n}};Gn.exports=pr});var jn=A((wd,zn)=>{"use strict";var dr=ee(),ur=(i,t)=>{let e=dr(i,t);return e?e.version:null};zn.exports=ur});var Hn=A((xd,Wn)=>{"use strict";var mr=ee(),_r=(i,t)=>{let e=mr(i.trim().replace(/^[=v]+/,""),t);return e?e.version:null};Wn.exports=_r});var Kn=A((yd,Zn)=>{"use strict";var Xn=L(),fr=(i,t,e,n,o)=>{typeof e=="string"&&(o=n,n=e,e=void 0);try{return new Xn(i instanceof Xn?i.version:i,e).inc(t,n,o).version}catch(a){return null}};Zn.exports=fr});var Jn=A((Ed,Yn)=>{"use strict";var Qn=ee(),hr=(i,t)=>{let e=Qn(i,null,!0),n=Qn(t,null,!0),o=e.compare(n);if(o===0)return null;let a=o>0,d=a?e:n,g=a?n:e,x=!!d.prerelease.length;if(!!g.prerelease.length&&!x){if(!g.patch&&!g.minor)return"major";if(g.compareMain(d)===0)return g.minor&&!g.patch?"minor":"patch"}let M=x?"pre":"";return e.major!==n.major?M+"major":e.minor!==n.minor?M+"minor":e.patch!==n.patch?M+"patch":"prerelease"};Yn.exports=hr});var to=A((Td,eo)=>{"use strict";var gr=L(),Cr=(i,t)=>new gr(i,t).major;eo.exports=Cr});var no=A((Sd,io)=>{"use strict";var br=L(),vr=(i,t)=>new br(i,t).minor;io.exports=vr});var ao=A((Ad,oo)=>{"use strict";var wr=L(),xr=(i,t)=>new wr(i,t).patch;oo.exports=xr});var so=A((kd,ro)=>{"use strict";var yr=ee(),Er=(i,t)=>{let e=yr(i,t);return e&&e.prerelease.length?e.prerelease:null};ro.exports=Er});var $=A((Id,co)=>{"use strict";var lo=L(),Tr=(i,t,e)=>new lo(i,e).compare(new lo(t,e));co.exports=Tr});var uo=A((Md,po)=>{"use strict";var Sr=$(),Ar=(i,t,e)=>Sr(t,i,e);po.exports=Ar});var _o=A((Rd,mo)=>{"use strict";var kr=$(),Ir=(i,t)=>kr(i,t,!0);mo.exports=Ir});var Ue=A((Dd,ho)=>{"use strict";var fo=L(),Mr=(i,t,e)=>{let n=new fo(i,e),o=new fo(t,e);return n.compare(o)||n.compareBuild(o)};ho.exports=Mr});var Co=A((Ld,go)=>{"use strict";var Rr=Ue(),Dr=(i,t)=>i.sort((e,n)=>Rr(e,n,t));go.exports=Dr});var vo=A((Pd,bo)=>{"use strict";var Lr=Ue(),Pr=(i,t)=>i.sort((e,n)=>Lr(n,e,t));bo.exports=Pr});var Ce=A((Vd,wo)=>{"use strict";var Vr=$(),Or=(i,t,e)=>Vr(i,t,e)>0;wo.exports=Or});var Ge=A((Od,xo)=>{"use strict";var Fr=$(),Nr=(i,t,e)=>Fr(i,t,e)<0;xo.exports=Nr});var bt=A((Fd,yo)=>{"use strict";var $r=$(),Br=(i,t,e)=>$r(i,t,e)===0;yo.exports=Br});var vt=A((Nd,Eo)=>{"use strict";var qr=$(),Ur=(i,t,e)=>qr(i,t,e)!==0;Eo.exports=Ur});var ze=A(($d,To)=>{"use strict";var Gr=$(),zr=(i,t,e)=>Gr(i,t,e)>=0;To.exports=zr});var je=A((Bd,So)=>{"use strict";var jr=$(),Wr=(i,t,e)=>jr(i,t,e)<=0;So.exports=Wr});var wt=A((qd,Ao)=>{"use strict";var Hr=bt(),Xr=vt(),Zr=Ce(),Kr=ze(),Qr=Ge(),Yr=je(),Jr=(i,t,e,n)=>{switch(t){case"===":return typeof i=="object"&&(i=i.version),typeof e=="object"&&(e=e.version),i===e;case"!==":return typeof i=="object"&&(i=i.version),typeof e=="object"&&(e=e.version),i!==e;case"":case"=":case"==":return Hr(i,e,n);case"!=":return Xr(i,e,n);case">":return Zr(i,e,n);case">=":return Kr(i,e,n);case"<":return Qr(i,e,n);case"<=":return Yr(i,e,n);default:throw new TypeError(`Invalid operator: ${t}`)}};Ao.exports=Jr});var Io=A((Ud,ko)=>{"use strict";var es=L(),ts=ee(),{safeRe:We,t:He}=ue(),is=(i,t)=>{if(i instanceof es)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;t=t||{};let e=null;if(!t.rtl)e=i.match(t.includePrerelease?We[He.COERCEFULL]:We[He.COERCE]);else{let x=t.includePrerelease?We[He.COERCERTLFULL]:We[He.COERCERTL],I;for(;(I=x.exec(i))&&(!e||e.index+e[0].length!==i.length);)(!e||I.index+I[0].length!==e.index+e[0].length)&&(e=I),x.lastIndex=I.index+I[1].length+I[2].length;x.lastIndex=-1}if(e===null)return null;let n=e[2],o=e[3]||"0",a=e[4]||"0",d=t.includePrerelease&&e[5]?`-${e[5]}`:"",g=t.includePrerelease&&e[6]?`+${e[6]}`:"";return ts(`${n}.${o}.${a}${d}${g}`,t)};ko.exports=is});var Ro=A((Gd,Mo)=>{"use strict";var ns=ee(),os=de(),as=L(),rs=(i,t,e)=>{if(!os.RELEASE_TYPES.includes(t))return null;let n=ss(i,e);return n&&ls(n,t)},ss=(i,t)=>{let e=i instanceof as?i.version:i;return ns(e,t)},ls=(i,t)=>{if(cs(t))return i.version;switch(i.prerelease=[],t){case"major":i.minor=0,i.patch=0;break;case"minor":i.patch=0;break}return i.format()},cs=i=>i.startsWith("pre");Mo.exports=rs});var Lo=A((zd,Do)=>{"use strict";var xt=class{constructor(){this.max=1e3,this.map=new Map}get(t){let e=this.map.get(t);if(e!==void 0)return this.map.delete(t),this.map.set(t,e),e}delete(t){return this.map.delete(t)}set(t,e){if(!this.delete(t)&&e!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(t,e)}return this}};Do.exports=xt});var B=A((jd,Fo)=>{"use strict";var ps=/\s+/g,yt=class i{constructor(t,e){if(e=us(e),t instanceof i)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new i(t.raw,e);if(t instanceof Et)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().replace(ps," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(o=>!Vo(o[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&ws(o[0])){this.set=[o];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let e=this.set[t];for(let n=0;n<e.length;n++)n>0&&(this.formatted+=" "),this.formatted+=e[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){t=t.replace(vs,"");let n=((this.options.includePrerelease&&Cs)|(this.options.loose&&bs))+":"+t,o=Po.get(n);if(o)return o;let a=this.options.loose,d=a?V[P.HYPHENRANGELOOSE]:V[P.HYPHENRANGE];t=t.replace(d,Rs(this.options.includePrerelease)),R("hyphen replace",t),t=t.replace(V[P.COMPARATORTRIM],fs),R("comparator trim",t),t=t.replace(V[P.TILDETRIM],hs),R("tilde trim",t),t=t.replace(V[P.CARETTRIM],gs),R("caret trim",t);let g=t.split(" ").map(T=>xs(T,this.options)).join(" ").split(/\s+/).map(T=>Ms(T,this.options));a&&(g=g.filter(T=>(R("loose invalid filter",T,this.options),!!T.match(V[P.COMPARATORLOOSE])))),R("range list",g);let x=new Map,I=g.map(T=>new Et(T,this.options));for(let T of I){if(Vo(T))return[T];x.set(T.value,T)}x.size>1&&x.has("")&&x.delete("");let M=[...x.values()];return Po.set(n,M),M}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Range is required");return this.set.some(n=>Oo(n,e)&&t.set.some(o=>Oo(o,e)&&n.every(a=>o.every(d=>a.intersects(d,e)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new ms(t,this.options)}catch(e){return!1}for(let e=0;e<this.set.length;e++)if(Ds(this.set[e],t,this.options))return!0;return!1}};Fo.exports=yt;var ds=Lo(),Po=new ds,us=Fe(),Et=be(),R=ge(),ms=L(),{safeRe:V,src:_s,t:P,comparatorTrimReplace:fs,tildeTrimReplace:hs,caretTrimReplace:gs}=ue(),{FLAG_INCLUDE_PRERELEASE:Cs,FLAG_LOOSE:bs}=de(),vs=new RegExp(_s[P.BUILD],"g"),Vo=i=>i.value==="<0.0.0-0",ws=i=>i.value==="",Oo=(i,t)=>{let e=!0,n=i.slice(),o=n.pop();for(;e&&n.length;)e=n.every(a=>o.intersects(a,t)),o=n.pop();return e},xs=(i,t)=>(i=i.replace(V[P.BUILD],""),R("comp",i,t),i=Ts(i,t),R("caret",i),i=ys(i,t),R("tildes",i),i=As(i,t),R("xrange",i),i=Is(i,t),R("stars",i),i),O=i=>!i||i.toLowerCase()==="x"||i==="*",ys=(i,t)=>i.trim().split(/\s+/).map(e=>Es(e,t)).join(" "),Es=(i,t)=>{let e=t.loose?V[P.TILDELOOSE]:V[P.TILDE];return i.replace(e,(n,o,a,d,g)=>{R("tilde",i,n,o,a,d,g);let x;return O(o)?x="":O(a)?x=`>=${o}.0.0 <${+o+1}.0.0-0`:O(d)?x=`>=${o}.${a}.0 <${o}.${+a+1}.0-0`:g?(R("replaceTilde pr",g),x=`>=${o}.${a}.${d}-${g} <${o}.${+a+1}.0-0`):x=`>=${o}.${a}.${d} <${o}.${+a+1}.0-0`,R("tilde return",x),x})},Ts=(i,t)=>i.trim().split(/\s+/).map(e=>Ss(e,t)).join(" "),Ss=(i,t)=>{R("caret",i,t);let e=t.loose?V[P.CARETLOOSE]:V[P.CARET],n=t.includePrerelease?"-0":"";return i.replace(e,(o,a,d,g,x)=>{R("caret",i,o,a,d,g,x);let I;return O(a)?I="":O(d)?I=`>=${a}.0.0${n} <${+a+1}.0.0-0`:O(g)?a==="0"?I=`>=${a}.${d}.0${n} <${a}.${+d+1}.0-0`:I=`>=${a}.${d}.0${n} <${+a+1}.0.0-0`:x?(R("replaceCaret pr",x),a==="0"?d==="0"?I=`>=${a}.${d}.${g}-${x} <${a}.${d}.${+g+1}-0`:I=`>=${a}.${d}.${g}-${x} <${a}.${+d+1}.0-0`:I=`>=${a}.${d}.${g}-${x} <${+a+1}.0.0-0`):(R("no pr"),a==="0"?d==="0"?I=`>=${a}.${d}.${g}${n} <${a}.${d}.${+g+1}-0`:I=`>=${a}.${d}.${g}${n} <${a}.${+d+1}.0-0`:I=`>=${a}.${d}.${g} <${+a+1}.0.0-0`),R("caret return",I),I})},As=(i,t)=>(R("replaceXRanges",i,t),i.split(/\s+/).map(e=>ks(e,t)).join(" ")),ks=(i,t)=>{i=i.trim();let e=t.loose?V[P.XRANGELOOSE]:V[P.XRANGE];return i.replace(e,(n,o,a,d,g,x)=>{R("xRange",i,n,o,a,d,g,x);let I=O(a),M=I||O(d),T=M||O(g),D=T;return o==="="&&D&&(o=""),x=t.includePrerelease?"-0":"",I?o===">"||o==="<"?n="<0.0.0-0":n="*":o&&D?(M&&(d=0),g=0,o===">"?(o=">=",M?(a=+a+1,d=0,g=0):(d=+d+1,g=0)):o==="<="&&(o="<",M?a=+a+1:d=+d+1),o==="<"&&(x="-0"),n=`${o+a}.${d}.${g}${x}`):M?n=`>=${a}.0.0${x} <${+a+1}.0.0-0`:T&&(n=`>=${a}.${d}.0${x} <${a}.${+d+1}.0-0`),R("xRange return",n),n})},Is=(i,t)=>(R("replaceStars",i,t),i.trim().replace(V[P.STAR],"")),Ms=(i,t)=>(R("replaceGTE0",i,t),i.trim().replace(V[t.includePrerelease?P.GTE0PRE:P.GTE0],"")),Rs=i=>(t,e,n,o,a,d,g,x,I,M,T,D)=>(O(n)?e="":O(o)?e=`>=${n}.0.0${i?"-0":""}`:O(a)?e=`>=${n}.${o}.0${i?"-0":""}`:d?e=`>=${e}`:e=`>=${e}${i?"-0":""}`,O(I)?x="":O(M)?x=`<${+I+1}.0.0-0`:O(T)?x=`<${I}.${+M+1}.0-0`:D?x=`<=${I}.${M}.${T}-${D}`:i?x=`<${I}.${M}.${+T+1}-0`:x=`<=${x}`,`${e} ${x}`.trim()),Ds=(i,t,e)=>{for(let n=0;n<i.length;n++)if(!i[n].test(t))return!1;if(t.prerelease.length&&!e.includePrerelease){for(let n=0;n<i.length;n++)if(R(i[n].semver),i[n].semver!==Et.ANY&&i[n].semver.prerelease.length>0){let o=i[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}});var be=A((Wd,Go)=>{"use strict";var ve=Symbol("SemVer ANY"),At=class i{static get ANY(){return ve}constructor(t,e){if(e=No(e),t instanceof i){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),St("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===ve?this.value="":this.value=this.operator+this.semver.version,St("comp",this)}parse(t){let e=this.options.loose?$o[Bo.COMPARATORLOOSE]:$o[Bo.COMPARATOR],n=t.match(e);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new qo(n[2],this.options.loose):this.semver=ve}toString(){return this.value}test(t){if(St("Comparator.test",t,this.options.loose),this.semver===ve||t===ve)return!0;if(typeof t=="string")try{t=new qo(t,this.options)}catch(e){return!1}return Tt(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Uo(t.value,e).test(this.value):t.operator===""?t.value===""?!0:new Uo(this.value,e).test(t.semver):(e=No(e),e.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||Tt(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||Tt(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};Go.exports=At;var No=Fe(),{safeRe:$o,t:Bo}=ue(),Tt=wt(),St=ge(),qo=L(),Uo=B()});var we=A((Hd,zo)=>{"use strict";var Ls=B(),Ps=(i,t,e)=>{try{t=new Ls(t,e)}catch(n){return!1}return t.test(i)};zo.exports=Ps});var Wo=A((Xd,jo)=>{"use strict";var Vs=B(),Os=(i,t)=>new Vs(i,t).set.map(e=>e.map(n=>n.value).join(" ").trim().split(" "));jo.exports=Os});var Xo=A((Zd,Ho)=>{"use strict";var Fs=L(),Ns=B(),$s=(i,t,e)=>{let n=null,o=null,a=null;try{a=new Ns(t,e)}catch(d){return null}return i.forEach(d=>{a.test(d)&&(!n||o.compare(d)===-1)&&(n=d,o=new Fs(n,e))}),n};Ho.exports=$s});var Ko=A((Kd,Zo)=>{"use strict";var Bs=L(),qs=B(),Us=(i,t,e)=>{let n=null,o=null,a=null;try{a=new qs(t,e)}catch(d){return null}return i.forEach(d=>{a.test(d)&&(!n||o.compare(d)===1)&&(n=d,o=new Bs(n,e))}),n};Zo.exports=Us});var Jo=A((Qd,Yo)=>{"use strict";var kt=L(),Gs=B(),Qo=Ce(),zs=(i,t)=>{i=new Gs(i,t);let e=new kt("0.0.0");if(i.test(e)||(e=new kt("0.0.0-0"),i.test(e)))return e;e=null;for(let n=0;n<i.set.length;++n){let o=i.set[n],a=null;o.forEach(d=>{let g=new kt(d.semver.version);switch(d.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!a||Qo(g,a))&&(a=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${d.operator}`)}}),a&&(!e||Qo(e,a))&&(e=a)}return e&&i.test(e)?e:null};Yo.exports=zs});var ta=A((Yd,ea)=>{"use strict";var js=B(),Ws=(i,t)=>{try{return new js(i,t).range||"*"}catch(e){return null}};ea.exports=Ws});var Xe=A((Jd,aa)=>{"use strict";var Hs=L(),oa=be(),{ANY:Xs}=oa,Zs=B(),Ks=we(),ia=Ce(),na=Ge(),Qs=je(),Ys=ze(),Js=(i,t,e,n)=>{i=new Hs(i,n),t=new Zs(t,n);let o,a,d,g,x;switch(e){case">":o=ia,a=Qs,d=na,g=">",x=">=";break;case"<":o=na,a=Ys,d=ia,g="<",x="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Ks(i,t,n))return!1;for(let I=0;I<t.set.length;++I){let M=t.set[I],T=null,D=null;if(M.forEach(S=>{S.semver===Xs&&(S=new oa(">=0.0.0")),T=T||S,D=D||S,o(S.semver,T.semver,n)?T=S:d(S.semver,D.semver,n)&&(D=S)}),T.operator===g||T.operator===x||(!D.operator||D.operator===g)&&a(i,D.semver))return!1;if(D.operator===x&&d(i,D.semver))return!1}return!0};aa.exports=Js});var sa=A((eu,ra)=>{"use strict";var el=Xe(),tl=(i,t,e)=>el(i,t,">",e);ra.exports=tl});var ca=A((tu,la)=>{"use strict";var il=Xe(),nl=(i,t,e)=>il(i,t,"<",e);la.exports=nl});var ua=A((iu,da)=>{"use strict";var pa=B(),ol=(i,t,e)=>(i=new pa(i,e),t=new pa(t,e),i.intersects(t,e));da.exports=ol});var _a=A((nu,ma)=>{"use strict";var al=we(),rl=$();ma.exports=(i,t,e)=>{let n=[],o=null,a=null,d=i.sort((M,T)=>rl(M,T,e));for(let M of d)al(M,t,e)?(a=M,o||(o=M)):(a&&n.push([o,a]),a=null,o=null);o&&n.push([o,null]);let g=[];for(let[M,T]of n)M===T?g.push(M):!T&&M===d[0]?g.push("*"):T?M===d[0]?g.push(`<=${T}`):g.push(`${M} - ${T}`):g.push(`>=${M}`);let x=g.join(" || "),I=typeof t.raw=="string"?t.raw:String(t);return x.length<I.length?x:t}});var va=A((ou,ba)=>{"use strict";var fa=B(),Rt=be(),{ANY:It}=Rt,Mt=we(),Dt=$(),sl=(i,t,e={})=>{if(i===t)return!0;i=new fa(i,e),t=new fa(t,e);let n=!1;e:for(let o of i.set){for(let a of t.set){let d=cl(o,a,e);if(n=n||d!==null,d)continue e}if(n)return!1}return!0},ll=[new Rt(">=0.0.0-0")],ha=[new Rt(">=0.0.0")],cl=(i,t,e)=>{if(i===t)return!0;if(i.length===1&&i[0].semver===It){if(t.length===1&&t[0].semver===It)return!0;e.includePrerelease?i=ll:i=ha}if(t.length===1&&t[0].semver===It){if(e.includePrerelease)return!0;t=ha}let n=new Set,o,a;for(let S of i)S.operator===">"||S.operator===">="?o=ga(o,S,e):S.operator==="<"||S.operator==="<="?a=Ca(a,S,e):n.add(S.semver);if(n.size>1)return null;let d;if(o&&a){if(d=Dt(o.semver,a.semver,e),d>0)return null;if(d===0&&(o.operator!==">="||a.operator!=="<="))return null}for(let S of n){if(o&&!Mt(S,String(o),e)||a&&!Mt(S,String(a),e))return null;for(let Sa of t)if(!Mt(S,String(Sa),e))return!1;return!0}let g,x,I,M,T=a&&!e.includePrerelease&&a.semver.prerelease.length?a.semver:!1,D=o&&!e.includePrerelease&&o.semver.prerelease.length?o.semver:!1;T&&T.prerelease.length===1&&a.operator==="<"&&T.prerelease[0]===0&&(T=!1);for(let S of t){if(M=M||S.operator===">"||S.operator===">=",I=I||S.operator==="<"||S.operator==="<=",o){if(D&&S.semver.prerelease&&S.semver.prerelease.length&&S.semver.major===D.major&&S.semver.minor===D.minor&&S.semver.patch===D.patch&&(D=!1),S.operator===">"||S.operator===">="){if(g=ga(o,S,e),g===S&&g!==o)return!1}else if(o.operator===">="&&!S.test(o.semver))return!1}if(a){if(T&&S.semver.prerelease&&S.semver.prerelease.length&&S.semver.major===T.major&&S.semver.minor===T.minor&&S.semver.patch===T.patch&&(T=!1),S.operator==="<"||S.operator==="<="){if(x=Ca(a,S,e),x===S&&x!==a)return!1}else if(a.operator==="<="&&!S.test(a.semver))return!1}if(!S.operator&&(a||o)&&d!==0)return!1}return!(o&&I&&!a&&d!==0||a&&M&&!o&&d!==0||D||T)},ga=(i,t,e)=>{if(!i)return t;let n=Dt(i.semver,t.semver,e);return n>0?i:n<0||t.operator===">"&&i.operator===">="?t:i},Ca=(i,t,e)=>{if(!i)return t;let n=Dt(i.semver,t.semver,e);return n<0?i:n>0||t.operator==="<"&&i.operator==="<="?t:i};ba.exports=sl});var Ea=A((au,ya)=>{"use strict";var Lt=ue(),wa=de(),pl=L(),xa=ht(),dl=ee(),ul=jn(),ml=Hn(),_l=Kn(),fl=Jn(),hl=to(),gl=no(),Cl=ao(),bl=so(),vl=$(),wl=uo(),xl=_o(),yl=Ue(),El=Co(),Tl=vo(),Sl=Ce(),Al=Ge(),kl=bt(),Il=vt(),Ml=ze(),Rl=je(),Dl=wt(),Ll=Io(),Pl=Ro(),Vl=be(),Ol=B(),Fl=we(),Nl=Wo(),$l=Xo(),Bl=Ko(),ql=Jo(),Ul=ta(),Gl=Xe(),zl=sa(),jl=ca(),Wl=ua(),Hl=_a(),Xl=va();ya.exports={parse:dl,valid:ul,clean:ml,inc:_l,diff:fl,major:hl,minor:gl,patch:Cl,prerelease:bl,compare:vl,rcompare:wl,compareLoose:xl,compareBuild:yl,sort:El,rsort:Tl,gt:Sl,lt:Al,eq:kl,neq:Il,gte:Ml,lte:Rl,cmp:Dl,coerce:Ll,truncate:Pl,Comparator:Vl,Range:Ol,satisfies:Fl,toComparators:Nl,maxSatisfying:$l,minSatisfying:Bl,minVersion:ql,validRange:Ul,outside:Gl,gtr:zl,ltr:jl,intersects:Wl,simplifyRange:Hl,subset:Xl,SemVer:pl,re:Lt.re,src:Lt.src,tokens:Lt.t,SEMVER_SPEC_VERSION:wa.SEMVER_SPEC_VERSION,RELEASE_TYPES:wa.RELEASE_TYPES,compareIdentifiers:xa.compareIdentifiers,rcompareIdentifiers:xa.rcompareIdentifiers}});var An="mat-badge-content",ka=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=q({type:i,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-badge {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
.mat-badge.mat-badge {
|
|
5
|
+
overflow: visible;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.mat-badge-content {
|
|
9
|
+
position: absolute;
|
|
10
|
+
text-align: center;
|
|
11
|
+
display: inline-block;
|
|
12
|
+
transition: transform 200ms ease-in-out;
|
|
13
|
+
transform: scale(0.6);
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
text-overflow: ellipsis;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
background-color: var(--mat-badge-background-color, var(--mat-sys-error));
|
|
20
|
+
color: var(--mat-badge-text-color, var(--mat-sys-on-error));
|
|
21
|
+
font-family: var(--mat-badge-text-font, var(--mat-sys-label-small-font));
|
|
22
|
+
font-weight: var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));
|
|
23
|
+
border-radius: var(--mat-badge-container-shape, var(--mat-sys-corner-full));
|
|
24
|
+
}
|
|
25
|
+
.mat-badge-above .mat-badge-content {
|
|
26
|
+
bottom: 100%;
|
|
27
|
+
}
|
|
28
|
+
.mat-badge-below .mat-badge-content {
|
|
29
|
+
top: 100%;
|
|
30
|
+
}
|
|
31
|
+
.mat-badge-before .mat-badge-content {
|
|
32
|
+
right: 100%;
|
|
33
|
+
}
|
|
34
|
+
[dir=rtl] .mat-badge-before .mat-badge-content {
|
|
35
|
+
right: auto;
|
|
36
|
+
left: 100%;
|
|
37
|
+
}
|
|
38
|
+
.mat-badge-after .mat-badge-content {
|
|
39
|
+
left: 100%;
|
|
40
|
+
}
|
|
41
|
+
[dir=rtl] .mat-badge-after .mat-badge-content {
|
|
42
|
+
left: auto;
|
|
43
|
+
right: 100%;
|
|
44
|
+
}
|
|
45
|
+
@media (forced-colors: active) {
|
|
46
|
+
.mat-badge-content {
|
|
47
|
+
outline: solid 1px;
|
|
48
|
+
border-radius: 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.mat-badge-disabled .mat-badge-content {
|
|
53
|
+
background-color: var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));
|
|
54
|
+
color: var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.mat-badge-hidden .mat-badge-content {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ng-animate-disabled .mat-badge-content,
|
|
62
|
+
.mat-badge-content._mat-animation-noopable {
|
|
63
|
+
transition: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.mat-badge-content.mat-badge-active {
|
|
67
|
+
transform: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.mat-badge-small .mat-badge-content {
|
|
71
|
+
width: var(--mat-badge-legacy-small-size-container-size, unset);
|
|
72
|
+
height: var(--mat-badge-legacy-small-size-container-size, unset);
|
|
73
|
+
min-width: var(--mat-badge-small-size-container-size, 6px);
|
|
74
|
+
min-height: var(--mat-badge-small-size-container-size, 6px);
|
|
75
|
+
line-height: var(--mat-badge-small-size-line-height, 6px);
|
|
76
|
+
padding: var(--mat-badge-small-size-container-padding, 0);
|
|
77
|
+
font-size: var(--mat-badge-small-size-text-size, 0);
|
|
78
|
+
margin: var(--mat-badge-small-size-container-offset, -6px 0);
|
|
79
|
+
}
|
|
80
|
+
.mat-badge-small.mat-badge-overlap .mat-badge-content {
|
|
81
|
+
margin: var(--mat-badge-small-size-container-overlap-offset, -6px);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.mat-badge-medium .mat-badge-content {
|
|
85
|
+
width: var(--mat-badge-legacy-container-size, unset);
|
|
86
|
+
height: var(--mat-badge-legacy-container-size, unset);
|
|
87
|
+
min-width: var(--mat-badge-container-size, 16px);
|
|
88
|
+
min-height: var(--mat-badge-container-size, 16px);
|
|
89
|
+
line-height: var(--mat-badge-line-height, 16px);
|
|
90
|
+
padding: var(--mat-badge-container-padding, 0 4px);
|
|
91
|
+
font-size: var(--mat-badge-text-size, var(--mat-sys-label-small-size));
|
|
92
|
+
margin: var(--mat-badge-container-offset, -12px 0);
|
|
93
|
+
}
|
|
94
|
+
.mat-badge-medium.mat-badge-overlap .mat-badge-content {
|
|
95
|
+
margin: var(--mat-badge-container-overlap-offset, -12px);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mat-badge-large .mat-badge-content {
|
|
99
|
+
width: var(--mat-badge-legacy-large-size-container-size, unset);
|
|
100
|
+
height: var(--mat-badge-legacy-large-size-container-size, unset);
|
|
101
|
+
min-width: var(--mat-badge-large-size-container-size, 16px);
|
|
102
|
+
min-height: var(--mat-badge-large-size-container-size, 16px);
|
|
103
|
+
line-height: var(--mat-badge-large-size-line-height, 16px);
|
|
104
|
+
padding: var(--mat-badge-large-size-container-padding, 0 4px);
|
|
105
|
+
font-size: var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));
|
|
106
|
+
margin: var(--mat-badge-large-size-container-offset, -12px 0);
|
|
107
|
+
}
|
|
108
|
+
.mat-badge-large.mat-badge-overlap .mat-badge-content {
|
|
109
|
+
margin: var(--mat-badge-large-size-container-overlap-offset, -12px);
|
|
110
|
+
}
|
|
111
|
+
`],encapsulation:2,changeDetection:0})}return i})(),In=(()=>{class i{_ngZone=E(re);_elementRef=E(le);_ariaDescriber=E(si);_renderer=E(Se);_animationsDisabled=Le();_idGenerator=E(ei);get color(){return this._color}set color(e){this._setColor(e),this._color=e}_color="primary";overlap=!0;disabled=!1;position="above after";get content(){return this._content}set content(e){this._updateRenderedContent(e)}_content;get description(){return this._description}set description(e){this._updateDescription(e)}_description;size="medium";hidden=!1;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=E(De);_document=E(ye);constructor(){let e=E(Kt);e.load(ka),e.load(oi)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngAfterViewInit(){}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let e=this._renderer.createElement("span"),n="mat-badge-active";return e.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),e.setAttribute("aria-hidden","true"),e.classList.add(An),this._animationsDisabled&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(n)})}):e.classList.add(n),e}_updateRenderedContent(e){let n=`${e??""}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(e){let n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),e&&n.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${An}`);for(let n of Array.from(e))n!==this._badgeElement&&n.remove()}static \u0275fac=function(n){return new(n||i)};static \u0275dir=Bt({type:i,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(n,o){n&2&&H("mat-badge-overlap",o.overlap)("mat-badge-above",o.isAbove())("mat-badge-below",!o.isAbove())("mat-badge-before",!o.isAfter())("mat-badge-after",o.isAfter())("mat-badge-small",o.size==="small")("mat-badge-medium",o.size==="medium")("mat-badge-large",o.size==="large")("mat-badge-hidden",o.hidden||!o.content)("mat-badge-disabled",o.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",Ie],disabled:[2,"matBadgeDisabled","disabled",Ie],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",Ie]}})}return i})(),Mn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ae({type:i});static \u0275inj=xe({imports:[ri,Re]})}return i})();var Oe=["*"],Ra=["content"],Da=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],La=["mat-drawer","mat-drawer-content","*"];function Pa(i,t){if(i&1){let e=y();r(0,"div",1),_("click",function(){u(e);let o=l();return m(o._onBackdropClicked())}),s()}if(i&2){let e=l();H("mat-drawer-shown",e._isShowingBackdrop())}}function Va(i,t){i&1&&(r(0,"mat-drawer-content"),U(1,2),s())}var Oa=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Fa=["mat-sidenav","mat-sidenav-content","*"];function Na(i,t){if(i&1){let e=y();r(0,"div",1),_("click",function(){u(e);let o=l();return m(o._onBackdropClicked())}),s()}if(i&2){let e=l();H("mat-drawer-shown",e._isShowingBackdrop())}}function $a(i,t){i&1&&(r(0,"mat-sidenav-content"),U(1,2),s())}var Ba=`.mat-drawer-container {
|
|
112
|
+
position: relative;
|
|
113
|
+
z-index: 1;
|
|
114
|
+
color: var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));
|
|
115
|
+
background-color: var(--mat-sidenav-content-background-color, var(--mat-sys-background));
|
|
116
|
+
box-sizing: border-box;
|
|
117
|
+
display: block;
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
}
|
|
120
|
+
.mat-drawer-container[fullscreen] {
|
|
121
|
+
top: 0;
|
|
122
|
+
left: 0;
|
|
123
|
+
right: 0;
|
|
124
|
+
bottom: 0;
|
|
125
|
+
position: absolute;
|
|
126
|
+
}
|
|
127
|
+
.mat-drawer-container[fullscreen].mat-drawer-container-has-open {
|
|
128
|
+
overflow: hidden;
|
|
129
|
+
}
|
|
130
|
+
.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side {
|
|
131
|
+
z-index: 3;
|
|
132
|
+
}
|
|
133
|
+
.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,
|
|
134
|
+
.mat-drawer-container.ng-animate-disabled .mat-drawer-content, .ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,
|
|
135
|
+
.ng-animate-disabled .mat-drawer-container .mat-drawer-content {
|
|
136
|
+
transition: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.mat-drawer-backdrop {
|
|
140
|
+
top: 0;
|
|
141
|
+
left: 0;
|
|
142
|
+
right: 0;
|
|
143
|
+
bottom: 0;
|
|
144
|
+
position: absolute;
|
|
145
|
+
display: block;
|
|
146
|
+
z-index: 3;
|
|
147
|
+
visibility: hidden;
|
|
148
|
+
}
|
|
149
|
+
.mat-drawer-backdrop.mat-drawer-shown {
|
|
150
|
+
visibility: visible;
|
|
151
|
+
background-color: var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent));
|
|
152
|
+
}
|
|
153
|
+
.mat-drawer-transition .mat-drawer-backdrop {
|
|
154
|
+
transition-duration: 400ms;
|
|
155
|
+
transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
156
|
+
transition-property: background-color, visibility;
|
|
157
|
+
}
|
|
158
|
+
@media (forced-colors: active) {
|
|
159
|
+
.mat-drawer-backdrop {
|
|
160
|
+
opacity: 0.5;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.mat-drawer-content {
|
|
165
|
+
position: relative;
|
|
166
|
+
z-index: 1;
|
|
167
|
+
display: block;
|
|
168
|
+
height: 100%;
|
|
169
|
+
overflow: auto;
|
|
170
|
+
}
|
|
171
|
+
.mat-drawer-content.mat-drawer-content-hidden {
|
|
172
|
+
opacity: 0;
|
|
173
|
+
}
|
|
174
|
+
.mat-drawer-transition .mat-drawer-content {
|
|
175
|
+
transition-duration: 400ms;
|
|
176
|
+
transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
177
|
+
transition-property: transform, margin-left, margin-right;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.mat-drawer {
|
|
181
|
+
position: relative;
|
|
182
|
+
z-index: 4;
|
|
183
|
+
color: var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));
|
|
184
|
+
box-shadow: var(--mat-sidenav-container-elevation-shadow, none);
|
|
185
|
+
background-color: var(--mat-sidenav-container-background-color, var(--mat-sys-surface));
|
|
186
|
+
border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
187
|
+
border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
188
|
+
width: var(--mat-sidenav-container-width, 360px);
|
|
189
|
+
display: block;
|
|
190
|
+
position: absolute;
|
|
191
|
+
top: 0;
|
|
192
|
+
bottom: 0;
|
|
193
|
+
z-index: 3;
|
|
194
|
+
outline: 0;
|
|
195
|
+
box-sizing: border-box;
|
|
196
|
+
overflow-y: auto;
|
|
197
|
+
transform: translate3d(-100%, 0, 0);
|
|
198
|
+
}
|
|
199
|
+
@media (forced-colors: active) {
|
|
200
|
+
.mat-drawer, [dir=rtl] .mat-drawer.mat-drawer-end {
|
|
201
|
+
border-right: solid 1px currentColor;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
@media (forced-colors: active) {
|
|
205
|
+
[dir=rtl] .mat-drawer, .mat-drawer.mat-drawer-end {
|
|
206
|
+
border-left: solid 1px currentColor;
|
|
207
|
+
border-right: none;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
.mat-drawer.mat-drawer-side {
|
|
211
|
+
z-index: 2;
|
|
212
|
+
}
|
|
213
|
+
.mat-drawer.mat-drawer-end {
|
|
214
|
+
right: 0;
|
|
215
|
+
transform: translate3d(100%, 0, 0);
|
|
216
|
+
border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
217
|
+
border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
218
|
+
border-top-right-radius: 0;
|
|
219
|
+
border-bottom-right-radius: 0;
|
|
220
|
+
}
|
|
221
|
+
[dir=rtl] .mat-drawer {
|
|
222
|
+
border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
223
|
+
border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
224
|
+
border-top-right-radius: 0;
|
|
225
|
+
border-bottom-right-radius: 0;
|
|
226
|
+
transform: translate3d(100%, 0, 0);
|
|
227
|
+
}
|
|
228
|
+
[dir=rtl] .mat-drawer.mat-drawer-end {
|
|
229
|
+
border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
230
|
+
border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
231
|
+
border-top-left-radius: 0;
|
|
232
|
+
border-bottom-left-radius: 0;
|
|
233
|
+
left: 0;
|
|
234
|
+
right: auto;
|
|
235
|
+
transform: translate3d(-100%, 0, 0);
|
|
236
|
+
}
|
|
237
|
+
.mat-drawer-transition .mat-drawer {
|
|
238
|
+
transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
239
|
+
}
|
|
240
|
+
.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) {
|
|
241
|
+
visibility: hidden;
|
|
242
|
+
box-shadow: none;
|
|
243
|
+
}
|
|
244
|
+
.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container {
|
|
245
|
+
display: none;
|
|
246
|
+
}
|
|
247
|
+
.mat-drawer.mat-drawer-opened.mat-drawer-opened {
|
|
248
|
+
transform: none;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.mat-drawer-side {
|
|
252
|
+
box-shadow: none;
|
|
253
|
+
border-right-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
254
|
+
border-right-width: 1px;
|
|
255
|
+
border-right-style: solid;
|
|
256
|
+
}
|
|
257
|
+
.mat-drawer-side.mat-drawer-end {
|
|
258
|
+
border-left-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
259
|
+
border-left-width: 1px;
|
|
260
|
+
border-left-style: solid;
|
|
261
|
+
border-right: none;
|
|
262
|
+
}
|
|
263
|
+
[dir=rtl] .mat-drawer-side {
|
|
264
|
+
border-left-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
265
|
+
border-left-width: 1px;
|
|
266
|
+
border-left-style: solid;
|
|
267
|
+
border-right: none;
|
|
268
|
+
}
|
|
269
|
+
[dir=rtl] .mat-drawer-side.mat-drawer-end {
|
|
270
|
+
border-right-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
271
|
+
border-right-width: 1px;
|
|
272
|
+
border-right-style: solid;
|
|
273
|
+
border-left: none;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.mat-drawer-inner-container {
|
|
277
|
+
width: 100%;
|
|
278
|
+
height: 100%;
|
|
279
|
+
overflow: auto;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.mat-sidenav-fixed {
|
|
283
|
+
position: fixed;
|
|
284
|
+
}
|
|
285
|
+
`;var qa=new Je("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:()=>!1}),ut=new Je("MAT_DRAWER_CONTAINER"),Pe=(()=>{class i extends pe{_platform=E(Me);_changeDetectorRef=E(ke);_container=E(dt);constructor(){let e=E(le),n=E(Yt),o=E(re);super(e,n,o)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:n}=this._container;return e!=null&&e.mode!=="over"&&e.opened||n!=null&&n.mode!=="over"&&n.opened}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=q({type:i,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(n,o){n&2&&(ie("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px"),H("mat-drawer-content-hidden",o._shouldBeHidden()))},features:[ce([{provide:pe,useExisting:i}]),_e],ngContentSelectors:Oe,decls:1,vars:0,template:function(n,o){n&1&&(te(),U(0))},encapsulation:2,changeDetection:0})}return i})(),pt=(()=>{class i{_elementRef=E(le);_focusTrapFactory=E(ai);_focusMonitor=E(ni);_platform=E(Me);_ngZone=E(re);_renderer=E(Se);_interactivityChecker=E(De);_doc=E(ye);_container=E(ut,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached=!1;_anchor=null;get position(){return this._position}set position(e){e=e==="end"?"end":"start",e!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=oe(e)}_disableClose=!1;get autoFocus(){let e=this._autoFocus;return e??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(e){(e==="true"||e==="false"||e==null)&&(e=oe(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(oe(e))}_opened=N(!1);_openedVia=null;_animationStarted=new Y;_animationEnd=new Y;openedChange=new Ee(!0);_openedStream=this.openedChange.pipe(me(e=>e),Ke(()=>{}));openedStart=this._animationStarted.pipe(me(()=>this.opened),Qe(void 0));_closedStream=this.openedChange.pipe(me(e=>!e),Ke(()=>{}));closedStart=this._animationStarted.pipe(me(()=>!this.opened),Qe(void 0));_destroyed=new Y;onPositionChanged=new Ee;_content;_modeChanged=new Y;_injector=E(et);_changeDetectorRef=E(ke);constructor(){this.openedChange.pipe(G(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._eventCleanups=this._ngZone.runOutsideAngular(()=>{let e=this._renderer,n=this._elementRef.nativeElement;return[e.listen(n,"keydown",o=>{o.keyCode===27&&!this.disableClose&&!ti(o)&&this._ngZone.run(()=>{this.close(),o.stopPropagation(),o.preventDefault()})}),e.listen(n,"transitionend",this._handleTransitionEvent),e.listen(n,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{a(),d(),e.removeAttribute("tabindex")},a=this._renderer.listen(e,"blur",o),d=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":tt(()=>{!this._focusTrap.focusInitialElement()&&typeof e.focus=="function"&&e.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(e){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,n){e&&n&&(this._openedVia=n);let o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,n,o){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._container?._transitionsEnabled?(this._setIsAnimating(!0),setTimeout(()=>this._animationStarted.next())):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&n&&this._restoreFocus(o),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(a=>{this.openedChange.pipe(Ot(1)).subscribe(d=>a(d?"open":"close"))}))}_setIsAnimating(e){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",e)}_getWidth(){return this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&!!this._container?._isShowingBackdrop())}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let n=this._elementRef.nativeElement,o=n.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,n)),o.appendChild(n)):this._anchor&&this._anchor.parentNode.insertBefore(n,this._anchor)}_handleTransitionEvent=e=>{let n=this._elementRef.nativeElement;e.target===n&&this._ngZone.run(()=>{e.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(e)})};static \u0275fac=function(n){return new(n||i)};static \u0275cmp=q({type:i,selectors:[["mat-drawer"]],viewQuery:function(n,o){if(n&1&&fe(Ra,5),n&2){let a;Z(a=K())&&(o._content=a.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(n,o){n&2&&(it("align",null)("tabIndex",o.mode!=="side"?"-1":null),ie("visibility",!o._container&&!o.opened?"hidden":null),H("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side"))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Oe,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(n,o){n&1&&(te(),r(0,"div",1,0),U(2),s())},dependencies:[pe],encapsulation:2,changeDetection:0})}return i})(),dt=(()=>{class i{_dir=E(Qt,{optional:!0});_element=E(le);_ngZone=E(re);_changeDetectorRef=E(ke);_animationDisabled=Le();_transitionsEnabled=!1;_allDrawers;_drawers=new Ft;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=oe(e)}_autosize=E(qa);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:oe(e)}_backdropOverride=null;backdropClick=new Ee;_start=null;_end=null;_left=null;_right=null;_destroyed=new Y;_doCheckSubject=new Y;_contentMargins={left:null,right:null};_contentMarginChanges=new Y;get scrollable(){return this._userContent||this._content}_injector=E(et);constructor(){let e=E(Me),n=E(Jt);this._dir?.change.pipe(G(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),n.change().pipe(G(this._destroyed)).subscribe(()=>this.updateContentMargins()),!this._animationDisabled&&e.isBrowser&&this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._element.nativeElement.classList.add("mat-drawer-transition"),this._transitionsEnabled=!0},200)})}ngAfterContentInit(){this._allDrawers.changes.pipe(Ye(this._allDrawers),G(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(n=>!n._container||n._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Ye(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Vt(10),G(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,n=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let o=this._left._getWidth();e+=o,n-=o}}if(this._right&&this._right.opened){if(this._right.mode=="side")n+=this._right._getWidth();else if(this._right.mode=="push"){let o=this._right._getWidth();n+=o,e-=o}}e=e||null,n=n||null,(e!==this._contentMargins.left||n!==this._contentMargins.right)&&(this._contentMargins={left:e,right:n},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(G(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(G(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(G(this._drawers.changes)).subscribe(()=>{tt({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(G(Pt(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let n=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?n.add(o):n.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{e.position=="end"?(this._end!=null,this._end=e):(this._start!=null,this._start=e)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return e!=null&&e.opened}_drawerHasBackdrop(e){return this._backdropOverride==null?!!e&&e.mode!=="side":this._backdropOverride}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=q({type:i,selectors:[["mat-drawer-container"]],contentQueries:function(n,o,a){if(n&1&&at(a,Pe,5)(a,pt,5),n&2){let d;Z(d=K())&&(o._content=d.first),Z(d=K())&&(o._allDrawers=d)}},viewQuery:function(n,o){if(n&1&&fe(Pe,5),n&2){let a;Z(a=K())&&(o._userContent=a.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(n,o){n&2&&H("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[ce([{provide:ut,useExisting:i}])],ngContentSelectors:La,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(n,o){n&1&&(te(Da),f(0,Pa,1,2,"div",0),U(1),U(2,1),f(3,Va,2,0,"mat-drawer-content")),n&2&&(h(o.hasBackdrop?0:-1),c(3),h(o._content?-1:3))},dependencies:[Pe],styles:[`.mat-drawer-container {
|
|
286
|
+
position: relative;
|
|
287
|
+
z-index: 1;
|
|
288
|
+
color: var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));
|
|
289
|
+
background-color: var(--mat-sidenav-content-background-color, var(--mat-sys-background));
|
|
290
|
+
box-sizing: border-box;
|
|
291
|
+
display: block;
|
|
292
|
+
overflow: hidden;
|
|
293
|
+
}
|
|
294
|
+
.mat-drawer-container[fullscreen] {
|
|
295
|
+
top: 0;
|
|
296
|
+
left: 0;
|
|
297
|
+
right: 0;
|
|
298
|
+
bottom: 0;
|
|
299
|
+
position: absolute;
|
|
300
|
+
}
|
|
301
|
+
.mat-drawer-container[fullscreen].mat-drawer-container-has-open {
|
|
302
|
+
overflow: hidden;
|
|
303
|
+
}
|
|
304
|
+
.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side {
|
|
305
|
+
z-index: 3;
|
|
306
|
+
}
|
|
307
|
+
.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,
|
|
308
|
+
.mat-drawer-container.ng-animate-disabled .mat-drawer-content, .ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,
|
|
309
|
+
.ng-animate-disabled .mat-drawer-container .mat-drawer-content {
|
|
310
|
+
transition: none;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.mat-drawer-backdrop {
|
|
314
|
+
top: 0;
|
|
315
|
+
left: 0;
|
|
316
|
+
right: 0;
|
|
317
|
+
bottom: 0;
|
|
318
|
+
position: absolute;
|
|
319
|
+
display: block;
|
|
320
|
+
z-index: 3;
|
|
321
|
+
visibility: hidden;
|
|
322
|
+
}
|
|
323
|
+
.mat-drawer-backdrop.mat-drawer-shown {
|
|
324
|
+
visibility: visible;
|
|
325
|
+
background-color: var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent));
|
|
326
|
+
}
|
|
327
|
+
.mat-drawer-transition .mat-drawer-backdrop {
|
|
328
|
+
transition-duration: 400ms;
|
|
329
|
+
transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
330
|
+
transition-property: background-color, visibility;
|
|
331
|
+
}
|
|
332
|
+
@media (forced-colors: active) {
|
|
333
|
+
.mat-drawer-backdrop {
|
|
334
|
+
opacity: 0.5;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.mat-drawer-content {
|
|
339
|
+
position: relative;
|
|
340
|
+
z-index: 1;
|
|
341
|
+
display: block;
|
|
342
|
+
height: 100%;
|
|
343
|
+
overflow: auto;
|
|
344
|
+
}
|
|
345
|
+
.mat-drawer-content.mat-drawer-content-hidden {
|
|
346
|
+
opacity: 0;
|
|
347
|
+
}
|
|
348
|
+
.mat-drawer-transition .mat-drawer-content {
|
|
349
|
+
transition-duration: 400ms;
|
|
350
|
+
transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
351
|
+
transition-property: transform, margin-left, margin-right;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.mat-drawer {
|
|
355
|
+
position: relative;
|
|
356
|
+
z-index: 4;
|
|
357
|
+
color: var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));
|
|
358
|
+
box-shadow: var(--mat-sidenav-container-elevation-shadow, none);
|
|
359
|
+
background-color: var(--mat-sidenav-container-background-color, var(--mat-sys-surface));
|
|
360
|
+
border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
361
|
+
border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
362
|
+
width: var(--mat-sidenav-container-width, 360px);
|
|
363
|
+
display: block;
|
|
364
|
+
position: absolute;
|
|
365
|
+
top: 0;
|
|
366
|
+
bottom: 0;
|
|
367
|
+
z-index: 3;
|
|
368
|
+
outline: 0;
|
|
369
|
+
box-sizing: border-box;
|
|
370
|
+
overflow-y: auto;
|
|
371
|
+
transform: translate3d(-100%, 0, 0);
|
|
372
|
+
}
|
|
373
|
+
@media (forced-colors: active) {
|
|
374
|
+
.mat-drawer, [dir=rtl] .mat-drawer.mat-drawer-end {
|
|
375
|
+
border-right: solid 1px currentColor;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
@media (forced-colors: active) {
|
|
379
|
+
[dir=rtl] .mat-drawer, .mat-drawer.mat-drawer-end {
|
|
380
|
+
border-left: solid 1px currentColor;
|
|
381
|
+
border-right: none;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
.mat-drawer.mat-drawer-side {
|
|
385
|
+
z-index: 2;
|
|
386
|
+
}
|
|
387
|
+
.mat-drawer.mat-drawer-end {
|
|
388
|
+
right: 0;
|
|
389
|
+
transform: translate3d(100%, 0, 0);
|
|
390
|
+
border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
391
|
+
border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
392
|
+
border-top-right-radius: 0;
|
|
393
|
+
border-bottom-right-radius: 0;
|
|
394
|
+
}
|
|
395
|
+
[dir=rtl] .mat-drawer {
|
|
396
|
+
border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
397
|
+
border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
398
|
+
border-top-right-radius: 0;
|
|
399
|
+
border-bottom-right-radius: 0;
|
|
400
|
+
transform: translate3d(100%, 0, 0);
|
|
401
|
+
}
|
|
402
|
+
[dir=rtl] .mat-drawer.mat-drawer-end {
|
|
403
|
+
border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
404
|
+
border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
405
|
+
border-top-left-radius: 0;
|
|
406
|
+
border-bottom-left-radius: 0;
|
|
407
|
+
left: 0;
|
|
408
|
+
right: auto;
|
|
409
|
+
transform: translate3d(-100%, 0, 0);
|
|
410
|
+
}
|
|
411
|
+
.mat-drawer-transition .mat-drawer {
|
|
412
|
+
transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
413
|
+
}
|
|
414
|
+
.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) {
|
|
415
|
+
visibility: hidden;
|
|
416
|
+
box-shadow: none;
|
|
417
|
+
}
|
|
418
|
+
.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container {
|
|
419
|
+
display: none;
|
|
420
|
+
}
|
|
421
|
+
.mat-drawer.mat-drawer-opened.mat-drawer-opened {
|
|
422
|
+
transform: none;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.mat-drawer-side {
|
|
426
|
+
box-shadow: none;
|
|
427
|
+
border-right-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
428
|
+
border-right-width: 1px;
|
|
429
|
+
border-right-style: solid;
|
|
430
|
+
}
|
|
431
|
+
.mat-drawer-side.mat-drawer-end {
|
|
432
|
+
border-left-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
433
|
+
border-left-width: 1px;
|
|
434
|
+
border-left-style: solid;
|
|
435
|
+
border-right: none;
|
|
436
|
+
}
|
|
437
|
+
[dir=rtl] .mat-drawer-side {
|
|
438
|
+
border-left-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
439
|
+
border-left-width: 1px;
|
|
440
|
+
border-left-style: solid;
|
|
441
|
+
border-right: none;
|
|
442
|
+
}
|
|
443
|
+
[dir=rtl] .mat-drawer-side.mat-drawer-end {
|
|
444
|
+
border-right-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
445
|
+
border-right-width: 1px;
|
|
446
|
+
border-right-style: solid;
|
|
447
|
+
border-left: none;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.mat-drawer-inner-container {
|
|
451
|
+
width: 100%;
|
|
452
|
+
height: 100%;
|
|
453
|
+
overflow: auto;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.mat-sidenav-fixed {
|
|
457
|
+
position: fixed;
|
|
458
|
+
}
|
|
459
|
+
`],encapsulation:2,changeDetection:0})}return i})(),Ve=(()=>{class i extends Pe{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(i)))(o||i)}})();static \u0275cmp=q({type:i,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[ce([{provide:pe,useExisting:i}]),_e],ngContentSelectors:Oe,decls:1,vars:0,template:function(n,o){n&1&&(te(),U(0))},encapsulation:2,changeDetection:0})}return i})(),mt=(()=>{class i extends pt{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=oe(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=rt(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=rt(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(i)))(o||i)}})();static \u0275cmp=q({type:i,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(n,o){n&2&&(it("tabIndex",o.mode!=="side"?"-1":null)("align",null),ie("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),H("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[ce([{provide:pt,useExisting:i}]),_e],ngContentSelectors:Oe,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(n,o){n&1&&(te(),r(0,"div",1,0),U(2),s())},dependencies:[pe],encapsulation:2,changeDetection:0})}return i})(),Rn=(()=>{class i extends dt{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(i)))(o||i)}})();static \u0275cmp=q({type:i,selectors:[["mat-sidenav-container"]],contentQueries:function(n,o,a){if(n&1&&at(a,Ve,5)(a,mt,5),n&2){let d;Z(d=K())&&(o._content=d.first),Z(d=K())&&(o._allDrawers=d)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(n,o){n&2&&H("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],features:[ce([{provide:ut,useExisting:i},{provide:dt,useExisting:i}]),_e],ngContentSelectors:Fa,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(n,o){n&1&&(te(Oa),f(0,Na,1,2,"div",0),U(1),U(2,1),f(3,$a,2,0,"mat-sidenav-content")),n&2&&(h(o.hasBackdrop?0:-1),c(3),h(o._content?-1:3))},dependencies:[Ve],styles:[Ba],encapsulation:2,changeDetection:0})}return i})(),Dn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ae({type:i});static \u0275inj=xe({imports:[st,Re,st]})}return i})();var Ta=Aa(Ea());var Zl=["sideright"],Kl=()=>[Zi],Ql=()=>[Ji],Yl=()=>[Hi],Jl=()=>[Ni],ec=()=>[Bi],tc=()=>[Xi],ic=()=>[Ui],nc=()=>[tn],oc=()=>[an],ac=(i,t)=>({"dark-theme":i,"app-night":t}),ae=(i,t)=>({"button-primary":i,"button-toolbar":t}),rc=(i,t)=>t[0];function sc(i,t){if(i&1){let e=y();r(0,"button",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("resourceGroups",!0))}),r(1,"mat-icon"),p(2,"category"),s(),p(3," \xA0Groups "),s()}}function lc(i,t){if(i&1){let e=y();r(0,"button",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("infoLayerList",!0))}),r(1,"mat-icon"),p(2,"layers"),s(),p(3," \xA0Overlays "),s()}}function cc(i,t){if(i&1){let e=y();r(0,"button",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("trackList",!0))}),r(1,"mat-icon",32),p(2,"show_chart"),s(),p(3," \xA0Tracks "),s()}}function pc(i,t){if(i&1){let e=y();r(0,"div")(1,"button",8),_("click",function(){let o=u(e).$implicit,a=l(2);return m(a.openExperiment({choice:o,value:null}))}),v(2,"mat-icon",33),p(3),s()()}if(i&2){let e=t.$implicit;c(3),ne(" \xA0",e," ")}}function dc(i,t){if(i&1&&(r(0,"div"),nt(1,pc,4,1,"div",null,qt),s()),i&2){let e=l();c(),ot(e.app.config.resources.paths.sort())}}function uc(i,t){if(i&1){let e=y();r(0,"a",8),_("click",function(){u(e);let o=l();return m(o.clearTrail(o.app.data.serverTrail))}),r(1,"mat-icon"),p(2,"clear_all"),s(),r(3,"span"),p(4),s()(),r(5,"a",8),_("click",function(){u(e);let o=l();return m(o.trailToRoute())}),r(6,"mat-icon"),p(7,"insights"),s(),r(8,"span"),p(9,"Trail to Route"),s()(),v(10,"mat-divider")}if(i&2){let e=l();c(4),ne("",e.app.data.serverTrail?"Refresh":"Clear"," Trail")}}function mc(i,t){i&1&&(r(0,"span"),p(1,"Clear Active Route"),s())}function _c(i,t){i&1&&(r(0,"span"),p(1,"Clear Destination"),s())}function fc(i,t){if(i&1){let e=y();r(0,"a",8),_("click",function(){u(e);let o=l();return m(o.clearDestination())}),r(1,"mat-icon"),p(2,"clear_all"),s(),f(3,mc,2,0,"span")(4,_c,2,0,"span"),s(),r(5,"a",8),_("click",function(){u(e);let o=l();return m(o.clearCourseData())}),r(6,"mat-icon"),p(7,"clear_all"),s(),r(8,"span"),p(9,"Clear Course Data"),s()(),v(10,"mat-divider")}if(i&2){let e=l();c(3),h(e.app.data.activeRoute?3:4)}}function hc(i,t){if(i&1){let e=y();v(0,"mat-divider"),r(1,"a",8),_("click",function(){u(e);let o=l();return m(o.showWeather("forecast"))}),r(2,"mat-icon"),p(3,"air"),s(),r(4,"span"),p(5,"Weather Forecast"),s()()}}function gc(i,t){if(i&1){let e=y();r(0,"a",8),_("click",function(){u(e);let o=l();return m(o.skres.newWaypointAt(o.app.data.vessels.active.position))}),r(1,"mat-icon",10),p(2,"add_location"),s(),r(3,"span"),p(4,"Add Waypoint at Vessel"),s()()}}function Cc(i,t){if(i&1){let e=y();r(0,"a",8),_("click",function(){u(e);let o=l();return m(o.drawFeature("note"))}),r(1,"mat-icon"),p(2,"local_offer"),s(),r(3,"span"),p(4,"Add Note"),s()()}}function bc(i,t){if(i&1){let e=y();r(0,"a",8),_("click",function(){u(e);let o=l();return m(o.showLogin(null,!1))}),r(1,"mat-icon",34),p(2," account_circle "),s(),r(3,"span"),p(4),s()(),v(5,"mat-divider")}if(i&2){let e=l();c(),w("matBadgeHidden",e.app.isLoggedIn()),c(3),J(e.app.isLoggedIn()?"Change User":"Login")}}function vc(i,t){if(i&1){let e=y();r(0,"a",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("anchorWatch",!0))}),r(1,"mat-icon"),p(2,"anchor"),s(),r(3,"span"),p(4,"Anchor Watch"),s()()}}function wc(i,t){i&1&&(r(0,"mat-icon",17),p(1,"check_box"),s())}function xc(i,t){i&1&&v(0,"mat-icon",35)}function yc(i,t){if(i&1){let e=y();r(0,"a",8),_("click",function(){u(e);let o=l();return m(o.showRadarPanel())}),f(1,wc,2,0,"mat-icon",17)(2,xc,1,0,"mat-icon",35),r(3,"span"),p(4,"Radar Overlay"),s()()}if(i&2){let e=l();c(),h(e.app.uiCtrl().radarLayer?1:2)}}function Ec(i,t){if(i&1){let e=y();r(0,"a",8),_("click",function(){u(e);let o=l();return m(o.showPlaybackSettings())}),r(1,"mat-icon"),p(2,"history"),s(),r(3,"span"),p(4,"Playback History"),s()()}}function Tc(i,t){if(i&1){let e=y();r(0,"radar-panel",42),_("connect",function(){u(e);let o=l(2);return m(o.connectRadar())})("disconnect",function(){u(e);let o=l(2);return m(o.disconnectRadar())}),s()}if(i&2){let e=l(2);w("radar",e.infoPanel.item().resource)("id",e.infoPanel.item().id)}}function Sc(i,t){if(i&1){let e=y();r(0,"note-panel",43),_("edit",function(o){u(e);let a=l(2);return m(a.skres.showNoteEditor({id:o}))})("panTo",function(o){u(e);let a=l(2);return m(a.centerAndZoom(o.center,o.zoomLevel))}),s()}if(i&2){let e=l(2);w("note",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("interacting",e.isInteracting())}}function Ac(i,t){if(i&1){let e=y();r(0,"region-panel",44),_("edit",function(o){u(e);let a=l(2);return m(a.skres.editRegionInfo(o))})("panTo",function(o){u(e);let a=l(2);return m(a.centerAndZoom(o.center,o.zoomLevel))}),s()}if(i&2){let e=l(2);w("region",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("related",e.infoPanel.related())("interacting",e.isInteracting())}}function kc(i,t){if(i&1){let e=y();r(0,"waypoint-panel",45),_("edit",function(o){u(e);let a=l(2);return m(a.skres.editWaypointInfo(o))})("panTo",function(o){u(e);let a=l(2);return m(a.centerAndZoom(o.center,o.zoomLevel))}),s()}if(i&2){let e=l(2);w("waypoint",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("related",e.infoPanel.related())("interacting",e.isInteracting())}}function Ic(i,t){if(i&1){let e=y();r(0,"route-panel",46),_("edit",function(o){u(e);let a=l(2);return m(a.skres.editRouteInfo(o))})("activate",function(o){u(e);let a=l(2);return m(a.activateRoute(o))})("panTo",function(o){u(e);let a=l(2);return m(a.centerAndZoom(o.center,o.zoomLevel))}),s()}if(i&2){let e=l(2);w("route",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("related",e.infoPanel.related())("interacting",e.isInteracting())}}function Mc(i,t){if(i&1){let e=y();r(0,"info-panel",36),_("closed",function(){u(e);let o=l();return m(o.closeDrawer())}),f(1,Tc,1,2,"radar-panel",37),f(2,Sc,1,3,"note-panel",38),f(3,Ac,1,4,"region-panel",39),f(4,kc,1,4,"waypoint-panel",40),f(5,Ic,1,4,"route-panel",41),s()}if(i&2){let e,n,o,a,d,g=l();c(),h(((e=g.infoPanel.item())==null?null:e.type)==="radars"?1:-1),c(),h(((n=g.infoPanel.item())==null?null:n.type)==="notes"?2:-1),c(),h(((o=g.infoPanel.item())==null?null:o.type)==="regions"?3:-1),c(),h(((a=g.infoPanel.item())==null?null:a.type)==="waypoints"?4:-1),c(),h(((d=g.infoPanel.item())==null?null:d.type)==="routes"?5:-1)}}function Rc(i,t){if(i&1){let e=y();r(0,"a",54),_("click",function(){u(e);let o=l(2);return m(o.closeInstrumentPanel())}),r(1,"mat-icon"),p(2,"open_in_new"),s()()}if(i&2){let e=l(2);w("href",e.instUrl(),Nt)}}function Dc(i,t){if(i&1&&v(0,"iframe",53),i&2){let e=l(2);w("src",e.instUrl(),$t)}}function Lc(i,t){if(i&1){let e=y();r(0,"div",21)(1,"mat-nav-list")(2,"a",47)(3,"a",48),_("click",function(){u(e);let o=l();return m(o.closeInstrumentPanel())}),r(4,"mat-icon"),p(5,"arrow_forward"),s()(),p(6," \xA0\xA0\xA0\xA0 "),f(7,Rc,3,1,"a",49),r(8,"a",50),_("click",function(){u(e);let o=l();return m(o.selectPlugin())}),r(9,"mat-icon"),p(10,"arrow_back_ios"),s()(),r(11,"a",51),_("click",function(){u(e);let o=l();return m(o.selectPlugin(!0))}),r(12,"mat-icon"),p(13,"arrow_forward_ios"),s()()(),v(14,"mat-divider"),s(),r(15,"div",52),f(16,Dc,1,1,"iframe",53),s()()}if(i&2){let e=l();c(7),h(e.app.config.display.plugins.instruments?7:-1),c(),w("disabled",e.app.config.display.plugins.favourites.length===0),c(3),w("disabled",e.app.config.display.plugins.favourites.length===0),c(5),h(e.app.instrumentPanel().activate?16:-1)}}function Pc(i,t){i&1&&(r(0,"div",23),v(1,"mat-progress-bar",55),s())}function Vc(i,t){if(i&1){let e=y();r(0,"autopilot-console",56),_("close",function(){u(e);let o=l();return m(o.toggleAutopilotConsole(!1))}),s()}if(i&2){let e=l();w("apData",e.app.data.vessels.self.autopilot)}}function Oc(i,t){if(i&1){let e=y();r(0,"route-builder",57),_("save",function(o){u(e);let a=l();return m(a.skres.newRouteAt(o.coordinates,o.meta))})("close",function(){u(e);let o=l();return m(o.toggleRouteBuilderConsole(!1))}),s()}}function Fc(i,t){if(i&1){let e=y();r(0,"div",59)(1,"button",77),_("click",function(){u(e);let o=l(3);return m(o.centerVessel())}),r(2,"mat-icon"),p(3," center_focus_strong "),s()()()}if(i&2){let e=l(3);c(),w("disabled",!e.app.data.vessels.showSelf)}}function Nc(i,t){if(i&1){let e=y();r(0,"div",59)(1,"button",78),_("click",function(){u(e);let o=l(3);return m(o.showSelectMode())}),r(2,"mat-icon"),p(3,"cancel"),s()()()}}function $c(i,t){if(i&1){let e=y();r(0,"div",61)(1,"div",59)(2,"button",68),_("click",function(){u(e);let o=l(2);return m(o.toggleAlertList(!0))}),v(3,"mat-icon",69),s()(),r(4,"div",59)(5,"button",70)(6,"mat-icon"),p(7,"layers"),s()()(),r(8,"div",59)(9,"button",71)(10,"mat-icon"),p(11,"edit"),s()()(),r(12,"div",59)(13,"button",72),_("click",function(){u(e);let o=l(2);return m(o.toggleNorthUp())}),v(14,"mat-icon",73),s()(),r(15,"div",59)(16,"button",74),_("click",function(){u(e);let o=l(2);return m(o.toggleMoveMap())}),v(17,"mat-icon",75),s()(),f(18,Fc,4,1,"div",59),r(19,"div",59)(20,"button",76)(21,"mat-icon"),p(22,"more_horiz"),s()()(),f(23,Nc,4,0,"div",59),s()}if(i&2){let e=l(2),n=he(3),o=he(37),a=he(63);c(2),w("matBadge",e.notiMgr.alerts().length)("matBadgeHidden",e.notiMgr.alerts().length===0),c(3),w("disabled",e.isInteracting())("matMenuTriggerFor",n),c(4),w("disabled",e.isInteracting())("matMenuTriggerFor",a),c(4),w("ngClass",Q(16,ae,!e.app.uiConfig().mapNorthUp,e.app.uiConfig().mapNorthUp))("matTooltip",e.app.uiConfig().mapNorthUp?"Show Heading Up":"Show North Up"),c(),w("svgIcon",e.app.uiConfig().mapNorthUp?"heading-n-up":"heading-h-up"),c(2),w("ngClass",Q(19,ae,e.app.uiConfig().mapMove,!e.app.uiConfig().mapMove))("disabled",!e.app.data.vessels.showSelf)("matTooltip",e.app.uiConfig().mapMove?"Turn off Follow Vessel":"Follow Vessel"),c(2),h(e.app.uiConfig().mapMove?-1:18),c(2),w("disabled",e.isInteracting())("matMenuTriggerFor",o),c(3),h(e.mode===1?23:-1)}}function Bc(i,t){if(i&1){let e=y();r(0,"route-list",80),_("activate",function(o){u(e);let a=l(4);return m(a.activateRoute(o.id))})("deactivate",function(){u(e);let o=l(4);return m(o.clearDestination())})("select",function(o){u(e);let a=l(4);return m(a.handleResourceInfo("routes",o.id))})("points",function(o){u(e);let a=l(4);return m(a.featureProperties({id:o.id,type:"route"}))})("notes",function(o){u(e);let a=l(4);return m(a.skres.showRelatedNotes(o.id,"route",o.readOnly))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(i&2){let e=l(4);w("activeRoute",e.app.data.activeRoute)("editingRouteId",e.app.data.editingId)}}function qc(i,t){i&1&&(z(0,Bc,1,2),j(1,0,Kl),W())}function Uc(i,t){if(i&1){let e=y();r(0,"waypoint-list",81),_("select",function(o){u(e);let a=l(4);return m(a.handleResourceInfo("waypoints",o.id))})("goto",function(o){u(e);let a=l(4);return m(a.course.navigateToWaypoint(o.id))})("deactivate",function(){u(e);let o=l(4);return m(o.clearDestination())})("center",function(o){u(e);let a=l(4);return m(a.centerAndZoom(o))})("notes",function(o){u(e);let a=l(4);return m(a.skres.showRelatedNotes(o.id,"waypoint",o.readOnly))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(i&2){let e=l(4);w("activeWaypoint",e.app.data.activeWaypoint)("editingWaypointId",e.app.data.editingId)}}function Gc(i,t){i&1&&(z(0,Uc,1,2),j(1,0,Ql),W())}function zc(i,t){if(i&1){let e=y();r(0,"chart-list",82),_("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(i&2){let e=l(4);w("selectedCharts",e.app.config.selections.charts)}}function jc(i,t){i&1&&(z(0,zc,1,1),j(1,0,Yl),W())}function Wc(i,t){if(i&1){let e=y();r(0,"note-list",83),_("select",function(o){u(e);let a=l(4);return m(a.handleResourceInfo("notes",o.id))})("pan",function(o){u(e);let a=l(4);return m(a.centerAndZoom(o.center,o.zoomLevel))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(i&2){let e=l(4);w("notes",e.skres.notes())}}function Hc(i,t){i&1&&(z(0,Wc,1,1),j(1,0,Jl),W())}function Xc(i,t){if(i&1){let e=y();r(0,"region-list",84),_("select",function(o){u(e);let a=l(4);return m(a.handleResourceInfo("regions",o.id))})("pan",function(o){u(e);let a=l(4);return m(a.centerAndZoom(o.center,o.zoomLevel))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(i&2){let e=l(4);w("regions",e.skres.regions())}}function Zc(i,t){i&1&&(z(0,Xc,1,1),j(1,0,ec),W())}function Kc(i,t){if(i&1){let e=y();r(0,"track-list",85),_("center",function(o){u(e);let a=l(4);return m(a.centerAndZoom(o))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}}function Qc(i,t){i&1&&(z(0,Kc,1,0),j(1,0,tc),W())}function Yc(i,t){if(i&1){let e=y();r(0,"ais-list",86),_("properties",function(o){u(e);let a=l(4);return m(a.featureProperties({id:o,type:"ais"}))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())})("focusVessel",function(o){u(e);let a=l(4);return m(a.switchActiveVessel(o))})("pan",function(o){u(e);let a=l(4);return m(a.centerAndZoom(o.center,o.zoomLevel))}),s()}if(i&2){let e=l(4);w("focusId",e.app.data.vessels.activeId)}}function Jc(i,t){i&1&&(z(0,Yc,1,1),j(1,0,ic),W())}function ep(i,t){if(i&1){let e=y();r(0,"group-list",36),_("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}}function tp(i,t){i&1&&(z(0,ep,1,0),j(1,0,nc),W())}function ip(i,t){if(i&1){let e=y();r(0,"infolayer-list",87),_("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())})("paramChanged",function(o){u(e);let a=l(4);return m(a.onInfoLayerParamChange(o))}),s()}}function np(i,t){i&1&&(z(0,ip,1,0),j(1,0,oc),W())}function op(i,t){if(i&1){let e=y();r(0,"anchor-watch",88),_("closed",function(){u(e);let o=l(3);return m(o.displayLeftMenu())}),s()}if(i&2){let e=l(3);w("showSelf",e.app.data.vessels.showSelf)("radius",e.anchor.radius())("raised",e.anchor.raised())}}function ap(i,t){if(i&1&&(r(0,"div",62),f(1,qc,3,0),f(2,Gc,3,0),f(3,jc,3,0),f(4,Hc,3,0),f(5,Zc,3,0),f(6,Qc,3,0),f(7,Jc,3,0),f(8,tp,3,0),f(9,np,3,0),f(10,op,1,3,"anchor-watch",79),s()),i&2){let e=l(2);c(),h(e.leftMenuCtrl().routeList?1:-1),c(),h(e.leftMenuCtrl().waypointList?2:-1),c(),h(e.leftMenuCtrl().chartList?3:-1),c(),h(e.leftMenuCtrl().noteList?4:-1),c(),h(e.leftMenuCtrl().regionList?5:-1),c(),h(e.leftMenuCtrl().trackList?6:-1),c(),h(e.leftMenuCtrl().aisList?7:-1),c(),h(e.leftMenuCtrl().resourceGroups?8:-1),c(),h(e.leftMenuCtrl().infoLayerList?9:-1),c(),h(e.leftMenuCtrl().anchorWatch?10:-1)}}function rp(i,t){i&1&&(r(0,"div",64)(1,"mat-icon",89),p(2,"visibility_off "),s()())}function sp(i,t){i&1&&(r(0,"div",64)(1,"mat-icon",90),p(2,"compare_arrows "),s()())}function lp(i,t){i&1&&(r(0,"div",64)(1,"mat-icon",91),p(2,"directions_boat "),s()())}function cp(i,t){i&1&&(r(0,"div",64)(1,"mat-icon",92),p(2,"local_offer "),s()())}function pp(i,t){i&1&&(r(0,"div",64)(1,"mat-icon",93),p(2,"signal_wifi_statusbar_connected_no_internet_4 "),s()())}function dp(i,t){if(i&1){let e=y();r(0,"button",98),_("click",function(){u(e);let o=l(3);return m(o.openInstrumentPanel())}),r(1,"mat-icon"),p(2,"av_timer"),s()()}}function up(i,t){if(i&1){let e=y();r(0,"div",59)(1,"button",99),_("click",function(){u(e);let o=l(3);return m(o.enableAudio())}),r(2,"mat-icon",32),p(3,"volume_off"),s()(),v(4,"br"),p(5,"\xA0"),v(6,"br"),s()}}function mp(i,t){if(i&1){let e=y();r(0,"div",59)(1,"button",100),_("click",function(){u(e);let o=l(3);return m(o.toggleFullscreen())}),r(2,"mat-icon"),p(3),s()(),v(4,"br"),p(5,"\xA0"),v(6,"br"),s()}if(i&2){let e=l(3);c(),w("ngClass",Q(3,ae,e.displayFullscreen().active,!e.displayFullscreen().active))("matTooltip",e.displayFullscreen().active?"Exit Fullscreen ":"Go Fullscreen"),c(2),ne(" ",e.displayFullscreen().active?"fullscreen_exit ":"fullscreen"," ")}}function _p(i,t){if(i&1){let e=y();r(0,"div",59)(1,"fb-experiments",101),_("selected",function(o){u(e);let a=l(3);return m(a.openExperiment(o))}),s(),v(2,"br"),p(3,"\xA0"),v(4,"br"),s()}}function fp(i,t){if(i&1){let e=y();r(0,"div",59)(1,"pip-video",102),_("click",function(){u(e);let o=l(3);return m(o.focusMap())}),s(),v(2,"br"),p(3,"\xA0"),v(4,"br"),s()}if(i&2){let e=l(3);c(),w("src",e.vidUrl())("muted",!0)}}function hp(i,t){if(i&1){let e=y();r(0,"div",59)(1,"button",103),_("click",function(){u(e);let o=l(3);return m(o.toggleAutopilotConsole(!0))}),v(2,"mat-icon",104),s(),v(3,"br"),p(4,"\xA0"),v(5,"br"),s()}if(i&2){let e=l(3);c(),w("ngClass",Q(1,ae,e.app.data.vessels.self.autopilot.enabled,!e.app.data.vessels.self.autopilot.enabled))}}function gp(i,t){if(i&1){let e=y();r(0,"div",59)(1,"button",105),_("click",function(){u(e);let o=l(3);return m(o.showRadarPanel())}),v(2,"mat-icon",35),s(),v(3,"br"),p(4,"\xA0"),v(5,"br"),s()}if(i&2){let e=l(3);c(),w("ngClass",Q(2,ae,e.app.uiCtrl().radarLayer,!e.app.uiCtrl().radarLayer))("disabled",e.app.instrumentPanel().open)}}function Cp(i,t){if(i&1){let e=y();r(0,"div",67)(1,"div",94),f(2,dp,3,0,"button",95),v(3,"br"),p(4,"\xA0"),v(5,"br"),p(6,"\xA0 "),s(),f(7,up,7,0,"div",59),f(8,mp,7,6,"div",59),r(9,"div",59)(10,"button",96),_("click",function(){u(e);let o=l(2);return m(o.toggleConstrainMapZoom())}),r(11,"mat-icon"),p(12,"zoom_in_map"),s()(),v(13,"br"),p(14,"\xA0"),v(15,"br"),s(),r(16,"div",59)(17,"button",97),_("click",function(){u(e);let o=l(2);return m(o.invertFeatureLabelColor())}),r(18,"mat-icon"),p(19),s()(),v(20,"br"),p(21,"\xA0"),v(22,"br"),s(),f(23,_p,5,0,"div",59),f(24,fp,5,2,"div",59),f(25,hp,6,4,"div",59),f(26,gp,6,5,"div",59),s()}if(i&2){let e=l(2);c(2),h(e.app.instrumentPanelAvailable()&&!e.app.instrumentPanel().open&&!e.infoPanel.opened()&&!e.isInteracting()&&!e.app.data.vessels.activeId?2:-1),c(5),h(e.audioStatus()!=="running"?7:-1),c(),h(e.app.isTopWindow()&&e.displayFullscreen().enabled?8:-1),c(2),w("ngClass",Q(10,ae,e.app.uiConfig().mapConstrainZoom,!e.app.uiConfig().mapConstrainZoom)),c(7),w("ngClass",Q(13,ae,e.app.uiConfig().invertColor,!e.app.uiConfig().invertColor)),c(2),J("invert_colors"),c(4),h(e.app.config.experiments?23:-1),c(),h(e.app.config.resources.video.enable&&e.app.config.resources.video.url?24:-1),c(),h(e.app.featureFlags().autopilotApi&&e.app.data.vessels.self.autopilot.default&&e.app.config.display.fab!=="autopilot"?25:-1),c(),h(e.app.featureFlags().radarApi&&e.radarApi.radarId()&&e.app.config.display.fab!=="radar"?26:-1)}}function bp(i,t){if(i&1){let e=y();r(0,"div",58)(1,"div",59)(2,"button",60)(3,"mat-icon"),p(4,"menu"),s()()()(),f(5,$c,24,22,"div",61),f(6,ap,11,10,"div",62),r(7,"div",63),f(8,rp,3,0,"div",64),f(9,sp,3,0,"div",64),f(10,lp,3,0,"div",64),f(11,cp,3,0,"div",64),f(12,pp,3,0,"div",64),s(),r(13,"div",65)(14,"div",59)(15,"button",66),_("click",function(){u(e);let o=l();return m(o.toggleToolbarButtons())}),r(16,"mat-icon"),p(17),s()()()(),f(18,Cp,27,16,"div",67)}if(i&2){let e=l(),n=he(99);c(2),w("disabled",e.isInteracting())("matBadgeHidden",e.app.isLoggedIn())("matMenuTriggerFor",n),c(3),h(e.app.uiConfig().toolbarButtons?5:-1),c(),h(e.leftMenuCtrl().leftMenuPanel?6:-1),c(2),h(!e.wakeLock.enabled()&&e.wakeLock.isAvailable?8:-1),c(),h(e.app.uiConfig().showCourseData?-1:9),c(),h(e.app.uiConfig().showAisTargets?-1:10),c(),h(e.app.uiConfig().showNotes?-1:11),c(),h(e.stream.watchDogAlarm()?12:-1),c(3),w("matTooltip",e.app.uiConfig().toolbarButtons?"Hide Toobars":"Show Toobars"),c(2),J(e.app.uiConfig().toolbarButtons?"apps":"apps_outage"),c(),h(e.app.uiConfig().toolbarButtons?18:-1)}}function vp(i,t){if(i&1&&(r(0,"div",29)(1,"div",106)(2,"mat-icon"),p(3,"access_time"),s(),r(4,"b"),p(5,"Playback:"),s()(),r(6,"div",107),p(7),s()()),i&2){let e=l();c(7),J(e.playbackTime())}}function wp(i,t){if(i&1){let e=y();r(0,"alert-list",111),_("closed",function(){u(e);let o=l(2);return m(o.toggleAlertList(!1))}),s()}if(i&2){let e=l(2);w("alerts",e.notiMgr.alerts())}}function xp(i,t){if(i&1){let e=y();r(0,"span",110)(1,"fb-alert",112),_("nextPoint",function(){u(e);let o=l(2);return m(o.course.coursePointIndex(o.course.courseData().pointIndex+1))})("routeEnd",function(){u(e);let o=l(2);return m(o.clearDestination())}),s()()}if(i&2){let e=t.$implicit,n=l(2);c(),w("audioStatus",n.audioStatus())("alert",e[1])("acknowledged",e[1].acknowledged)("silenced",e[1].silenced)("doNotPlaySound",n.app.config.display.muteSound)}}function yp(i,t){if(i&1&&(f(0,wp,1,1,"alert-list",108),r(1,"div",109),nt(2,xp,2,5,"span",110,rc),s()),i&2){let e=l();h(e.app.uiCtrl().alertList?0:-1),c(2),ot(e.notiMgr.alerts())}}function Ep(i,t){if(i&1){let e=y();r(0,"fb-interact-help",113),_("cancel",function(){u(e);let o=l();return m(o.closeInteraction())}),s()}}function Tp(i,t){if(i&1){let e=y();r(0,"route-nextpoint",116),_("selected",function(o){u(e);let a=l(2);return m(a.routeNextPoint(o))}),s()}if(i&2){let e=l(2);w("index",e.course.courseData().pointIndex)("total",e.course.courseData().pointTotal)("circular",e.app.data.activeRouteCircular)}}function Sp(i,t){if(i&1&&v(0,"ap-dial-text",126),i&2){let e=l(3);w("title","VMG")("value",e.app.formatSpeed(e.course.courseData().vmg,!0))("units",e.app.formattedSpeedUnits)}}function Ap(i,t){if(i&1&&v(0,"ap-dial-text",126),i&2){let e=l(3);w("title","BRG")("value",e.course.courseData().bearing.value.toFixed(1))("units",e.course.courseData().bearing.type==="M"?"deg (M)":"deg (T)")}}function kp(i,t){if(i&1&&v(0,"ap-dial-text",126),i&2){let e=l(3);w("title","XTE")("value",e.course.courseData().xte>10?e.course.courseData().xte.toFixed(1):e.course.courseData().xte.toFixed(3))("units",e.convert.getSymbol(e.app.config.units.distance))}}function Ip(i,t){if(i&1&&v(0,"ap-dial-text",129),i&2){let e=l(4);w("title","DTG")("value",e.course.courseData().route.dtg.toFixed(1))("units",e.convert.getSymbol(e.app.config.units.distance))}}function Mp(i,t){if(i&1&&v(0,"ap-dial-ttg",130),i&2){let e=l(4);w("value",e.course.courseData().route.ttg)}}function Rp(i,t){if(i&1&&v(0,"ap-dial-eta",131),i&2){let e=l(4);w("title","ETA")("value",e.course.courseData().route.eta)}}function Dp(i,t){if(i&1&&(f(0,Ip,1,3,"ap-dial-text",129),f(1,Mp,1,1,"ap-dial-ttg",130),f(2,Rp,1,2,"ap-dial-eta",131)),i&2){let e=l(3);h(e.course.courseData().route.dtg?0:-1),c(),h(e.course.courseData().route.ttg?1:-1),c(),h(e.course.courseData().route.eta?2:-1)}}function Lp(i,t){if(i&1&&v(0,"ap-dial-text",126),i&2){let e=l(3);w("title","DTG")("value",e.course.courseData().dtg.toFixed(1))("units",e.convert.getSymbol(e.app.config.units.distance))}}function Pp(i,t){if(i&1&&v(0,"ap-dial-ttg",127),i&2){let e=l(3);w("value",e.course.courseData().ttg)}}function Vp(i,t){if(i&1&&v(0,"ap-dial-eta",128),i&2){let e=l(3);w("title","ETA")("value",e.course.courseData().eta)}}function Op(i,t){if(i&1){let e=y();r(0,"div",115)(1,"div",117)(2,"div",118)(3,"button",119),_("click",function(){u(e);let o=l(2);return m(o.openCourseSettings())}),v(4,"mat-icon",120),s(),v(5,"br"),r(6,"button",121),_("click",function(){u(e);let o=l(2);return m(o.autopilot.engage())}),v(7,"mat-icon",122),s()(),r(8,"div")(9,"button",123),_("click",function(){u(e);let o=l(2);return m(o.course.courseRestart())}),r(10,"mat-icon"),p(11,"replay"),s()(),v(12,"br"),r(13,"button",124),_("click",function(){u(e);let o=l(2);return m(o.course.courseReverse())}),r(14,"mat-icon",125),p(15," multiple_stop "),s()()()(),f(16,Sp,1,3,"ap-dial-text",126),f(17,Ap,1,3,"ap-dial-text",126),f(18,kp,1,3,"ap-dial-text",126),f(19,Dp,3,3),f(20,Lp,1,3,"ap-dial-text",126),f(21,Pp,1,1,"ap-dial-ttg",127),f(22,Vp,1,2,"ap-dial-eta",128),s()}if(i&2){let e=l(2);c(6),w("disabled",!e.app.featureFlags().autopilotApi||!e.app.data.vessels.self.autopilot.default),c(),w("color",e.navDataPanel().apModeColor),c(6),w("disabled",!e.app.data.activeRoute),c(),w("color",e.app.data.activeRouteReversed?"primary":"none"),c(2),h(e.course.courseData().vmg?16:-1),c(),h(e.course.courseData().bearing.value?17:-1),c(),h(e.course.courseData().xte?18:-1),c(),h(e.app.data.activeRoute?19:-1),c(),h(e.course.courseData().dtg?20:-1),c(),h(e.course.courseData().ttg?21:-1),c(),h(e.course.courseData().eta?22:-1)}}function Fp(i,t){if(i&1&&(r(0,"div",30),f(1,Tp,1,3,"route-nextpoint",114),f(2,Op,23,11,"div",115),s()),i&2){let e=l();c(),h(e.navDataPanel().nextPointCtrl?1:-1),c(),h(e.app.config.ui.showCourseData&&e.navDataPanel().show?2:-1)}}function Np(i,t){if(i&1){let e=y();r(0,"mfb-container",132),_("radarClick",function(){u(e);let o=l();return m(o.showRadarPanel())}),s()}if(i&2){let e=l();w("action",e.app.config.display.fab)}}var Ze=class i{sideright;navDataPanel=N({show:!1,nextPointCtrl:!1,apModeColor:"",apModeText:""});playbackTime=N(null);leftMenuCtrl=N({leftMenuPanel:!1,routeList:!1,waypointList:!1,chartList:!1,noteList:!1,regionList:!1,trackList:!1,aisList:!1,resourceGroups:!1,infoLayerList:!1,anchorWatch:!1});displayFullscreen=N({active:!1,enabled:document.fullscreenEnabled});features={playbackAPI:!0};mode=0;timers=[];instUrl=N(null);selFavourite=-1;vidUrl=N(null);convert=lt;obsList=[];streamOptions={options:null,toMode:null};mapSetFocus=N("");mapCenter=N([0,0]);audioStatus=N("");isInteracting=Ut(()=>this.mapInteract.isMeasuring()||this.mapInteract.isDrawing()||this.mapInteract.isModifying()||this.mapInteract.isBoxSelecting());app=E(Ri);infoPanel=E(mn);mapInteract=E(Wi);anchor=E(cn);notiMgr=E(rn);course=E(Oi);stream=E(Ii);skres=E(Li);skresOther=E(Pi);signalk=E(ki);dom=E(Zt);overlayContainer=E(ii);bottomSheet=E(ci);dialog=E(li);wakeLock=E(Ai);settings=E(gn);autopilot=E(dn);radarApi=E(Mi);constructor(){this.app.data.vessels.active=this.app.data.vessels.self,se(()=>{this.app.debug("** skAuthChange Event:",this.app.skAuthChange()),this.handleSKAuthChange()}),se(()=>{this.app.debug("** kioskMode Event:",this.app.kioskMode()),this.toggleSuppressContextMenu(this.app.kioskMode())}),se(()=>{this.handleSelectionEnded(this.mapInteract.selection())}),se(()=>{this.app.uiConfig(),this.handleSettingChangeEvent(void 0)}),se(()=>{this.infoPanel.opened()||this.app.instrumentPanel().activate?this.sideright?.opened||this.openDrawer():this.sideright?.opened&&this.closeDrawer()})}ngAfterViewInit(){setTimeout(()=>{this.app.config.display.disableWakelock||this.wakeLock.enable()},500)}enableAudio(){this.app.audio.context&&this.app.audio.context.resume()}ngOnInit(){this.audioStatus.update(()=>this.app.audio.context.state),this.app.debug("audio state:",this.audioStatus()),this.app.audio.context.onstatechange=()=>{this.app.debug("audio statechange:",this.app.audio.context.state),this.audioStatus.update(()=>this.app.audio.context.state)},this.mapCenter.update(()=>this.app.config.map.center),this.app.instrumentPanel.update(t=>Object.assign({},t,{activate:!this.app.config.display.plugins.startOnOpen})),this.setDarkTheme(),this.instUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(this.formatInstrumentsUrl())),this.vidUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(`${this.app.config.resources.video.url}`)),this.connectSignalKServer(),this.obsList.push(this.stream.delta$().subscribe(t=>this.onMessage(t))),this.obsList.push(this.stream.connect$().subscribe(t=>this.onConnect(t))),this.obsList.push(this.stream.close$().subscribe(t=>this.onClose(t))),this.obsList.push(this.stream.error$().subscribe(t=>this.onError(t))),this.obsList.push(this.stream.trail$().subscribe(t=>this.handleTrailUpdate(t))),this.obsList.push(this.settings.change$.subscribe(t=>this.handleSettingChangeEvent(t))),document.addEventListener("fullscreenchange",()=>{this.displayFullscreen.update(t=>Object.assign({},t,{active:!!document.fullscreenElement}))}),document.addEventListener("fullscreenerror",t=>{this.displayFullscreen.update(e=>Object.assign({},e,{active:!1}))})}ngOnDestroy(){this.stopTimers(),this.stream.terminate(),this.signalk.disconnect(),this.obsList.forEach(t=>t.unsubscribe())}getOrientation(){return this.app.uiConfig().mapNorthUp?"rotate(0deg)":"rotate("+(0-this.app.data.vessels.active.orientation)+"rad)"}showRadarPanel(){if(!this.radarApi.hasWebGL){this.radarApi.showNoWebGLMessage();return}this.app.instrumentPanel().open&&this.closeInstrumentPanel(),this.connectRadar(),this.infoPanel.openRadar(this.radarApi.radar()),this.focusMap()}connectRadar(){this.app.uiCtrl().radarLayer||this.app.uiCtrl.update(t=>Object.assign({},t,{radarLayer:!0}))}disconnectRadar(){this.app.uiCtrl().radarLayer&&this.app.uiCtrl.update(t=>Object.assign({},t,{radarLayer:!1}))}toggleMoveMap(t=!1){this.app.uiConfig.update(e=>{let n=t?!1:!e.mapMove;return Object.assign({},e,{mapMove:n})}),this.focusMap()}toggleNorthUp(){this.app.uiConfig.update(t=>Object.assign({},t,{mapNorthUp:!t.mapNorthUp})),this.focusMap()}toggleToolbarButtons(){this.app.uiConfig.update(t=>Object.assign({},t,{toolbarButtons:!t.toolbarButtons})),this.focusMap()}toggleConstrainMapZoom(){this.app.uiConfig.update(t=>Object.assign({},t,{mapConstrainZoom:!t.mapConstrainZoom})),this.skres.setMapZoomRange(),this.focusMap()}invertFeatureLabelColor(){this.app.uiConfig.update(t=>Object.assign({},t,{invertColor:!t.invertColor})),this.focusMap()}toggleAlertList(t){this.app.uiCtrl.update(e=>Object.assign({},e,{alertList:t}))}toggleAutopilotConsole(t){this.app.uiCtrl.update(e=>Object.assign({},e,{autopilotConsole:t}))}toggleRouteBuilderConsole(t){this.app.uiCtrl.update(e=>Object.assign({},e,{routeBuilder:t}))}toggleSuppressContextMenu(t){this.app.uiCtrl.update(e=>Object.assign({},e,{suppressContextMenu:t}))}toggleFullscreen(){let t=document.documentElement,e=t.requestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullscreen||t.msRequestFullscreen;e&&(document.fullscreenElement?document.exitFullscreen&&document.exitFullscreen():e.call(t),this.focusMap())}setDarkTheme(){let t=window.matchMedia("(prefers-color-scheme: dark)");this.app.config.display.darkMode.source===0&&t.matches||this.app.config.display.darkMode.source===1&&this.app.data.vessels.self.environment.mode==="night"||this.app.config.display.darkMode.source===-1?(this.overlayContainer.getContainerElement().classList.add("dark-theme"),this.app.config.display.darkMode.enabled=!0):(this.overlayContainer.getContainerElement().classList.remove("dark-theme"),this.app.config.display.darkMode.enabled=!1)}formatInstrumentsUrl(){let t=`${this.app.hostDef.url}${this.app.config.display.plugins.instruments}`,e=this.app.config.display.plugins.parameters?this.app.config.display.plugins.parameters.length>0&&this.app.config.display.plugins.parameters[0]!=="?"?`?${this.app.config.display.plugins.parameters}`:this.app.config.display.plugins.parameters:"";return e?`${t}/${e}`:t}selectPlugin(t=!1){t?this.selFavourite===-1?this.selFavourite=0:this.selFavourite===this.app.config.display.plugins.favourites.length-1?this.selFavourite=-1:this.selFavourite++:this.selFavourite===-1?this.selFavourite=this.app.config.display.plugins.favourites.length-1:this.selFavourite===0?this.selFavourite=-1:this.selFavourite--;let e=this.selFavourite===-1?this.formatInstrumentsUrl():`${this.app.hostDef.url}${this.app.config.display.plugins.favourites[this.selFavourite]}`;this.instUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(e))}onInfoLayerParamChange(t){this.skresOther.infoLayerParams.update(()=>[t])}handleContextMenuSelection(t){switch(t){case"cleartrail":this.clearTrail(this.app.data.serverTrail);break;case"trail2route":this.trailToRoute();break;case"cleardestination":this.clearDestination();break;case"anchor":this.displayLeftMenu("anchorWatch",!0);break;case"weather_forecast":this.showWeather("forecast");break}}trailToRoute(){return F(this,null,function*(){let{Trail2RouteDialog:t}=yield import("./chunk-G4GM24WE.js");this.dialog.open(t,{disableClose:!0,data:{trail:this.app.selfTrail()}}).afterClosed().subscribe(e=>{e.result&&this.skres.newRouteAt(e.data),this.focusMap()})})}showWeather(t){t==="forecast"&&this.bottomSheet.open(Cn,{disableClose:!0,data:{title:"Forecast",position:this.app.data.vessels.self.position,subTitle:"Location: Vessel Position"}}).afterDismissed().subscribe(()=>{this.focusMap()})}openExperiment(t){t.choice==="debugCapture"?window.isSecureContext?(navigator.clipboard.writeText(JSON.stringify({data:this.app.data,config:this.app.config})),this.app.showMessage("Debug data catpured to clipboard.")):this.app.showAlert("Feature Unavailable",`This feature is only available in a secure context!
|
|
460
|
+
e.g. https, http://localhost, http://127.0.0.1`):this.app.config.resources.paths.includes(t.choice)&&this.bottomSheet.open(nn,{disableClose:!0,data:{path:t.choice}}).afterDismissed().subscribe(()=>{this.focusMap()})}openCourseSettings(){this.bottomSheet.open(Vi,{disableClose:!0,data:{title:"Course Settings"}}).afterDismissed().subscribe(()=>{this.focusMap()})}handleSKAuthChange(){this.signalk.getLoginStatus().subscribe(t=>{this.app.data.loginRequired=t.authenticationRequired??!1,this.app.isLoggedIn.update(()=>t.status==="loggedIn"),this.signalk.get("/plugins/freeboard-sk").subscribe(()=>{this.app.debug("User Authenticated"),this.app.isLoggedIn.set(!0)},e=>{e.status===401&&(this.app.debug("User NOT Authenticated"),this.app.isLoggedIn.set(!1))})})}connectSignalKServer(){this.app.data.selfId=null,this.app.data.server=null,this.signalk.proxied=this.app.config.signalk.proxied,this.signalk.connect(this.app.hostDef.name,this.app.hostDef.port,this.app.hostDef.ssl).subscribe({next:()=>{this.signalk.authToken=this.app.getFBToken(),this.app.watchSKLogin(),this.app.loadUserConfigfromServer().then(t=>{if(!t&&this.app.launchStatus.result==="first_run"){let e=this.app.showWelcome(!1);e&&e.afterClosed().subscribe(n=>{n&&this.openSettings()})}else{let e=this.app.showWelcome(!0)}}).finally(()=>{this.fetchResources(!0)}),this.getFeatures(),this.app.data.server=this.signalk.server.info,this.openSKStream()},error:()=>{this.app.showMessage("Unable to contact Signal K server! (Retrying in 5 secs)",!1,5e3),setTimeout(()=>this.connectSignalKServer(),5e3)}})}getFeatures(){return F(this,null,function*(){let t={anchorApi:!1,autopilotApi:!1,weatherApi:!1,radarApi:!1,notificationApi:!1,buddyList:!1};this.signalk.get("/signalk/v2/features?enabled=1").subscribe(n=>{t.weatherApi=n.apis.includes("weather"),t.autopilotApi=n.apis.includes("autopilot"),t.radarApi=n.apis.includes("radar"),t.notificationApi=n.apis.includes("notifications");let o={charts:!1,pmTiles:!1};n.plugins.forEach(a=>{a.id==="anchoralarm"&&(this.app.debug("*** found anchoralarm plugin"),t.anchorApi=!0),a.id==="signalk-buddylist-plugin"&&(this.app.debug("*** found buddylist plugin"),t.buddyList=!!Ta.satisfies(a.version,">1.2.0")),a.id==="signalk-pmtiles-plugin"&&(this.app.debug("*** found PMTiles plugin"),o.pmTiles=!0)}),this.app.featureFlags.update(a=>Object.assign({},a,t))},()=>{this.app.debug("*** Features API not present!")}),this.app.fetchUnitPrefsFromSKServer();let e=yield this.skresOther.initCustomCollections();this.app.featureFlags.update(n=>Object.assign({},n,e))})}startTimers(){this.app.debug("Starting Trail logging timer..."),this.timers.push(setInterval(()=>{this.processTrail()},5e3))}stopTimers(){this.app.debug("Stopping timers:"),this.timers.forEach(t=>clearInterval(t)),this.timers=[]}processTrail(t){if(!this.app.config.vessels.trail)return;let e=this.app.selfTrail().slice(-1);if(this.app.data.vessels.showSelf){if(e.length===0){this.app.selfTrail.update(o=>{let a=[].concat(o);return a.push(this.app.data.vessels.self.position),a});return}(this.app.data.vessels.self.position[0]!==e[0][0]||this.app.data.vessels.self.position[1]!==e[0][1])&&this.app.selfTrail.update(o=>{let a=[].concat(o);return a.push(this.app.data.vessels.self.position),a})}if(!t||t.length===0)this.app.selfTrail().length%60===0&&this.app.data.serverTrail&&this.app.config.vessels.trailFromServer&&this.stream.requestTrailFromServer(),this.app.selfTrail.update(o=>o.slice(-5e3));else{let o=t.slice(-1),a=o.length!==0?o[0].slice(-1):t.length>1?t[t.length-2].slice(-1):[];this.app.selfTrail.update(()=>a)}let n=this.mode===1?"history":"self";this.app.db.saveTrail(n,this.app.selfTrail())}handleTrailUpdate(t){t.action==="get"&&t.mode==="trail"&&(this.app.config.vessels.trailFromServer&&this.app.selfTrailFromServer.update(()=>t.data),this.processTrail(t.data))}handleSettingChangeEvent(t){t?.includes("darkTheme")&&this.setDarkTheme(),t?.includes("headingAttribute")&&(this.app.debug("True / Magnetic selection changed.."),this.app.data.vessels.self.heading=this.app.useMagnetic?this.app.data.vessels.self.headingMagnetic:this.app.data.vessels.self.headingTrue,this.app.data.vessels.self.cog=this.app.useMagnetic?this.app.data.vessels.self.cogMagnetic:this.app.data.vessels.self.cogTrue,this.app.data.vessels.self.wind.direction=this.app.useMagnetic?this.app.data.vessels.self.wind.mwd:this.app.data.vessels.self.wind.twd,this.app.data.vessels.aisTargets.forEach(e=>{e.heading=this.app.useMagnetic?e.headingMagnetic:e.headingTrue,e.cog=this.app.useMagnetic?e.cogMagnetic:e.cogTrue,e.wind.direction=this.app.useMagnetic?e.wind.mwd:e.wind.twd}),this.app.sTrueMagChoice.set(this.app.config.units.headingAttribute)),(t?.includes("pluginParameters")||t?.includes("pluginInstruments")||t?.includes("pluginStartOnOpen"))&&(this.instUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(this.formatInstrumentsUrl())),this.app.instrumentPanel.update(e=>Object.assign({},e,{activate:this.app.config.display.plugins.startOnOpen?!!e.open:!0}))),t?.includes("videoUrl")&&this.vidUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(`${this.app.config.resources.video.url}`)),(t?.includes("vesselTrail")||t?.includes("trailFromServer"))&&this.app.config.vessels.trail&&(this.app.config.vessels.trailFromServer?this.stream.requestTrailFromServer():this.app.data.serverTrail=!1)}focusMap(){this.mapSetFocus.update(()=>Date().valueOf())}openDrawer(){this.sideright.open()}closeDrawer(){this.sideright.close()}openInstrumentPanel(){this.app.instrumentPanel().open||(this.infoPanel.opened()&&this.infoPanel.close(),this.app.instrumentPanel.update(t=>Object.assign({},t,{open:!0,activate:!0})))}closeInstrumentPanel(){this.app.instrumentPanel.update(t=>Object.assign({},t,{open:!1,activate:this.app.config.display.plugins.startOnOpen?!1:t.activate})),this.focusMap()}displayLeftMenu(t="",e=!1){let n={leftMenuPanel:e,routeList:!1,waypointList:!1,chartList:!1,noteList:!1,regionList:!1,trackList:!1,aisList:!1,resourceGroups:!1,infoLayerList:!1,anchorWatch:!1};switch(t){case"routeList":n.routeList=e;break;case"waypointList":n.waypointList=e;break;case"chartList":n.chartList=e;break;case"noteList":n.noteList=e;break;case"regionList":n.regionList=e;break;case"trackList":n.trackList=e;break;case"anchorWatch":n.anchorWatch=e;break;case"aisList":n.aisList=e;break;case"resourceGroups":n.resourceGroups=e;break;case"infoLayerList":n.infoLayerList=e;break;default:n.leftMenuPanel=!1}this.leftMenuCtrl.update(()=>n),e||this.focusMap()}handleResourceInfo(t,e){t==="notes"&&!this.app.useInfoPanel()?this.skres.noteSelected(e,!1):t==="regions"&&!this.app.useInfoPanel()?this.skres.editRegionInfo(e):t==="waypoints"&&!this.app.useInfoPanel()?this.skres.editWaypointInfo(e):t==="routes"&&!this.app.useInfoPanel()?this.skres.editRouteInfo(e):this.infoPanel.open(t,e)}openAbout(){return F(this,null,function*(){let{AboutDialog:t}=yield import("./chunk-EFVTFEXB.js");this.dialog.open(t,{disableClose:!1,data:{name:this.app.name,version:this.app.version,description:this.app.description,logo:this.app.logo,url:this.app.url}}).afterClosed().subscribe(()=>this.focusMap())})}openSettings(){return F(this,null,function*(){let{SettingsDialog:t}=yield import("./chunk-AX3UMUXB.js");this.dialog.open(t,{disableClose:!0,data:{},maxWidth:"1000px",minHeight:"80vh"}).afterClosed().subscribe(()=>{this.focusMap()})})}importFile(t){t.data.indexOf("<gpx ")!==-1?this.processGPX(t):t.data.indexOf('"type": "FeatureCollection",')!==-1?this.processGeoJSON(t):this.app.showAlert("Import","File format not supported!"),this.focusMap()}processGPX(t){return F(this,null,function*(){let{GPXImportDialog:e}=yield import("./chunk-3GHIRJ3C.js");this.dialog.open(e,{disableClose:!0,data:{fileData:t.data,fileName:t.name}}).afterClosed().subscribe(n=>{if(typeof n.errCount>"u"||n.errCount<0){this.focusMap();return}this.fetchResources(),n.errCount===0?this.app.showMsgBox("GPX Load","GPX file resources loaded successfully."):this.app.showErrorList(n.errList),this.focusMap()})})}exportToGPX(){return F(this,null,function*(){let{GPXExportDialog:t}=yield import("./chunk-SBFXQ3G7.js");this.dialog.open(t,{disableClose:!0,data:{routes:this.skres.routes(),tracks:[this.app.selfTrail()]}}).afterClosed().subscribe(e=>{if(e<0){this.focusMap();return}e===0?this.app.showMsgBox("GPX Save","Resources saved to GPX file successfully."):this.app.showAlert("GPX Save","Error saving resources to GPX file!"),this.focusMap()})})}processGeoJSON(t){return F(this,null,function*(){let{GeoJSONImportDialog:e}=yield import("./chunk-QIOZNURQ.js");this.dialog.open(e,{disableClose:!0,data:{fileData:t.data,fileName:t.name}}).afterClosed().subscribe(n=>{n<0||(this.fetchResources(),n===0?this.app.showMsgBox("GeoJSON Load","GeoJSON features loaded successfully."):this.app.showAlert("GeoJSON Load",`Completed with errors!
|
|
461
|
+
Not all features were loaded.`),this.focusMap())})})}importResourceSet(){return F(this,null,function*(){let{ResourceImportDialog:t}=yield import("./chunk-A4TULHTL.js");this.dialog.open(t,{disableClose:!0,data:{}}).afterClosed().subscribe(e=>{if(e){try{let n=JSON.parse(e.data);this.skres.postToServer(e.path,n)}catch(n){this.app.showAlert("Load Resource",`Resources were not loaded!
|
|
462
|
+
Invalid JSON.`)}this.focusMap()}})})}showLogin(t,e=!0,n){return F(this,null,function*(){let{LoginDialog:o}=yield import("./chunk-EFVTFEXB.js");this.dialog.open(o,{disableClose:!0,data:{message:t||"Login to Signal K server."}}).afterClosed().subscribe(a=>{a.cancel?(this.app.hasAuthToken.set(!1),this.signalk.isLoggedIn().subscribe(d=>{this.app.isLoggedIn.set(d)}),n?this.showLogin(null,!1,!0):e&&this.app.showAlert("Login Cancelled:","Update operations are NOT available until you have authenticated to the Signal K server.")):this.signalk.login(a.user,a.pwd).subscribe({next:d=>{this.app.persistToken(d.token),this.app.loadUserConfigfromServer().then(g=>{g&&this.fetchResources(!0)}),n&&this.queryAfterConnect(),this.app.isLoggedIn.set(!0)},error:()=>{this.app.persistToken(null),this.signalk.isLoggedIn().subscribe(d=>{this.app.isLoggedIn.set(d)}),n?this.app.showConfirm("Invalid Username or Password.","Authentication Failed:","Try Again").subscribe(()=>{this.showLogin(null,!1,!0)}):this.app.showConfirm(`Invalid Username or Password.
|
|
463
|
+
Note: Choosing CLOSE may make operations requiring authentication unavailable.`,"Authentication Failed:","Try Again","Close").subscribe(d=>{d&&this.showLogin()})}}),this.focusMap()})})}showPlaybackSettings(){return F(this,null,function*(){let{PlaybackDialog:t}=yield import("./chunk-2AF4T5IB.js");this.dialog.open(t,{disableClose:!1}).afterClosed().subscribe(e=>{e.result?this.switchMode(1,e.query):this.switchMode(0),this.focusMap()})})}centerAndZoom(t,e){this.mapCenter.update(()=>t),typeof e=="number"&&(this.app.config.map.zoomLevel=e)}centerVessel(){let t=this.app.calcMapCenter();this.centerAndZoom(t)}toggleAisTargets(){this.app.config.ui.showAisTargets=!this.app.config.ui.showAisTargets,this.app.config.ui.showAisTargets&&this.stream.aisTargetUpdated(),this.app.saveConfig()}toggleCourseData(){this.app.config.ui.showCourseData=!this.app.config.ui.showCourseData,this.app.saveConfig()}toggleNotes(){this.app.config.ui.showNotes=!this.app.config.ui.showNotes,this.app.saveConfig()}clearTrail(t=!1){let e=()=>{this.app.data.serverTrail?this.app.config.vessels.trailFromServer&&this.stream.requestTrailFromServer():this.app.selfTrail.set([])};t?e():this.app.data.serverTrail||this.app.showConfirm("Clear Vessel Trail","Do you want to delete the vessel trail?").subscribe(n=>{n&&e()})}clearCourseData(){this.course.initCourseData()}clearDestination(){this.course.clearCourse()}activateRoute(t){let e=this.skres.fromCache("routes",t),n=ct.closestForwardPoint(e[1].feature.geometry.coordinates,this.app.data.vessels.self.position,lt.radiansToDegrees(this.app.data.vessels.self.heading));if(n===-1){this.app.showConfirm(`Closest point is behind vessel!
|
|
464
|
+
Do you want to start from the first point?`,"Start Route").subscribe(o=>{o&&this.course.activateRoute(t)});return}this.course.activateRoute(t,n)}routeNextPoint(t){this.course.coursePointIndex(t),this.focusMap()}featureProperties(t){return F(this,null,function*(){let e;if(t.type==="route")try{this.app.sIsFetching.set(!0),e=yield this.skres.fromServer("routes",t.id),this.app.sIsFetching.set(!1),e&&this.bottomSheet.open(Fi,{disableClose:!0,data:{title:"Route Properties",resource:[t.id,e,!1],type:t.type}}).afterDismissed().subscribe(n=>{n&&this.clearDestination(),this.focusMap()})}catch(n){this.app.sIsFetching.set(!1),this.app.parseHttpErrorResponse(n)}else if(t.type==="aton"||t.type==="meteo"){let n,o,a;t.type==="meteo"?(e=this.app.data.meteo.get(t.id),n="Meteo Properties",o="air",a=t.type):t.id.slice(0,3)==="sar"?(e=this.app.data.sar.get(t.id),n="SaR Properties",o="tour",a="sar"):(e=this.app.data.atons.get(t.id),n="AtoN Properties",o="beenhere",a="aton"),e&&this.bottomSheet.open(zi,{disableClose:!0,data:{title:n,target:e,id:t.id,icon:o,type:a}}).afterDismissed().subscribe(()=>this.focusMap())}else if(t.type==="aircraft")e=this.app.data.aircraft.get(t.id),e&&this.bottomSheet.open(ji,{disableClose:!0,data:{title:"Aircraft Properties",target:e,id:t.id}}).afterDismissed().subscribe(()=>this.focusMap());else if(t.type==="alarm")this.notiMgr.showAlertInfo(t.id);else if(t.type==="rset")e=this.skresOther.fromResourceSetCache(t.id),e&&this.bottomSheet.open(on,{disableClose:!0,data:{id:t.id,item:e}}).afterDismissed().subscribe(()=>{this.focusMap()});else{let n=t.type==="self"?t.type:t.id.includes("vessels.")?t.id.split(".")[1]:t.id;try{this.app.sIsFetching.set(!0),e=yield this.skres.vesselFromServer(n),this.app.sIsFetching.set(!1),e&&this.bottomSheet.open(Gi,{disableClose:!0,data:{title:"Vessel Properties",target:e}}).afterDismissed().subscribe(()=>this.focusMap())}catch(o){this.app.sIsFetching.set(!1),this.app.parseHttpErrorResponse(o)}}})}mapDragOver(t){t.preventDefault()}mapDrop(t){if(t.preventDefault(),t.dataTransfer.files)if(t.dataTransfer.files.length>1)this.app.showAlert("Load Resources",`Multiple files provided!
|
|
465
|
+
Please select only one file for processing.`);else{let e=new FileReader;if(e.onerror=()=>{this.app.showAlert("File Load error","There was an error reading the file contents!")},!t.dataTransfer.files[0].name)return;let n=t.dataTransfer.files[0].name;e.onload=()=>{this.processGPX({name:n,data:e.result})},e.readAsText(t.dataTransfer.files[0])}}switchActiveVessel(t=null){if(this.app.data.vessels.activeId=t,!t)this.app.data.vessels.active=this.app.data.vessels.self;else{let e=this.app.data.vessels.aisTargets.get(t);e?(this.app.data.vessels.active=e,this.sideright.close()):(this.app.data.vessels.active=this.app.data.vessels.self,this.app.data.vessels.activeId=null)}this.app.data.activeRoute=null,this.clearCourseData(),this.app.debug(`** Active vessel: ${this.app.data.vessels.activeId} `),this.app.debug(this.app.data.vessels.active)}switchMode(t,e){this.app.debug(`switchMode from: ${this.mode} to ${t}`),t===1?(this.app.db.saveTrail("self",this.app.selfTrail()),this.app.selfTrail.set([])):this.app.db.getTrail("self").then(n=>{this.app.selfTrail.update(()=>n&&n.value?n.value:[])}),this.switchActiveVessel(),this.openSKStream(e,t,!0)}showSelectMode(){this.mode===0?this.app.showConfirm("Do you want to change to History Playback mode?","Switch Mode").subscribe(t=>{t&&this.showPlaybackSettings()}):this.app.showConfirm("Do you want to exit History Playback mode?","Exit History Playback").subscribe(t=>{t&&this.switchMode(0)})}handleSelectionEnded(t){t.mode==="seedChart"&&this.skres.seedChartCache(t.data,t.bbox)}drawFeature(t){this.mapInteract.startDrawing(t)}handleDrawEnded(t){switch(this.mapInteract.isDrawing(),this.mapInteract.draw.resourceType){case"note":let e={position:t.coordinates};this.mapInteract.draw.properties.group&&(e.group=this.mapInteract.draw.properties.group),this.skres.showNoteEditor(e);break;case"waypoint":this.skres.newWaypointAt(t.coordinates);break;case"route":this.skres.newRouteAt(t.coordinates);break;case"region":let n=new Di;n.feature.geometry.coordinates=[ct.normaliseCoords(t.coordinates)],this.skres.newRegion(n);break}}closeInteraction(){if(this.mapInteract.isBoxSelecting()&&this.mapInteract.stopBoxSelection(),this.mapInteract.isMeasuring()&&this.mapInteract.stopMeasuring(),this.mapInteract.isDrawing()&&this.mapInteract.stopDrawing(),this.mapInteract.isModifying()&&(this.mapInteract.stopModifying(),this.app.data.activeRouteIsEditing=!1,this.mapInteract.draw.forSave?.id)){if(this.mapInteract.draw.forSave.id==="anchor"){this.mapInteract.draw.forSave=null,this.focusMap();return}this.app.showConfirm(`Do you want to save the changes made to ${this.mapInteract.draw.forSave.id.split(".")[0]}?`,"Save Changes").subscribe(t=>{let e=this.mapInteract.draw.forSave.id.split(".");t?(e[0]==="route"&&this.skres.updateRouteCoords(e[1],this.mapInteract.draw.forSave.coords,this.mapInteract.draw.forSave.coordsMetadata),e[0]==="waypoint"&&(this.skres.updateWaypointPosition(e[1],this.mapInteract.draw.forSave.coords),e[1]===this.app.data.activeWaypoint&&this.course.setDestination({latitude:this.mapInteract.draw.forSave.coords[1],longitude:this.mapInteract.draw.forSave.coords[0]})),e[0]==="note"&&this.skres.updateNotePosition(e[1],this.mapInteract.draw.forSave.coords),e[0]==="region"&&this.skres.updateRegionCoords(e[1],this.mapInteract.draw.forSave.coords)):(e[0]==="route"&&this.skres.refreshRoutes(),e[0]==="waypoint"&&this.skres.refreshWaypoints(),e[0]==="note"&&this.skres.refreshNotes(),e[0]==="region"&&this.skres.refreshRegions()),this.mapInteract.draw.forSave=null,this.focusMap()})}}fetchResources(t=!1){this.skres.refreshRoutes(),this.skres.refreshWaypoints(),this.skres.refreshCharts(),this.skres.refreshRegions(),t&&this.fetchOtherResources()}fetchOtherResources(){this.skres.refreshTracks(),this.skresOther.refreshResourceSetsInBounds(),this.skresOther.refreshInfoLayers()}openSKStream(t=null,e=0,n=!1){if(n){this.streamOptions={options:t,toMode:e},this.stream.close();return}this.stream.sendConfig(this.app.config),this.stream.open(t)}queryAfterConnect(){this.signalk.server.info.version.split(".")[0]==="1"&&this.app.showAlert("Unsupported Server Version:",`The connected Signal K server is not supported by this version of Freeboard-SK.
|
|
466
|
+
Signal K server version 2 or later is required!`),this.app.alignCustomResourcesPaths(),this.signalk.api.getSelf().subscribe(t=>{this.stream.post({cmd:"vessel",options:{context:"self",name:t.name}}),this.app.config.vessels.trailFromServer&&this.stream.requestTrailFromServer(),this.anchor.queryAnchorStatus(void 0,this.app.data.vessels.self.position),this.radarApi.init()},t=>{t.status&&t.status===401&&this.showLogin(null,!1,!0),this.app.debug("No vessel data available!")})}onConnect(t){this.app.showMessage("Connection Open.",!1,2e3),this.app.debug(t),this.queryAfterConnect(),this.startTimers()}onClose(t){if(this.app.debug("onClose: STREAM connection closed..."),this.app.debug(t),this.stopTimers(),t.result)this.openSKStream(this.streamOptions.options,this.streamOptions.toMode);else{let e={title:"Connection Closed:",buttonText:"Re-connect",message:""};t.playback?(e.buttonText="OK",e.message="Unable to open Playback connection.",this.app.showAlert(e.message,e.title,e.buttonText).subscribe(()=>{this.mode===0?this.switchMode(this.mode):this.showPlaybackSettings()})):this.reconnecting||(this.reconnecting=!0,setTimeout(()=>{this.reconnecting=!1,this.openSKStream(this.streamOptions.options,this.mode)},5e3))}}reconnecting=!1;onError(t){this.app.showMessage("Connection Error!",!1,2e3),console.warn("Stream Error!",t)}onMessage(t){if(t.action==="hello"){this.app.debug(t),t.playback?this.mode=1:(this.mode=0,this.stream.subscribe()),this.app.data.selfId=t.self;return}else if(t.action==="update"){if(this.mode===1){let e=new Date(t.timestamp);this.playbackTime.update(()=>`${e.toDateString().slice(4)} ${e.toTimeString().slice(0,8)}`)}else this.playbackTime.set(null),this.setDarkTheme();this.updateNavPanel()}}updateNavPanel(){this.navDataPanel.update(t=>({show:!!(this.app.data.activeRoute||this.app.data.activeWaypoint||this.course.courseData().position),nextPointCtrl:!!this.app.data.activeRoute,apModeColor:this.app.data.vessels.self.autopilot.enabled?"primary":"",apModeText:this.app.data.vessels.self.autopilot.default?`Autopilot: ${this.app.data.vessels.self.autopilot.default}`:""}))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=q({type:i,selectors:[["app-root"]],viewQuery:function(e,n){if(e&1&&fe(Zl,5),e&2){let o;Z(o=K())&&(n.sideright=o.first)}},decls:152,vars:51,consts:[["layersmenu","matMenu"],["settingsmenu","matMenu"],["editmenu","matMenu"],["mainmenu","matMenu"],["sideright",""],["northArrow",""],[3,"ngClass"],[1,"appframe","mat-app-background"],["mat-menu-item","",3,"click"],["svgIcon","route",1,"icon-route"],[1,"icon-waypoint"],["mat-menu-item",""],["accept",".gpx,.json",3,"chosen","astext"],["svgIcon","route-import",1,"ob"],["svgIcon","route-export",1,"ob"],[1,"icon-route"],["svgIcon","route-planning",1,"icon-route"],[1,"icon-accent"],["theme-main","",1,"view"],["hasBackdrop","false"],["mode","side","position","end",3,"disableClose"],[2,"display","flex","flex-direction","column","position","relative"],[2,"overflow","hidden"],[2,"z-index","4700","position","fixed","top","0px","left","0px","width","100%"],[3,"apData"],[2,"display","relative","width","100%","height","100%",3,"dragover","drop"],[3,"drawEnded","activate","deactivate","exitMovingMap","focusVessel","info","menuItemSelected","scaleUnits","setFocus","mapCenter","mapZoom","northUp","movingMap","vesselTrail","activeRoute","dblClickZoom","overZoomTiles","measureMode","drawMode"],[2,"position","absolute","top","60px","left","56px","width","50px"],["src","./assets/img/north_arrow.svg","width","50","height","70"],[1,"playbackPanel","mat-app-background"],[1,"navdataPanel"],[3,"action"],[1,"icon-warn"],["svgIcon","chart-display-settings-iec",1,"ob"],["matBadge","!","matBadgeOverlap","true","matBadgeSize","medium","matBadgePosition","below after","aria-hidden","false",3,"matBadgeHidden"],["svgIcon","radar-iec",1,"ob"],[3,"closed"],[3,"radar","id"],[3,"note","id","interacting"],[3,"region","id","related","interacting"],[3,"waypoint","id","related","interacting"],[3,"route","id","related","interacting"],[3,"connect","disconnect","radar","id"],[3,"edit","panTo","note","id","interacting"],[3,"edit","panTo","region","id","related","interacting"],[3,"edit","panTo","waypoint","id","related","interacting"],[3,"edit","activate","panTo","route","id","related","interacting"],["mat-list-item",""],["mat-icon-button","",3,"click"],["mat-icon-button","","target","_blank","matTooltip","Open Instruments in window.","matTooltipPosition","right",3,"href"],["mat-icon-button","","matTooltip","Previous plugin","matTooltipPosition","below",3,"click","disabled"],["mat-icon-button","","matTooltip","Next plugin","matTooltipPosition","below",3,"click","disabled"],[2,"position","fixed","bottom","0","top","48px","overflow","auto","-webkit-overfow-scrolling","touch"],["sandbox","allow-scripts allow-same-origin",2,"width","345px","height","100%",3,"src"],["mat-icon-button","","target","_blank","matTooltip","Open Instruments in window.","matTooltipPosition","right",3,"click","href"],["mode","query"],[3,"close","apData"],[3,"save","close"],[1,"leftTop","buttonPanel"],[1,"buttonPanelItem"],["mat-mini-fab","","matBadge","!","matBadgeOverlap","true","matTooltip","Menu","matTooltipPosition","right","aria-hidden","false",1,"button-secondary",3,"disabled","matBadgeHidden","matMenuTriggerFor"],[1,"buttonPanel","left"],[1,"leftMenuPanel"],[1,"statusBar"],[1,"statusBarItem"],[1,"rightTop","buttonPanel"],["mat-mini-fab","","matTooltipPosition","before",1,"button-secondary",3,"click","matTooltip"],[1,"buttonPanel","right"],["mat-mini-fab","","matTooltip","Alarms","matTooltipPosition","left","matBadgeOverlap","true","aria-hidden","false",1,"button-warn",3,"click","matBadge","matBadgeHidden"],["svgIcon","alert-list",1,"ob"],["mat-mini-fab","","matTooltip","Routes, Waypoints, Notes, etc.","matTooltipPosition","right",1,"button-accent",3,"disabled","matMenuTriggerFor"],["mat-mini-fab","","matTooltip","Draw / Measure / Select","matTooltipPosition","right",1,"button-toolbar",3,"disabled","matMenuTriggerFor"],["mat-mini-fab","","matTooltipPosition","right",3,"click","ngClass","matTooltip"],[1,"ob",3,"svgIcon"],["mat-mini-fab","","matTooltipPosition","right",3,"click","ngClass","disabled","matTooltip"],["svgIcon","cent-iec",1,"ob"],["mat-mini-fab","","matTooltip","More actions","matTooltipPosition","right",1,"button-toolbar",3,"disabled","matMenuTriggerFor"],["mat-mini-fab","","matTooltip","Center Vessel","matTooltipPosition","right",1,"button-toolbar",3,"click","disabled"],["mat-mini-fab","","matTooltip","Exit playback mode","matTooltipPosition","right",1,"button-warn",3,"click"],[3,"showSelf","radius","raised"],[3,"activate","deactivate","select","points","notes","closed","activeRoute","editingRouteId"],[3,"select","goto","deactivate","center","notes","closed","activeWaypoint","editingWaypointId"],[3,"closed","selectedCharts"],[3,"select","pan","closed","notes"],[3,"select","pan","closed","regions"],[3,"center","closed"],[3,"properties","closed","focusVessel","pan","focusId"],[3,"closed","paramChanged"],[3,"closed","showSelf","radius","raised"],["matTooltip","WakeLock is turned off","matTooltipPosition","below"],["matTooltip","Course data is hidden","matTooltipPosition","below"],["matTooltip","Vessels are hidden","matTooltipPosition","below"],["matTooltip","Notes are hidden","matTooltipPosition","below"],["matTooltip","No server messages!","matTooltipPosition","below",2,"background-color","red","color","white"],[1,"instrumentPanelToggle","buttonPanelItem"],["mat-mini-fab","","matTooltip","Instruments","matTooltipPosition","before",1,"button-toolbar"],["mat-mini-fab","","matTooltip","Constrain map zoom.","matTooltipPosition","before",3,"click","ngClass"],["mat-mini-fab","","matTooltip","Invert feature text color.","matTooltipPosition","before",3,"click","ngClass"],["mat-mini-fab","","matTooltip","Instruments","matTooltipPosition","before",1,"button-toolbar",3,"click"],["mat-mini-fab","","matTooltip","Web Audio off! Click to enable.","matTooltipPosition","before",1,"button-toolbar",3,"click"],["mat-mini-fab","","matTooltipPosition","before",3,"click","ngClass","matTooltip"],[3,"selected"],[3,"click","src","muted"],["mat-mini-fab","","matTooltip","Autopilot","matTooltipPosition","before",3,"click","ngClass"],["svgIcon","command-autopilot",1,"ob"],["mat-mini-fab","","matTooltip","Radar","matTooltipPosition","before",3,"click","ngClass","disabled"],[2,"border-radius","5px"],[2,"text-align","center"],[3,"alerts"],[1,"alarmPanel"],[2,"margin-bottom","5px"],[3,"closed","alerts"],[3,"nextPoint","routeEnd","audioStatus","alert","acknowledged","silenced","doNotPlaySound"],[3,"cancel"],[3,"index","total","circular"],[2,"display","flex","flex-wrap","nowrap"],[3,"selected","index","total","circular"],[1,"mat-app-background",2,"display","flex"],[2,"width","40px"],["mat-icon-button","","matTooltip","Course Settings",3,"click"],["svgIcon","navigation-route",1,"ob"],["mat-icon-button","","matTooltip","Autopilot Console","matTooltipPosition","above","matTooltip","Engage Autopilot",3,"click","disabled"],["svgIcon","command-autopilot",1,"ob",3,"color"],["mat-icon-button","","matTooltip","Restart XTE",3,"click"],["mat-icon-button","","matTooltip","Reverse route direction","matTooltipPosition","above",3,"click","disabled"],[3,"color"],[3,"title","value","units"],[3,"value"],[3,"title","value"],["subTitle","RT",3,"title","value","units"],["subTitle","RT",3,"value"],["subTitle","RT",3,"title","value"],[3,"radarClick","action"]],template:function(e,n){e&1&&(r(0,"div",6)(1,"div",7)(2,"mat-menu",null,0)(4,"button",8),_("click",function(){return n.displayLeftMenu("routeList",!0)}),v(5,"mat-icon",9),p(6," \xA0Routes "),s(),r(7,"button",8),_("click",function(){return n.displayLeftMenu("waypointList",!0)}),r(8,"mat-icon",10),p(9,"location_on"),s(),p(10," \xA0Waypoints "),s(),r(11,"button",8),_("click",function(){return n.displayLeftMenu("noteList",!0)}),r(12,"mat-icon"),p(13,"local_offer"),s(),p(14," \xA0Notes "),s(),r(15,"button",8),_("click",function(){return n.displayLeftMenu("regionList",!0)}),r(16,"mat-icon"),p(17,"tab_unselected"),s(),p(18," \xA0Regions "),s(),r(19,"button",8),_("click",function(){return n.displayLeftMenu("chartList",!0)}),r(20,"mat-icon"),p(21,"map"),s(),p(22," \xA0Charts "),s(),f(23,sc,4,0,"button",11),f(24,lc,4,0,"button",11),v(25,"mat-divider"),r(26,"button",11)(27,"ap-file-input",12),_("chosen",function(a){return n.importFile(a)}),v(28,"mat-icon",13),p(29," Import "),s()(),r(30,"button",8),_("click",function(){return n.exportToGPX()}),v(31,"mat-icon",14),p(32," \xA0Export "),s(),v(33,"mat-divider"),f(34,cc,4,0,"button",11),f(35,dc,3,0,"div"),s(),r(36,"mat-menu",null,1),f(38,uc,11,1),f(39,fc,11,1),r(40,"a",8),_("click",function(){return n.toggleCourseData()}),r(41,"mat-icon"),p(42),s(),r(43,"span"),p(44),s()(),r(45,"a",8),_("click",function(){return n.toggleAisTargets()}),r(46,"mat-icon"),p(47),s(),r(48,"span"),p(49),s()(),r(50,"a",8),_("click",function(){return n.toggleNotes()}),r(51,"mat-icon"),p(52),s(),r(53,"span"),p(54),s()(),f(55,hc,6,0),v(56,"mat-divider"),r(57,"a",8),_("click",function(){return n.openSettings()}),r(58,"mat-icon"),p(59,"settings"),s(),r(60,"span"),p(61,"Settings"),s()()(),r(62,"mat-menu",null,2)(64,"a",8),_("click",function(){return n.mapInteract.startMeasuring("LineString")}),r(65,"mat-icon"),p(66,"straighten"),s(),r(67,"span"),p(68,"Measure"),s()(),r(69,"a",8),_("click",function(){return n.mapInteract.startMeasuring("Circle")}),r(70,"mat-icon"),p(71,"swap_vertical_circle"),s(),r(72,"span"),p(73,"Measure Radius"),s()(),v(74,"mat-divider"),r(75,"a",8),_("click",function(){return n.drawFeature("route")}),r(76,"mat-icon",15),p(77,"draw"),s(),r(78,"span"),p(79,"Draw Route"),s()(),r(80,"a",8),_("click",function(){return n.toggleRouteBuilderConsole(!0)}),v(81,"mat-icon",16),r(82,"span"),p(83,"Build Route"),s()(),v(84,"mat-divider"),f(85,gc,5,0,"a",11),r(86,"a",8),_("click",function(){return n.drawFeature("waypoint")}),r(87,"mat-icon",10),p(88,"add_location_alt"),s(),r(89,"span"),p(90,"Drop Waypoint"),s()(),v(91,"mat-divider"),f(92,Cc,5,0,"a",11),r(93,"a",8),_("click",function(){return n.drawFeature("region")}),r(94,"mat-icon"),p(95,"tab_unselected"),s(),r(96,"span"),p(97,"Draw Region"),s()()(),r(98,"mat-menu",null,3),f(100,bc,6,2),f(101,vc,5,0,"a",11),f(102,yc,5,1,"a",11),r(103,"a",8),_("click",function(){return n.displayLeftMenu("aisList",!0)}),r(104,"mat-icon"),p(105,"directions_boat"),s(),r(106,"span"),p(107,"Vessels"),s()(),r(108,"a",8),_("click",function(){return n.importResourceSet()}),r(109,"mat-icon"),p(110,"upload"),s(),r(111,"span"),p(112,"Resource Sets"),s()(),f(113,Ec,5,0,"a",11),v(114,"mat-divider"),r(115,"a",8),_("click",function(){return n.openSettings()}),r(116,"mat-icon"),p(117,"settings"),s(),r(118,"span"),p(119,"Settings"),s()(),v(120,"mat-divider"),r(121,"a",8),_("click",function(){return n.openAbout()}),r(122,"mat-icon",17),p(123,"info_outline"),s(),r(124,"span"),p(125,"About"),s()(),r(126,"button",8),_("click",function(){return n.app.showHelp()}),r(127,"mat-icon",17),p(128,"help"),s(),r(129,"span"),p(130,"Help"),s()()(),r(131,"div",18)(132,"mat-sidenav-container",19)(133,"mat-sidenav",20,4),f(135,Mc,6,5,"info-panel")(136,Lc,17,4,"div",21),s(),r(137,"mat-sidenav-content",22),f(138,Pc,2,0,"div",23),f(139,Vc,1,1,"autopilot-console",24),f(140,Oc,1,0,"route-builder"),f(141,bp,19,13),r(142,"div",25),_("dragover",function(a){return n.mapDragOver(a)})("drop",function(a){return n.mapDrop(a)}),r(143,"fb-map",26),_("drawEnded",function(a){return n.handleDrawEnded(a)})("activate",function(a){return n.activateRoute(a)})("deactivate",function(){return n.clearDestination()})("exitMovingMap",function(a){return n.toggleMoveMap(a)})("focusVessel",function(a){return n.switchActiveVessel(a)})("info",function(a){return n.featureProperties(a)})("menuItemSelected",function(a){return n.handleContextMenuSelection(a)}),s()(),r(144,"div",27),v(145,"img",28,5),s(),f(147,vp,8,1,"div",29),f(148,yp,4,1),f(149,Ep,1,0,"fb-interact-help"),f(150,Fp,3,2,"div",30),f(151,Np,1,1,"mfb-container",31),s()()()()()),e&2&&(w("ngClass",Q(48,ac,n.app.config.display.darkMode.enabled,n.stream.selfNightMode()||n.app.uiCtrl().forceNightMode)),c(23),h(n.app.featureFlags().resourceGroups?23:-1),c(),h(n.app.featureFlags().infoLayers?24:-1),c(3),w("astext",!0),c(7),h(n.app.featureFlags().resourceTracks?34:-1),c(),h(n.app.config.resources.paths.length!==0?35:-1),c(3),h(n.app.config.vessels.trail&&n.app.selfTrail().length!==0?38:-1),c(),h(n.course.courseData().position?39:-1),c(3),J(n.app.config.ui.showCourseData?"visibility_off":"compare_arrows"),c(2),ne("",n.app.config.ui.showCourseData?"Hide":"Show"," Course Data"),c(3),J(n.app.config.ui.showAisTargets?"visibility_off":"directions_boat"),c(2),ne("",n.app.config.ui.showAisTargets?"Hide":"Show"," Vessels"),c(3),J(n.app.config.ui.showNotes?"visibility_off":"local_offer"),c(2),ne("",n.app.config.ui.showNotes?"Hide":"Show"," Notes"),c(),h(n.app.featureFlags().weatherApi&&n.app.data.vessels.showSelf?55:-1),c(30),h(n.app.data.vessels.showSelf?85:-1),c(7),h(n.app.config.map.zoomLevel>=n.app.config.resources.notes.minZoom?92:-1),c(8),h(!n.app.hostDef.params.token&&n.app.data.loginRequired?100:-1),c(),h(!n.isInteracting()&&n.app.featureFlags().anchorApi?101:-1),c(),h(!n.isInteracting()&&n.app.featureFlags().radarApi&&n.radarApi.radarId()&&!n.app.instrumentPanel().open&&n.app.data.vessels.showSelf?102:-1),c(11),h(n.features.playbackAPI?113:-1),c(20),ie("width",n.app.instrumentPanel().open?"350px":"250px"),w("disableClose",!1),c(2),h(n.infoPanel.item&&!n.app.instrumentPanel().open?135:136),c(3),h(n.app.sIsFetching()?138:-1),c(),h(n.app.uiCtrl().autopilotConsole?139:-1),c(),h(n.app.uiCtrl().routeBuilder?140:-1),c(),h(!n.app.kioskMode()&&!n.app.uiCtrl().suppressContextMenu?141:-1),c(2),w("scaleUnits",n.app.config.units.distance)("setFocus",n.mapSetFocus())("mapCenter",n.mapCenter())("mapZoom",n.app.config.map.zoomLevel)("northUp",n.app.uiConfig().mapNorthUp)("movingMap",n.app.uiConfig().mapMove)("vesselTrail",n.app.selfTrail())("activeRoute",n.app.data.activeRoute)("dblClickZoom",n.app.config.map.doubleClickZoom)("overZoomTiles",n.app.config.map.overZoomTiles)("measureMode",n.mapInteract.isMeasuring())("drawMode",n.mapInteract.isDrawing()),c(2),ie("transform",n.getOrientation()),c(2),h(n.mode===1?147:-1),c(),h(n.app.kioskMode()?-1:148),c(),h(n.isInteracting()?149:-1),c(),h(n.isInteracting()?-1:150),c(),h(!n.isInteracting()&&!n.app.kioskMode()?151:-1))},dependencies:[xi,vi,bi,wi,Dn,mt,Rn,Ve,Mn,In,ui,di,pi,Ci,gi,hi,fi,_i,mi,Ei,yi,Si,Ti,jt,zt,vn,wn,xn,yn,En,Tn,Sn,fn,bn,pn,ln,sn,un,Yi,Qi,_n,$i,qi,en,Ki,hn],styles:["mat-sidenav-container[_ngcontent-%COMP%]{height:100%}mat-sidenav[_ngcontent-%COMP%]{width:200px}mat-nav-list[_ngcontent-%COMP%]{padding-top:0}.appframe[_ngcontent-%COMP%]{width:100vw;height:100vh;background-color:#000;color:#fff;overflow:hidden}.view[_ngcontent-%COMP%]{inset:0;overflow:auto;scrollbar-width:none;position:fixed;border-top:silver 0px solid}.leftMenuPanel[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:0;padding-left:0;z-index:5000;background-color:#c8c8c866;width:315px}.statusBar[_ngcontent-%COMP%]{width:max-content;z-index:4800;position:absolute;right:55px;top:20px;padding:1px;overflow:hidden;text-align:right;display:flex}.statusBarItem[_ngcontent-%COMP%]{padding-left:5px}.statusBarItem[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{background-color:#ffffff80;color:#000;border-radius:10px}.buttonPanel[_ngcontent-%COMP%]{width:50px;z-index:4800;position:absolute;padding:5px 2px 2px;overflow:auto;scrollbar-width:none}.buttonPanel.rightTop[_ngcontent-%COMP%]{right:0;top:0;padding:9px 2px 10px}.buttonPanel.leftTop[_ngcontent-%COMP%]{left:0;top:0;padding:9px 2px 10px}.buttonPanel.left[_ngcontent-%COMP%]{top:60px;left:0;bottom:0}.buttonPanel.right[_ngcontent-%COMP%]{top:60px;right:0;bottom:80px}.buttonPanel[_ngcontent-%COMP%] .buttonPanelItem[_ngcontent-%COMP%]{text-align:center;height:48px;padding:5px 0}.mapButton[_ngcontent-%COMP%]{position:fixed;z-index:4900}.alarmPanel[_ngcontent-%COMP%]{position:absolute;z-index:4902;top:55px;left:15%;right:15%}.measurePanel[_ngcontent-%COMP%]{position:absolute;top:60px;left:50px;width:150px;border:black 1px solid;font-family:roboto;font-size:10pt}.playbackPanel[_ngcontent-%COMP%]{position:absolute;z-index:4900;bottom:150px;left:50px;top:auto;width:100px;border:gray 1px solid;border-radius:5px;font-family:roboto;text-align:center}.navdataPanel[_ngcontent-%COMP%]{position:absolute;z-index:4901;bottom:30px;left:10px;max-width:calc(100% - 75px);max-height:100px;text-align:center;display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;border:gray 1px solid}.bottomSheet[_ngcontent-%COMP%]{position:absolute;z-index:4902;bottom:0;left:15%;min-width:400px;max-width:100%;height:180px;overflow:auto}.bottomSheet[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 1 auto;text-align:center;font-family:roboto;font-weight:500;line-height:2.5em}.control[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;margin:20px}.ol-mouse-position[_ngcontent-%COMP%]{position:fixed;bottom:10px;right:45%;color:#1e1e1e;font-family:roboto;background-color:#fafafab3}.ol-zoom[_ngcontent-%COMP%]{position:fixed;top:10px;left:100px;color:#1e1e1e;font-family:roboto;background-color:transparent;height:45px}.instrumentPanelToggle[_ngcontent-%COMP%]{display:block}@media only screen and (max-width:650px){.bottomSheet[_ngcontent-%COMP%]{left:0;min-width:100%}}@media only screen and (max-width:800px){.instrumentPanelToggle[_ngcontent-%COMP%]{display:none}}@media only screen and (max-height:600px){.navdataPanel[_ngcontent-%COMP%]{left:50px;max-width:calc(100% - 115px)}}"]})};Wt(Ze,{providers:[Gt(),Ht(Xt())]}).catch(i=>console.log(i));
|