@signalk/freeboard-sk 3.0.0 → 3.1.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/package.json +2 -2
  2. package/public/assets/features/chart-list-1.jpg +0 -0
  3. package/public/assets/features/chart-list-2.jpg +0 -0
  4. package/public/assets/features/chart-list-3.jpg +0 -0
  5. package/public/assets/features/cursor-eta-1.jpg +0 -0
  6. package/public/assets/features/follow-vessel-1.jpg +0 -0
  7. package/public/assets/features/follow-vessel-2.jpg +0 -0
  8. package/public/assets/features/radar-overlay-1.jpg +0 -0
  9. package/public/assets/features/route-planning-2.jpg +0 -0
  10. package/public/assets/features/unit-preferences-1.jpg +0 -0
  11. package/public/assets/features-corpus.json +1 -1
  12. package/public/assets/help/index.html +119 -43
  13. package/public/{chunk-WX7YZB5N.js → chunk-2BXQ52IR.js} +1 -1
  14. package/public/{chunk-3CRIFTHA.js → chunk-3QUJEXF6.js} +1 -1
  15. package/public/{chunk-4ORQORV3.js → chunk-3XWX2TLZ.js} +1 -1
  16. package/public/{chunk-ZTLTHAPK.js → chunk-4WI4C4IN.js} +1 -1
  17. package/public/chunk-544H55DG.js +4147 -0
  18. package/public/chunk-6234UKZR.js +181 -0
  19. package/public/{chunk-IYNTZMNB.js → chunk-66UI7RYU.js} +1 -1
  20. package/public/{chunk-GGSNNB7Z.js → chunk-A3CJKHA5.js} +1 -1
  21. package/public/chunk-A6XRZETP.js +1 -0
  22. package/public/{chunk-ZNBGUBXU.js → chunk-B3R34QHD.js} +1 -1
  23. package/public/{chunk-I3OUN6B4.js → chunk-DSS236J5.js} +1 -1
  24. package/public/{chunk-LXTM3LEN.js → chunk-EJ5G7BX7.js} +1 -1
  25. package/public/{chunk-XHEJEIFO.js → chunk-HYKTIWCS.js} +1 -1
  26. package/public/chunk-MQJQLOEZ.js +3 -0
  27. package/public/{chunk-4BSA3TDQ.js → chunk-P5GLUSCN.js} +16 -16
  28. package/public/{chunk-4BXCQ655.js → chunk-R7KV75Y6.js} +1 -1
  29. package/public/chunk-SABJ7SCZ.js +1 -0
  30. package/public/{chunk-IURS3QQO.js → chunk-SYVLSUHP.js} +1 -1
  31. package/public/chunk-TKJL2HJ5.js +1 -0
  32. package/public/chunk-VBEF2AKC.js +1 -0
  33. package/public/chunk-WXAH4SWA.js +1 -0
  34. package/public/{chunk-UF7LOYCE.js → chunk-XB3A3UP3.js} +1 -1
  35. package/public/{chunk-BUZHYJBN.js → chunk-XZDYMRQ4.js} +1 -1
  36. package/public/index.html +1 -1
  37. package/public/main-S4SGVPDE.js +466 -0
  38. package/public/chunk-BJM4SVXD.js +0 -3
  39. package/public/chunk-BT4IAQBW.js +0 -181
  40. package/public/chunk-BW2ETQQP.js +0 -1
  41. package/public/chunk-CATOWZ7J.js +0 -1
  42. package/public/chunk-HF67WER7.js +0 -1
  43. package/public/chunk-OTJKIGKW.js +0 -4147
  44. package/public/chunk-OXZNIUU4.js +0 -1
  45. package/public/chunk-ZUWZA665.js +0 -1
  46. package/public/main-GWT4XTZZ.js +0 -466
