daimon 0.8.0 → 0.9.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 (77) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.md +48 -1
  3. package/dist/cli.js +91 -86
  4. package/dist/dashboard/browser/chunk-3EPFSBJ2.js +2 -0
  5. package/dist/dashboard/browser/{chunk-PJPGLT4T.js → chunk-3ZFFKHPU.js} +1 -1
  6. package/dist/dashboard/browser/{chunk-QSBOKS53.js → chunk-4KVYA2AQ.js} +1 -1
  7. package/dist/dashboard/browser/chunk-55AO3FMG.js +1 -0
  8. package/dist/dashboard/browser/{chunk-V2KNRAE4.js → chunk-66VYPESU.js} +1 -1
  9. package/dist/dashboard/browser/chunk-6MTVWBQQ.js +2 -0
  10. package/dist/dashboard/browser/chunk-6Z4FDREI.js +1 -0
  11. package/dist/dashboard/browser/{chunk-7NPLP3QD.js → chunk-7LKM244H.js} +1 -1
  12. package/dist/dashboard/browser/chunk-ACPSBF55.js +1 -0
  13. package/dist/dashboard/browser/{chunk-OHX55ZU4.js → chunk-AGN2F6JP.js} +1 -1
  14. package/dist/dashboard/browser/chunk-B2DPS6BL.js +1 -0
  15. package/dist/dashboard/browser/{chunk-3WKRVGPT.js → chunk-BBTQXZIS.js} +1 -1
  16. package/dist/dashboard/browser/chunk-CIQNXWDY.js +1 -0
  17. package/dist/dashboard/browser/chunk-EBGPIJ7S.js +1 -0
  18. package/dist/dashboard/browser/{chunk-LBRCWYRN.js → chunk-F3FCHBFQ.js} +1 -1
  19. package/dist/dashboard/browser/chunk-FD3BW2ZN.js +1 -0
  20. package/dist/dashboard/browser/chunk-FRKUCFVI.js +1 -0
  21. package/dist/dashboard/browser/chunk-FZLMX6EY.js +1 -0
  22. package/dist/dashboard/browser/chunk-GMEW64AS.js +1 -0
  23. package/dist/dashboard/browser/chunk-HXX2OUOE.js +1 -0
  24. package/dist/dashboard/browser/chunk-HZNVO3JE.js +1 -0
  25. package/dist/dashboard/browser/chunk-JWXROQJJ.js +2 -0
  26. package/dist/dashboard/browser/chunk-K2SFF47Z.js +5 -0
  27. package/dist/dashboard/browser/chunk-K5WKBG55.js +1 -0
  28. package/dist/dashboard/browser/chunk-K6PUQAFE.js +2 -0
  29. package/dist/dashboard/browser/{chunk-NDSAQ2HK.js → chunk-KRC72WWY.js} +1 -1
  30. package/dist/dashboard/browser/{chunk-H3L4MTG4.js → chunk-LBWOIG7N.js} +1 -1
  31. package/dist/dashboard/browser/chunk-NVL5HFLU.js +1 -0
  32. package/dist/dashboard/browser/chunk-O76B43BY.js +4 -0
  33. package/dist/dashboard/browser/{chunk-EIWOTZT3.js → chunk-PRLUGTKR.js} +1 -1
  34. package/dist/dashboard/browser/chunk-QYIYT4YU.js +1 -0
  35. package/dist/dashboard/browser/{chunk-UC3XMN2Y.js → chunk-R7VSXL63.js} +1 -1
  36. package/dist/dashboard/browser/{chunk-7NRE3SNA.js → chunk-RNUJZTKS.js} +1 -1
  37. package/dist/dashboard/browser/{chunk-2BXIFQGQ.js → chunk-RWXAGDGT.js} +1 -1
  38. package/dist/dashboard/browser/chunk-RXOAYCKI.js +2 -0
  39. package/dist/dashboard/browser/chunk-SR4HVFOB.js +2 -0
  40. package/dist/dashboard/browser/chunk-TGSV7ZHM.js +2 -0
  41. package/dist/dashboard/browser/chunk-UC7AWK4C.js +2 -0
  42. package/dist/dashboard/browser/chunk-UUJWPV5O.js +3 -0
  43. package/dist/dashboard/browser/chunk-VHALTUPL.js +2 -0
  44. package/dist/dashboard/browser/{chunk-6WZJCF24.js → chunk-VMW35ZNT.js} +1 -1
  45. package/dist/dashboard/browser/{chunk-Q772THBA.js → chunk-WOMCRDMJ.js} +1 -2
  46. package/dist/dashboard/browser/chunk-WRX32YWH.js +1 -0
  47. package/dist/dashboard/browser/chunk-X4RGWMLE.js +4 -0
  48. package/dist/dashboard/browser/{chunk-P5IU57TV.js → chunk-YHBNUNU3.js} +1 -1
  49. package/dist/dashboard/browser/index.html +1 -1
  50. package/dist/dashboard/browser/main-YAROJLJV.js +1 -0
  51. package/dist/main.js +49 -48
  52. package/dist/mcp.js +3 -3
  53. package/package.json +6 -3
  54. package/dist/dashboard/browser/chunk-44JIQO3X.js +0 -1
  55. package/dist/dashboard/browser/chunk-4BAKWDAV.js +0 -1
  56. package/dist/dashboard/browser/chunk-4OCNYL7T.js +0 -1
  57. package/dist/dashboard/browser/chunk-7C772RJ3.js +0 -3
  58. package/dist/dashboard/browser/chunk-A4BNXJUT.js +0 -1
  59. package/dist/dashboard/browser/chunk-CILFSVSP.js +0 -2
  60. package/dist/dashboard/browser/chunk-CM4RQF3A.js +0 -5
  61. package/dist/dashboard/browser/chunk-CNSXWFDX.js +0 -1
  62. package/dist/dashboard/browser/chunk-CY5YRTQK.js +0 -1
  63. package/dist/dashboard/browser/chunk-GYWEXV2L.js +0 -3
  64. package/dist/dashboard/browser/chunk-H2N3RBHF.js +0 -1
  65. package/dist/dashboard/browser/chunk-I65I7J5Q.js +0 -2
  66. package/dist/dashboard/browser/chunk-K43KW4K2.js +0 -4
  67. package/dist/dashboard/browser/chunk-K7S4ITPJ.js +0 -2
  68. package/dist/dashboard/browser/chunk-KL6X73FV.js +0 -1
  69. package/dist/dashboard/browser/chunk-KLH6B22T.js +0 -1
  70. package/dist/dashboard/browser/chunk-LBL7Z5BE.js +0 -5
  71. package/dist/dashboard/browser/chunk-LHAMBNO6.js +0 -1
  72. package/dist/dashboard/browser/chunk-NX6DTO32.js +0 -1
  73. package/dist/dashboard/browser/chunk-P5IE6DI6.js +0 -2
  74. package/dist/dashboard/browser/chunk-VM2FOT77.js +0 -1
  75. package/dist/dashboard/browser/chunk-Y6B6X4Y6.js +0 -2
  76. package/dist/dashboard/browser/chunk-YYAZGY5M.js +0 -1
  77. package/dist/dashboard/browser/main-4CQTBXSB.js +0 -1