@@ -1,3 +0,0 @@
1
- import{L as g,P as m,Z as y,hc as F,k as f}from"./chunk-4BSA3TDQ.js";import{f as p}from"./chunk-EQVTEUXC.js";var v=/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/;function R(r){let e=v.exec(r);if(!e)return{frontmatter:{},body:r.trim()};let n={};for(let i of e[1].split(/\r?\n/)){let t=i.trim();if(!t||t.startsWith("#"))continue;let o=t.indexOf(":");if(o===-1)continue;let s=t.slice(0,o).trim(),a=t.slice(o+1).trim().replace(/^["']|["']$/g,"");s&&(n[s]=a)}return{frontmatter:n,body:e[2].trim()}}var d=/!\[([^\]]*)\]\(([^)\s]+)[^)]*\)/g;function D(r){let e=[];d.lastIndex=0;let n;for(;n=d.exec(r);)e.push({alt:n[1],url:n[2]});if(e.length===0)return{images:e,body:r};let i=!1,t=r.replace(d,o=>i?o:(i=!0,"")).replace(/\n{3,}/g,`
2
-
3
- `).trim();return{images:e,body:t}}function E(r,e){if(!r&&!e)return 0;if(!r)return-1;if(!e)return 1;let n=o=>o.replace(/^v/i,"").split(/[.-]/).map(s=>/^\d+$/.test(s)?Number(s):s),i=n(r),t=n(e);for(let o=0;o<Math.max(i.length,t.length);o++){let s=i[o],a=t[o];if(s===void 0)return typeof a=="string"?1:-1;if(a===void 0)return typeof s=="string"?-1:1;if(s!==a)return typeof s=="number"&&typeof a=="number"?s<a?-1:1:String(s)<String(a)?-1:1}return 0}function h(r){let e=r?.docs??[],n=r?.ledger??[],i=new Map;for(let t of n){if(!t||t.kind==="skip"||!t.feature)continue;let o=i.get(t.feature);o?o.push(t):i.set(t.feature,[t])}return e.map(t=>{let{frontmatter:o,body:s}=R(t.raw),{images:a,body:w}=D(s),l=(i.get(t.id)??[]).slice().sort((u,b)=>-I(u,b)),c=l.find(u=>u.since)??l[0];return{id:t.id,title:o.title||t.id,category:o.category||"General",body:w,since:c?.since??null,latestKind:c&&(c.kind==="new"||c.kind==="enhanced")?c.kind:null,events:l.map(u=>({pr:u.pr??null,date:u.date??null,title:k(u.title??"")})),images:a}})}function I(r,e){let n=r.date??"",i=e.date??"";return n!==i?n<i?-1:1:(r.pr??0)-(e.pr??0)}var P=/^\s*(feat|fix|perf|refactor|docs|test|chore|ci|build|style|revert)(\([^)]*\))?!?:\s*/i;function k(r){return r.replace(P,"").trim()}function L(r,e,n){let i=n==="asc"?1:-1;return[...r].sort((t,o)=>{let s;return e==="since"?s=E(t.since,o.since):s=t[e].localeCompare(o[e],void 0,{sensitivity:"base"}),s===0?t.title.localeCompare(o.title,void 0,{sensitivity:"base"}):s*i})}function S(r,e,n){return n===0?-1:Math.min(Math.max(r+(e==="ArrowDown"?1:-1),0),n-1)}function x(r,e){let n=r.find(t=>t.name===e);if(n)return n.hue;let i=0;for(let t=0;t<e.length;t++)i=i*31+e.charCodeAt(t)|0;return Math.abs(i)%360}function M(r,e){let n=e.trim().toLowerCase();return n?r.filter(i=>i.title.toLowerCase().includes(n)||i.category.toLowerCase().includes(n)||i.body.toLowerCase().includes(n)):r}var C=class r{http=m(F);_features=y([]);categories=[];loadPromise=null;features=this._features.asReadonly();load(){return this.loadPromise??=this.fetch()}fetch(){return p(this,null,function*(){try{let e=yield f(this.http.get("assets/features-corpus.json"));this.categories=e.categories??[],this._features.set(h(e))}catch(e){this._features.set([])}return this._features()})}hueFor(e){return x(this.categories,e)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=g({token:r,factory:r.\u0275fac,providedIn:"root"})};export{L as a,S as b,M as c,C as d};
@@ -1,181 +0,0 @@
1
- import{a as Pt,b as It,c as Nt,d as Bt}from"./chunk-BJM4SVXD.js";import{a as vt,b as Mt,c as Ft,d as Tt,e as Ot,g as Et}from"./chunk-IURS3QQO.js";import{a as Ct}from"./chunk-3CRIFTHA.js";import{c as _t}from"./chunk-XHEJEIFO.js";import{e as Dt,f as xt,i as bt,j as Rt,n as kt,o as St}from"./chunk-WX7YZB5N.js";import{$ as ue,$a as De,$d as pt,Bc as ot,Cb as Ke,Cc as rt,Da as W,Dd as ct,Ea as y,Eb as Ye,Fa as C,Gc as at,I as Q,Ia as Qe,Ib as ae,Ja as We,Jd as dt,Ka as E,La as s,Lb as Xe,M as de,Ma as l,N as ve,Na as J,P as c,Q as g,R as w,Ra as K,Rd as ut,Sa as Y,Ta as k,U as Ue,Ua as P,V as je,Vb as Ge,Wa as R,Wb as te,Wd as ft,X as $e,Xb as A,Ya as u,Yd as mt,Z as j,Za as me,Zd as ht,_ as qe,_a as $,aa as O,bb as L,c as G,ca as B,cb as U,cc as Ze,d as Ve,ee as gt,f as Ae,g as He,ga as ne,hb as re,he as wt,i as Ce,ib as q,j as ze,ja as d,ka as oe,la as H,lb as m,lc as Je,ld as st,m as ce,mb as S,nb as ee,nd as lt,pe as yt,qa as Z,ra as V,sa as fe,ta as p,tc as et,u as Le,uc as he,va as b,vc as tt,wa as z,wb as I,wc as it,xc as nt}from"./chunk-4BSA3TDQ.js";import{f as Be}from"./chunk-EQVTEUXC.js";var ni=[[["caption"]],[["colgroup"],["col"]],"*"],oi=["caption","colgroup, col","*"];function ri(i,o){i&1&&$(0,2)}function ai(i,o){i&1&&(s(0,"thead",0),k(1,1),l(),s(2,"tbody",0),k(3,2)(4,3),l(),s(5,"tfoot",0),k(6,4),l())}function si(i,o){i&1&&k(0,1)(1,2)(2,3)(3,4)}var N=new ve("CDK_TABLE");var ge=(()=>{class i{template=c(H);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,selectors:[["","cdkCellDef",""]]})}return i})(),we=(()=>{class i{template=c(H);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,selectors:[["","cdkHeaderCellDef",""]]})}return i})(),zt=(()=>{class i{template=c(H);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,selectors:[["","cdkFooterCellDef",""]]})}return i})(),ie=(()=>{class i{_table=c(N,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,n,r){if(t&1&&De(r,ge,5)(r,we,5)(r,zt,5),t&2){let a;L(a=U())&&(n.cell=a.first),L(a=U())&&(n.headerCell=a.first),L(a=U())&&(n.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",A],stickyEnd:[2,"stickyEnd","stickyEnd",A]}})}return i})(),pe=class{constructor(o,e){e.nativeElement.classList.add(...o._columnCssClassName)}},Lt=(()=>{class i extends pe{constructor(){super(c(ie),c(B))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[b]})}return i})();var Ut=(()=>{class i extends pe{constructor(){let e=c(ie),t=c(B);super(e,t);let n=e._table?._getCellRole();n&&t.nativeElement.setAttribute("role",n)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[b]})}return i})();var be=(()=>{class i{template=c(H);_differs=c(te);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof le?e.headerCell.template:this instanceof Re?e.footerCell.template:e.cell.template}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,features:[ue]})}return i})(),le=(()=>{class i extends be{_table=c(N,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(c(H),c(te))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",A]},features:[b,ue]})}return i})(),Re=(()=>{class i extends be{_table=c(N,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(c(H),c(te))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",A]},features:[b,ue]})}return i})(),ye=(()=>{class i extends be{_table=c(N,{optional:!0});when;constructor(){super(c(H),c(te))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[b]})}return i})(),X=(()=>{class i{_viewContainer=c(Z);cells;context;static mostRecentCellOutlet=null;constructor(){i.mostRecentCellOutlet=this}ngOnDestroy(){i.mostRecentCellOutlet===this&&(i.mostRecentCellOutlet=null)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,selectors:[["","cdkCellOutlet",""]]})}return i})(),ke=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=V({type:i,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,n){t&1&&k(0,0)},dependencies:[X],encapsulation:2})}return i})();var Se=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=V({type:i,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,n){t&1&&k(0,0)},dependencies:[X],encapsulation:2})}return i})(),jt=(()=>{class i{templateRef=c(H);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,selectors:[["ng-template","cdkNoDataRow",""]]})}return i})(),Vt=["top","bottom","left","right"],xe=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(o=>this._updateCachedSizes(o)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(o,e,t=!0,n=!0,r,a,f){this._isNativeHtmlTable=o,this._stickCellCss=e,this._isBrowser=t,this._needsPositionStickyOnElement=n,this.direction=r,this._positionListener=a,this._tableInjector=f,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(o,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(o);let t=[];for(let n of o)n.nodeType===n.ELEMENT_NODE&&t.push(n,...Array.from(n.children));oe({write:()=>{for(let n of t)this._removeStickyStyle(n,e)}},{injector:this._tableInjector})}updateStickyColumns(o,e,t,n=!0,r=!0){if(!o.length||!this._isBrowser||!(e.some(T=>T)||t.some(T=>T))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=o[0],f=a.children.length,h=this.direction==="rtl",_=h?"right":"left",v=h?"left":"right",F=e.lastIndexOf(!0),D=t.indexOf(!0),x,Pe,Ie;r&&this._updateStickyColumnReplayQueue({rows:[...o],stickyStartStates:[...e],stickyEndStates:[...t]}),oe({earlyRead:()=>{x=this._getCellWidths(a,n),Pe=this._getStickyStartColumnPositions(x,e),Ie=this._getStickyEndColumnPositions(x,t)},write:()=>{for(let T of o)for(let M=0;M<f;M++){let Ne=T.children[M];e[M]&&this._addStickyStyle(Ne,_,Pe[M],M===F),t[M]&&this._addStickyStyle(Ne,v,Ie[M],M===D)}this._positionListener&&x.some(T=>!!T)&&(this._positionListener.stickyColumnsUpdated({sizes:F===-1?[]:x.slice(0,F+1).map((T,M)=>e[M]?T:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:D===-1?[]:x.slice(D).map((T,M)=>t[M+D]?T:null).reverse()}))}},{injector:this._tableInjector})}stickRows(o,e,t){if(!this._isBrowser)return;let n=t==="bottom"?o.slice().reverse():o,r=t==="bottom"?e.slice().reverse():e,a=[],f=[],h=[];oe({earlyRead:()=>{for(let _=0,v=0;_<n.length;_++){if(!r[_])continue;a[_]=v;let F=n[_];h[_]=this._isNativeHtmlTable?Array.from(F.children):[F];let D=this._retrieveElementSize(F).height;v+=D,f[_]=D}},write:()=>{let _=r.lastIndexOf(!0);for(let v=0;v<n.length;v++){if(!r[v])continue;let F=a[v],D=v===_;for(let x of h[v])this._addStickyStyle(x,t,F,D)}t==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:f,offsets:a,elements:h}):this._positionListener?.stickyFooterRowsUpdated({sizes:f,offsets:a,elements:h})}},{injector:this._tableInjector})}updateStickyFooterContainer(o,e){this._isNativeHtmlTable&&oe({write:()=>{let t=o.querySelector("tfoot");t&&(e.some(n=>!n)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(o,e){if(!o.classList.contains(this._stickCellCss))return;for(let n of e)o.style[n]="",o.classList.remove(this._borderCellCss[n]);Vt.some(n=>e.indexOf(n)===-1&&o.style[n])?o.style.zIndex=this._getCalculatedZIndex(o):(o.style.zIndex="",this._needsPositionStickyOnElement&&(o.style.position=""),o.classList.remove(this._stickCellCss))}_addStickyStyle(o,e,t,n){o.classList.add(this._stickCellCss),n&&o.classList.add(this._borderCellCss[e]),o.style[e]=`${t}px`,o.style.zIndex=this._getCalculatedZIndex(o),this._needsPositionStickyOnElement&&(o.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(o){let e={top:100,bottom:10,left:1,right:1},t=0;for(let n of Vt)o.style[n]&&(t+=e[n]);return t?`${t}`:""}_getCellWidths(o,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],n=o.children;for(let r=0;r<n.length;r++){let a=n[r];t.push(this._retrieveElementSize(a).width)}return this._cachedCellWidths=t,t}_getStickyStartColumnPositions(o,e){let t=[],n=0;for(let r=0;r<o.length;r++)e[r]&&(t[r]=n,n+=o[r]);return t}_getStickyEndColumnPositions(o,e){let t=[],n=0;for(let r=o.length;r>0;r--)e[r]&&(t[r]=n,n+=o[r]);return t}_retrieveElementSize(o){let e=this._elemSizeCache.get(o);if(e)return e;let t=o.getBoundingClientRect(),n={width:t.width,height:t.height};return this._resizeObserver&&(this._elemSizeCache.set(o,n),this._resizeObserver.observe(o,{box:"border-box"})),n}_updateStickyColumnReplayQueue(o){this._removeFromStickyColumnReplayQueue(o.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(o)}_removeFromStickyColumnReplayQueue(o){let e=new Set(o);for(let t of this._updatedStickyColumnsParamsToReplay)t.rows=t.rows.filter(n=>!e.has(n));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(t=>!!t.rows.length)}_updateCachedSizes(o){let e=!1;for(let t of o){let n=t.borderBoxSize?.length?{width:t.borderBoxSize[0].inlineSize,height:t.borderBoxSize[0].blockSize}:{width:t.contentRect.width,height:t.contentRect.height};n.width!==this._elemSizeCache.get(t.target)?.width&&li(t.target)&&(e=!0),this._elemSizeCache.set(t.target,n)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let t of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(t.rows,t.stickyStartStates,t.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function li(i){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(o=>i.classList.contains(o))}var se=new ve("STICKY_POSITIONING_LISTENER");var Me=(()=>{class i{viewContainer=c(Z);elementRef=c(B);constructor(){let e=c(N);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,selectors:[["","rowOutlet",""]]})}return i})(),Fe=(()=>{class i{viewContainer=c(Z);elementRef=c(B);constructor(){let e=c(N);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,selectors:[["","headerRowOutlet",""]]})}return i})(),Te=(()=>{class i{viewContainer=c(Z);elementRef=c(B);constructor(){let e=c(N);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,selectors:[["","footerRowOutlet",""]]})}return i})(),Oe=(()=>{class i{viewContainer=c(Z);elementRef=c(B);constructor(){let e=c(N);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=p({type:i,selectors:[["","noDataRowOutlet",""]]})}return i})(),Ee=(()=>{class i{_differs=c(te);_changeDetectorRef=c(Ge);_elementRef=c(B);_dir=c(et,{optional:!0});_platform=c(Je);_viewRepeater;_viewportRuler=c(ot);_injector=c(Ue);_virtualScrollViewport=c(rt,{optional:!0,host:!0});_positionListener=c(se,{optional:!0})||c(se,{optional:!0,skipSelf:!0});_document=c(je);_data;_renderedRange;_onDestroy=new G;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new G;_footerRowStickyUpdates=new G;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new G;_dataStream=new G;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new $e;viewChange=new Ve({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){c(new Xe("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((t,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Q(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new it:new _t,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),he(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(n,r,a)=>this._getEmbeddedViewArgs(n.item,a),n=>n.item.data,n=>{n.operation===tt.INSERTED&&n.context&&this._renderCellTemplateForItem(n.record.item.rowDef,n.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(n=>{let r=t.get(n.currentIndex);r.context.$implicit=n.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let n=At(this._headerRowOutlet,"thead");n&&(n.style.display=e.length?"":"none")}let t=this._headerRowDefs.map(n=>n.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,t,"top"),this._headerRowDefs.forEach(n=>n.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let n=At(this._footerRowOutlet,"tfoot");n&&(n.style.display=e.length?"":"none")}let t=this._footerRowDefs.map(n=>n.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,t,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,t),this._footerRowDefs.forEach(n=>n.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...n],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let f=0;f<t.length;f++)this._renderRows[f].rowDef===r&&a.push(t[f]);this._addStickyColumnStyles(a,r)}),n.forEach((r,a)=>{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],t=Math.min(this._data.length,this._renderedRange.end),n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r<t;r++){let a=this._data[r],f=this._getRenderRowsForData(a,r,n.get(a));this._cachedRenderRowsMap.has(a)||this._cachedRenderRowsMap.set(a,new WeakMap);for(let h=0;h<f.length;h++){let _=f[h],v=this._cachedRenderRowsMap.get(_.data);v.has(_.rowDef)?v.get(_.rowDef).push(_):v.set(_.rowDef,[_]),e.push(_)}}return e}_getRenderRowsForData(e,t,n){return this._getRowDefs(e,t).map(a=>{let f=n&&n.has(a)?n.get(a):[];if(f.length){let h=f.shift();return h.dataIndex=t,h}else return{data:e,rowDef:a,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),_e(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=_e(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=_e(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=_e(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,f)=>{let h=!!f.getColumnsDiff();return a||h},t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();let n=this._headerRowDefs.reduce(e,!1);n&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),t||n||r}_switchDataSource(e){this._data=[],he(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;he(this.dataSource)?e=this.dataSource.connect(this):ze(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Ce(this.dataSource)),this._renderChangeSubscription=ce([e,this.viewChange]).pipe(Q(this._onDestroy)).subscribe(([t,n])=>{this._data=t||[],this._renderedRange=n,this._dataStream.next(t),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){let n=Array.from(t?.columns||[]).map(f=>{let h=this._columnDefsByName.get(f);return h}),r=n.map(f=>f.sticky),a=n.map(f=>f.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let t=[];for(let n=0;n<e.viewContainer.length;n++){let r=e.viewContainer.get(n);t.push(r.rootNodes[0])}return t}_getRowDefs(e,t){if(this._rowDefs.length===1)return[this._rowDefs[0]];let n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter(r=>!r.when||r.when(t,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(t,e))||this._defaultRowDef;r&&n.push(r)}return n.length,n}_getEmbeddedViewArgs(e,t){let n=e.rowDef,r={$implicit:e.data};return{templateRef:n.template,context:r,index:t}}_renderRow(e,t,n,r={}){let a=e.viewContainer.createEmbeddedView(t.template,r,n);return this._renderCellTemplateForItem(t,r),a}_renderCellTemplateForItem(e,t){for(let n of this._getCellTemplates(e))X.mostRecentCellOutlet&&X.mostRecentCellOutlet._viewContainer.createEmbeddedView(n,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let t=0,n=e.length;t<n;t++){let a=e.get(t).context;a.count=n,a.first=t===0,a.last=t===n-1,a.even=t%2===0,a.odd=!a.even,this.multiTemplateDataRows?(a.dataIndex=this._renderRows[t].dataIndex,a.renderIndex=t):a.index=this._renderRows[t].dataIndex}}_getCellTemplates(e){return!e||!e.columns?[]:Array.from(e.columns,t=>{let n=this._columnDefsByName.get(t);return e.extractCellTemplate(n)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(t,n)=>t||n.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",t=this._injector;this._stickyStyler=new xe(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,t),(this._dir?this._dir.change:Ce()).pipe(Q(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let t=typeof requestAnimationFrame<"u"?He:Ae;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(Le(0,t),Q(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(n,r)=>this._measureRangeSize(n,r)}),ce([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Q(this._onDestroy)).subscribe(([n,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a<r.elements.length;a++){let f=r.elements[a];if(f){let h=r.offsets[a],_=n!==0?Math.max(n-h,h):-h;for(let v of f)v.style.top=`${-_}px`}}}),ce([e.renderedContentOffset,this._footerRowStickyUpdates]).pipe(Q(this._onDestroy)).subscribe(([n,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a<r.elements.length;a++){let f=r.elements[a];if(f)for(let h of f)h.style.bottom=`${n+r.offsets[a]}px`}})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let t=this._rowOutlet.viewContainer.length===0;if(t===this._isShowingNoDataRow)return;let n=this._noDataRowOutlet.viewContainer;if(t){let r=n.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let f=a.querySelectorAll(e._cellSelector);for(let h=0;h<f.length;h++)f[h].classList.add(...e._cellClassNames)}}else n.clear();this._isShowingNoDataRow=t,this._changeDetectorRef.markForCheck()}_measureRangeSize(e,t){if(e.start>=e.end||t!=="vertical")return 0;let n=this.viewChange.value,r=this._rowOutlet.viewContainer;e.start<n.start||e.end>n.end;let a=e.start-n.start,f=e.end-e.start,h,_;for(let D=0;D<f;D++){let x=r.get(D+a);if(x&&x.rootNodes.length){h=_=x.rootNodes[0];break}}for(let D=f-1;D>-1;D--){let x=r.get(D+a);if(x&&x.rootNodes.length){_=x.rootNodes[x.rootNodes.length-1];break}}let v=h?.getBoundingClientRect?.(),F=_?.getBoundingClientRect?.();return v&&F?F.bottom-v.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=V({type:i,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,n,r){if(t&1&&De(r,jt,5)(r,ie,5)(r,ye,5)(r,le,5)(r,Re,5),t&2){let a;L(a=U())&&(n._noDataRow=a.first),L(a=U())&&(n._contentColumnDefs=a),L(a=U())&&(n._contentRowDefs=a),L(a=U())&&(n._contentHeaderRowDefs=a),L(a=U())&&(n._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,n){t&2&&q("cdk-table-fixed-layout",n.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",A],fixedLayout:[2,"fixedLayout","fixedLayout",A],recycleRows:[2,"recycleRows","recycleRows",A]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[I([{provide:N,useExisting:i},{provide:se,useValue:null}])],ngContentSelectors:oi,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,n){t&1&&(me(ni),$(0),$(1,1),y(2,ri,1,0),y(3,ai,7,0)(4,si,4,0)),t&2&&(d(2),C(n._isServer?2:-1),d(),C(n._isNativeHtmlTable?3:4))},dependencies:[Fe,Me,Oe,Te],styles:[`.cdk-table-fixed-layout {
2
- table-layout: fixed;
3
- }
4
- `],encapsulation:2})}return i})();function _e(i,o){return i.concat(Array.from(o))}function At(i,o){let e=o.toUpperCase(),t=i.viewContainer.element.nativeElement;for(;t;){let n=t.nodeType===1?t.nodeName:null;if(n===e)return t;if(n==="TABLE")break;t=t.parentNode}return null}var $t=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=fe({type:i});static \u0275inj=de({imports:[at]})}return i})();var ci=[[["caption"]],[["colgroup"],["col"]],"*"],di=["caption","colgroup, col","*"];function ui(i,o){i&1&&$(0,2)}function fi(i,o){i&1&&(s(0,"thead",0),k(1,1),l(),s(2,"tbody",2),k(3,3)(4,4),l(),s(5,"tfoot",0),k(6,5),l())}function mi(i,o){i&1&&k(0,1)(1,3)(2,4)(3,5)}var qt=(()=>{class i extends Ee{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(n){return(e||(e=O(i)))(n||i)}})();static \u0275cmp=V({type:i,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(t,n){t&2&&q("mat-table-fixed-layout",n.fixedLayout)},exportAs:["matTable"],features:[I([{provide:Ee,useExisting:i},{provide:N,useExisting:i},{provide:se,useValue:null}]),b],ngContentSelectors:di,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,n){t&1&&(me(ci),$(0),$(1,1),y(2,ui,1,0),y(3,fi,7,0)(4,mi,4,0)),t&2&&(d(2),C(n._isServer?2:-1),d(),C(n._isNativeHtmlTable?3:4))},dependencies:[Fe,Me,Oe,Te],styles:[`.mat-mdc-table-sticky {
5
- position: sticky !important;
6
- }
7
-
8
- mat-table {
9
- display: block;
10
- }
11
-
12
- mat-header-row {
13
- min-height: var(--mat-table-header-container-height, 56px);
14
- }
15
-
16
- mat-row {
17
- min-height: var(--mat-table-row-item-container-height, 52px);
18
- }
19
-
20
- mat-footer-row {
21
- min-height: var(--mat-table-footer-container-height, 52px);
22
- }
23
-
24
- mat-row, mat-header-row, mat-footer-row {
25
- display: flex;
26
- border-width: 0;
27
- border-bottom-width: 1px;
28
- border-style: solid;
29
- align-items: center;
30
- box-sizing: border-box;
31
- }
32
-
33
- mat-cell:first-of-type, mat-header-cell:first-of-type, mat-footer-cell:first-of-type {
34
- padding-left: 24px;
35
- }
36
- [dir=rtl] mat-cell:first-of-type:not(:only-of-type), [dir=rtl] mat-header-cell:first-of-type:not(:only-of-type), [dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type) {
37
- padding-left: 0;
38
- padding-right: 24px;
39
- }
40
- mat-cell:last-of-type, mat-header-cell:last-of-type, mat-footer-cell:last-of-type {
41
- padding-right: 24px;
42
- }
43
- [dir=rtl] mat-cell:last-of-type:not(:only-of-type), [dir=rtl] mat-header-cell:last-of-type:not(:only-of-type), [dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type) {
44
- padding-right: 0;
45
- padding-left: 24px;
46
- }
47
-
48
- mat-cell, mat-header-cell, mat-footer-cell {
49
- flex: 1;
50
- display: flex;
51
- align-items: center;
52
- overflow: hidden;
53
- word-wrap: break-word;
54
- min-height: inherit;
55
- }
56
-
57
- .mat-mdc-table {
58
- min-width: 100%;
59
- border: 0;
60
- border-spacing: 0;
61
- table-layout: auto;
62
- white-space: normal;
63
- background-color: var(--mat-table-background-color, var(--mat-sys-surface));
64
- }
65
-
66
- .mat-table-fixed-layout {
67
- table-layout: fixed;
68
- }
69
-
70
- .mdc-data-table__cell {
71
- box-sizing: border-box;
72
- overflow: hidden;
73
- text-align: start;
74
- text-overflow: ellipsis;
75
- }
76
-
77
- .mdc-data-table__cell,
78
- .mdc-data-table__header-cell {
79
- padding: 0 16px;
80
- }
81
-
82
- .mat-mdc-header-row {
83
- -moz-osx-font-smoothing: grayscale;
84
- -webkit-font-smoothing: antialiased;
85
- height: var(--mat-table-header-container-height, 56px);
86
- color: var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));
87
- font-family: var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));
88
- line-height: var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));
89
- font-size: var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));
90
- font-weight: var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500));
91
- }
92
-
93
- .mat-mdc-row {
94
- height: var(--mat-table-row-item-container-height, 52px);
95
- color: var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));
96
- }
97
-
98
- .mat-mdc-row,
99
- .mdc-data-table__content {
100
- -moz-osx-font-smoothing: grayscale;
101
- -webkit-font-smoothing: antialiased;
102
- font-family: var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));
103
- line-height: var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));
104
- font-size: var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));
105
- font-weight: var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight));
106
- }
107
-
108
- .mat-mdc-footer-row {
109
- -moz-osx-font-smoothing: grayscale;
110
- -webkit-font-smoothing: antialiased;
111
- height: var(--mat-table-footer-container-height, 52px);
112
- color: var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));
113
- font-family: var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));
114
- line-height: var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));
115
- font-size: var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));
116
- font-weight: var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));
117
- letter-spacing: var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking));
118
- }
119
-
120
- .mat-mdc-header-cell {
121
- border-bottom-color: var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));
122
- border-bottom-width: var(--mat-table-row-item-outline-width, 1px);
123
- border-bottom-style: solid;
124
- letter-spacing: var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));
125
- font-weight: inherit;
126
- line-height: inherit;
127
- box-sizing: border-box;
128
- text-overflow: ellipsis;
129
- overflow: hidden;
130
- outline: none;
131
- text-align: start;
132
- }
133
- .mdc-data-table__row:last-child > .mat-mdc-header-cell {
134
- border-bottom: none;
135
- }
136
-
137
- .mat-mdc-cell {
138
- border-bottom-color: var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));
139
- border-bottom-width: var(--mat-table-row-item-outline-width, 1px);
140
- border-bottom-style: solid;
141
- letter-spacing: var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));
142
- line-height: inherit;
143
- }
144
- .mdc-data-table__row:last-child > .mat-mdc-cell {
145
- border-bottom: none;
146
- }
147
-
148
- .mat-mdc-footer-cell {
149
- letter-spacing: var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));
150
- }
151
-
152
- mat-row.mat-mdc-row,
153
- mat-header-row.mat-mdc-header-row,
154
- mat-footer-row.mat-mdc-footer-row {
155
- border-bottom: none;
156
- }
157
-
158
- .mat-mdc-table tbody,
159
- .mat-mdc-table tfoot,
160
- .mat-mdc-table thead,
161
- .mat-mdc-cell,
162
- .mat-mdc-footer-cell,
163
- .mat-mdc-header-row,
164
- .mat-mdc-row,
165
- .mat-mdc-footer-row,
166
- .mat-mdc-table .mat-mdc-header-cell {
167
- background: inherit;
168
- }
169
-
170
- .mat-mdc-table mat-header-row.mat-mdc-header-row,
171
- .mat-mdc-table mat-row.mat-mdc-row,
172
- .mat-mdc-table mat-footer-row.mat-mdc-footer-cell {
173
- height: unset;
174
- }
175
-
176
- mat-header-cell.mat-mdc-header-cell,
177
- mat-cell.mat-mdc-cell,
178
- mat-footer-cell.mat-mdc-footer-cell {
179
- align-self: stretch;
180
- }
181
- `],encapsulation:2})}return i})(),Qt=(()=>{class i extends ge{static \u0275fac=(()=>{let e;return function(n){return(e||(e=O(i)))(n||i)}})();static \u0275dir=p({type:i,selectors:[["","matCellDef",""]],features:[I([{provide:ge,useExisting:i}]),b]})}return i})(),Wt=(()=>{class i extends we{static \u0275fac=(()=>{let e;return function(n){return(e||(e=O(i)))(n||i)}})();static \u0275dir=p({type:i,selectors:[["","matHeaderCellDef",""]],features:[I([{provide:we,useExisting:i}]),b]})}return i})();var Kt=(()=>{class i extends ie{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=O(i)))(n||i)}})();static \u0275dir=p({type:i,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[I([{provide:ie,useExisting:i}]),b]})}return i})(),Yt=(()=>{class i extends Lt{static \u0275fac=(()=>{let e;return function(n){return(e||(e=O(i)))(n||i)}})();static \u0275dir=p({type:i,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[b]})}return i})();var Xt=(()=>{class i extends Ut{static \u0275fac=(()=>{let e;return function(n){return(e||(e=O(i)))(n||i)}})();static \u0275dir=p({type:i,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[b]})}return i})();var Gt=(()=>{class i extends le{static \u0275fac=(()=>{let e;return function(n){return(e||(e=O(i)))(n||i)}})();static \u0275dir=p({type:i,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",A]},features:[I([{provide:le,useExisting:i}]),b]})}return i})();var Zt=(()=>{class i extends ye{static \u0275fac=(()=>{let e;return function(n){return(e||(e=O(i)))(n||i)}})();static \u0275dir=p({type:i,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[I([{provide:ye,useExisting:i}]),b]})}return i})(),Jt=(()=>{class i extends ke{static \u0275fac=(()=>{let e;return function(n){return(e||(e=O(i)))(n||i)}})();static \u0275cmp=V({type:i,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[I([{provide:ke,useExisting:i}]),b],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,n){t&1&&k(0,0)},dependencies:[X],encapsulation:2})}return i})();var ei=(()=>{class i extends Se{static \u0275fac=(()=>{let e;return function(n){return(e||(e=O(i)))(n||i)}})();static \u0275cmp=V({type:i,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[I([{provide:Se,useExisting:i}]),b],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,n){t&1&&k(0,0)},dependencies:[X],encapsulation:2})}return i})();var ti=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=fe({type:i});static \u0275inj=de({imports:[$t,nt]})}return i})();var _i=(i,o)=>o.pr;function pi(i,o){i&1&&(s(0,"div",5),m(1,"Loading\u2026"),l())}function gi(i,o){i&1&&(s(0,"div",5)(1,"mat-icon",7),m(2,"tips_and_updates"),l(),s(3,"p"),m(4,"No features have been documented yet."),l()())}function wi(i,o){if(i&1&&(s(0,"figcaption"),m(1),l()),i&2){let e=u(2);d(),S(e.images[0].alt)}}function yi(i,o){if(i&1){let e=P();s(0,"figure",35),R("click",function(){g(e);let n=u(),r=u(2);return w(r.openViewer(n.images[0].url))})("keydown.enter",function(){g(e);let n=u(),r=u(2);return w(r.openViewer(n.images[0].url))})("keydown.space",function(n){g(e);let r=u();return u(2).openViewer(r.images[0].url),w(n.preventDefault())}),J(1,"img",36),y(2,wi,2,1,"figcaption"),l()}if(i&2){let e=u(),t=u(2);W("aria-label","Enlarge "+(e.images[0].alt||"screenshot")),d(),E("src",t.resolveShot(e.images[0].url),ne)("alt",e.images[0].alt||""),d(),C(e.images[0].alt?2:-1)}}function Ci(i,o){if(i&1&&(s(0,"span",37),m(1),l()),i&2){let e=u(),t=u(2);q("enhanced",e.latestKind==="enhanced"),d(),ee(" ",t.sinceLabel(e)," ")}}function vi(i,o){i&1&&(s(0,"span",30),m(1,"Unreleased"),l())}function Di(i,o){if(i&1&&(s(0,"figcaption"),m(1),l()),i&2){let e=u().$implicit;d(),S(e.alt)}}function xi(i,o){if(i&1){let e=P();s(0,"figure",38),R("click",function(){let n=g(e).$implicit,r=u(3);return w(r.openViewer(n.url))})("keydown.enter",function(){let n=g(e).$implicit,r=u(3);return w(r.openViewer(n.url))})("keydown.space",function(n){let r=g(e).$implicit;return u(3).openViewer(r.url),w(n.preventDefault())}),J(1,"img",36),y(2,Di,2,1,"figcaption"),l()}if(i&2){let e=o.$implicit,t=u(3);W("aria-label","Enlarge "+(e.alt||"screenshot")),d(),E("src",t.resolveShot(e.url),ne)("alt",e.alt||""),d(),C(e.alt?2:-1)}}function bi(i,o){if(i&1&&(s(0,"a",43),m(1),l()),i&2){let e=o,t=u(5);E("href",t.prUrl(e),ne),d(),ee("#",e)}}function Ri(i,o){if(i&1&&(s(0,"tr")(1,"td",41),m(2),Ke(3,"date"),l(),s(4,"td",42),y(5,bi,2,2,"a",43),l(),s(6,"td",44),m(7),l()()),i&2){let e,t=o.$implicit;d(2),ee(" ",t.date?Ye(3,3,t.date,"mediumDate"):""," "),d(3),C((e=t.pr)?5:-1,e),d(2),S(t.title)}}function ki(i,o){if(i&1&&(s(0,"div",34)(1,"div",39),m(2,"History"),l(),s(3,"table",40),Qe(4,Ri,8,6,"tr",null,_i),l()()),i&2){let e=u();d(4),We(e.events)}}function Si(i,o){if(i&1&&(s(0,"div",9),y(1,yi,3,4,"figure",26),s(2,"h2"),m(3),l(),s(4,"div",27)(5,"span",28),m(6),l(),y(7,Ci,2,3,"span",29)(8,vi,2,0,"span",30),l(),s(9,"div",31)(10,"remark",32),z(11,xi,3,4,"ng-template",33),l()(),y(12,ki,6,0,"div",34),l()),i&2){let e=o,t=u(2);d(),C(e.images.length?1:-1),d(2),S(e.title),d(2),re("--cat-hue",t.categoryHue(e.category)),d(),S(e.category),d(),C(e.since?7:8),d(3),E("processor",t.mdProcessor)("markdown",e.body),d(2),C(e.events.length?12:-1)}}function Mi(i,o){i&1&&(s(0,"div",5),m(1,"No matching features."),l())}function Fi(i,o){if(i&1){let e=P();s(0,"button",45),R("click",function(){g(e);let n=u(2);return w(n.query.set(""))}),s(1,"mat-icon"),m(2,"close"),l()()}}function Ti(i,o){if(i&1){let e=P();s(0,"th",46),R("click",function(){g(e);let n=u(2);return w(n.setSort("category"))})("keydown.enter",function(){g(e);let n=u(2);return w(n.setSort("category"))})("keydown.space",function(n){return g(e),u(2).setSort("category"),w(n.preventDefault())}),m(1," Category "),s(2,"mat-icon",47),m(3),l()()}if(i&2){let e=u(2);W("aria-sort",e.ariaSort("category")),d(3),S(e.sortIcon("category"))}}function Oi(i,o){if(i&1&&(s(0,"td",48)(1,"span",28),m(2),l()()),i&2){let e=o.$implicit,t=u(2);d(),re("--cat-hue",t.categoryHue(e.category)),d(),S(e.category)}}function Ei(i,o){if(i&1){let e=P();s(0,"th",46),R("click",function(){g(e);let n=u(2);return w(n.setSort("title"))})("keydown.enter",function(){g(e);let n=u(2);return w(n.setSort("title"))})("keydown.space",function(n){return g(e),u(2).setSort("title"),w(n.preventDefault())}),m(1," Feature "),s(2,"mat-icon",47),m(3),l()()}if(i&2){let e=u(2);W("aria-sort",e.ariaSort("title")),d(3),S(e.sortIcon("title"))}}function Pi(i,o){if(i&1&&(s(0,"td",48),m(1),l()),i&2){let e=o.$implicit;d(),S(e.title)}}function Ii(i,o){i&1&&(s(0,"th",49),m(1,"Status"),l())}function Ni(i,o){if(i&1&&(s(0,"span",51),m(1),l()),i&2){let e=u().$implicit;q("enhanced",e.latestKind==="enhanced"),d(),S(e.latestKind==="enhanced"?"Updated":"New")}}function Bi(i,o){if(i&1&&(s(0,"td",48),y(1,Ni,2,3,"span",50),l()),i&2){let e=o.$implicit;d(),C(e.latestKind?1:-1)}}function Vi(i,o){if(i&1){let e=P();s(0,"th",46),R("click",function(){g(e);let n=u(2);return w(n.setSort("since"))})("keydown.enter",function(){g(e);let n=u(2);return w(n.setSort("since"))})("keydown.space",function(n){return g(e),u(2).setSort("since"),w(n.preventDefault())}),m(1," Since "),s(2,"mat-icon",47),m(3),l()()}if(i&2){let e=u(2);W("aria-sort",e.ariaSort("since")),d(3),S(e.sortIcon("since"))}}function Ai(i,o){if(i&1&&(s(0,"td",48),m(1),l()),i&2){let e=o.$implicit;d(),S(e.since??"\u2014")}}function Hi(i,o){i&1&&J(0,"tr",52)}function zi(i,o){if(i&1){let e=P();s(0,"tr",53),R("click",function(){let n=g(e).$implicit,r=u(2);return w(r.select(n))}),l()}if(i&2){let e=o.$implicit,t=u(2);q("active",t.isActive(e))}}function Li(i,o){i&1&&(s(0,"div",5),m(1,"No matching features."),l())}function Ui(i,o){if(i&1){let e=P();s(0,"div",8),y(1,Si,13,9,"div",9)(2,Mi,2,0,"div",5),l(),s(3,"div",10)(4,"mat-form-field",11)(5,"mat-icon",12),m(6,"search"),l(),s(7,"input",13),R("ngModelChange",function(n){g(e);let r=u();return w(r.query.set(n))}),l(),y(8,Fi,3,0,"button",14),l(),s(9,"div",15)(10,"table",16),K(11,17),z(12,Ti,4,2,"th",18)(13,Oi,3,3,"td",19),Y(),K(14,20),z(15,Ei,4,2,"th",18)(16,Pi,2,1,"td",19),Y(),K(17,21),z(18,Ii,2,0,"th",22)(19,Bi,2,1,"td",19),Y(),K(20,23),z(21,Vi,4,2,"th",18)(22,Ai,2,1,"td",19),Y(),z(23,Hi,1,0,"tr",24)(24,zi,1,2,"tr",25),l(),y(25,Li,2,0,"div",5),l()()}if(i&2){let e,t=u();d(),C((e=t.activeFeature())?1:2,e),d(6),E("ngModel",t.query()),d(),C(t.query()?8:-1),d(2),E("dataSource",t.displayed()),d(13),E("matHeaderRowDef",t.columns)("matHeaderRowDefSticky",!0),d(),E("matRowDefColumns",t.columns),d(),C(t.displayed().length===0?25:-1)}}function ji(i,o){if(i&1){let e=P();s(0,"button",57),R("click",function(n){return g(e),u(2).stepViewer(-1),w(n.stopPropagation())}),s(1,"mat-icon"),m(2,"chevron_left"),l()(),s(3,"button",58),R("click",function(n){return g(e),u(2).stepViewer(1),w(n.stopPropagation())}),s(4,"mat-icon"),m(5,"chevron_right"),l()()}}function $i(i,o){if(i&1&&(s(0,"figcaption"),m(1),l()),i&2){let e=u();d(),S(e.alt)}}function qi(i,o){if(i&1){let e=P();s(0,"div",54),R("click",function(){g(e);let n=u();return w(n.closeViewer())}),s(1,"button",55),R("click",function(n){return g(e),u().closeViewer(),w(n.stopPropagation())}),s(2,"mat-icon"),m(3,"close"),l()(),y(4,ji,6,0),s(5,"figure",56),R("click",function(n){return n.stopPropagation()}),J(6,"img",36),y(7,$i,2,1,"figcaption"),l()()}if(i&2){let e=o,t=u();E("cdkTrapFocusAutoCapture",!0),W("aria-label",e.alt||"Image viewer"),d(4),C(t.viewerHasMultiple()?4:-1),d(2),E("src",t.resolveShot(e.url),ne)("alt",e.alt||""),d(),C(e.alt?7:-1)}}var ii=class i{mdProcessor=Tt;corpus=c(Bt);dialogRef=c(ct);host=c(B);loading=j(!0);query=j("");sortColumn=j("since");sortDirection=j("desc");selectedId=j(null);all=j([]);columns=["category","title","status","since"];displayed=ae(()=>Pt(Nt(this.all(),this.query()),this.sortColumn(),this.sortDirection()));activeFeature=ae(()=>{let o=this.displayed(),e=this.selectedId();return o.find(t=>t.id===e)??o[0]??null});viewerIndex=j(null);viewerImage=ae(()=>{let o=this.viewerIndex(),e=this.activeFeature()?.images??[];return o===null?null:e[o]??null});viewerHasMultiple=ae(()=>(this.activeFeature()?.images.length??0)>1);constructor(){qe(()=>{this.activeFeature(),this.resetDetailsScroll()})}ngOnInit(){return Be(this,null,function*(){this.dialogRef.keydownEvents().subscribe(o=>this.handleKey(o)),this.all.set(yield this.corpus.load()),this.loading.set(!1)})}setSort(o){this.sortColumn()===o?this.sortDirection.update(e=>e==="asc"?"desc":"asc"):(this.sortColumn.set(o),this.sortDirection.set(o==="since"?"desc":"asc"))}sortIcon(o){return this.sortColumn()!==o?"":this.sortDirection()==="asc"?"arrow_upward":"arrow_downward"}ariaSort(o){return this.sortColumn()!==o?"none":this.sortDirection()==="asc"?"ascending":"descending"}select(o){this.selectedId.set(o.id)}handleKey(o){if(this.viewerIndex()!==null){o.key==="ArrowLeft"?(o.preventDefault(),this.stepViewer(-1)):o.key==="ArrowRight"?(o.preventDefault(),this.stepViewer(1)):o.key==="Escape"&&(o.preventDefault(),this.closeViewer());return}if(o.key!=="ArrowDown"&&o.key!=="ArrowUp")return;let e=this.displayed();if(e.length===0)return;o.preventDefault();let t=e.findIndex(r=>r.id===this.activeFeature()?.id),n=It(t,o.key,e.length);this.selectedId.set(e[n].id),requestAnimationFrame(()=>this.revealRow(n))}resetDetailsScroll(){let o=this.host.nativeElement.querySelector(".details");o&&(o.scrollTop=0)}revealRow(o){let e=this.host.nativeElement,t=e.querySelector(".table-scroll"),n=e.querySelectorAll("tr[mat-row]")[o];if(!t||!n)return;let r=e.querySelector("tr[mat-header-row]")?.offsetHeight??0,a=t.getBoundingClientRect(),f=n.getBoundingClientRect(),h=a.top+r;f.top<h?t.scrollTop-=h-f.top:f.bottom>a.bottom&&(t.scrollTop+=f.bottom-a.bottom)}isActive(o){return this.activeFeature()?.id===o.id}sinceLabel(o){return o.since?`${o.latestKind==="enhanced"?"Updated":"New"} in ${o.since}`:"Unreleased"}categoryHue(o){return this.corpus.hueFor(o)}prUrl(o){return`https://github.com/SignalK/freeboard-sk/pull/${o}`}resolveShot(o){return/^(https?:|data:)/i.test(o)?o:`assets/features/${o.replace(/^\/+/,"")}`}openViewer(o){let t=(this.activeFeature()?.images??[]).findIndex(n=>n.url===o);t<0||(this.dialogRef.disableClose=!0,this.viewerIndex.set(t))}closeViewer(){this.viewerIndex.set(null),this.dialogRef.disableClose=!1}stepViewer(o){let e=this.activeFeature()?.images??[],t=this.viewerIndex();t===null||e.length===0||this.viewerIndex.set((t+o+e.length)%e.length)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=V({type:i,selectors:[["fb-feature-browser"]],decls:14,vars:2,consts:[[1,"feature-browser"],[1,"icon-accent"],[1,"title"],[1,"spacer"],["mat-icon-button","","aria-label","Close","matTooltip","Close",3,"click"],[1,"empty"],["role","dialog","aria-modal","true","cdkTrapFocus","",1,"viewer",3,"cdkTrapFocusAutoCapture"],[1,"empty-icon"],[1,"details"],[1,"details-flow"],[1,"list"],["appearance","outline","subscriptSizing","dynamic",1,"search"],["matPrefix",""],["matInput","","placeholder","Search features",3,"ngModelChange","ngModel"],["matSuffix","","mat-icon-button","","aria-label","Clear search"],[1,"table-scroll"],["mat-table","",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","","tabindex","0",3,"click","keydown.enter","keydown.space",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","since"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",3,"active","click",4,"matRowDef","matRowDefColumns"],["role","button","tabindex","0",1,"shot","lead"],[1,"meta"],[1,"cat-chip"],[1,"since-badge",3,"enhanced"],[1,"since"],[1,"body"],[3,"processor","markdown"],["remarkTemplate","image"],[1,"pr-history"],["role","button","tabindex","0",1,"shot","lead",3,"click","keydown.enter","keydown.space"],[3,"src","alt"],[1,"since-badge"],["role","button","tabindex","0",1,"shot",3,"click","keydown.enter","keydown.space"],[1,"pr-history-title"],[1,"pr-table"],[1,"pr-date"],[1,"pr-num"],["target","_blank","rel","noopener",3,"href"],[1,"pr-title"],["matSuffix","","mat-icon-button","","aria-label","Clear search",3,"click"],["mat-header-cell","","tabindex","0",3,"click","keydown.enter","keydown.space"],[1,"sort"],["mat-cell",""],["mat-header-cell",""],[1,"kind-badge",3,"enhanced"],[1,"kind-badge"],["mat-header-row",""],["mat-row","",3,"click"],["role","dialog","aria-modal","true","cdkTrapFocus","",1,"viewer",3,"click","cdkTrapFocusAutoCapture"],["mat-icon-button","","aria-label","Close image viewer",1,"viewer-btn","viewer-close",3,"click"],[1,"viewer-figure",3,"click"],["mat-icon-button","","aria-label","Previous image",1,"viewer-btn","viewer-prev",3,"click"],["mat-icon-button","","aria-label","Next image",1,"viewer-btn","viewer-next",3,"click"]],template:function(e,t){if(e&1&&(s(0,"div",0)(1,"mat-toolbar")(2,"mat-icon",1),m(3,"tips_and_updates"),l(),s(4,"span",2),m(5,"What's New"),l(),J(6,"span",3),s(7,"button",4),R("click",function(){return t.dialogRef.close()}),s(8,"mat-icon"),m(9,"close"),l()()(),y(10,pi,2,0,"div",5)(11,gi,5,0,"div",5)(12,Ui,26,8),y(13,qi,8,6,"div",6),l()),e&2){let n;d(10),C(t.loading()?10:t.all().length===0?11:12),d(3),C((n=t.viewerImage())?13:-1,n)}},dependencies:[yt,pt,gt,wt,dt,Ft,Mt,ft,ut,ht,mt,Rt,bt,Dt,xt,St,kt,ti,qt,Wt,Gt,Kt,Qt,Zt,Yt,Xt,Jt,ei,vt,Ct,lt,st,Et,Ot,Ze],styles:[".feature-browser[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;width:100%;height:72vh;max-height:680px}mat-toolbar[_ngcontent-%COMP%]{min-height:48px;height:48px;gap:8px;border-bottom:1px solid var(--mat-sys-outline-variant, #e0e0e0)}mat-toolbar[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:1rem;font-weight:500}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.details[_ngcontent-%COMP%]{flex:1 1 55%;overflow:auto;padding:20px 20px 16px;min-height:0}.details[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 10px;font-size:1.3rem;font-weight:500;line-height:1.2}.details[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin-bottom:14px}.details-flow[_ngcontent-%COMP%]{display:flow-root}.details[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{line-height:1.6}figure.shot[_ngcontent-%COMP%]{float:right;clear:right;width:46%;max-width:300px;margin:2px 0 12px 16px;cursor:pointer}figure.shot.lead[_ngcontent-%COMP%]{margin-top:0}figure.shot[_ngcontent-%COMP%]:focus-visible, th[mat-header-cell][_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--mat-sys-primary, #415f91);outline-offset:2px}figure.shot[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:100%;height:auto;border-radius:8px;border:1px solid var(--mat-sys-outline-variant, #d8dae0);box-shadow:0 1px 6px #00000024}figure.shot[_ngcontent-%COMP%] figcaption[_ngcontent-%COMP%]{margin-top:4px;font-size:.75rem;font-style:italic;text-align:center;color:var(--mat-sys-on-surface-variant, #6b7079)}.details[_ngcontent-%COMP%] .body[_ngcontent-%COMP%] [_ngcontent-%COMP%]:first-child{margin-top:0}.cat-chip[_ngcontent-%COMP%]{display:inline-block;padding:2px 10px;border-radius:11px;font-size:.72rem;font-weight:500;line-height:1.5;white-space:nowrap;background:hsl(var(--cat-hue, 210) 58% 90%);color:hsl(var(--cat-hue, 210) 42% 30%)}.since-badge[_ngcontent-%COMP%]{font-size:.72rem;font-weight:500;padding:2px 10px;border-radius:11px;white-space:nowrap;background:#e4f4e8;color:#1b5e20}.since-badge.enhanced[_ngcontent-%COMP%]{background:#e2eefc;color:#0d47a1}.details[_ngcontent-%COMP%] .since[_ngcontent-%COMP%]{font-size:.8rem;opacity:.7}.pr-history[_ngcontent-%COMP%]{display:flow-root;margin-top:18px;padding-top:12px;border-top:1px solid var(--mat-sys-outline-variant, #e0e0e0)}.pr-history-title[_ngcontent-%COMP%]{font-size:.72rem;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:var(--mat-sys-on-surface-variant, #565a63);margin-bottom:6px}.pr-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.85rem}.pr-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:4px 10px 4px 0;vertical-align:top;border-bottom:1px solid var(--mat-sys-outline-variant, #f0f0f0)}.pr-table[_ngcontent-%COMP%] .pr-date[_ngcontent-%COMP%]{white-space:nowrap;width:1%;color:var(--mat-sys-on-surface-variant, #6b7079)}.pr-table[_ngcontent-%COMP%] .pr-num[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.pr-table[_ngcontent-%COMP%] .pr-num[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--mat-sys-primary, #415f91);text-decoration:none;font-weight:500}.pr-table[_ngcontent-%COMP%] .pr-num[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.pr-table[_ngcontent-%COMP%] .pr-title[_ngcontent-%COMP%]{width:100%}.list[_ngcontent-%COMP%]{flex:1 1 45%;display:flex;flex-direction:column;min-height:0;border-top:1px solid var(--mat-sys-outline-variant, #e0e0e0)}.list[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{margin:8px 14px 0}.list[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper{padding-top:0;padding-bottom:0}.list[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:38px;padding-top:7px;padding-bottom:7px}.list[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] input.mat-mdc-input-element{font-size:.875rem}.table-scroll[_ngcontent-%COMP%]{flex:1 1 auto;overflow:auto}table[_ngcontent-%COMP%]{width:100%;background:transparent}tr[mat-row][_ngcontent-%COMP%], tr[mat-header-row][_ngcontent-%COMP%]{height:42px}td[mat-cell][_ngcontent-%COMP%], th[mat-header-cell][_ngcontent-%COMP%]{padding-top:4px;padding-bottom:4px;border-bottom-color:var(--mat-sys-outline-variant, #eee)}th[mat-header-cell][_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;font-weight:600;font-size:.72rem;letter-spacing:.02em;text-transform:uppercase;color:var(--mat-sys-on-surface-variant, #565a63);background-color:var(--mat-sys-surface, #fff)}.sort[_ngcontent-%COMP%]{font-size:16px;height:16px;width:16px;vertical-align:middle;opacity:.7}tr[mat-row][_ngcontent-%COMP%]{cursor:pointer;transition:background-color .12s ease}tr[mat-row][_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{background:#415f9112}tr[mat-row].active[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:var(--mat-sys-primary-container, #d7e2ff);color:var(--mat-sys-on-primary-container, #274777);font-weight:500}tr[mat-row].active[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{box-shadow:inset 3px 0 0 0 var(--mat-sys-primary, #415f91)}.kind-badge[_ngcontent-%COMP%]{display:inline-block;padding:1px 9px;border-radius:10px;font-size:.7rem;font-weight:500;white-space:nowrap;background:#e4f4e8;color:#1b5e20}.kind-badge.enhanced[_ngcontent-%COMP%]{background:#e2eefc;color:#0d47a1}.empty[_ngcontent-%COMP%]{padding:32px 16px;text-align:center;opacity:.7}.empty[_ngcontent-%COMP%] .empty-icon[_ngcontent-%COMP%]{font-size:40px;height:40px;width:40px;opacity:.5}.viewer[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:44px;background:#000000d1}.viewer-figure[_ngcontent-%COMP%]{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center}.viewer-figure[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;max-height:78vh;object-fit:contain;border-radius:4px;box-shadow:0 6px 28px #0000008c}.viewer-figure[_ngcontent-%COMP%] figcaption[_ngcontent-%COMP%]{margin-top:12px;color:#fff;font-size:.85rem;text-align:center}.viewer-btn[_ngcontent-%COMP%]{position:absolute;color:#fff}.viewer-close[_ngcontent-%COMP%]{top:6px;right:6px}.viewer-prev[_ngcontent-%COMP%]{top:50%;left:6px;transform:translateY(-50%)}.viewer-next[_ngcontent-%COMP%]{top:50%;right:6px;transform:translateY(-50%)}"]})};export{ii as FeatureBrowserDialog};
@@ -1 +0,0 @@
1
- import{Aa as a}from"./chunk-OTJKIGKW.js";import"./chunk-IURS3QQO.js";import"./chunk-4BXCQ655.js";import"./chunk-LXTM3LEN.js";import"./chunk-IYNTZMNB.js";import"./chunk-3CRIFTHA.js";import"./chunk-UF7LOYCE.js";import"./chunk-XHEJEIFO.js";import"./chunk-I3OUN6B4.js";import"./chunk-WX7YZB5N.js";import"./chunk-4BSA3TDQ.js";import"./chunk-EQVTEUXC.js";export{a as GeoJSONImportDialog};
@@ -1 +0,0 @@
1
- import{j as a}from"./chunk-IYNTZMNB.js";import"./chunk-3CRIFTHA.js";import"./chunk-UF7LOYCE.js";import"./chunk-XHEJEIFO.js";import"./chunk-I3OUN6B4.js";import"./chunk-WX7YZB5N.js";import"./chunk-4BSA3TDQ.js";import"./chunk-EQVTEUXC.js";export{a as PlaybackDialog};
@@ -1 +0,0 @@
1
- import{Ba as a}from"./chunk-OTJKIGKW.js";import"./chunk-IURS3QQO.js";import"./chunk-4BXCQ655.js";import"./chunk-LXTM3LEN.js";import"./chunk-IYNTZMNB.js";import"./chunk-3CRIFTHA.js";import"./chunk-UF7LOYCE.js";import"./chunk-XHEJEIFO.js";import"./chunk-I3OUN6B4.js";import"./chunk-WX7YZB5N.js";import"./chunk-4BSA3TDQ.js";import"./chunk-EQVTEUXC.js";export{a as Trail2RouteDialog};