@@ -0,0 +1 @@
1
+ import{a as A,b as $,c as j,f as L,g as z}from"./chunk-RNUJZTKS.js";import{a as I}from"./chunk-7LKM244H.js";import{c as D,d as T}from"./chunk-LBWOIG7N.js";import"./chunk-AGN2F6JP.js";import"./chunk-SR4HVFOB.js";import{b as N,d as R}from"./chunk-WOMCRDMJ.js";import"./chunk-YNQPX5G6.js";import"./chunk-6MTVWBQQ.js";import"./chunk-TGSV7ZHM.js";import"./chunk-VMW35ZNT.js";import"./chunk-FRKUCFVI.js";import"./chunk-B2DPS6BL.js";import{e as E,f as w}from"./chunk-UC7AWK4C.js";import{a as k}from"./chunk-X4RGWMLE.js";import"./chunk-JWXROQJJ.js";import"./chunk-EBGPIJ7S.js";import{Eb as m,Fb as l,Kb as y,Lb as t,Mb as e,Nb as g,Sb as S,Ub as b,Wb as c,_a as r,ea as C,gc as M,ic as i,ja as _,jc as f,ka as h,kc as v,lc as P,pb as x,s as u,ta as d,yc as O}from"./chunk-O76B43BY.js";function V(a,o){a&1&&g(0,"dm-skeleton",2)}function F(a,o){if(a&1&&(t(0,"span"),i(1),e()),a&2){let n=c();r(),v("Recording in progress \xB7 ",n.elapsedLabel())}}function H(a,o){a&1&&(t(0,"span"),i(1,"Not recording"),e())}function J(a,o){a&1&&(t(0,"div",3),g(1,"dm-skeleton",4)(2,"dm-skeleton",4)(3,"dm-skeleton",4),e())}function W(a,o){a&1&&(g(0,"span",20),t(1,"span",21),i(2,"REC"),e())}function q(a,o){a&1&&(t(0,"span",8),i(1,"Idle"),e())}function G(a,o){if(a&1&&(t(0,"div",22)(1,"span",23),i(2,"Path"),e(),t(3,"dm-mono")(4,"span",25),i(5),e()()()),a&2){let n=c(3);r(5),f(n.path())}}function K(a,o){if(a&1&&(t(0,"div",10)(1,"div",22)(2,"span",23),i(3,"Elapsed"),e(),t(4,"dm-mono")(5,"span",24),i(6),e()()(),m(7,G,6,1,"div",22),e()),a&2){let n=c(2);r(6),f(n.elapsedLabel()),r(),l(n.path()?7:-1)}}function Q(a,o){if(a&1){let n=S();t(0,"mat-card",5)(1,"mat-card-content")(2,"div",6)(3,"div",7),m(4,W,3,0)(5,q,2,0,"span",8),e(),t(6,"button",9),b("click",function(){_(n);let p=c();return h(p.toggle())}),t(7,"mat-icon"),i(8),e(),i(9),e()(),m(10,K,8,2,"div",10),e()(),t(11,"div",11)(12,"mat-card",12)(13,"mat-card-header")(14,"mat-card-title"),i(15,"What gets recorded"),e()(),t(16,"mat-card-content")(17,"ul",13)(18,"li"),i(19,"App lifecycle events (start, stop, restart)"),e(),t(20,"li"),i(21,"Task invocations"),e(),t(22,"li"),i(23,"Config changes"),e()(),t(24,"div",14)(25,"span",15),i(26,"Saved as"),e(),t(27,"dm-mono")(28,"span",16),i(29,"~/.daimon/sessions/session-<timestamp>.jsonl"),e()()(),t(30,"div",14)(31,"span",15),i(32,"Replay"),e(),t(33,"dm-mono")(34,"span",16),i(35,"daimon replay session.jsonl --speed 1"),e()()(),t(36,"div",17),i(37," Each JSONL line is "),t(38,"dm-mono")(39,"span",16),i(40),e()(),i(41,". "),e()()(),t(42,"mat-card",12)(43,"mat-card-header")(44,"mat-card-title"),i(45,"Replay primer"),e()(),t(46,"mat-card-content")(47,"div",18)(48,"dm-mono")(49,"span",16),i(50,"daimon replay <file.jsonl>"),e()(),t(51,"span",19),i(52,"play at default speed"),e()(),t(53,"div",18)(54,"dm-mono")(55,"span",16),i(56,"daimon replay <file.jsonl> --speed 2"),e()(),t(57,"span",19),i(58,"2x faster"),e()(),t(59,"div",17),i(60," Replay runs from the CLI. The dashboard doesn't trigger replays. "),e()()()()}if(a&2){let n=c();r(3),M("dm-state-rec",n.recording()),r(),l(n.recording()?4:5),r(2),y("disabled",n.busy()),r(2),f(n.recording()?"stop_circle":"radio_button_checked"),r(),v(" ",n.recording()?"Stop recording":"Start recording"," "),r(),l(n.recording()?10:-1),r(30),P("","{"," ts, kind, app?, task?, args? ","}")}}function U(a){let o=Math.max(0,Math.floor(a/1e3)),n=Math.floor(o/3600),s=Math.floor(o%3600/60),p=o%60;return n>0?`${n}h ${s}m ${p}s`:s>0?`${s}m ${p}s`:`${p}s`}var B=class a{http=C(k);snack=C(I);loading=d(!0);recording=d(!1);path=d(void 0);busy=d(!1);startedAt=d(null);tick=d(0);elapsedLabel=O(()=>{this.tick();let o=this.startedAt();return o?U(Date.now()-o):"0s"});tickTimer;ngOnInit(){this.loadStatus(),this.tickTimer=setInterval(()=>{this.recording()&&this.tick.update(o=>o+1)},1e3)}ngOnDestroy(){this.tickTimer&&clearInterval(this.tickTimer)}async loadStatus(){this.loading.set(!0);try{let o=await u(this.http.get("/api/session/status"));this.recording.set(!!o?.recording),this.path.set(o?.path),o?.recording?this.startedAt.set(Date.now()):this.startedAt.set(null)}catch{this.recording.set(!1),this.startedAt.set(null)}finally{this.loading.set(!1)}}async toggle(){if(this.busy())return;this.busy.set(!0);let o=this.recording();try{let n=await u(this.http.post("/api/session/record?action=toggle",{})),s=!!n?.recording;this.recording.set(s),this.path.set(n?.path),s&&!o?(this.startedAt.set(Date.now()),this.snack.open(n?.path?`Started session at ${n.path}`:"Started session","",{duration:2500})):!s&&o&&(this.startedAt.set(null),this.snack.open("Stopped session","",{duration:2500}))}catch(n){this.snack.open(`Session toggle failed: ${n?.message??"error"}`,"Dismiss",{duration:4e3,panelClass:"dm-snack-error"})}finally{this.busy.set(!1)}}static \u0275fac=function(n){return new(n||a)};static \u0275cmp=x({type:a,selectors:[["dm-sessions-page"]],decls:10,vars:2,consts:[[1,"dm-page-header"],[1,"dm-page-sub"],["width","12rem","height","1rem"],[1,"dm-skel-grid"],["height","9rem"],[1,"dm-status-card"],[1,"dm-status-row"],[1,"dm-state"],[1,"dm-idle-label"],["mat-flat-button","","color","primary",1,"dm-toggle-btn",3,"click","disabled"],[1,"dm-rec-meta"],[1,"dm-info-grid"],[1,"dm-info-card"],[1,"dm-info-list"],[1,"dm-info-row"],[1,"dm-info-label"],[1,"dm-info-mono"],[1,"dm-info-hint"],[1,"dm-replay-row"],[1,"dm-replay-desc"],[1,"dm-rec-dot"],[1,"dm-rec-label"],[1,"dm-meta-row"],[1,"dm-meta-label"],[1,"dm-meta-value"],[1,"dm-meta-value","dm-path"]],template:function(n,s){n&1&&(t(0,"div",0)(1,"div")(2,"h1"),i(3,"Sessions"),e(),t(4,"div",1),m(5,V,1,0,"dm-skeleton",2)(6,F,2,1,"span")(7,H,2,0,"span"),e()()(),m(8,J,4,0,"div",3)(9,Q,61,9)),n&2&&(r(5),l(s.loading()?5:s.recording()?6:7),r(3),l(s.loading()?8:9))},dependencies:[z,A,j,L,$,T,D,w,E,N,R],styles:["[_nghost-%COMP%]{display:block}.dm-page-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0}.dm-page-sub[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);margin-top:.25rem;font-size:.875rem}.dm-skel-grid[_ngcontent-%COMP%]{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(18rem,1fr))}.dm-status-card[_ngcontent-%COMP%]{margin-bottom:1rem;border:1px solid var(--mat-sys-outline-variant)}.dm-status-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}.dm-state[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.65rem;font:500 1.5rem/2rem Roboto;color:var(--mat-sys-on-surface-variant)}.dm-state-rec[_ngcontent-%COMP%]{color:var(--mat-sys-error)}.dm-rec-dot[_ngcontent-%COMP%]{width:14px;height:14px;border-radius:999px;background:var(--mat-sys-error);box-shadow:0 0 0 4px color-mix(in oklch,var(--mat-sys-error) 22%,transparent);animation:_ngcontent-%COMP%_dm-pulse 1.4s ease-in-out infinite}@keyframes _ngcontent-%COMP%_dm-pulse{0%,to{opacity:1}50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.dm-rec-dot[_ngcontent-%COMP%]{animation:none}}.dm-rec-label[_ngcontent-%COMP%]{letter-spacing:.05rem}.dm-idle-label[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.dm-toggle-btn[_ngcontent-%COMP%]{min-height:48px;padding:0 1.25rem;font-size:1rem}.dm-rec-meta[_ngcontent-%COMP%]{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--mat-sys-outline-variant);display:flex;flex-direction:column;gap:.5rem}.dm-meta-row[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:.75rem}.dm-meta-label[_ngcontent-%COMP%]{font:500 .6875rem/1rem Roboto;text-transform:uppercase;letter-spacing:.04rem;color:var(--mat-sys-on-surface-variant);min-width:4.5rem}.dm-meta-value[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface)}.dm-path[_ngcontent-%COMP%]{word-break:break-all}.dm-info-grid[_ngcontent-%COMP%]{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(20rem,1fr))}.dm-info-card[_ngcontent-%COMP%]{border:1px solid var(--mat-sys-outline-variant)}.dm-info-list[_ngcontent-%COMP%]{margin:0 0 1rem;padding-left:1.25rem;color:var(--mat-sys-on-surface);font-size:.875rem}.dm-info-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:.25rem}.dm-info-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.15rem;margin-bottom:.65rem}.dm-info-label[_ngcontent-%COMP%]{font:500 .6875rem/1rem Roboto;text-transform:uppercase;letter-spacing:.04rem;color:var(--mat-sys-on-surface-variant)}.dm-info-mono[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface);word-break:break-all}.dm-info-hint[_ngcontent-%COMP%]{margin-top:.5rem;font-size:.8125rem;color:var(--mat-sys-on-surface-variant)}.dm-replay-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.15rem;margin-bottom:.65rem}.dm-replay-desc[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--mat-sys-on-surface-variant)}"],changeDetection:0})};export{B as SessionsPageComponent};
@@ -0,0 +1 @@
1
+ import{k as e}from"./chunk-JWXROQJJ.js";import{Ia as r,ca as n,ea as i}from"./chunk-O76B43BY.js";function p(t){return t==null?"":typeof t=="string"?t:`${t}px`}function x(t){return t!=null&&`${t}`!="false"}var w={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var o=new n("MATERIAL_ANIMATIONS");var a=null;function d(){return i(o,{optional:!0})?.animationsDisabled||i(r,{optional:!0})==="NoopAnimations"?"di-disabled":(a??=i(e).matchMedia("(prefers-reduced-motion)").matches,a?"reduced-motion":"enabled")}function _(){return d()!=="enabled"}function T(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}export{p as a,x as b,T as c,w as d,d as e,_ as f};
@@ -0,0 +1 @@
1
+ import{f as $,h as A,j as L,k as B,l as K,m as j}from"./chunk-6Z4FDREI.js";import{c as z}from"./chunk-WOMCRDMJ.js";import{a as I,e as N,f as D,h as R}from"./chunk-TGSV7ZHM.js";import"./chunk-B2DPS6BL.js";import{d as F}from"./chunk-X4RGWMLE.js";import"./chunk-EBGPIJ7S.js";import{Db as y,Eb as x,Fb as C,Hb as O,Ib as f,Jb as h,Kb as g,Lb as a,Mb as o,Nb as T,Sb as k,Ub as u,Wb as d,_a as r,ea as w,gc as b,ic as l,ja as v,jc as c,ka as _,lc as S,mc as V,pb as M,ta as p,ub as P,yc as E}from"./chunk-O76B43BY.js";var G=(i,t)=>t.key,H=(i,t)=>t.name;function Q(i,t){if(i&1){let e=k();a(0,"button",17),u("click",function(){let s=v(e).$implicit,m=d();return _(m.setSince(s.key))}),l(1),o()}if(i&2){let e=t.$implicit,n=d();b("active",n.since()===e.key),r(),c(e.label)}}function U(i,t){if(i&1&&(a(0,"option",11),l(1),o()),i&2){let e=t.$implicit;g("ngValue",e.name),r(),c(e.name)}}function X(i,t){if(i&1){let e=k();a(0,"button",18),u("click",function(){let s=v(e).$implicit,m=d();return _(m.toggleKind(s))}),l(1),o()}if(i&2){let e=t.$implicit,n=d();b("active",n.kinds().has(e)),y("data-kind",e),r(),c(n.kindLabel[e])}}function Y(i,t){i&1&&T(0,"dm-empty",14)}function Z(i,t){if(i&1){let e=k();a(0,"div",20),u("click",function(){let s=v(e).$implicit,m=d(2);return _(m.select(s))}),a(1,"span",21),l(2),o(),a(3,"span",22),l(4),o(),a(5,"span",23),l(6),o(),a(7,"span",24),l(8),o()()}if(i&2){let e=t.$implicit,n=d(2);y("data-kind",e.kind),r(),g("title",n.fullTs(e.ts)),r(),c(n.rel(e.ts)),r(),y("data-kind",e.kind),r(),c(n.kindLabel[e.kind]||e.kind),r(2),c(e.app),r(2),c(e.summary)}}function ee(i,t){if(i&1&&(a(0,"cdk-virtual-scroll-viewport",15),P(1,Z,9,7,"div",19),o()),i&2){let e=d();r(),g("cdkVirtualForOf",e.filtered())("cdkVirtualForTrackBy",e.trackTs)}}function te(i,t){if(i&1){let e=k();a(0,"aside",16)(1,"header")(2,"div")(3,"h2"),l(4),o(),a(5,"div",25),l(6),o()(),a(7,"button",26),u("click",function(){v(e);let s=d();return _(s.select(null))}),a(8,"span",5),l(9,"close"),o()()(),a(10,"pre"),l(11),o()()}if(i&2){let e=t,n=d();r(4),S("",e.app," \xB7 ",n.kindLabel[e.kind]||e.kind),r(2),c(n.fullTs(e.ts)),r(5),c(n.payloadJson(e.payload))}}var q={status:"status",error:"error",warning:"warning",lint:"lint",health:"health",bundle:"bundle",compile:"compile",task:"task",restart:"restart"},J=Object.keys(q),ne=[{key:"1h",label:"1h"},{key:"24h",label:"24h"},{key:"7d",label:"7d"}],W=class i{api=w(F);allKinds=J;kindLabel=q;sinceOpts=ne;rows=p([]);loading=p(!1);since=p("24h");app=p("");kinds=p(new Set(J));selected=p(null);filtered=E(()=>{let t=this.kinds();return this.rows().filter(e=>t.has(e.kind))});ngOnInit(){this.refresh()}async refresh(){this.loading.set(!0);try{let t=await this.api.getTimeline({since:this.since(),app:this.app()||void 0});this.rows.set(t)}finally{this.loading.set(!1)}}setSince(t){this.since.set(t),this.refresh()}setApp(t){this.app.set(t),this.refresh()}toggleKind(t){let e=new Set(this.kinds());e.has(t)?e.delete(t):e.add(t),this.kinds.set(e)}select(t){this.selected.set(t)}rel(t){let e=Math.max(0,Math.floor((Date.now()-t)/1e3));if(e<60)return`${e}s ago`;let n=Math.floor(e/60);if(n<60)return`${n}m ago`;let s=Math.floor(n/60);return s<24?`${s}h ago`:`${Math.floor(s/24)}d ago`}fullTs(t){return new Date(t).toISOString()}payloadJson(t){try{return JSON.stringify(t,null,2)}catch{return String(t)}}trackTs=(t,e)=>e.ts;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=M({type:i,selectors:[["dm-timeline-page"]],decls:28,vars:11,consts:[[1,"dm-page"],[1,"dm-page-header"],[1,"dm-page-sub"],[1,"dm-header-actions"],["type","button","title","Refresh",1,"ib",3,"click","disabled"],[1,"material-symbols-outlined"],[1,"dm-toolbar"],["role","tablist","aria-label","Time window",1,"dm-chips"],["type","button",1,"dm-chip",3,"active"],[1,"dm-app-pick"],[3,"ngModelChange","ngModel"],[3,"ngValue"],["role","group","aria-label","Kinds",1,"dm-chips"],["type","button",1,"dm-chip","dm-kind-chip",3,"active"],["title","No events in window","hint","Widen the window or pick different kinds. Status / error / lint / bundle / task all live here."],["itemSize","44",1,"dm-tl-viewport"],[1,"dm-tl-drawer"],["type","button",1,"dm-chip",3,"click"],["type","button",1,"dm-chip","dm-kind-chip",3,"click"],["class","dm-tl-row",3,"click",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[1,"dm-tl-row",3,"click"],[1,"dm-tl-ts",3,"title"],[1,"dm-tl-kind","dm-kind-chip"],[1,"dm-tl-app"],[1,"dm-tl-summary"],[1,"dm-tl-drawer-ts"],["type","button","title","Close",1,"ib",3,"click"]],template:function(e,n){if(e&1&&(a(0,"div",0)(1,"header",1)(2,"div")(3,"h1"),l(4,"Timeline"),o(),a(5,"div",2),l(6),o()(),a(7,"div",3)(8,"button",4),u("click",function(){return n.refresh()}),a(9,"span",5),l(10,"refresh"),o()()()(),a(11,"div",6)(12,"div",7),f(13,Q,2,3,"button",8,G),o(),a(15,"label",9),l(16," App "),a(17,"select",10),u("ngModelChange",function(m){return n.setApp(m)}),a(18,"option",11),l(19,"All"),o(),f(20,U,2,2,"option",11,H),o()(),a(22,"div",12),f(23,X,2,4,"button",13,O),o()(),x(25,Y,1,0,"dm-empty",14)(26,ee,2,2,"cdk-virtual-scroll-viewport",15),x(27,te,12,4,"aside",16),o()),e&2){let s;r(6),V(" ",n.filtered().length," of ",n.rows().length," events \xB7 window ",n.since()," \xB7 app ",n.app()||"all"," "),r(2),g("disabled",n.loading()),r(),b("spin",n.loading()),r(4),h(n.sinceOpts),r(4),g("ngModel",n.app()),r(),g("ngValue",""),r(2),h(n.api.apps()),r(3),h(n.allKinds),r(2),C(n.filtered().length===0&&!n.loading()?25:26),r(2),C((s=n.selected())?27:-1,s)}},dependencies:[j,B,K,L,$,A,R,I,D,N,z],styles:["[_nghost-%COMP%]{display:block}.dm-page-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}.dm-page-sub[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font:500 .8125rem/1.25rem Roboto}.dm-toolbar[_ngcontent-%COMP%]{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;margin-bottom:1rem}.dm-chips[_ngcontent-%COMP%]{display:inline-flex;gap:4px;flex-wrap:wrap}.dm-chip[_ngcontent-%COMP%]{padding:4px 12px;border-radius:999px;background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface-variant);border:1px solid var(--mat-sys-outline-variant);cursor:pointer;font:500 .75rem/1rem Roboto}.dm-chip.active[_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-primary) 14%,var(--mat-sys-surface));color:var(--mat-sys-primary);border-color:color-mix(in oklch,var(--mat-sys-primary) 40%,transparent)}.dm-app-pick[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;font:500 .8125rem/1.25rem Roboto;color:var(--mat-sys-on-surface-variant)}.dm-app-pick[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:4px 8px;border-radius:8px;background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface);border:1px solid var(--mat-sys-outline-variant);font:500 .8125rem/1.25rem Roboto}.dm-tl-viewport[_ngcontent-%COMP%]{height:calc(100vh - 240px);border:1px solid var(--mat-sys-outline-variant);border-radius:12px;background:var(--mat-sys-surface-container-lowest)}.dm-tl-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:80px 90px 160px 1fr;align-items:center;gap:.75rem;padding:10px 14px;border-bottom:1px solid color-mix(in oklch,var(--mat-sys-outline-variant) 50%,transparent);cursor:pointer;font:500 .8125rem/1.25rem Roboto Mono,ui-monospace,monospace}.dm-tl-row[_ngcontent-%COMP%]:hover{background:var(--mat-sys-surface-container)}.dm-tl-ts[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.dm-tl-kind[_ngcontent-%COMP%]{width:max-content;padding:2px 8px;border-radius:999px;font:500 .6875rem/1rem Roboto}.dm-tl-app[_ngcontent-%COMP%]{color:var(--mat-sys-primary)}.dm-tl-summary[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dm-kind-chip[data-kind=status][_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-primary) 14%,transparent);color:var(--mat-sys-primary)}.dm-kind-chip[data-kind=error][_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-error) 18%,transparent);color:var(--mat-sys-error)}.dm-kind-chip[data-kind=warning][_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-tertiary) 18%,transparent);color:var(--mat-sys-tertiary)}.dm-kind-chip[data-kind=lint][_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-secondary) 18%,transparent);color:var(--mat-sys-secondary)}.dm-kind-chip[data-kind=health][_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-primary) 10%,transparent);color:var(--mat-sys-primary)}.dm-kind-chip[data-kind=bundle][_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-tertiary) 10%,transparent);color:var(--mat-sys-tertiary)}.dm-kind-chip[data-kind=compile][_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-secondary) 10%,transparent);color:var(--mat-sys-secondary)}.dm-kind-chip[data-kind=task][_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-outline) 12%,transparent);color:var(--mat-sys-on-surface-variant)}.dm-kind-chip[data-kind=restart][_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-error) 10%,transparent);color:var(--mat-sys-error)}.dm-tl-drawer[_ngcontent-%COMP%]{position:fixed;right:1rem;top:80px;bottom:1rem;width:420px;background:var(--mat-sys-surface-container-high);border:1px solid var(--mat-sys-outline-variant);border-radius:12px;padding:1rem;overflow:auto;box-shadow:var(--mat-sys-level3);z-index:20}.dm-tl-drawer[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.75rem}.dm-tl-drawer[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:500 1rem/1.5rem Roboto;margin:0}.dm-tl-drawer-ts[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font:500 .75rem/1rem Roboto}.dm-tl-drawer[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{white-space:pre-wrap;word-break:break-word;font:500 .75rem/1.1rem Roboto Mono,ui-monospace,monospace;color:var(--mat-sys-on-surface);margin:0}.ib[_ngcontent-%COMP%]{width:32px;height:32px;background:transparent;border:0;border-radius:999px;color:var(--mat-sys-on-surface-variant);cursor:pointer}.ib[_ngcontent-%COMP%]:hover{background:var(--mat-sys-surface-container-highest)}.spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dm-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_dm-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"],changeDetection:0})};export{W as TimelinePageComponent};
@@ -0,0 +1 @@
1
+ import{a as te}from"./chunk-WRX32YWH.js";import{a as U,b as G,c as J,d as X,e as Y,f as Z,g as ee}from"./chunk-RNUJZTKS.js";import{a as j,b as K}from"./chunk-3EPFSBJ2.js";import{a as L,b as q}from"./chunk-7LKM244H.js";import{b as z,c as B,d as V}from"./chunk-LBWOIG7N.js";import"./chunk-AGN2F6JP.js";import"./chunk-SR4HVFOB.js";import{b as H,c as Q,d as W}from"./chunk-WOMCRDMJ.js";import"./chunk-YNQPX5G6.js";import"./chunk-6MTVWBQQ.js";import"./chunk-TGSV7ZHM.js";import"./chunk-VMW35ZNT.js";import"./chunk-FRKUCFVI.js";import"./chunk-B2DPS6BL.js";import{c as I}from"./chunk-PRLUGTKR.js";import{e as R,f as N}from"./chunk-UC7AWK4C.js";import{a as F,d as $}from"./chunk-X4RGWMLE.js";import"./chunk-JWXROQJJ.js";import"./chunk-EBGPIJ7S.js";import{Db as k,Eb as g,Fb as f,Hb as O,Ib as C,Jb as h,Kb as y,Lb as o,Mb as i,Nb as v,Sb as T,Ub as b,Wb as c,_a as d,ea as M,ic as r,ja as E,jc as m,ka as D,kc as P,pb as A,s as w,ta as _,yc as S}from"./chunk-O76B43BY.js";var ie=(n,t)=>t.name,ae=(n,t)=>t.reason,re=(n,t)=>t.id;function de(n,t){n&1&&(o(0,"div",7),v(1,"dm-skeleton",24)(2,"dm-skeleton",25)(3,"dm-skeleton",26),i())}function le(n,t){if(n&1&&(o(0,"div",27)(1,"span",28),r(2,"Connection"),i(),o(3,"span",29)(4,"span",30),v(5,"span",31),r(6),i()()(),o(7,"div",27)(8,"span",28),r(9,"Version"),i(),o(10,"span",29)(11,"dm-mono"),r(12),i()()(),o(13,"div",27)(14,"span",28),r(15,"API port"),i(),o(16,"span",29)(17,"dm-mono"),r(18),i()()(),o(19,"div",27)(20,"span",28),r(21,"Apps tracked"),i(),o(22,"span",29)(23,"dm-mono"),r(24),i()()()),n&2){let e=c();d(4),k("data-kind",e.api.connected()?"ok":"err"),d(2),P("",e.api.connected()?"connected":"disconnected"," "),d(6),m(e.daemonVersion()||"unknown"),d(6),m(e.daemonPort()||"-"),d(6),m(e.api.apps().length)}}function se(n,t){n&1&&(o(0,"div",7),v(1,"dm-skeleton",32)(2,"dm-skeleton",26)(3,"dm-skeleton",33),i())}function me(n,t){if(n&1&&(o(0,"dm-empty",8)(1,"dm-mono"),r(2,"daimon init --auto"),i()()),n&2){let e=c();y("title","No apps discovered")("hint",e.discovery().suggestion||"Run daimon init --auto in your workspace")}}function ce(n,t){if(n&1&&(o(0,"li")(1,"dm-mono"),r(2),i()()),n&2){let e=t.$implicit;d(2),m(e)}}function pe(n,t){if(n&1&&(o(0,"tr")(1,"td")(2,"dm-mono"),r(3),i()(),o(4,"td",38)(5,"dm-mono"),r(6),i()()()),n&2){let e=t.$implicit;d(3),m(e.reason),d(3),m(e.count)}}function ue(n,t){if(n&1&&(o(0,"div",34)(1,"div",28),r(2,"Rejected"),i(),o(3,"table",37)(4,"tbody"),C(5,pe,7,2,"tr",null,ae),i()()()),n&2){let e=c(2);d(5),h(e.rejectedRows())}}function ge(n,t){if(n&1&&(o(0,"li")(1,"dm-mono"),r(2),i()()),n&2){let e=t.$implicit;d(2),m(e)}}function fe(n,t){if(n&1&&(o(0,"div",34)(1,"div",28),r(2,"Warnings"),i(),o(3,"ul",39),C(4,ge,3,1,"li",null,O),i()()),n&2){let e=c(2);d(4),h(e.discovery().warnings)}}function _e(n,t){if(n&1&&(o(0,"div",36),r(1),i()),n&2){let e=c(2);d(),m(e.discovery().suggestion)}}function xe(n,t){if(n&1&&(o(0,"div",27)(1,"span",28),r(2,"Apps found"),i(),o(3,"span",29)(4,"dm-mono"),r(5),i()()(),o(6,"div",27)(7,"span",28),r(8,"Scanned"),i(),o(9,"span",29)(10,"dm-mono"),r(11),i()()(),o(12,"div",34)(13,"div",28),r(14,"Search roots"),i(),o(15,"ul",35),C(16,ce,3,1,"li",null,O),i()(),g(18,ue,7,0,"div",34),g(19,fe,6,0,"div",34),g(20,_e,2,1,"div",36)),n&2){let e=c();d(5),m(e.discovery().appsFound),d(6),m(e.discovery().scanned),d(5),h(e.discovery().searchRoots),d(2),f(e.rejectedRows().length?18:-1),d(),f(e.discovery().warnings.length?19:-1),d(),f(e.discovery().suggestion?20:-1)}}function ve(n,t){n&1&&(o(0,"div",9),r(1,"Discovery info unavailable."),i())}function ye(n,t){n&1&&v(0,"mat-spinner",14)}function Ce(n,t){n&1&&(o(0,"mat-icon"),r(1,"play_arrow"),i())}function he(n,t){n&1&&v(0,"mat-spinner",14)}function be(n,t){n&1&&(o(0,"mat-icon"),r(1,"build"),i())}function ke(n,t){if(n&1&&(o(0,"dm-mono"),r(1),i()),n&2){let e=c(2).$implicit,a=c();d(),m(a.state(e.name).detail)}}function Pe(n,t){if(n&1&&(o(0,"span"),r(1),i()),n&2){let e=c(2).$implicit,a=c();d(),m(a.state(e.name).detail)}}function Me(n,t){if(n&1&&(o(0,"div",42),g(1,ke,2,1,"dm-mono")(2,Pe,2,1,"span"),i()),n&2){let e=c().$implicit,a=c();d(),f(a.state(e.name).isPath?1:2)}}function Se(n,t){n&1&&v(0,"mat-spinner",14)}function we(n,t){n&1&&(o(0,"mat-icon"),r(1,"search"),i())}function Ee(n,t){n&1&&v(0,"mat-spinner",14)}function De(n,t){n&1&&(o(0,"mat-icon"),r(1,"build"),i())}function Oe(n,t){if(n&1){let e=T();o(0,"mat-card",6)(1,"mat-card-header")(2,"mat-card-title"),r(3),i()(),o(4,"mat-card-content")(5,"div",40)(6,"div",41),r(7),i(),o(8,"span",30),v(9,"span",31),r(10),i()(),g(11,Me,3,1,"div",42),i(),o(12,"mat-card-actions",43)(13,"button",13),b("click",function(){let l=E(e).$implicit,p=c();return D(p.runOne(l.name,!0))}),g(14,Se,1,0,"mat-spinner",14)(15,we,2,0,"mat-icon"),r(16," Dry-run "),i(),o(17,"button",44),b("click",function(){let l=E(e).$implicit,p=c();return D(p.runOne(l.name,!1))}),g(18,Ee,1,0,"mat-spinner",14)(19,De,2,0,"mat-icon"),r(20," Fix "),i()()()}if(n&2){let e=t.$implicit,a=c();d(3),m(e.title),d(4),m(e.description),d(),k("data-kind",a.state(e.name).status),d(2),P("",a.state(e.name).status," "),d(),f(a.state(e.name).detail?11:-1),d(2),y("disabled",a.busy(e.name)||a.busyAll()),d(),f(a.busy(e.name)==="dry"?14:15),d(3),y("disabled",a.busy(e.name)||a.busyAll()),d(),f(a.busy(e.name)==="fix"?18:19)}}function Ae(n,t){n&1&&v(0,"dm-skeleton",16)}function Te(n,t){n&1&&(o(0,"div",9),r(1,"No plug-ins installed. Drop a "),o(2,"dm-mono"),r(3,"doctor-*.mjs"),i(),r(4," file into "),o(5,"dm-mono"),r(6,"~/.daimon/plugins/"),i(),r(7," and restart the daemon."),i())}function Fe(n,t){if(n&1&&(o(0,"mat-card-subtitle"),r(1),i()),n&2){let e=c().$implicit;d(),m(e.description)}}function Ie(n,t){if(n&1&&(o(0,"div",45),r(1),i()),n&2){let e=c().$implicit;d(),m(e.error)}}function Re(n,t){if(n&1&&(o(0,"li")(1,"span",30),v(2,"span",31),r(3),i(),o(4,"span"),r(5),i()()),n&2){let e=t.$implicit;d(),k("data-kind",e.severity==="error"?"err":e.severity==="warn"?"warn":"ok"),d(2),m(e.severity||"info"),d(2),m(e.message)}}function Ne(n,t){if(n&1&&(o(0,"ul",35),C(1,Re,6,3,"li",null,re),i()),n&2){let e=c().$implicit;d(),h(e.findings)}}function $e(n,t){n&1&&(o(0,"div",9),r(1,"No findings."),i())}function je(n,t){if(n&1&&(o(0,"mat-card",6)(1,"mat-card-header")(2,"mat-card-title")(3,"span",30),v(4,"span",31),r(5),i(),o(6,"dm-mono"),r(7),i()(),g(8,Fe,2,1,"mat-card-subtitle"),i(),o(9,"mat-card-content"),g(10,Ie,2,1,"div",45),g(11,Ne,3,0,"ul",35)(12,$e,2,0,"div",9),o(13,"div",46)(14,"dm-mono"),r(15),i()()()()),n&2){let e=t.$implicit;d(3),k("data-kind",e.status==="ok"?"ok":"err"),d(2),P("",e.status," "),d(2),m(e.name),d(),f(e.description?8:-1),d(2),f(e.error?10:-1),d(),f(e.findings.length?11:12),d(4),m(e.file)}}function Ke(n,t){if(n&1&&(o(0,"div",5),C(1,je,16,7,"mat-card",6,ie),i()),n&2){let e=c();d(),h(e.plugins())}}function ze(n,t){n&1&&v(0,"mat-spinner",14)}function Be(n,t){n&1&&(o(0,"mat-icon"),r(1,"refresh"),i())}var Ve=[{name:"orphan-daemon",title:"Orphan daemon",description:"Daemon may be running from the wrong cwd, ignoring your local daimon.config.json"},{name:"stale-lock",title:"Stale lock",description:"Lock file exists but the daemon process is dead"},{name:"missing-search-root",title:"Missing search root",description:"Current cwd has an nx/angular/vite project but isn\u2019t configured"},{name:"corrupt-history-db",title:"Corrupt history DB",description:"History SQLite DB failed quickCheck()"}],ne=class n{api=M($);http=M(F);snack=M(L);routines=Ve;results=_(new Map);results_lastIntent=_(new Map);errored=_(new Set);loading=_(!0);discovery=_(null);daemonVersion=_("");daemonPort=_(null);configLoaded=_(!1);overview=_(null);plugins=_(null);busyMap=_(new Map);busyAll=_(!1);busyAllKind=_(null);reloading=_(!1);rejectedRows=S(()=>{let t=this.discovery();return t?Object.entries(t.rejected||{}).map(([e,a])=>({reason:e,count:a})).sort((e,a)=>a.count-e.count):[]});subtitle=S(()=>{let t=this.results(),e=0;for(let a of t.values())a.detected&&e++;return this.loading()&&t.size===0?"Checking system health\u2026":t.size===0?"Run diagnostics to see if any routines need fixing.":e===0?"All checked routines look clean.":`${e} routine${e===1?"":"s"} need${e===1?"s":""} fixing`});tokenEstimate=S(()=>120+this.api.apps().length*34);async ngOnInit(){await this.refreshAll()}async refreshAll(){this.loading.set(!0);try{let[t,e,a]=await Promise.all([this.api.getConfig().catch(()=>null),this.api.discoveryExplain().catch(()=>null),w(this.http.get("/api/overview")).catch(()=>null)]);t&&t.config&&(this.configLoaded.set(!0),this.daemonPort.set(t.config.apiPort??t.config.api?.port??null)),this.discovery.set(e),this.overview.set(a),a?.version&&this.daemonVersion.set(a.version),this.api.apps().length||await this.api.refresh();try{let l=await w(this.http.get("/api/plugins"));this.plugins.set(Array.isArray(l)?l:[])}catch{this.plugins.set([])}}finally{this.loading.set(!1)}}state(t){let e=this.results().get(t),a=this.results_lastIntent().get(t),l=this.errored().has(t);if(!e)return{status:"unknown",detail:"",isPath:!1};let p;l?p="error":a==="fix"?p=e.detected?"fixed":"clean":p=e.detected?"detected":"clean";let x=e.description||"",u=/[\\/]/.test(x)||x.includes(":\\")||x.startsWith("/");return{status:p,detail:x,isPath:u}}busy(t){return this.busyMap().get(t)}async runOne(t,e){if(!e&&!window.confirm(`Run fix for "${t}"? This will modify daemon state.`))return;let a=e?"dry":"fix";this.setBusy(t,a);try{let l=await this.api.runAutoFix({dryRun:e,permitted:[t]});this.ingestResults(l,a);let p=this.results().get(t);p?this.snack.open(e?p.detected?`${t}: issue detected`:`${t}: clean`:p.detected?`${t}: fix applied`:`${t}: no action needed`,"OK",{duration:3500}):this.snack.open(`${t}: no result returned`,"OK",{duration:3e3})}catch(l){this.markError(t,l?.message||String(l)),this.snack.open(`${t} failed: ${l?.message||l}`,"Dismiss",{duration:5e3})}finally{this.setBusy(t,null)}}async runAllDry(){this.busyAll.set(!0),this.busyAllKind.set("dry");try{let t=await this.api.runAutoFix({dryRun:!0});this.ingestResults(t,"dry"),this.snack.open("Dry-run complete","OK",{duration:2500})}catch(t){this.snack.open(`Dry-run failed: ${t?.message||t}`,"Dismiss",{duration:5e3})}finally{this.busyAll.set(!1),this.busyAllKind.set(null)}}async fixAll(){if(window.confirm("Run every fix routine without dry-run? This will modify daemon state.")){this.busyAll.set(!0),this.busyAllKind.set("fix");try{let e=await this.api.runAutoFix({dryRun:!1});this.ingestResults(e,"fix"),this.snack.open("Fix-all complete","OK",{duration:2500})}catch(e){this.snack.open(`Fix-all failed: ${e?.message||e}`,"Dismiss",{duration:5e3})}finally{this.busyAll.set(!1),this.busyAllKind.set(null)}}}async reloadConfig(){this.reloading.set(!0);try{await this.api.reloadConfig(),this.snack.open("Config reloaded","OK",{duration:2500}),await this.refreshAll()}catch(t){this.snack.open(`Reload failed: ${t?.message||t}`,"Dismiss",{duration:5e3})}finally{this.reloading.set(!1)}}setBusy(t,e){this.busyMap.update(a=>{let l=new Map(a);return e===null?l.delete(t):l.set(t,e),l})}ingestResults(t,e){let a=Array.isArray(t?.ran)?t.ran:[],l=Array.isArray(t?.skipped)?t.skipped:[],p=Array.isArray(t?.errors)?t.errors:[];if(this.results.update(x=>{let u=new Map(x);for(let s of a)u.set(s.name,s);for(let s of l)u.set(s.name,s);for(let s of p){let oe=u.get(s.name);u.set(s.name,{name:s.name,detected:oe?.detected??!1,description:s.error||"error"})}return u}),this.errored.update(x=>{let u=new Set(x);for(let s of a)u.delete(s.name);for(let s of l)u.delete(s.name);for(let s of p)u.add(s.name);return u}),this.results_lastIntent.update(x=>{let u=new Map(x);for(let s of a)u.set(s.name,e);for(let s of l)u.set(s.name,e);for(let s of p)u.set(s.name,"fix");return u}),p.length)for(let x of p)this.markError(x.name,x.error)}markError(t,e){this.results.update(a=>{let l=new Map(a);return l.set(t,{name:t,detected:!1,description:e||"error"}),l}),this.results_lastIntent.update(a=>{let l=new Map(a);return l.set(t,"fix"),l}),this.errored.update(a=>{let l=new Set(a);return l.add(t),l})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=A({type:n,selectors:[["dm-doctor-page"]],decls:80,vars:12,consts:[[1,"dm-page-header"],[1,"dm-page-sub"],["mat-icon-button","","aria-label","Refresh",3,"click","disabled"],[1,"dm-section"],[1,"dm-section-title"],[1,"dm-grid-2"],[1,"dm-card"],[1,"dm-stack"],["icon","search_off",3,"title","hint"],[1,"dm-muted"],[1,"dm-banner"],[1,"dm-banner-text"],[1,"dm-banner-actions"],["mat-stroked-button","",3,"click","disabled"],["diameter","16"],["mat-flat-button","","color","warn",3,"click","disabled"],["height","2rem","width","40%"],[1,"dm-quick"],["mat-stroked-button","","routerLink","/config"],["mat-stroked-button","","routerLink","/events"],[1,"dm-stat"],[1,"dm-stat-icon"],[1,"dm-stat-label"],[1,"dm-stat-value"],["height","1.25rem","width","60%"],["height","1rem","width","40%"],["height","1rem","width","50%"],[1,"dm-kv"],[1,"dm-k"],[1,"dm-v"],[1,"dm-pill"],[1,"dm-dot"],["height","1rem","width","70%"],["height","1rem","width","80%"],[1,"dm-block"],[1,"dm-list"],[1,"dm-callout"],[1,"dm-table"],[1,"dm-num"],[1,"dm-list","dm-warn"],[1,"dm-row-between"],[1,"dm-routine-desc"],[1,"dm-detail"],["align","end"],["mat-flat-button","","color","primary",3,"click","disabled"],[1,"dm-detail","dm-warn"],[1,"dm-detail","dm-muted"]],template:function(e,a){e&1&&(o(0,"div",0)(1,"div")(2,"h1"),r(3,"Doctor"),i(),o(4,"div",1),r(5),i()(),o(6,"button",2),b("click",function(){return a.refreshAll()}),o(7,"mat-icon"),r(8,"refresh"),i()()(),o(9,"section",3)(10,"h2",4),r(11,"System overview"),i(),o(12,"div",5)(13,"mat-card",6)(14,"mat-card-header")(15,"mat-card-title"),r(16,"Daemon"),i()(),o(17,"mat-card-content"),g(18,de,4,0,"div",7)(19,le,25,5),i()(),o(20,"mat-card",6)(21,"mat-card-header")(22,"mat-card-title"),r(23,"Discovery"),i()(),o(24,"mat-card-content"),g(25,se,4,0,"div",7)(26,me,3,2,"dm-empty",8)(27,xe,21,5)(28,ve,2,0,"div",9),i()()()(),o(29,"section",3)(30,"h2",4),r(31,"Auto-fix routines"),i(),o(32,"div",10)(33,"div",11),r(34,"Run diagnostics across every routine, or attempt all fixes in one go."),i(),o(35,"div",12)(36,"button",13),b("click",function(){return a.runAllDry()}),g(37,ye,1,0,"mat-spinner",14)(38,Ce,2,0,"mat-icon"),r(39," Run all dry-run "),i(),o(40,"button",15),b("click",function(){return a.fixAll()}),g(41,he,1,0,"mat-spinner",14)(42,be,2,0,"mat-icon"),r(43," Fix everything (be careful) "),i()()(),o(44,"div",5),C(45,Oe,21,9,"mat-card",6,ie),i()(),o(47,"section",3)(48,"h2",4),r(49,"Custom rules"),i(),g(50,Ae,1,0,"dm-skeleton",16)(51,Te,8,0,"div",9)(52,Ke,3,0,"div",5),i(),o(53,"section",3)(54,"h2",4),r(55,"Quick links"),i(),o(56,"div",17)(57,"button",18)(58,"mat-icon"),r(59,"tune"),i(),r(60," Open Config editor "),i(),o(61,"button",19)(62,"mat-icon"),r(63,"timeline"),i(),r(64," View Events "),i(),o(65,"button",13),b("click",function(){return a.reloadConfig()}),g(66,ze,1,0,"mat-spinner",14)(67,Be,2,0,"mat-icon"),r(68," Reload config "),i(),o(69,"div",20)(70,"div",21)(71,"mat-icon"),r(72,"token"),i()(),o(73,"div")(74,"div",22),r(75,"API token footprint"),i(),o(76,"div",23)(77,"dm-mono"),r(78),i(),r(79," per Claude session"),i()()()()()),e&2&&(d(5),m(a.subtitle()),d(),y("disabled",a.loading()),d(12),f(a.loading()&&!a.configLoaded()?18:19),d(7),f(a.loading()&&!a.discovery()?25:a.discovery()&&a.discovery().appsFound===0?26:a.discovery()?27:28),d(11),y("disabled",a.busyAll()),d(),f(a.busyAll()&&a.busyAllKind()==="dry"?37:38),d(3),y("disabled",a.busyAll()),d(),f(a.busyAll()&&a.busyAllKind()==="fix"?41:42),d(4),h(a.routines),d(5),f(a.plugins()===null?50:a.plugins().length===0?51:52),d(15),y("disabled",a.reloading()),d(),f(a.reloading()?66:67),d(12),P("~ ",a.tokenEstimate()," tokens"))},dependencies:[I,ee,U,Y,J,Z,X,G,V,B,z,N,R,K,j,q,te,H,Q,W],styles:["[_nghost-%COMP%]{display:block;max-width:1200px;margin:0 auto}.dm-section[_ngcontent-%COMP%]{margin-bottom:1.25rem}.dm-section-title[_ngcontent-%COMP%]{margin:0 0 .5rem;font:500 .6875rem/1rem Roboto;color:var(--mat-sys-on-surface-variant);letter-spacing:.06em;text-transform:uppercase}.dm-grid-2[_ngcontent-%COMP%]{display:grid;gap:.75rem;grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:800px){.dm-grid-2[_ngcontent-%COMP%]{grid-template-columns:1fr}}.dm-card[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container-low)}.dm-stack[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.dm-kv[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between;padding:.35rem 0;border-bottom:1px solid var(--mat-sys-outline-variant)}.dm-kv[_ngcontent-%COMP%]:last-child{border-bottom:0}.dm-k[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font-size:.8125rem}.dm-v[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface)}.dm-block[_ngcontent-%COMP%]{margin-top:.75rem}.dm-block[_ngcontent-%COMP%] .dm-k[_ngcontent-%COMP%]{display:block;margin-bottom:.35rem}.dm-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.25rem}.dm-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:.25rem .5rem;background:var(--mat-sys-surface-container);border-radius:6px;overflow-wrap:anywhere}.dm-warn[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:var(--mat-sys-error)}.dm-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.8125rem}.dm-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.25rem .5rem;border-bottom:1px solid var(--mat-sys-outline-variant)}.dm-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:0}.dm-num[_ngcontent-%COMP%]{text-align:right;color:var(--mat-sys-on-surface-variant)}.dm-callout[_ngcontent-%COMP%]{margin-top:.75rem;padding:.65rem .85rem;border-radius:10px;background:color-mix(in oklch,var(--mat-sys-tertiary) 12%,transparent);border:1px solid color-mix(in oklch,var(--mat-sys-tertiary) 28%,transparent);color:var(--mat-sys-on-surface);font-size:.875rem}.dm-muted[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font-size:.875rem}.dm-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4rem;padding:2px 10px;border-radius:999px;border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface);font:500 .75rem/1rem Roboto;letter-spacing:.025rem}.dm-pill[_ngcontent-%COMP%] .dm-dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:999px;background:var(--mat-sys-outline)}.dm-pill[data-kind=ok][_ngcontent-%COMP%], .dm-pill[data-kind=clean][_ngcontent-%COMP%], .dm-pill[data-kind=fixed][_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-primary) 12%,transparent);border-color:color-mix(in oklch,var(--mat-sys-primary) 28%,transparent)}.dm-pill[data-kind=ok][_ngcontent-%COMP%] .dm-dot[_ngcontent-%COMP%], .dm-pill[data-kind=clean][_ngcontent-%COMP%] .dm-dot[_ngcontent-%COMP%], .dm-pill[data-kind=fixed][_ngcontent-%COMP%] .dm-dot[_ngcontent-%COMP%]{background:var(--mat-sys-primary)}.dm-pill[data-kind=detected][_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-tertiary) 14%,transparent);border-color:color-mix(in oklch,var(--mat-sys-tertiary) 28%,transparent)}.dm-pill[data-kind=detected][_ngcontent-%COMP%] .dm-dot[_ngcontent-%COMP%]{background:var(--mat-sys-tertiary)}.dm-pill[data-kind=err][_ngcontent-%COMP%], .dm-pill[data-kind=error][_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-error) 14%,transparent);border-color:color-mix(in oklch,var(--mat-sys-error) 30%,transparent);color:var(--mat-sys-error)}.dm-pill[data-kind=err][_ngcontent-%COMP%] .dm-dot[_ngcontent-%COMP%], .dm-pill[data-kind=error][_ngcontent-%COMP%] .dm-dot[_ngcontent-%COMP%]{background:var(--mat-sys-error)}.dm-banner[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.5rem .85rem;margin-bottom:.75rem;background:var(--mat-sys-surface-container);border:1px solid var(--mat-sys-outline-variant);border-radius:10px}.dm-banner-text[_ngcontent-%COMP%]{font-size:.875rem;color:var(--mat-sys-on-surface-variant)}.dm-banner-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}@media(max-width:700px){.dm-banner[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.dm-banner-actions[_ngcontent-%COMP%]{flex-wrap:wrap}}.dm-row-between[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.dm-routine-desc[_ngcontent-%COMP%]{font-size:.875rem;color:var(--mat-sys-on-surface-variant);flex:1}.dm-detail[_ngcontent-%COMP%]{margin-top:.75rem;padding:.5rem .65rem;background:var(--mat-sys-surface-container);border-radius:8px;font-size:.8125rem;overflow-wrap:anywhere}.dm-quick[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem}.dm-quick[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{justify-content:flex-start;padding:.5rem .75rem;height:auto;min-height:40px}.dm-stat[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.625rem;padding:.5rem .75rem;border:1px solid var(--mat-sys-outline-variant);border-radius:10px;background:var(--mat-sys-surface-container-low)}.dm-stat-icon[_ngcontent-%COMP%]{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:color-mix(in oklch,var(--mat-sys-primary) 14%,transparent);color:var(--mat-sys-primary)}.dm-stat-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px}.dm-stat-label[_ngcontent-%COMP%]{font-size:.75rem;color:var(--mat-sys-on-surface-variant);text-transform:uppercase;letter-spacing:.025rem}.dm-stat-value[_ngcontent-%COMP%]{font-size:.875rem;color:var(--mat-sys-on-surface)}mat-spinner[_ngcontent-%COMP%]{display:inline-block;margin-right:.35rem}"],changeDetection:0})};export{ne as DoctorPageComponent};
@@ -0,0 +1 @@
1
+ import{d as de}from"./chunk-UUJWPV5O.js";import{a as ee,b as te,c as ne,d as ie,e as oe,g as ae,h as re,k as se,l as le}from"./chunk-K2SFF47Z.js";import"./chunk-YHBNUNU3.js";import"./chunk-KRC72WWY.js";import{b as Y,f as Q,h as q,m as G}from"./chunk-6Z4FDREI.js";import"./chunk-3ZFFKHPU.js";import{b as H,c as J,d as U}from"./chunk-LBWOIG7N.js";import"./chunk-AGN2F6JP.js";import"./chunk-SR4HVFOB.js";import{c as X,d as Z}from"./chunk-WOMCRDMJ.js";import{a as z,b as K}from"./chunk-VHALTUPL.js";import"./chunk-YNQPX5G6.js";import"./chunk-6MTVWBQQ.js";import"./chunk-TGSV7ZHM.js";import"./chunk-VMW35ZNT.js";import"./chunk-FRKUCFVI.js";import"./chunk-B2DPS6BL.js";import{c as B}from"./chunk-PRLUGTKR.js";import{e as j,f as A}from"./chunk-UC7AWK4C.js";import{d as W}from"./chunk-X4RGWMLE.js";import"./chunk-JWXROQJJ.js";import{h as V}from"./chunk-EBGPIJ7S.js";import{Db as b,Eb as c,Fb as p,Hb as L,Ib as E,Jb as k,Kb as _,Lb as a,Mb as r,Nb as F,Sb as T,Ub as h,Wb as m,_a as o,ea as D,gc as w,ic as s,ja as x,jc as u,ka as M,kc as y,pb as N,ta as g,tc as R,yc as P}from"./chunk-O76B43BY.js";var ce=t=>["/apps",t],pe=(t,n)=>n.name,ue=(t,n)=>n.key;function ve(t,n){t&1&&(a(0,"span",18),s(1,"\xB7"),r(),a(2,"span",19),s(3,"paused"),r())}function ge(t,n){if(t&1&&(a(0,"span",18),s(1,"\xB7"),r(),a(2,"span"),s(3),r()),t&2){let e=m();o(3),y("",e.pendingCount()," new while paused")}}function _e(t,n){if(t&1&&(a(0,"mat-option",10),s(1),r()),t&2){let e=n.$implicit;_("value",e.name),o(),u(e.name)}}function fe(t,n){if(t&1){let e=T();a(0,"button",20),h("click",function(){x(e);let d=m();return M(d.textFilter.set(""))}),a(1,"mat-icon"),s(2,"close"),r()()}}function he(t,n){if(t&1){let e=T();a(0,"button",21),h("click",function(){let d=x(e).$implicit,v=m();return M(v.toggleType(d))}),s(1),r()}if(t&2){let e=n.$implicit,i=m();w("dm-chip-active",i.typeFilter().has(e)),b("data-kind",e),o(),y(" ",e," ")}}function ye(t,n){if(t&1){let e=T();a(0,"button",22),h("click",function(){x(e);let d=m();return M(d.clearTypes())}),a(1,"mat-icon"),s(2,"close"),r()()}}function Ce(t,n){t&1&&F(0,"dm-empty",23)}function xe(t,n){t&1&&F(0,"dm-empty",24)}function Me(t,n){if(t&1&&c(0,Ce,1,0,"dm-empty",23)(1,xe,1,0,"dm-empty",24),t&2){let e=m();p(e.liveEvents().length===0?0:1)}}function be(t,n){if(t&1&&(a(0,"li",25)(1,"span",32),s(2),r()()),t&2){let e=m().$implicit;o(2),u(e.gapLabel)}}function Ee(t,n){if(t&1&&(a(0,"a",29)(1,"dm-mono"),s(2),r()()),t&2){let e=m().$implicit;_("routerLink",R(2,ce,e.ev.app)),o(2),u(e.ev.app)}}function ke(t,n){t&1&&(a(0,"span",30),s(1,"\u2014"),r())}function Fe(t,n){if(t&1&&(a(0,"dm-mono"),s(1),r(),a(2,"span",33),s(3,"\u2192"),r(),a(4,"dm-mono"),s(5),r()),t&2){let e=m().$implicit;o(),u(e.ev.from??"?"),o(4),u(e.ev.to??"?")}}function Te(t,n){if(t&1&&s(0),t&2){let e=m().$implicit;y(" ",e.ev.message??""," ")}}function we(t,n){if(t&1&&(c(0,be,3,1,"li",25),a(1,"li",26)(2,"span",27)(3,"dm-mono"),s(4),r()(),a(5,"span",28),s(6),r(),c(7,Ee,3,4,"a",29)(8,ke,2,0,"span",30),a(9,"span",31),c(10,Fe,6,2)(11,Te,1,1),r()()),t&2){let e=n.$implicit,i=m(2);p(e.divider?0:-1),o(),w("dm-flash",e.flash),b("data-kind",e.ev.type),o(),_("matTooltip",i.absTime(e.ev.ts)),o(2),u(i.rel(e.ev.ts)),o(),b("data-kind",e.ev.type),o(),u(e.ev.type),o(),p(e.ev.app?7:8),o(3),p(e.ev.type==="status"&&(e.ev.from||e.ev.to)?10:11)}}function Pe(t,n){if(t&1&&(a(0,"ol",17),E(1,we,12,10,null,null,ue),r()),t&2){let e=m();o(),k(e.rendered())}}var Oe=["status","health","error","compile","log"];function Se(t,n){let e=Math.max(0,Math.floor((n-t)/1e3));if(e<1)return"just now";if(e<60)return`${e}s ago`;let i=Math.floor(e/60),d=e%60;return i<60?d?`${i}m ${d}s ago`:`${i}m ago`:`${Math.floor(i/60)}h ${i%60}m ago`}var me=class t{api=D(W);types=Oe;paused=g(!1);appFilter=g("");textFilter=g("");typeFilter=g(new Set);now=g(Date.now());snapshot=g(null);lastSeenTs=g(0);tickTimer;liveEvents=P(()=>this.snapshot()??this.api.events());pendingCount=P(()=>{let n=this.snapshot();if(!n)return 0;let e=this.api.events();return Math.max(0,e.length-n.length)});rendered=P(()=>{let n=this.liveEvents(),e=this.appFilter(),i=this.textFilter().toLowerCase(),d=this.typeFilter(),v=this.lastSeenTs(),C=[];for(let l of n)e&&l.app!==e||d.size&&!d.has(l.type)||i&&!`${l.app??""} ${l.type} ${l.message??""} ${l.from??""} ${l.to??""}`.toLowerCase().includes(i)||C.push(l);let S=[];for(let l=0;l<C.length;l++){let f=C[l],O=C[l+1],I=O?f.ts-O.ts:0,$=!!O&&I>3e4;S.push({key:`${f.ts}:${l}`,ev:f,divider:$,gapLabel:$?Ie(I):"",flash:f.ts>v})}return S.sort((l,f)=>f.ev.ts-l.ev.ts)});ngOnInit(){this.lastSeenTs.set(Date.now()),this.tickTimer=setInterval(()=>{this.now.set(Date.now());let n=this.api.events();n.length&&this.lastSeenTs.set(n[n.length-1].ts)},1e3)}ngOnDestroy(){this.tickTimer&&clearInterval(this.tickTimer)}togglePause(){this.paused()?(this.paused.set(!1),this.snapshot.set(null)):(this.snapshot.set(this.api.events().slice()),this.paused.set(!0))}toggleType(n){this.typeFilter.update(e=>{let i=new Set(e);return i.has(n)?i.delete(n):i.add(n),i})}clearTypes(){this.typeFilter.set(new Set)}rel(n){return Se(n,this.now())}absTime(n){return new Date(n).toLocaleString()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=N({type:t,selectors:[["dm-events-feed"]],decls:37,vars:15,consts:[[1,"dm-page-header"],[1,"dm-count"],[1,"dm-page-sub"],[1,"dm-conn"],[1,"dm-conn-dot"],[1,"dm-header-actions"],["mat-stroked-button","",3,"click","matTooltip"],[1,"dm-toolbar"],["appearance","outline",1,"dm-app-filter"],[3,"ngModelChange","ngModel"],[3,"value"],["appearance","outline",1,"dm-text-filter"],["matInput","","placeholder","filter message / app",3,"ngModelChange","ngModel"],["matSuffix","","mat-icon-button",""],[1,"dm-type-chips"],[1,"dm-chip",3,"dm-chip-active"],[1,"dm-chip","dm-chip-clear"],[1,"dm-list"],[1,"dm-sep"],[1,"dm-paused-tag"],["matSuffix","","mat-icon-button","",3,"click"],[1,"dm-chip",3,"click"],[1,"dm-chip","dm-chip-clear",3,"click"],["icon","timeline","title","Quiet","hint","No events in this session \u2014 start an app to see status transitions, errors, and compiles"],["icon","filter_alt_off","title","No matches","hint","Adjust filters to see events"],[1,"dm-divider"],[1,"dm-event"],[1,"dm-time",3,"matTooltip"],[1,"dm-type"],[1,"dm-app",3,"routerLink"],[1,"dm-app","dm-app-empty"],[1,"dm-msg"],[1,"dm-divider-label"],[1,"dm-arrow"]],template:function(e,i){e&1&&(a(0,"div",0)(1,"div")(2,"h1"),s(3,"Events "),a(4,"span",1),s(5),r()(),a(6,"div",2)(7,"span",3),F(8,"span",4),s(9),r(),c(10,ve,4,0),c(11,ge,4,1),r()(),a(12,"div",5)(13,"button",6),h("click",function(){return i.togglePause()}),a(14,"mat-icon"),s(15),r(),s(16),r()()(),a(17,"div",7)(18,"mat-form-field",8)(19,"mat-label"),s(20,"App"),r(),a(21,"mat-select",9),h("ngModelChange",function(v){return i.appFilter.set(v)}),a(22,"mat-option",10),s(23,"All apps"),r(),E(24,_e,2,2,"mat-option",10,pe),r()(),a(26,"mat-form-field",11)(27,"mat-label"),s(28,"Search"),r(),a(29,"input",12),h("ngModelChange",function(v){return i.textFilter.set(v)}),r(),c(30,fe,3,0,"button",13),r(),a(31,"div",14),E(32,he,2,4,"button",15,L),c(34,ye,3,0,"button",16),r()(),c(35,Me,2,1)(36,Pe,3,0,"ol",17)),e&2&&(o(5),y("\xB7 ",i.liveEvents().length),o(2),w("dm-conn-on",i.api.connected()),o(2),y(" ",i.api.connected()?"live":"disconnected"," "),o(),p(i.paused()?10:-1),o(),p(i.paused()&&i.pendingCount()>0?11:-1),o(2),_("matTooltip",i.paused()?"Resume feed":"Pause feed"),o(2),u(i.paused()?"play_arrow":"pause"),o(),y(" ",i.paused()?"Resume":"Pause"," "),o(5),_("ngModel",i.appFilter()),o(),_("value",""),o(2),k(i.api.apps()),o(5),_("ngModel",i.textFilter()),o(),p(i.textFilter()?30:-1),o(2),k(i.types),o(2),p(i.typeFilter().size>0?34:-1),o(),p(i.rendered().length===0?35:36))},dependencies:[V,G,Y,Q,q,B,ie,ne,ee,te,re,ae,oe,le,se,de,U,J,H,A,j,K,z,X,Z],styles:["[_nghost-%COMP%]{display:block}.dm-count[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font-weight:400}.dm-conn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.35rem}.dm-conn-dot[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:999px;background:var(--mat-sys-outline)}.dm-conn-on[_ngcontent-%COMP%] .dm-conn-dot[_ngcontent-%COMP%]{background:var(--mat-sys-primary);box-shadow:0 0 0 3px color-mix(in oklch,var(--mat-sys-primary) 24%,transparent)}.dm-sep[_ngcontent-%COMP%]{color:var(--mat-sys-outline);margin:0 .15rem}.dm-paused-tag[_ngcontent-%COMP%]{color:var(--mat-sys-tertiary);font-weight:500}.dm-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-bottom:.5rem}.dm-app-filter[_ngcontent-%COMP%]{width:12rem}.dm-text-filter[_ngcontent-%COMP%]{flex:1;min-width:14rem;max-width:28rem}.dm-type-chips[_ngcontent-%COMP%]{display:flex;gap:.35rem;flex-wrap:wrap}.dm-chip[_ngcontent-%COMP%]{border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface-variant);border-radius:999px;padding:4px 12px;font:500 .75rem/1rem Roboto;cursor:pointer;letter-spacing:.025rem}.dm-chip[_ngcontent-%COMP%]:hover{background:var(--mat-sys-surface-container-high)}.dm-chip-active[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface)}.dm-chip-clear[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:2px 8px}.dm-chip-clear[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px}.dm-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;border:1px solid var(--mat-sys-outline-variant);border-radius:10px;background:var(--mat-sys-surface-container-lowest);overflow:hidden}.dm-event[_ngcontent-%COMP%]{display:grid;grid-template-columns:7.5rem max-content 10rem 1fr;gap:.75rem;align-items:center;height:28px;padding:0 .75rem;border-top:1px solid var(--mat-sys-outline-variant);font-size:.8125rem;color:var(--mat-sys-on-surface)}.dm-event[_ngcontent-%COMP%]:first-child{border-top:0}.dm-time[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.dm-type[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;padding:1px 8px;border-radius:999px;font:500 .6875rem/1rem Roboto;letter-spacing:.03rem;border:1px solid var(--mat-sys-outline-variant);text-transform:lowercase;white-space:nowrap}.dm-type[data-kind=status][_ngcontent-%COMP%], .dm-chip[data-kind=status].dm-chip-active[_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-primary) 14%,transparent);border-color:color-mix(in oklch,var(--mat-sys-primary) 30%,transparent);color:var(--mat-sys-primary)}.dm-type[data-kind=health][_ngcontent-%COMP%], .dm-chip[data-kind=health].dm-chip-active[_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-secondary) 14%,transparent);border-color:color-mix(in oklch,var(--mat-sys-secondary) 30%,transparent);color:var(--mat-sys-secondary)}.dm-type[data-kind=error][_ngcontent-%COMP%], .dm-chip[data-kind=error].dm-chip-active[_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-error) 14%,transparent);border-color:color-mix(in oklch,var(--mat-sys-error) 32%,transparent);color:var(--mat-sys-error)}.dm-type[data-kind=compile][_ngcontent-%COMP%], .dm-chip[data-kind=compile].dm-chip-active[_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-tertiary) 14%,transparent);border-color:color-mix(in oklch,var(--mat-sys-tertiary) 30%,transparent);color:var(--mat-sys-tertiary)}.dm-type[data-kind=log][_ngcontent-%COMP%], .dm-chip[data-kind=log].dm-chip-active[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface-variant)}.dm-app[_ngcontent-%COMP%]{text-decoration:none;color:var(--mat-sys-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dm-app[_ngcontent-%COMP%]:hover{text-decoration:underline}.dm-app-empty[_ngcontent-%COMP%]{color:var(--mat-sys-outline)}.dm-msg[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;gap:.35rem}.dm-arrow[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.dm-divider[_ngcontent-%COMP%]{height:18px;display:flex;align-items:center;justify-content:center;border-top:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container)}.dm-divider-label[_ngcontent-%COMP%]{font:400 .6875rem/1rem Roboto;color:var(--mat-sys-on-surface-variant);letter-spacing:.04rem}.dm-flash[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dm-event-pulse .6s var(--dm-motion-easing)}@keyframes _ngcontent-%COMP%_dm-event-pulse{0%{background:color-mix(in oklch,var(--mat-sys-primary) 24%,transparent)}to{background:transparent}}@media(prefers-reduced-motion:reduce){.dm-flash[_ngcontent-%COMP%]{animation:none}}"],changeDetection:0})};function Ie(t){let n=Math.floor(t/1e3);if(n<60)return`${n}s gap`;let e=Math.floor(n/60);return e<60?`${e}m gap`:`${Math.floor(e/60)}h ${e%60}m gap`}export{me as EventsFeedComponent};
@@ -0,0 +1 @@
1
+ import{a as te,b as ne,c as ie,d as ae,e as oe,g as re,h as se,k as le,l as me}from"./chunk-K2SFF47Z.js";import"./chunk-YHBNUNU3.js";import"./chunk-KRC72WWY.js";import{b as Q,f as K,h as j,m as z}from"./chunk-6Z4FDREI.js";import"./chunk-3ZFFKHPU.js";import{b as G,c as J,d as W}from"./chunk-LBWOIG7N.js";import"./chunk-AGN2F6JP.js";import"./chunk-SR4HVFOB.js";import{a as X,b as Y,c as Z,d as ee}from"./chunk-WOMCRDMJ.js";import{a as $,b as U}from"./chunk-VHALTUPL.js";import"./chunk-YNQPX5G6.js";import"./chunk-6MTVWBQQ.js";import"./chunk-TGSV7ZHM.js";import"./chunk-VMW35ZNT.js";import"./chunk-FRKUCFVI.js";import"./chunk-B2DPS6BL.js";import{c as L}from"./chunk-PRLUGTKR.js";import{e as A,f as V}from"./chunk-UC7AWK4C.js";import{a as B,d as H}from"./chunk-X4RGWMLE.js";import"./chunk-JWXROQJJ.js";import{h as N}from"./chunk-EBGPIJ7S.js";import{Db as x,Eb as g,Fb as f,Gb as I,Hb as O,Ib as v,Jb as y,Kb as u,Lb as o,Mb as a,Nb as b,Sb as M,Ub as h,Wb as d,_a as s,ea as w,gc as T,ic as r,ja as _,jc as p,ka as C,kc as k,pb as q,s as E,ta as c,tc as D,yc as P,za as R,zc as F}from"./chunk-O76B43BY.js";var ue=n=>["/apps",n],he=(n,t)=>t.value;function ge(n,t){if(n&1&&b(0,"dm-status-pill",4),n&2){let e=t;u("status",e.status)("health",e.health)}}function fe(n,t){if(n&1&&(o(0,"span"),r(1,"Last refreshed "),o(2,"dm-mono"),r(3),a()()),n&2){let e=d();s(3),p(e.lastRefreshedLabel())}}function _e(n,t){n&1&&(o(0,"span"),r(1,"Loading\u2026"),a())}function Ce(n,t){n&1&&(o(0,"span",2),r(1,"\xB7"),a(),o(2,"span",10),r(3,"paused"),a())}function xe(n,t){n&1&&(o(0,"dm-empty",9)(1,"a",11),r(2,"Go to apps"),a()())}function ve(n,t){if(n&1&&(o(0,"mat-option",15),r(1),a()),n&2){let e=t.$implicit;u("value",e.value),s(),p(e.label)}}function ye(n,t){if(n&1){let e=M();o(0,"button",26),h("click",function(){let l=_(e).$implicit,m=d(2);return C(m.toggleMethod(l))}),r(1),a()}if(n&2){let e=t.$implicit,i=d(2);T("dm-chip-active",i.methodFilter().has(e)),x("data-method",e),s(),k(" ",e," ")}}function be(n,t){if(n&1){let e=M();o(0,"button",26),h("click",function(){let l=_(e).$implicit,m=d(2);return C(m.toggleStatus(l))}),r(1),a()}if(n&2){let e=t.$implicit,i=d(2);T("dm-chip-active",i.statusFilter().has(e)),x("data-bucket",e),s(),k(" ",e," ")}}function Me(n,t){if(n&1){let e=M();o(0,"button",27),h("click",function(){_(e);let l=d(2);return C(l.pathQuery.set(""))}),o(1,"mat-icon"),r(2,"close"),a()()}}function Pe(n,t){n&1&&(o(0,"div",22),b(1,"dm-skeleton",28)(2,"dm-skeleton",28)(3,"dm-skeleton",28)(4,"dm-skeleton",28),a())}function Se(n,t){n&1&&b(0,"dm-empty",23)}function ke(n,t){n&1&&b(0,"dm-empty",24)}function we(n,t){if(n&1&&(o(0,"tr")(1,"td",30)(2,"dm-mono")(3,"span",35),r(4),a()()(),o(5,"td",31)(6,"dm-mono")(7,"span",36),r(8),a()()(),o(9,"td",32)(10,"dm-mono")(11,"span",37),r(12),a()()(),o(13,"td",33)(14,"dm-mono")(15,"span",38),r(16),a()()(),o(17,"td",34)(18,"dm-mono"),r(19),a()()()),n&2){let e=t.$implicit,i=d(3);s(3),u("matTooltip",i.absTs(e.ts)),s(),p(i.relTs(e.ts)),s(3),x("data-method",e.method),s(),p(e.method),s(3),x("data-bucket",i.bucketOf(e.status)),s(),p(e.status),s(3),u("title",e.path),s(),p(e.path),s(3),p(e.durationMs)}}function Oe(n,t){if(n&1&&(o(0,"div",25)(1,"table",29)(2,"thead")(3,"tr")(4,"th",30),r(5,"Time"),a(),o(6,"th",31),r(7,"Method"),a(),o(8,"th",32),r(9,"Status"),a(),o(10,"th",33),r(11,"Path"),a(),o(12,"th",34),r(13,"ms"),a()()(),o(14,"tbody"),v(15,we,20,9,"tr",null,I),a()()()),n&2){let e=d(2);s(15),y(e.filtered())}}function Te(n,t){if(n&1){let e=M();o(0,"div",12)(1,"mat-form-field",13)(2,"mat-label"),r(3,"Since"),a(),o(4,"mat-select",14),h("ngModelChange",function(l){_(e);let m=d();return C(m.since.set(l))}),v(5,ve,2,2,"mat-option",15,he),a()(),o(7,"div",16)(8,"span",17),r(9,"Methods"),a(),v(10,ye,2,4,"button",18,O),a(),o(12,"div",16)(13,"span",17),r(14,"Status"),a(),v(15,be,2,4,"button",18,O),a(),o(17,"mat-form-field",19)(18,"mat-label"),r(19,"Path contains"),a(),o(20,"input",20),h("ngModelChange",function(l){_(e);let m=d();return C(m.pathQuery.set(l))}),a(),g(21,Me,3,0,"button",21),a()(),g(22,Pe,5,0,"div",22)(23,Se,1,0,"dm-empty",23)(24,ke,1,0,"dm-empty",24)(25,Oe,17,0,"div",25)}if(n&2){let e=d();s(4),u("ngModel",e.since()),s(),y(e.sinceOptions),s(5),y(e.methods),s(5),y(e.statusBuckets),s(5),u("ngModel",e.pathQuery()),s(),f(e.pathQuery()?21:-1),s(),f(e.loading()&&e.rows().length===0?22:e.filtered().length===0&&e.rows().length===0?23:e.filtered().length===0?24:25)}}var Ee=["GET","POST","PUT","DELETE","PATCH"],Re=["2xx","3xx","4xx","5xx"],qe=[{value:"5m",label:"5m"},{value:"15m",label:"15m"},{value:"1h",label:"1h"},{value:"all",label:"All"}],Ie=5e3;function de(n,t){let e=Math.max(0,Math.floor((t-n)/1e3));if(e<1)return"just now";if(e<60)return`${e}s ago`;let i=Math.floor(e/60);if(i<60)return`${i}m ago`;let l=Math.floor(i/60);return l<24?`${l}h ago`:`${Math.floor(l/24)}d ago`}function ce(n){return n>=200&&n<300?"2xx":n>=300&&n<400?"3xx":n>=400&&n<500?"4xx":n>=500&&n<600?"5xx":null}var pe=class n{name="";api=w(H);http=w(B);methods=Ee;statusBuckets=Re;sinceOptions=qe;loading=c(!0);rows=c([]);since=c("5m");methodFilter=c(new Set);statusFilter=c(new Set);pathQuery=c("");paused=c(!1);lastRefreshed=c(null);tick=c(0);currentApp=P(()=>this.name?this.api.byName(this.name):void 0);unknownApp=P(()=>this.name?this.api.ready()?!this.api.byName(this.name):!1:!0);filtered=P(()=>{let t=this.rows(),e=this.methodFilter(),i=this.statusFilter(),l=this.pathQuery().trim().toLowerCase();return t.filter(m=>{if(e.size>0&&!e.has(m.method.toUpperCase()))return!1;if(i.size>0){let S=ce(m.status);if(!S||!i.has(S))return!1}return!(l&&!m.path.toLowerCase().includes(l))}).sort((m,S)=>S.ts-m.ts)});lastRefreshedLabel=P(()=>{this.tick();let t=this.lastRefreshed();return t?de(t,Date.now()):"\u2014"});refreshTimer;tickTimer;sinceFirst=!0;constructor(){F(()=>{let t=this.since();if(this.sinceFirst){this.sinceFirst=!1;return}this.refresh()})}ngOnInit(){this.refresh(),this.refreshTimer=setInterval(()=>{this.paused()||this.refresh(!0)},Ie),this.tickTimer=setInterval(()=>this.tick.update(t=>t+1),1e3)}ngOnChanges(t){"name"in t&&!t.name.firstChange&&(this.rows.set([]),this.refresh())}ngOnDestroy(){this.refreshTimer&&clearInterval(this.refreshTimer),this.tickTimer&&clearInterval(this.tickTimer)}togglePause(){this.paused.update(t=>!t)}toggleMethod(t){this.methodFilter.update(e=>{let i=new Set(e);return i.has(t)?i.delete(t):i.add(t),i})}toggleStatus(t){this.statusFilter.update(e=>{let i=new Set(e);return i.has(t)?i.delete(t):i.add(t),i})}async refresh(t=!1){if(this.name){t||this.loading.set(!0);try{let e=this.since(),i=e==="all"?"":`?since=${encodeURIComponent(e)}`,l=`/api/apps/${encodeURIComponent(this.name)}/requests${i}`,m=await E(this.http.get(l));this.rows.set(Array.isArray(m)?m:[]),this.lastRefreshed.set(Date.now())}catch{}finally{t||this.loading.set(!1)}}}relTs(t){return this.tick(),de(t,Date.now())}absTs(t){return new Date(t).toLocaleString()}bucketOf(t){return ce(t)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=q({type:n,selectors:[["dm-requests-page"]],inputs:{name:"name"},features:[R],decls:29,vars:11,consts:[[1,"dm-page-header"],["matTooltip","Back to app",1,"dm-back",3,"routerLink"],[1,"dm-sep"],[1,"dm-app"],[3,"status","health"],[1,"dm-page-sub"],[1,"dm-header-actions"],["mat-stroked-button","",3,"click","matTooltip"],["mat-stroked-button","","matTooltip","Refresh now",3,"click"],["icon","search_off","title","Unknown app","hint","No app with that name. Head back to the apps list."],[1,"dm-paused"],["routerLink","/",1,"dm-empty-link"],[1,"dm-toolbar"],["appearance","outline",1,"dm-since"],[3,"ngModelChange","ngModel"],[3,"value"],[1,"dm-chip-group"],[1,"dm-chip-label"],[1,"dm-chip",3,"dm-chip-active"],["appearance","outline",1,"dm-path-filter"],["matInput","","placeholder","/api/...",3,"ngModelChange","ngModel"],["matSuffix","","mat-icon-button",""],[1,"dm-skel-rows"],["icon","hourglass_empty","title","No requests yet","hint","Either no traffic has hit the dev server, or requestLog.enabled is false in your config."],["icon","filter_alt_off","title","No matching requests","hint","Adjust filters to see more rows."],[1,"dm-table-wrap"],[1,"dm-chip",3,"click"],["matSuffix","","mat-icon-button","",3,"click"],["height","2rem"],[1,"dm-req-table"],[1,"dm-col-time"],[1,"dm-col-method"],[1,"dm-col-status"],[1,"dm-col-path"],[1,"dm-col-dur"],[3,"matTooltip"],[1,"dm-method"],[1,"dm-status"],[1,"dm-path",3,"title"]],template:function(e,i){if(e&1&&(o(0,"div",0)(1,"div")(2,"h1")(3,"a",1)(4,"mat-icon"),r(5,"arrow_back"),a()(),o(6,"span"),r(7,"Requests"),a(),o(8,"span",2),r(9,"\xB7"),a(),o(10,"dm-mono")(11,"span",3),r(12),a()(),g(13,ge,1,2,"dm-status-pill",4),a(),o(14,"div",5),g(15,fe,4,1,"span")(16,_e,2,0,"span"),g(17,Ce,4,0),a()(),o(18,"div",6)(19,"button",7),h("click",function(){return i.togglePause()}),o(20,"mat-icon"),r(21),a(),r(22),a(),o(23,"button",8),h("click",function(){return i.refresh()}),o(24,"mat-icon"),r(25,"refresh"),a(),r(26," Refresh "),a()()(),g(27,xe,3,0,"dm-empty",9)(28,Te,26,4)),e&2){let l;s(3),u("routerLink",D(9,ue,i.name)),s(9),p(i.name),s(),f((l=i.currentApp())?13:-1,l),s(2),f(i.lastRefreshed()?15:16),s(2),f(i.paused()?17:-1),s(2),u("matTooltip",i.paused()?"Resume auto-refresh":"Pause auto-refresh"),s(2),p(i.paused()?"play_arrow":"pause"),s(),k(" ",i.paused()?"Resume":"Pause"," "),s(5),f(i.unknownApp()?27:28)}},dependencies:[N,z,Q,K,j,L,ae,ie,te,ne,se,re,oe,me,le,W,J,G,V,A,U,$,X,Z,Y,ee],styles:['[_nghost-%COMP%]{display:block}.dm-page-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap}.dm-page-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin:0}.dm-sep[_ngcontent-%COMP%]{color:var(--mat-sys-outline)}.dm-app[_ngcontent-%COMP%]{color:var(--mat-sys-primary);font-weight:500}.dm-back[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;color:var(--mat-sys-on-surface-variant);text-decoration:none;padding:4px;border-radius:8px}.dm-back[_ngcontent-%COMP%]:hover{background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface)}.dm-page-sub[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);margin-top:.25rem;font-size:.875rem}.dm-paused[_ngcontent-%COMP%]{color:var(--mat-sys-tertiary)}.dm-header-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}.dm-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin:1rem 0}.dm-since[_ngcontent-%COMP%]{width:8rem}.dm-path-filter[_ngcontent-%COMP%]{flex:1;min-width:14rem}.dm-chip-group[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.35rem;flex-wrap:wrap}.dm-chip-label[_ngcontent-%COMP%]{font:500 .6875rem/1rem Roboto;text-transform:uppercase;letter-spacing:.04rem;color:var(--mat-sys-on-surface-variant);margin-right:.25rem}.dm-chip[_ngcontent-%COMP%]{font-family:Roboto Mono,ui-monospace,monospace;font-size:.75rem;padding:4px 10px;border-radius:999px;border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface-variant);cursor:pointer;letter-spacing:.04rem}.dm-chip[_ngcontent-%COMP%]:hover{color:var(--mat-sys-on-surface)}.dm-chip-active[_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-primary) 14%,transparent);border-color:color-mix(in oklch,var(--mat-sys-primary) 35%,transparent);color:var(--mat-sys-primary)}.dm-skel-rows[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem}.dm-table-wrap[_ngcontent-%COMP%]{border:1px solid var(--mat-sys-outline-variant);border-radius:12px;overflow:hidden;background:var(--mat-sys-surface-container-lowest)}.dm-req-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;table-layout:fixed}.dm-req-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;padding:8px 12px;font:500 .6875rem/1rem Roboto;text-transform:uppercase;letter-spacing:.04rem;color:var(--mat-sys-on-surface-variant);background:var(--mat-sys-surface-container);border-bottom:1px solid var(--mat-sys-outline-variant)}.dm-req-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:6px 12px;border-bottom:1px solid var(--mat-sys-outline-variant);font-size:.8125rem;height:32px;line-height:20px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm-req-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:none}.dm-req-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background:color-mix(in oklch,var(--mat-sys-primary) 6%,transparent)}.dm-col-time[_ngcontent-%COMP%]{width:7rem}.dm-col-method[_ngcontent-%COMP%], .dm-col-status[_ngcontent-%COMP%]{width:5rem}.dm-col-path[_ngcontent-%COMP%]{width:auto}.dm-col-dur[_ngcontent-%COMP%]{width:5rem;text-align:right}.dm-method[data-method=GET][_ngcontent-%COMP%]{color:var(--mat-sys-primary)}.dm-method[data-method=POST][_ngcontent-%COMP%]{color:var(--mat-sys-tertiary)}.dm-method[data-method=DELETE][_ngcontent-%COMP%]{color:var(--mat-sys-error)}.dm-method[data-method=PUT][_ngcontent-%COMP%], .dm-method[data-method=PATCH][_ngcontent-%COMP%]{color:var(--mat-sys-secondary)}.dm-method[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.dm-status[data-bucket="2xx"][_ngcontent-%COMP%]{color:var(--mat-sys-primary)}.dm-status[data-bucket="3xx"][_ngcontent-%COMP%]{color:var(--mat-sys-secondary)}.dm-status[data-bucket="4xx"][_ngcontent-%COMP%]{color:var(--mat-sys-tertiary)}.dm-status[data-bucket="5xx"][_ngcontent-%COMP%]{color:var(--mat-sys-error)}.dm-status[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.dm-path[_ngcontent-%COMP%]{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;color:var(--mat-sys-on-surface)}.dm-empty-link[_ngcontent-%COMP%]{color:var(--mat-sys-primary);text-decoration:none;margin-top:.5rem}.dm-empty-link[_ngcontent-%COMP%]:hover{text-decoration:underline}'],changeDetection:0})};export{pe as RequestsPageComponent};
@@ -0,0 +1,2 @@
1
+ import{l as h,m as Ce,n as A,p as z}from"./chunk-EBGPIJ7S.js";import{$ as d,C as k,Ca as O,Da as $,Fa as x,G as y,I as fe,Ic as Q,J as me,Ja as ve,Lc as Me,S as R,T as pe,V as S,X as be,a as Z,aa as E,ca as m,d as de,db as P,ea as o,eb as l,f as L,fb as ye,ha as ge,hb as Ee,i as u,j as ue,na as C,o as le,oa as _,pb as Ie,qb as I,rb as N,sa as G,t as g,ta as Y,u as he,x as _e,zb as Ae,zc as Te}from"./chunk-O76B43BY.js";function Oe(i,...s){return s.length?s.some(e=>i[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}function q(i){return i.buttons===0||i.detail===0}function X(i){let s=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!!s&&s.identifier===-1&&(s.radiusX==null||s.radiusX===1)&&(s.radiusY==null||s.radiusY===1)}var J;function Je(){if(J==null){let i=typeof document<"u"?document.head:null;J=!!(i&&(i.createShadowRoot||i.attachShadow))}return J}function Ne(i){if(Je()){let s=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&s instanceof ShadowRoot)return s}return null}function Ot(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){let s=i.shadowRoot.activeElement;if(s===i)break;i=s}return i}function T(i){return i.composedPath?i.composedPath()[0]:i.target}var w;function et(){if(w==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>w=!0}))}finally{w=w||!1}return w}function we(i){return et()?i:!!i.capture}var Fe=new m("cdk-input-modality-detector-options"),De={ignoreKeys:[18,17,224,91,16]},Le=650,ee={passive:!0,capture:!0},ke=(()=>{class i{_platform=o(h);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new ue(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(t=>t===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=T(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs<Le||(this._modality.next(q(e)?"keyboard":"mouse"),this._mostRecentTarget=T(e))};_onTouchstart=e=>{if(X(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=T(e)};constructor(){let e=o(l),t=o(_),n=o(Fe,{optional:!0});if(this._options=Z(Z({},De),n),this.modalityDetected=this._modality.pipe(R(1)),this.modalityChanged=this.modalityDetected.pipe(me()),this._platform.isBrowser){let r=o(Ee).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(t,"keydown",this._onKeydown,ee),r.listen(t,"mousedown",this._onMousedown,ee),r.listen(t,"touchstart",this._onTouchstart,ee)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(t){return new(t||i)};static \u0275prov=d({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),F=(function(i){return i[i.IMMEDIATE=0]="IMMEDIATE",i[i.EVENTUAL=1]="EVENTUAL",i})(F||{}),Re=new m("cdk-focus-monitor-default-options"),U=we({passive:!0,capture:!0}),Se=(()=>{class i{_ngZone=o(l);_platform=o(h);_inputModalityDetector=o(ke);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=o(_);_stopInputModalityDetector=new u;constructor(){let e=o(Re,{optional:!0});this._detectionMode=e?.detectionMode||F.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let t=T(e);for(let n=t;n;n=n.parentElement)e.type==="focus"?this._onFocus(e,n):this._onBlur(e,n)};monitor(e,t=!1){let n=A(e);if(!this._platform.isBrowser||n.nodeType!==1)return le();let r=Ne(n)||this._document,a=this._elementInfo.get(n);if(a)return t&&(a.checkChildren=!0),a.subject;let c={checkChildren:t,subject:new u,rootNode:r};return this._elementInfo.set(n,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){let t=A(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}focusVia(e,t,n){let r=A(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([c,f])=>this._originChanged(c,t,f)):(this._setOrigin(t),typeof r.focus=="function"&&r.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===F.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused",t==="touch"),e.classList.toggle("cdk-keyboard-focused",t==="keyboard"),e.classList.toggle("cdk-mouse-focused",t==="mouse"),e.classList.toggle("cdk-program-focused",t==="program")}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&t,this._detectionMode===F.IMMEDIATE){clearTimeout(this._originTimeoutId);let n=this._originFromTouchInteraction?Le:1;this._originTimeoutId=setTimeout(()=>this._origin=null,n)}})}_onFocus(e,t){let n=this._elementInfo.get(t),r=T(e);!n||!n.checkChildren&&t!==r||this._originChanged(t,this._getFocusOrigin(r),n)}_onBlur(e,t){let n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,U),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,U)}),this._rootNodeFocusListenerCount.set(t,n+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(S(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){let n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,U),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,U),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,n){this._setClasses(e,t),this._emitOrigin(n,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){let t=[];return this._elementInfo.forEach((n,r)=>{(r===e||n.checkChildren&&r.contains(e))&&t.push([r,n])}),t}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:t,mostRecentModality:n}=this._inputModalityDetector;if(n!=="mouse"||!t||t===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a<r.length;a++)if(r[a].contains(t))return!0}return!1}static \u0275fac=function(t){return new(t||i)};static \u0275prov=d({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),tt=(()=>{class i{_elementRef=o(O);_focusMonitor=o(Se);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new P;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>{this._focusOrigin=t,this.cdkFocusChange.emit(t)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=N({type:i,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return i})();var j=new WeakMap,D=(()=>{class i{_appRef;_injector=o(C);_environmentInjector=o(ge);load(e){let t=this._appRef=this._appRef||this._injector.get(Ae),n=j.get(t);n||(n={loaders:new Set,refs:[]},j.set(t,n),t.onDestroy(()=>{j.get(t)?.refs.forEach(r=>r.destroy()),j.delete(t)})),n.loaders.has(e)||(n.loaders.add(e),n.refs.push(Me(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=d({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var B=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=Ie({type:i,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(t,n){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}
2
+ `],encapsulation:2,changeDetection:0})}return i})();function te(i){return Array.isArray(i)?i:[i]}var xe=new Set,v,it=(()=>{class i{_platform=o(h);_nonce=o(ve,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):nt}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&st(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=d({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function st(i,s){if(!xe.has(i))try{v||(v=document.createElement("style"),s&&v.setAttribute("nonce",s),v.setAttribute("type","text/css"),document.head.appendChild(v)),v.sheet&&(v.sheet.insertRule(`@media ${i} {body{ }}`,0),xe.add(i))}catch(e){console.error(e)}}function nt(i){return{matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var Ue=(()=>{class i{_mediaMatcher=o(it);_zone=o(l);_queries=new Map;_destroySubject=new u;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Pe(te(e)).some(n=>this._registerQuery(n).mql.matches)}observe(e){let n=Pe(te(e)).map(a=>this._registerQuery(a).observable),r=he(n);return r=_e(r.pipe(fe(1)),r.pipe(R(1),y(0))),r.pipe(g(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:f,query:Xe})=>{c.matches=c.matches||f,c.breakpoints[Xe]=f}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let t=this._mediaMatcher.matchMedia(e),r={observable:new L(a=>{let c=f=>this._zone.run(()=>a.next(f));return t.addListener(c),()=>{t.removeListener(c)}}).pipe(pe(t),g(({matches:a})=>({query:e,matches:a})),S(this._destroySubject)),mql:t};return this._queries.set(e,r),r}static \u0275fac=function(t){return new(t||i)};static \u0275prov=d({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Pe(i){return i.map(s=>s.split(",")).reduce((s,e)=>s.concat(e)).map(s=>s.trim())}function rt(i){if(i.type==="characterData"&&i.target instanceof Comment)return!0;if(i.type==="childList"){for(let s=0;s<i.addedNodes.length;s++)if(!(i.addedNodes[s]instanceof Comment))return!1;for(let s=0;s<i.removedNodes.length;s++)if(!(i.removedNodes[s]instanceof Comment))return!1;return!0}return!1}var je=(()=>{class i{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=d({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Be=(()=>{class i{_mutationObserverFactory=o(je);_observedElements=new Map;_ngZone=o(l);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){let t=A(e);return new L(n=>{let a=this._observeElement(t).pipe(g(c=>c.filter(f=>!rt(f))),k(c=>!!c.length)).subscribe(c=>{this._ngZone.run(()=>{n.next(c)})});return()=>{a.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let t=new u,n=this._mutationObserverFactory.create(r=>t.next(r));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:t,stream:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}static \u0275fac=function(t){return new(t||i)};static \u0275prov=d({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),pi=(()=>{class i{_contentObserver=o(Be);_elementRef=o(O);event=new P;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Ce(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(y(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=N({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Q],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return i})(),Ke=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=I({type:i});static \u0275inj=E({providers:[je]})}return i})();var ot=(()=>{class i{_platform=o(h);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return ct(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let t=at(pt(e));if(t&&(He(t)===-1||!this.isVisible(t)))return!1;let n=e.nodeName.toLowerCase(),r=He(e);return e.hasAttribute("contenteditable")?r!==-1:n==="iframe"||n==="object"||this._platform.WEBKIT&&this._platform.IOS&&!ft(e)?!1:n==="audio"?e.hasAttribute("controls")?r!==-1:!1:n==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,t){return mt(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=d({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function at(i){try{return i.frameElement}catch{return null}}function ct(i){return!!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function dt(i){let s=i.nodeName.toLowerCase();return s==="input"||s==="select"||s==="button"||s==="textarea"}function ut(i){return ht(i)&&i.type=="hidden"}function lt(i){return _t(i)&&i.hasAttribute("href")}function ht(i){return i.nodeName.toLowerCase()=="input"}function _t(i){return i.nodeName.toLowerCase()=="a"}function Ze(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return!1;let s=i.getAttribute("tabindex");return!!(s&&!isNaN(parseInt(s,10)))}function He(i){if(!Ze(i))return null;let s=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(s)?-1:s}function ft(i){let s=i.nodeName.toLowerCase(),e=s==="input"&&i.type;return e==="text"||e==="password"||s==="select"||s==="textarea"}function mt(i){return ut(i)?!1:dt(i)||lt(i)||i.hasAttribute("contenteditable")||Ze(i)}function pt(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var se=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(s){this._enabled=s,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(s,this._startAnchor),this._toggleAnchorTabIndex(s,this._endAnchor))}_enabled=!0;constructor(s,e,t,n,r=!1,a){this._element=s,this._checker=e,this._ngZone=t,this._document=n,this._injector=a,r||this.attachAnchors()}destroy(){let s=this._startAnchor,e=this._endAnchor;s&&(s.removeEventListener("focus",this.startAnchorListener),s.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(s)))})}focusFirstTabbableElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(s)))})}focusLastTabbableElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(s)))})}_getRegionBoundary(s){let e=this._element.querySelectorAll(`[cdk-focus-region-${s}], [cdkFocusRegion${s}], [cdk-focus-${s}]`);return s=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(s){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let t=this._getFirstTabbableElement(e);return t?.focus(s),!!t}return e.focus(s),!0}return this.focusFirstTabbableElement(s)}focusFirstTabbableElement(s){let e=this._getRegionBoundary("start");return e&&e.focus(s),!!e}focusLastTabbableElement(s){let e=this._getRegionBoundary("end");return e&&e.focus(s),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(s){if(this._checker.isFocusable(s)&&this._checker.isTabbable(s))return s;let e=s.children;for(let t=0;t<e.length;t++){let n=e[t].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[t]):null;if(n)return n}return null}_getLastTabbableElement(s){if(this._checker.isFocusable(s)&&this._checker.isTabbable(s))return s;let e=s.children;for(let t=e.length-1;t>=0;t--){let n=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(n)return n}return null}_createAnchor(){let s=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,s),s.classList.add("cdk-visually-hidden"),s.classList.add("cdk-focus-trap-anchor"),s.setAttribute("aria-hidden","true"),s}_toggleAnchorTabIndex(s,e){s?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(s){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(s,this._startAnchor),this._toggleAnchorTabIndex(s,this._endAnchor))}_executeOnStable(s){this._injector?ye(s,{injector:this._injector}):setTimeout(s)}},bt=(()=>{class i{_checker=o(ot);_ngZone=o(l);_document=o(_);_injector=o(C);constructor(){o(D).load(B)}create(e,t=!1){return new se(e,this._checker,this._ngZone,this._document,t,this._injector)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=d({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Ge=new m("liveAnnouncerElement",{providedIn:"root",factory:Ye});function Ye(){return null}var $e=new m("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),gt=0,vt=(()=>{class i{_ngZone=o(l);_defaultOptions=o($e,{optional:!0});_liveElement;_document=o(_);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=o(Ge,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...t){let n=this._defaultOptions,r,a;return t.length===1&&typeof t[0]=="number"?a=t[0]:[r,a]=t,this.clear(),clearTimeout(this._previousTimeout),r||(r=n&&n.politeness?n.politeness:"polite"),a==null&&n&&(a=n.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),n=this._document.createElement("div");for(let r=0;r<t.length;r++)t[r].remove();return n.classList.add(e),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),n.id=`cdk-live-announcer-${gt++}`,this._document.body.appendChild(n),n}_exposeAnnouncerToModals(e){let t=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<t.length;n++){let r=t[n],a=r.getAttribute("aria-owns");a?a.indexOf(e)===-1&&r.setAttribute("aria-owns",a+" "+e):r.setAttribute("aria-owns",e)}}static \u0275fac=function(t){return new(t||i)};static \u0275prov=d({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var b=(function(i){return i[i.NONE=0]="NONE",i[i.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",i[i.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",i})(b||{}),We="cdk-high-contrast-black-on-white",Ve="cdk-high-contrast-white-on-black",ie="cdk-high-contrast-active",K=(()=>{class i{_platform=o(h);_hasCheckedHighContrastMode;_document=o(_);_breakpointSubscription;constructor(){this._breakpointSubscription=o(Ue).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return b.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return b.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return b.BLACK_ON_WHITE}return b.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(ie,We,Ve),this._hasCheckedHighContrastMode=!0;let t=this.getHighContrastMode();t===b.BLACK_ON_WHITE?e.add(ie,We):t===b.WHITE_ON_BLACK&&e.add(ie,Ve)}}static \u0275fac=function(t){return new(t||i)};static \u0275prov=d({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),yt=(()=>{class i{constructor(){o(K)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(t){return new(t||i)};static \u0275mod=I({type:i});static \u0275inj=E({imports:[Ke]})}return i})();var ne={},Et=(()=>{class i{_appId=o(x);getId(e){return this._appId!=="ng"&&(e+=this._appId),ne.hasOwnProperty(e)||(ne[e]=0),`${e}${ne[e]++}`}static \u0275fac=function(t){return new(t||i)};static \u0275prov=d({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var It=200,H=class{_letterKeyStream=new u;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new u;selectedItem=this._selectedItem;constructor(s,e){let t=typeof e?.debounceInterval=="number"?e.debounceInterval:It;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(s),this._setupKeyHandler(t)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(s){this._selectedItemIndex=s}setItems(s){this._items=s}handleKey(s){let e=s.keyCode;s.key&&s.key.length===1?this._letterKeyStream.next(s.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(s){this._letterKeyStream.pipe(be(e=>this._pressedLetters.push(e)),y(s),k(()=>this._pressedLetters.length>0),g(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let t=1;t<this._items.length+1;t++){let n=(this._selectedItemIndex+t)%this._items.length,r=this._items[n];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(r);break}}this._pressedLetters=[]})}};var M=class{_items;_activeItemIndex=Y(-1);_activeItem=Y(null);_wrap=!1;_typeaheadSubscription=de.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=s=>s.disabled;constructor(s,e){this._items=s,s instanceof $?this._itemChangesSubscription=s.changes.subscribe(t=>this._itemsChanged(t.toArray())):G(s)&&(this._effectRef=Te(()=>this._itemsChanged(s()),{injector:e}))}tabOut=new u;change=new u;skipPredicate(s){return this._skipPredicateFn=s,this}withWrap(s=!0){return this._wrap=s,this}withVerticalOrientation(s=!0){return this._vertical=s,this}withHorizontalOrientation(s){return this._horizontal=s,this}withAllowedModifierKeys(s){return this._allowedModifierKeys=s,this}withTypeAhead(s=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new H(e,{debounceInterval:typeof s=="number"?s:void 0,skipPredicate:t=>this._skipPredicateFn(t)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.setActiveItem(t)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(s=!0){return this._homeAndEnd=s,this}withPageUpDown(s=!0,e=10){return this._pageUpAndDown={enabled:s,delta:e},this}setActiveItem(s){let e=this._activeItem();this.updateActiveItem(s),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(s){let e=s.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!s[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(n||Oe(s,"shiftKey"))&&this._typeahead?.handleKey(s);return}this._typeahead?.reset(),s.preventDefault()}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(s){let e=this._getItemsArray(),t=typeof s=="number"?s:e.indexOf(s),n=e[t];this._activeItem.set(n??null),this._activeItemIndex.set(t),this._typeahead?.setCurrentSelectedItemIndex(t)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(s){this._wrap?this._setActiveInWrapMode(s):this._setActiveInDefaultMode(s)}_setActiveInWrapMode(s){let e=this._getItemsArray();for(let t=1;t<=e.length;t++){let n=(this._activeItemIndex()+s*t+e.length)%e.length,r=e[n];if(!this._skipPredicateFn(r)){this.setActiveItem(n);return}}}_setActiveInDefaultMode(s){this._setActiveItemByIndex(this._activeItemIndex()+s,s)}_setActiveItemByIndex(s,e){let t=this._getItemsArray();if(t[s]){for(;this._skipPredicateFn(t[s]);)if(s+=e,!t[s])return;this.setActiveItem(s)}}_getItemsArray(){return G(this._items)?this._items():this._items instanceof $?this._items.toArray():this._items}_itemsChanged(s){this._typeahead?.setItems(s);let e=this._activeItem();if(e){let t=s.indexOf(e);t>-1&&t!==this._activeItemIndex()&&(this._activeItemIndex.set(t),this._typeahead?.setCurrentSelectedItemIndex(t))}}};var re=class extends M{setActiveItem(s){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(s),this.activeItem&&this.activeItem.setActiveStyles()}};var oe=class extends M{_origin="program";setFocusOrigin(s){return this._origin=s,this}setActiveItem(s){super.setActiveItem(s),this.activeItem&&this.activeItem.focus(this._origin)}};var ze=" ";function At(i,s,e){let t=V(i,s);e=e.trim(),!t.some(n=>n.trim()===e)&&(t.push(e),i.setAttribute(s,t.join(ze)))}function Tt(i,s,e){let t=V(i,s);e=e.trim();let n=t.filter(r=>r!==e);n.length?i.setAttribute(s,n.join(ze)):i.removeAttribute(s)}function V(i,s){return i.getAttribute(s)?.match(/\S+/g)??[]}var qe="cdk-describedby-message",W="cdk-describedby-host",ce=0,hs=(()=>{class i{_platform=o(h);_document=o(_);_messageRegistry=new Map;_messagesContainer=null;_id=`${ce++}`;constructor(){o(D).load(B),this._id=o(x)+"-"+ce++}describe(e,t,n){if(!this._canBeDescribed(e,t))return;let r=ae(t,n);typeof t!="string"?(Qe(t,this._id),this._messageRegistry.set(r,{messageElement:t,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,t,n){if(!t||!this._isElementNode(e))return;let r=ae(t,n);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof t=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${W}="${this._id}"]`);for(let t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute(W);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,t){let n=this._document.createElement("div");Qe(n,this._id),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),this._messagesContainer.appendChild(n),this._messageRegistry.set(ae(e,t),{messageElement:n,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",t=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let r=0;r<t.length;r++)t[r].remove();let n=this._document.createElement("div");n.style.visibility="hidden",n.classList.add(e),n.classList.add("cdk-visually-hidden"),this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._messagesContainer=n}_removeCdkDescribedByReferenceIds(e){let t=V(e,"aria-describedby").filter(n=>n.indexOf(qe)!=0);e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){let n=this._messageRegistry.get(t);At(e,"aria-describedby",n.messageElement.id),e.setAttribute(W,this._id),n.referenceCount++}_removeMessageReference(e,t){let n=this._messageRegistry.get(t);n.referenceCount--,Tt(e,"aria-describedby",n.messageElement.id),e.removeAttribute(W)}_isElementDescribedByMessage(e,t){let n=V(e,"aria-describedby"),r=this._messageRegistry.get(t),a=r&&r.messageElement.id;return!!a&&n.indexOf(a)!=-1}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&typeof t=="object")return!0;let n=t==null?"":`${t}`.trim(),r=e.getAttribute("aria-label");return n?!r||r.trim()!==n:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(t){return new(t||i)};static \u0275prov=d({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function ae(i,s){return typeof i=="string"?`${s||""}/${i}`:i}function Qe(i,s){i.id||(i.id=`${qe}-${s}-${ce++}`)}var Ts=(()=>{class i{constructor(){o(K)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(t){return new(t||i)};static \u0275mod=I({type:i});static \u0275inj=E({imports:[z,z]})}return i})();export{q as a,X as b,Ot as c,T as d,we as e,Se as f,tt as g,D as h,B as i,te as j,it as k,Ue as l,pi as m,Ke as n,ot as o,bt as p,vt as q,yt as r,Et as s,Oe as t,re as u,oe as v,At as w,Tt as x,hs as y,Ts as z};
@@ -0,0 +1,5 @@
1
+ import{a as Rt}from"./chunk-YHBNUNU3.js";import{b as Dt}from"./chunk-KRC72WWY.js";import{d as Ce,e as we,g as Me,i as Se}from"./chunk-6Z4FDREI.js";import{a as Tt}from"./chunk-3ZFFKHPU.js";import{d as kt,e as Ot}from"./chunk-AGN2F6JP.js";import{a as Et}from"./chunk-SR4HVFOB.js";import{a as Be}from"./chunk-YNQPX5G6.js";import{b as qe,i as je,j as Qe,k as Ft}from"./chunk-6MTVWBQQ.js";import{d as Mt,g as St}from"./chunk-TGSV7ZHM.js";import{b as ee,f as ye}from"./chunk-FRKUCFVI.js";import{h as pe,i as vt,n as xt,q as yt,s as P,t as J,u as Ct,w as wt,x as He,z as k}from"./chunk-JWXROQJJ.js";import{f as gt,g as bt,l as G,m as Ne,n as Ve,o as xe}from"./chunk-EBGPIJ7S.js";import{$ as ue,$b as f,Ac as ht,B as Y,C as ne,Ca as M,D as ot,Db as R,Dc as fe,Eb as h,Ec as ut,Fb as u,Fc as X,I as at,Ic as w,Jc as ze,Kb as S,Kc as _t,Lb as s,Mb as m,Nb as D,O as rt,Ob as Ie,Pb as Ae,Qb as Le,Sb as de,T as le,Tb as $,U as Re,Ub as F,V as z,Wb as g,Xb as Q,Yb as b,Zb as A,_a as d,_b as x,aa as E,ac as p,bc as st,ca as _,cc as se,d as et,db as j,dc as Pe,ea as n,eb as I,ec as ce,gc as C,hb as dt,hc as ct,i as y,ib as H,ic as W,ja as N,jc as me,ka as V,kc as mt,la as nt,m as tt,na as De,oa as lt,pb as L,qb as O,rb as T,rc as ft,sa as _e,sc as B,t as re,ta as U,ub as Z,uc as pt,y as it,yc as be,za as ge,zc as ve}from"./chunk-O76B43BY.js";var mi=["notch"],fi=["matFormFieldNotchedOutline",""],pi=["*"],It=["iconPrefixContainer"],At=["textPrefixContainer"],Lt=["iconSuffixContainer"],Pt=["textSuffixContainer"],hi=["textField"],ui=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_i=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function gi(o,l){o&1&&D(0,"span",21)}function bi(o,l){if(o&1&&(s(0,"label",20),b(1,1),h(2,gi,1,0,"span",21),m()),o&2){let e=g(2);S("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),R("for",e._control.disableAutomaticLabeling?null:e._control.id),d(2),u(!e.hideRequiredMarker&&e._control.required?2:-1)}}function vi(o,l){if(o&1&&h(0,bi,3,5,"label",20),o&2){let e=g();u(e._hasFloatingLabel()?0:-1)}}function xi(o,l){o&1&&D(0,"div",7)}function yi(o,l){}function Ci(o,l){if(o&1&&Z(0,yi,0,0,"ng-template",13),o&2){g(2);let e=ce(1);S("ngTemplateOutlet",e)}}function wi(o,l){if(o&1&&(s(0,"div",9),h(1,Ci,1,1,null,13),m()),o&2){let e=g();S("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),d(),u(e._forceDisplayInfixLabel()?-1:1)}}function Mi(o,l){o&1&&(s(0,"div",10,2),b(2,2),m())}function Si(o,l){o&1&&(s(0,"div",11,3),b(2,3),m())}function Fi(o,l){}function ki(o,l){if(o&1&&Z(0,Fi,0,0,"ng-template",13),o&2){g();let e=ce(1);S("ngTemplateOutlet",e)}}function Ei(o,l){o&1&&(s(0,"div",14,4),b(2,4),m())}function Oi(o,l){o&1&&(s(0,"div",15,5),b(2,5),m())}function Ti(o,l){o&1&&D(0,"div",16)}function Ri(o,l){o&1&&(s(0,"div",18),b(1,6),m())}function Di(o,l){if(o&1&&(s(0,"mat-hint",22),W(1),m()),o&2){let e=g(2);S("id",e._hintLabelId),d(),me(e.hintLabel)}}function Ii(o,l){if(o&1&&(s(0,"div",19),h(1,Di,2,2,"mat-hint",22),b(2,7),D(3,"div",23),b(4,8),m()),o&2){let e=g();d(),u(e.hintLabel?1:-1)}}var We=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275dir=T({type:o,selectors:[["mat-label"]]})}return o})(),jt=new _("MatError");var Ge=(()=>{class o{align="start";id=n(P).getId("mat-mdc-hint-");static \u0275fac=function(t){return new(t||o)};static \u0275dir=T({type:o,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(t,i){t&2&&($("id",i.id),R("align",null),C("mat-mdc-form-field-hint-end",i.align==="end"))},inputs:{align:"align",id:"id"}})}return o})(),Qt=new _("MatPrefix");var Ke=new _("MatSuffix"),Ai=(()=>{class o{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(t){return new(t||o)};static \u0275dir=T({type:o,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[B([{provide:Ke,useExisting:o}])]})}return o})(),Wt=new _("FloatingLabelParent"),zt=(()=>{class o{_elementRef=n(M);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=n(Tt);_ngZone=n(I);_parent=n(Wt);_resizeSubscription=new et;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return Li(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(t){return new(t||o)};static \u0275dir=T({type:o,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(t,i){t&2&&C("mdc-floating-label--float-above",i.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return o})();function Li(o){let l=o;if(l.offsetParent!==null)return l.scrollWidth;let e=l.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let t=e.scrollWidth;return e.remove(),t}var Nt="mdc-line-ripple--active",Fe="mdc-line-ripple--deactivating",Vt=(()=>{class o{_elementRef=n(M);_cleanupTransitionEnd;constructor(){let e=n(I),t=n(H);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=t.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Fe),e.add(Nt)}deactivate(){this._elementRef.nativeElement.classList.add(Fe)}_handleTransitionEnd=e=>{let t=this._elementRef.nativeElement.classList,i=t.contains(Fe);e.propertyName==="opacity"&&i&&t.remove(Nt,Fe)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(t){return new(t||o)};static \u0275dir=T({type:o,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return o})(),Ht=(()=>{class o{_elementRef=n(M);_ngZone=n(I);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,t=e.querySelector(".mdc-floating-label");t?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let t=this._notch.nativeElement;!this.open||!e?t.style.width="":t.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=L({type:o,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(t,i){if(t&1&&x(mi,5),t&2){let a;f(a=p())&&(i._notch=a.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(t,i){t&2&&C("mdc-notched-outline--notched",i.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:fi,ngContentSelectors:pi,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(t,i){t&1&&(Q(),Le(0,"div",1),Ie(1,"div",2,0),b(3),Ae(),Le(4,"div",3))},encapsulation:2,changeDetection:0})}return o})(),te=(()=>{class o{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(t){return new(t||o)};static \u0275dir=T({type:o})}return o})();var ie=new _("MatFormField"),Gt=new _("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Bt="fill",Pi="auto",qt="fixed",zi="translateY(-50%)",Ye=(()=>{class o{_elementRef=n(M);_changeDetectorRef=n(X);_platform=n(G);_idGenerator=n(P);_ngZone=n(I);_defaults=n(Gt,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=fe("iconPrefixContainer");_textPrefixContainerSignal=fe("textPrefixContainer");_iconSuffixContainerSignal=fe("iconSuffixContainer");_textSuffixContainerSignal=fe("textSuffixContainer");_prefixSuffixContainers=be(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=ut(We);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ee(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||Pi}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let t=e||this._defaults?.appearance||Bt;this._appearanceSignal.set(t)}_appearanceSignal=U(Bt);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||qt}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||qt}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new y;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=ye();constructor(){let e=this._defaults,t=n(xe);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),ve(()=>this._currentDirection=t.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=be(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let t=this._control,i="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(i+e.controlType),t.controlType&&this._elementRef.nativeElement.classList.add(i+t.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=t.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=t.stateChanges.pipe(le([void 0,void 0]),re(()=>[t.errorState,t.userAriaDescribedBy]),rt(),ne(([[a,r],[c,v]])=>a!==c||r!==v)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),t.ngControl&&t.ngControl.valueChanges&&(this._valueChanges=t.ngControl.valueChanges.pipe(z(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Y(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){_t({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=be(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let t=this._control?this._control.ngControl:null;return t&&t[e]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let a=this._hintChildren?this._hintChildren.find(c=>c.align==="start"):null,r=this._hintChildren?this._hintChildren.find(c=>c.align==="end"):null;a?e.push(a.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(a=>a.id));let t=this._control.describedByIds,i;if(t){let a=this._describedByIds||e;i=e.concat(t.filter(r=>r&&!a.includes(r)))}else i=e;this._control.setDescribedByIds(i),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,t=this._textPrefixContainer?.nativeElement,i=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,r=e?.getBoundingClientRect().width??0,c=t?.getBoundingClientRect().width??0,v=i?.getBoundingClientRect().width??0,K=a?.getBoundingClientRect().width??0,ni=this._currentDirection==="rtl"?"-1":"1",li=`${r+c}px`,di=`calc(${ni} * (${li} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,si=`var(--mat-mdc-form-field-label-transform, ${zi} translateX(${di}))`,ci=r+c+v+K;return[si,ci]}_writeOutlinedLabelStyles(e){if(e!==null){let[t,i]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=t),i!==null&&this._notchedOutline?._setMaxWidth(i)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=L({type:o,selectors:[["mat-form-field"]],contentQueries:function(t,i,a){if(t&1&&(st(a,i._labelChild,We,5),A(a,te,5),A(a,Qt,5),A(a,Ke,5),A(a,jt,5),A(a,Ge,5)),t&2){Pe();let r;f(r=p())&&(i._formFieldControl=r.first),f(r=p())&&(i._prefixChildren=r),f(r=p())&&(i._suffixChildren=r),f(r=p())&&(i._errorChildren=r),f(r=p())&&(i._hintChildren=r)}},viewQuery:function(t,i){if(t&1&&(se(i._iconPrefixContainerSignal,It,5),se(i._textPrefixContainerSignal,At,5),se(i._iconSuffixContainerSignal,Lt,5),se(i._textSuffixContainerSignal,Pt,5),x(hi,5),x(It,5),x(At,5),x(Lt,5),x(Pt,5),x(zt,5),x(Ht,5),x(Vt,5)),t&2){Pe(4);let a;f(a=p())&&(i._textField=a.first),f(a=p())&&(i._iconPrefixContainer=a.first),f(a=p())&&(i._textPrefixContainer=a.first),f(a=p())&&(i._iconSuffixContainer=a.first),f(a=p())&&(i._textSuffixContainer=a.first),f(a=p())&&(i._floatingLabel=a.first),f(a=p())&&(i._notchedOutline=a.first),f(a=p())&&(i._lineRipple=a.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(t,i){t&2&&C("mat-mdc-form-field-label-always-float",i._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",i._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",i._hasIconSuffix)("mat-form-field-invalid",i._control.errorState)("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-form-field-appearance-fill",i.appearance=="fill")("mat-form-field-appearance-outline",i.appearance=="outline")("mat-form-field-hide-placeholder",i._hasFloatingLabel()&&!i._shouldLabelFloat())("mat-primary",i.color!=="accent"&&i.color!=="warn")("mat-accent",i.color==="accent")("mat-warn",i.color==="warn")("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[B([{provide:ie,useExisting:o},{provide:Wt,useExisting:o}])],ngContentSelectors:_i,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(t,i){if(t&1){let a=de();Q(ui),Z(0,vi,1,1,"ng-template",null,0,pt),s(2,"div",6,1),F("click",function(c){return N(a),V(i._control.onContainerClick(c))}),h(4,xi,1,0,"div",7),s(5,"div",8),h(6,wi,2,2,"div",9),h(7,Mi,3,0,"div",10),h(8,Si,3,0,"div",11),s(9,"div",12),h(10,ki,1,1,null,13),b(11),m(),h(12,Ei,3,0,"div",14),h(13,Oi,3,0,"div",15),m(),h(14,Ti,1,0,"div",16),m(),s(15,"div",17),h(16,Ri,2,0,"div",18)(17,Ii,5,1,"div",19),m()}if(t&2){let a;d(2),C("mdc-text-field--filled",!i._hasOutline())("mdc-text-field--outlined",i._hasOutline())("mdc-text-field--no-label",!i._hasFloatingLabel())("mdc-text-field--disabled",i._control.disabled)("mdc-text-field--invalid",i._control.errorState),d(2),u(!i._hasOutline()&&!i._control.disabled?4:-1),d(2),u(i._hasOutline()?6:-1),d(),u(i._hasIconPrefix?7:-1),d(),u(i._hasTextPrefix?8:-1),d(2),u(!i._hasOutline()||i._forceDisplayInfixLabel()?10:-1),d(2),u(i._hasTextSuffix?12:-1),d(),u(i._hasIconSuffix?13:-1),d(),u(i._hasOutline()?-1:14),d(),C("mat-mdc-form-field-subscript-dynamic-size",i.subscriptSizing==="dynamic");let r=i._getSubscriptMessageType();d(),u((a=r)==="error"?16:a==="hint"?17:-1)}},dependencies:[zt,Ht,bt,Vt,Ge],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}
2
+ `],encapsulation:2,changeDetection:0})}return o})();var oe=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=O({type:o});static \u0275inj=E({imports:[k,xt,Ye,k]})}return o})();var Ni=["text"],Vi=[[["mat-icon"]],"*"],Hi=["mat-icon","*"];function Bi(o,l){if(o&1&&D(0,"mat-pseudo-checkbox",1),o&2){let e=g();S("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function qi(o,l){if(o&1&&D(0,"mat-pseudo-checkbox",3),o&2){let e=g();S("disabled",e.disabled)}}function ji(o,l){if(o&1&&(s(0,"span",4),W(1),m()),o&2){let e=g();d(),mt("(",e.group.label,")")}}var Ze=new _("MAT_OPTION_PARENT_COMPONENT"),$e=new _("MatOptgroup");var Ue=class{source;isUserInput;constructor(l,e=!1){this.source=l,this.isUserInput=e}},he=(()=>{class o{_element=n(M);_changeDetectorRef=n(X);_parent=n(Ze,{optional:!0});group=n($e,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=n(P).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=U(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new j;_text;_stateChanges=new y;constructor(){let e=n(pe);e.load(Et),e.load(vt),this._signalDisableRipple=!!this._parent&&_e(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let i=this._getHostElement();typeof i.focus=="function"&&i.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!J(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Ue(this,e))}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=L({type:o,selectors:[["mat-option"]],viewQuery:function(t,i){if(t&1&&x(Ni,7),t&2){let a;f(a=p())&&(i._text=a.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,i){t&1&&F("click",function(){return i._selectViaInteraction()})("keydown",function(r){return i._handleKeydown(r)}),t&2&&($("id",i.id),R("aria-selected",i.selected)("aria-disabled",i.disabled.toString()),C("mdc-list-item--selected",i.selected)("mat-mdc-option-multiple",i.multiple)("mat-mdc-option-active",i.active)("mdc-list-item--disabled",i.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",w]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Hi,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,i){t&1&&(Q(Vi),h(0,Bi,1,2,"mat-pseudo-checkbox",1),b(1),s(2,"span",2,0),b(4,1),m(),h(5,qi,1,1,"mat-pseudo-checkbox",3),h(6,ji,2,1,"span",4),D(7,"div",5)),t&2&&(u(i.multiple?0:-1),d(5),u(!i.multiple&&i.selected&&!i.hideSingleSelectionIndicator?5:-1),d(),u(i.group&&i.group._inert?6:-1),d(),S("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[Rt,kt],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}
3
+ `],encapsulation:2,changeDetection:0})}return o})();function Kt(o,l,e){if(e.length){let t=l.toArray(),i=e.toArray(),a=0;for(let r=0;r<o+1;r++)t[r].group&&t[r].group===i[a]&&a++;return a}return 0}function Yt(o,l,e,t){return o<e?o:o+l>e+t?Math.max(0,o-t+l):e}var Oe=(()=>{class o{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=ue({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var ae=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(l,e,t,i,a){this._defaultMatcher=l,this.ngControl=e,this._parentFormGroup=t,this._parentForm=i,this._stateChanges=a}updateErrorState(){let l=this.errorState,e=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,i=this.ngControl?this.ngControl.control:null,a=t?.isErrorState(i,e)??!1;a!==l&&(this.errorState=a,this._stateChanges.next())}};var Ut=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=O({type:o});static \u0275inj=E({imports:[k]})}return o})();var Xe=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=O({type:o});static \u0275inj=E({imports:[Ot,k,Ut,he]})}return o})();var Yi=["trigger"],Ui=["panel"],Zi=[[["mat-select-trigger"]],"*"],$i=["mat-select-trigger","*"];function Xi(o,l){if(o&1&&(s(0,"span",4),W(1),m()),o&2){let e=g();d(),me(e.placeholder)}}function Ji(o,l){o&1&&b(0)}function eo(o,l){if(o&1&&(s(0,"span",11),W(1),m()),o&2){let e=g(2);d(),me(e.triggerValue)}}function to(o,l){if(o&1&&(s(0,"span",5),h(1,Ji,1,0)(2,eo,2,1,"span",11),m()),o&2){let e=g();d(),u(e.customTrigger?1:2)}}function io(o,l){if(o&1){let e=de();s(0,"div",12,1),F("keydown",function(i){N(e);let a=g();return V(a._handleKeydown(i))}),b(2,1),m()}if(o&2){let e=g();ct(ft("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),C("mat-select-panel-animations-enabled",!e._animationsDisabled),S("ngClass",e.panelClass),R("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var Je=new _("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let o=n(De);return()=>qe(o)}});function Xt(o){let l=n(De);return()=>qe(l)}var Jt=new _("MAT_SELECT_CONFIG"),ei={provide:Je,deps:[],useFactory:Xt},ti=new _("MatSelectTrigger"),Te=class{source;value;constructor(l,e){this.source=l,this.value=e}},oo=(()=>{class o{_viewportRuler=n(Mt);_changeDetectorRef=n(X);_elementRef=n(M);_dir=n(xe,{optional:!0});_idGenerator=n(P);_renderer=n(H);_parentFormField=n(ie,{optional:!0});ngControl=n(we,{self:!0,optional:!0});_liveAnnouncer=n(yt);_defaultOptions=n(Jt,{optional:!0});_animationsDisabled=ye();_initialized=new y;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=Kt(e,this.options,this.optionGroups),r=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=Yt(r.offsetTop,r.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Te(this,e)}_scrollStrategyFactory=n(Je);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new y;_errorStateTracker;stateChanges=new y;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=U(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Ce.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=it(()=>{let e=this.options;return e?e.changes.pipe(le(e),Re(()=>Y(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(Re(()=>this.optionSelectionChanges))});openedChange=new j;_openedStream=this.openedChange.pipe(ne(e=>e),re(()=>{}));_closedStream=this.openedChange.pipe(ne(e=>!e),re(()=>{}));selectionChange=new j;valueChange=new j;constructor(){let e=n(Oe),t=n(Me,{optional:!0}),i=n(Se,{optional:!0}),a=n(new ht("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new ae(e,this.ngControl,i,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Dt(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(z(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(z(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(le(null),z(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(at(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&He(this._trackedModal,"aria-owns",t),wt(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;He(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(i),this._cleanupDetach=void 0};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",a=>{a.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),i=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,r=this._keyManager;if(!r.isTyping()&&a&&!J(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let c=this.selected;r.onKeydown(e);let v=this.selected;v&&c!==v&&this._liveAnnouncer.announce(v.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,r=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!r&&(i===13||i===32)&&t.activeItem&&!J(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!r&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let c=this.options.some(v=>!v.disabled&&!v.selected);this.options.forEach(v=>{v.disabled||(c?v.select():v.deselect())})}else{let c=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==c&&t.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!J(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return(i.value!=null||this.canSelectNullableOptions)&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof je?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Ct(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=Y(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(z(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Y(...this.options.map(t=>t._stateChanges)).pipe(z(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=L({type:o,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(A(a,ti,5),A(a,he,5),A(a,$e,5)),t&2){let r;f(r=p())&&(i.customTrigger=r.first),f(r=p())&&(i.options=r),f(r=p())&&(i.optionGroups=r)}},viewQuery:function(t,i){if(t&1&&(x(Yi,5),x(Ui,5),x(Qe,5)),t&2){let a;f(a=p())&&(i.trigger=a.first),f(a=p())&&(i.panel=a.first),f(a=p())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(t,i){t&1&&F("keydown",function(r){return i._handleKeydown(r)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(R("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),C("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple)("mat-select-open",i.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",w],disableRipple:[2,"disableRipple","disableRipple",w],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ze(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",w],placeholder:"placeholder",required:[2,"required","required",w],multiple:[2,"multiple","multiple",w],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",w],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ze],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",w]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[B([{provide:te,useExisting:o},{provide:Ze,useExisting:o}]),ge],ngContentSelectors:$i,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let a=de();Q(Zi),s(0,"div",2,0),F("click",function(){return N(a),V(i.open())}),s(3,"div",3),h(4,Xi,2,1,"span",4)(5,to,3,1,"span",5),m(),s(6,"div",6)(7,"div",7),nt(),s(8,"svg",8),D(9,"path",9),m()()()(),Z(10,io,3,10,"ng-template",10),F("detach",function(){return N(a),V(i.close())})("backdropClick",function(){return N(a),V(i.close())})("overlayKeydown",function(c){return N(a),V(i._handleOverlayKeydown(c))})}if(t&2){let a=ce(1);d(3),R("id",i._valueId),d(),u(i.empty?4:5),d(6),S("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[je,Qe,gt],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}
4
+ `],encapsulation:2,changeDetection:0})}return o})();var ao=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=O({type:o});static \u0275inj=E({providers:[ei],imports:[Ft,Xe,k,St,oe,Xe,k]})}return o})();var ii=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275cmp=L({type:o,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(t,i){},styles:[`textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}
5
+ `],encapsulation:2,changeDetection:0})}return o})(),ro={passive:!0},oi=(()=>{class o{_platform=n(G);_ngZone=n(I);_renderer=n(dt).createRenderer(null,null);_styleLoader=n(pe);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return tt;this._styleLoader.load(ii);let t=Ve(e),i=this._monitoredElements.get(t);if(i)return i.subject;let a=new y,r="cdk-text-field-autofilled",c=K=>{K.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(r)?(t.classList.add(r),this._ngZone.run(()=>a.next({target:K.target,isAutofilled:!0}))):K.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(r)&&(t.classList.remove(r),this._ngZone.run(()=>a.next({target:K.target,isAutofilled:!1})))},v=this._ngZone.runOutsideAngular(()=>(t.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(t,"animationstart",c,ro)));return this._monitoredElements.set(t,{subject:a,unlisten:v}),a}stopMonitoring(e){let t=Ve(e),i=this._monitoredElements.get(t);i&&(i.unlisten(),i.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=ue({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var fr=(()=>{class o{_elementRef=n(M);_platform=n(G);_ngZone=n(I);_renderer=n(H);_resizeEvents=new y;_previousValue;_initialHeight;_destroyed=new y;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=Ne(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Ne(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=n(lt);_hasFocus;_isViewInited=!1;constructor(){n(pe).load(ii),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){let e=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){let e=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen("window","resize",()=>this._resizeEvents.next()),this._renderer.listen(this._textareaElement,"focus",this._handleFocusEvent),this._renderer.listen(this._textareaElement,"blur",this._handleFocusEvent)],this._resizeEvents.pipe(ot(16)).subscribe(()=>{this._cachedLineHeight=this._cachedPlaceholderHeight=void 0,this.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e()),this._resizeEvents.complete(),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1),t=e.style;e.rows=1,t.position="absolute",t.visibility="hidden",t.border="none",t.padding="0",t.height="",t.minHeight="",t.maxHeight="",t.top=t.bottom=t.left=t.right="auto",t.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,t=e.style.marginBottom||"",i=this._platform.FIREFOX,a=i&&this._hasFocus,r=i?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";a&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(r);let c=e.scrollHeight-4;return e.classList.remove(r),a&&(e.style.marginBottom=t),c}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||this._cachedPlaceholderHeight!=null)return;if(!this.placeholder){this._cachedPlaceholderHeight=0;return}let e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}_handleFocusEvent=e=>{this._hasFocus=e.type==="focus"};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;let t=this._elementRef.nativeElement,i=t.value;if(!e&&this._minRows===this._previousMinRows&&i===this._previousValue)return;let a=this._measureScrollHeight(),r=Math.max(a,this._cachedPlaceholderHeight||0);t.style.height=`${r}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=i,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:t,selectionEnd:i}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,i)}static \u0275fac=function(t){return new(t||o)};static \u0275dir=T({type:o,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,i){t&1&&F("input",function(){return i._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",w],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return o})(),ai=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=O({type:o});static \u0275inj=E({})}return o})();var ri=new _("MAT_INPUT_VALUE_ACCESSOR");var no=["button","checkbox","file","hidden","image","radio","range","reset","submit"],lo=new _("MAT_INPUT_CONFIG"),Dr=(()=>{class o{_elementRef=n(M);_platform=n(G);ngControl=n(we,{optional:!0,self:!0});_autofillMonitor=n(oi);_ngZone=n(I);_formField=n(ie,{optional:!0});_renderer=n(H);_uid=n(P).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=n(lo,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new y;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=ee(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(Ce.required)??!1}set required(e){this._required=ee(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Be().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ee(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>Be().has(e));constructor(){let e=n(Me,{optional:!0}),t=n(Se,{optional:!0}),i=n(Oe),a=n(ri,{optional:!0,self:!0}),r=this._elementRef.nativeElement,c=r.nodeName.toLowerCase();a?_e(a.value)?this._signalBasedValueAccessor=a:this._inputValueAccessor=a:this._inputValueAccessor=r,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(r,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new ae(i,this.ngControl,t,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=c==="select",this._isTextarea=c==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=r.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&ve(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let t=this._elementRef.nativeElement;t.type==="number"?(t.type="text",t.setSelectionRange(0,0),t.type="number"):t.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){no.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let t=this._elementRef.nativeElement;e.length?t.setAttribute("aria-describedby",e.join(" ")):t.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let t=e.target;!t.value&&t.selectionStart===0&&t.selectionEnd===0&&(t.setSelectionRange(1,1),t.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(t){return new(t||o)};static \u0275dir=T({type:o,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(t,i){t&1&&F("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),t&2&&($("id",i.id)("disabled",i.disabled&&!i.disabledInteractive)("required",i.required),R("name",i.name||null)("readonly",i._getReadonlyAttribute())("aria-disabled",i.disabled&&i.disabledInteractive?"true":null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),C("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mat-mdc-input-disabled-interactive",i.disabledInteractive)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",w]},exportAs:["matInput"],features:[B([{provide:te,useExisting:o}]),ge]})}return o})(),Ir=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=O({type:o});static \u0275inj=E({imports:[k,oe,oe,ai,k]})}return o})();export{We as a,Ai as b,Ye as c,oe as d,he as e,Oe as f,oo as g,ao as h,fr as i,ai as j,Dr as k,Ir as l};