@mxtommy/kip 3.9.0-beta.2 → 3.9.0-beta.20

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 (178) hide show
  1. package/.github/copilot-instructions.md +1 -1
  2. package/.github/instructions/angular.instructions.md +46 -0
  3. package/README.md +49 -12
  4. package/package.json +2 -4
  5. package/public/3rdpartylicenses.txt +77 -77
  6. package/public/app-help.component.css.map +7 -0
  7. package/public/app.component.css.map +7 -0
  8. package/public/assets/help-docs/configuration.md +4 -4
  9. package/public/assets/help-docs/dashboards.md +4 -2
  10. package/public/assets/svg/icons.svg +1 -1
  11. package/public/boolean-control-config.component.css.map +7 -0
  12. package/public/boolean-multicontrol-options.component.css.map +7 -0
  13. package/public/chunk-3VR3EA35.js +1022 -0
  14. package/public/chunk-3VR3EA35.js.map +1 -0
  15. package/public/chunk-63ILPRXC.js +2091 -0
  16. package/public/chunk-63ILPRXC.js.map +1 -0
  17. package/public/chunk-65ZWQBS6.js +3102 -0
  18. package/public/chunk-65ZWQBS6.js.map +1 -0
  19. package/public/chunk-B3LKEWZP.js +4950 -0
  20. package/public/chunk-B3LKEWZP.js.map +1 -0
  21. package/public/chunk-BIBIW64D.js +16773 -0
  22. package/public/chunk-BIBIW64D.js.map +1 -0
  23. package/public/chunk-BM53SC5N.js +77 -0
  24. package/public/chunk-BM53SC5N.js.map +7 -0
  25. package/public/chunk-D7ILNFDM.js +3059 -0
  26. package/public/chunk-D7ILNFDM.js.map +1 -0
  27. package/public/chunk-E24UNLSJ.js +2228 -0
  28. package/public/chunk-E24UNLSJ.js.map +1 -0
  29. package/public/chunk-EUIZ2AXR.js +5237 -0
  30. package/public/chunk-EUIZ2AXR.js.map +1 -0
  31. package/public/chunk-J42S2ELC.js +5927 -0
  32. package/public/chunk-J42S2ELC.js.map +1 -0
  33. package/public/chunk-KC22A6VH.js +17 -0
  34. package/public/chunk-KC22A6VH.js.map +7 -0
  35. package/public/chunk-MCEJWZB2.js +116 -0
  36. package/public/chunk-MCEJWZB2.js.map +1 -0
  37. package/public/chunk-NYZ6SXFB.js +4752 -0
  38. package/public/chunk-NYZ6SXFB.js.map +1 -0
  39. package/public/chunk-OELNV3DP.js +89 -0
  40. package/public/chunk-OELNV3DP.js.map +7 -0
  41. package/public/chunk-SDOP6T56.js +42377 -0
  42. package/public/chunk-SDOP6T56.js.map +1 -0
  43. package/public/chunk-SGHFX2SF.js +343 -0
  44. package/public/chunk-SGHFX2SF.js.map +7 -0
  45. package/public/chunk-U2DCSTRY.js +159 -0
  46. package/public/chunk-U2DCSTRY.js.map +7 -0
  47. package/public/chunk-UQYTD5AC.js +2723 -0
  48. package/public/chunk-UQYTD5AC.js.map +1 -0
  49. package/public/chunk-X2FXU4ZV.js +13727 -0
  50. package/public/chunk-X2FXU4ZV.js.map +1 -0
  51. package/public/chunk-XSABJ5NZ.js +272 -0
  52. package/public/chunk-XSABJ5NZ.js.map +7 -0
  53. package/public/chunk-Y6N6O2IP.js +19852 -0
  54. package/public/chunk-Y6N6O2IP.js.map +1 -0
  55. package/public/chunk-YGJLBLOX.js +2708 -0
  56. package/public/chunk-YGJLBLOX.js.map +1 -0
  57. package/public/chunk-YT33DHC3.js +591 -0
  58. package/public/chunk-YT33DHC3.js.map +7 -0
  59. package/public/chunk-YZXYVP72.js +4934 -0
  60. package/public/chunk-YZXYVP72.js.map +1 -0
  61. package/public/config.component.css.map +7 -0
  62. package/public/dashboard-scroller.component.css.map +7 -0
  63. package/public/dashboard.component.css.map +7 -0
  64. package/public/dashboards-editor.component.css.map +7 -0
  65. package/public/data-inspector-row.component.css.map +7 -0
  66. package/public/data-inspector.component.css.map +7 -0
  67. package/public/dataset-chart-options.component.css.map +7 -0
  68. package/public/datasets.component.css.map +7 -0
  69. package/public/dialog-confirmation.component.css.map +7 -0
  70. package/public/dialog-dashboard-page-editor.component.css.map +7 -0
  71. package/public/dialog-frame.component.css.map +7 -0
  72. package/public/dialog-name.component.css.map +7 -0
  73. package/public/display-chart-options.component.css.map +7 -0
  74. package/public/display.component.css.map +7 -0
  75. package/public/gauge-steel.component.css.map +7 -0
  76. package/public/home.component.css.map +7 -0
  77. package/public/index.html +19 -17
  78. package/public/main.js +36423 -0
  79. package/public/main.js.map +1 -0
  80. package/public/menu-actions.component.css.map +7 -0
  81. package/public/menu-notifications.component.css.map +7 -0
  82. package/public/minichart.component.css.map +7 -0
  83. package/public/modal-user-credential.component.css.map +7 -0
  84. package/public/modal-widget-config.component.css.map +7 -0
  85. package/public/notification-badge.component.css.map +7 -0
  86. package/public/page-header.component.css.map +7 -0
  87. package/public/path-control-config.component.css.map +7 -0
  88. package/public/paths-options.component.css.map +7 -0
  89. package/public/polyfills.js +4422 -0
  90. package/public/polyfills.js.map +1 -0
  91. package/public/select-autopilot.component.css.map +7 -0
  92. package/public/select-icon.component.css.map +7 -0
  93. package/public/settings.component.css.map +7 -0
  94. package/public/signalk.component.css.map +7 -0
  95. package/public/styles.css +1651 -0
  96. package/public/styles.css.map +7 -0
  97. package/public/svg-autopilot.component.css.map +7 -0
  98. package/public/svg-racesteer.component.css.map +7 -0
  99. package/public/svg-simple-linear-gauge.component.css.map +7 -0
  100. package/public/svg-windsteer.component.css.map +7 -0
  101. package/public/tile-large-icon.component.css.map +7 -0
  102. package/public/units.component.css.map +7 -0
  103. package/public/upgrade-config.component.css.map +7 -0
  104. package/public/widget-autopilot.component.css.map +7 -0
  105. package/public/widget-boolean-switch.component.css.map +7 -0
  106. package/public/widget-datetime.component.css.map +7 -0
  107. package/public/widget-freeboardsk.component.css.map +7 -0
  108. package/public/widget-gauge-ng-compass.component.css.map +7 -0
  109. package/public/widget-gauge-ng-linear.component.css.map +7 -0
  110. package/public/widget-gauge-ng-radial.component.css.map +7 -0
  111. package/public/widget-gauge-steel.component.css.map +7 -0
  112. package/public/widget-horizon.component.css.map +7 -0
  113. package/public/widget-host.component.css.map +7 -0
  114. package/public/widget-iframe.component.css.map +7 -0
  115. package/public/widget-label.component.css.map +7 -0
  116. package/public/widget-list-card.component.css.map +7 -0
  117. package/public/widget-numeric.component.css.map +7 -0
  118. package/public/widget-position.component.css.map +7 -0
  119. package/public/widget-race-timer.component.css.map +7 -0
  120. package/public/widget-racer-line.component.css.map +7 -0
  121. package/public/widget-racer-timer.component.css.map +7 -0
  122. package/public/widget-simple-linear.component.css.map +7 -0
  123. package/public/widget-slider.component.css.map +7 -0
  124. package/public/widget-text.component.css.map +7 -0
  125. package/public/widget-title.component.css.map +7 -0
  126. package/public/widget-tutorial.component.css.map +7 -0
  127. package/public/widgets-list.component.css.map +7 -0
  128. package/public/assets/hammer.min.js +0 -7
  129. package/public/chunk-2YVW3TBK.js +0 -2
  130. package/public/chunk-35L7BBBD.js +0 -15
  131. package/public/chunk-3LEMFOCV.js +0 -3
  132. package/public/chunk-3LJAKLLW.js +0 -1
  133. package/public/chunk-4JJLPUET.js +0 -60
  134. package/public/chunk-CBUY7NMR.js +0 -2
  135. package/public/chunk-CQXWGD3T.js +0 -2
  136. package/public/chunk-EUFDL4TJ.js +0 -6
  137. package/public/chunk-FBFTGVZ6.js +0 -1
  138. package/public/chunk-HCXH72CD.js +0 -5
  139. package/public/chunk-JY3WVS7C.js +0 -2
  140. package/public/chunk-KTDDP73O.js +0 -2
  141. package/public/chunk-NMEZOCU2.js +0 -1
  142. package/public/chunk-NS2FPVWM.js +0 -4
  143. package/public/chunk-OSYHJB4F.js +0 -11
  144. package/public/chunk-PKNLASTF.js +0 -4
  145. package/public/chunk-Q2Y75POI.js +0 -1
  146. package/public/chunk-RRTCHHRC.js +0 -3
  147. package/public/chunk-TA4GACKT.js +0 -4
  148. package/public/chunk-TXPLRBW5.js +0 -2
  149. package/public/chunk-VHFBF47T.js +0 -1
  150. package/public/chunk-VYUMZVH2.js +0 -2
  151. package/public/chunk-XRGAX4LS.js +0 -2
  152. package/public/chunk-YNJRIFUM.js +0 -1
  153. package/public/chunk-ZBCOJLI4.js +0 -6
  154. package/public/main-XM5EHMUE.js +0 -50
  155. package/public/polyfills-KH22MU6U.js +0 -2
  156. package/public/styles-RECKN66R.css +0 -1
  157. /package/public/media/{KFOlCnqEu92Fr1MmEU9fABc4AMP6lbBP-ILKS6RVC.woff2 → KFOlCnqEu92Fr1MmEU9fABc4AMP6lbBP.woff2} +0 -0
  158. /package/public/media/{KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ-MJ3CERJ6.woff2 → KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ.woff2} +0 -0
  159. /package/public/media/{KFOlCnqEu92Fr1MmEU9fBxc4AMP6lbBP-UW3XWY7P.woff2 → KFOlCnqEu92Fr1MmEU9fBxc4AMP6lbBP.woff2} +0 -0
  160. /package/public/media/{KFOlCnqEu92Fr1MmEU9fCBc4AMP6lbBP-U3JTBV4H.woff2 → KFOlCnqEu92Fr1MmEU9fCBc4AMP6lbBP.woff2} +0 -0
  161. /package/public/media/{KFOlCnqEu92Fr1MmEU9fCRc4AMP6lbBP-36ULTGLY.woff2 → KFOlCnqEu92Fr1MmEU9fCRc4AMP6lbBP.woff2} +0 -0
  162. /package/public/media/{KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP-5NJLO2HW.woff2 → KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP.woff2} +0 -0
  163. /package/public/media/{KFOlCnqEu92Fr1MmEU9fCxc4AMP6lbBP-2EL65J2O.woff2 → KFOlCnqEu92Fr1MmEU9fCxc4AMP6lbBP.woff2} +0 -0
  164. /package/public/media/{KFOlCnqEu92Fr1MmSU5fABc4AMP6lbBP-XWLWMQVU.woff2 → KFOlCnqEu92Fr1MmSU5fABc4AMP6lbBP.woff2} +0 -0
  165. /package/public/media/{KFOlCnqEu92Fr1MmSU5fBBc4AMP6lQ-PWGJWDFE.woff2 → KFOlCnqEu92Fr1MmSU5fBBc4AMP6lQ.woff2} +0 -0
  166. /package/public/media/{KFOlCnqEu92Fr1MmSU5fBxc4AMP6lbBP-ITB7NUJC.woff2 → KFOlCnqEu92Fr1MmSU5fBxc4AMP6lbBP.woff2} +0 -0
  167. /package/public/media/{KFOlCnqEu92Fr1MmSU5fCBc4AMP6lbBP-32PLHKPQ.woff2 → KFOlCnqEu92Fr1MmSU5fCBc4AMP6lbBP.woff2} +0 -0
  168. /package/public/media/{KFOlCnqEu92Fr1MmSU5fCRc4AMP6lbBP-QPSNQEDD.woff2 → KFOlCnqEu92Fr1MmSU5fCRc4AMP6lbBP.woff2} +0 -0
  169. /package/public/media/{KFOlCnqEu92Fr1MmSU5fChc4AMP6lbBP-JKBSJZY3.woff2 → KFOlCnqEu92Fr1MmSU5fChc4AMP6lbBP.woff2} +0 -0
  170. /package/public/media/{KFOlCnqEu92Fr1MmSU5fCxc4AMP6lbBP-OG5AHRIX.woff2 → KFOlCnqEu92Fr1MmSU5fCxc4AMP6lbBP.woff2} +0 -0
  171. /package/public/media/{KFOmCnqEu92Fr1Mu4WxKKTU1Kvnz-PPTELUJT.woff2 → KFOmCnqEu92Fr1Mu4WxKKTU1Kvnz.woff2} +0 -0
  172. /package/public/media/{KFOmCnqEu92Fr1Mu4mxKKTU1Kg-SNGEW7FX.woff2 → KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2} +0 -0
  173. /package/public/media/{KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz-DRL4U32S.woff2 → KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz.woff2} +0 -0
  174. /package/public/media/{KFOmCnqEu92Fr1Mu72xKKTU1Kvnz-PRJ7OQMU.woff2 → KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.woff2} +0 -0
  175. /package/public/media/{KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz-HW6RMPJ3.woff2 → KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2} +0 -0
  176. /package/public/media/{KFOmCnqEu92Fr1Mu7WxKKTU1Kvnz-KZD6JQRT.woff2 → KFOmCnqEu92Fr1Mu7WxKKTU1Kvnz.woff2} +0 -0
  177. /package/public/media/{KFOmCnqEu92Fr1Mu7mxKKTU1Kvnz-Z72STTMG.woff2 → KFOmCnqEu92Fr1Mu7mxKKTU1Kvnz.woff2} +0 -0
  178. /package/public/media/{flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ-CN2J7AYH.woff2 → flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2} +0 -0
@@ -1,2 +0,0 @@
1
- import{$a as Pr,$b as Kr,A as m,B as mt,C as A,D as fn,Da as Ve,E as yr,Ea as _,Eb as Gr,Ed as fi,F as vt,Fa as Tr,Fb as Ee,Fd as pi,G as Rr,Ga as ne,Gb as K,Gd as gi,Ha as St,Hb as Yr,Hd as mi,Ib as wn,Ja as Mr,Jb as Zr,Jd as vi,Ka as Ar,Kb as Et,Kd as Si,L as Y,Lb as _t,M as Z,Mb as In,N as le,Na as yt,Nb as Qr,Oa as Sn,Ob as En,Pa as Dr,Pb as _n,Q as pn,Qa as Rt,Qb as bn,R as ee,Rb as bt,Sa as Or,Ta as yn,Ua as Nr,Va as qe,Vc as ri,W as Re,Wc as ii,X as te,Xa as Rn,Y as gn,Ya as Cn,Z as Cr,Za as Ce,_a as we,_c as Tt,a as d,ab as Ur,ad as oi,b as N,ba as wr,bb as Lr,ca as Ir,cb as xr,db as jr,eb as kr,ed as Tn,f as pr,fa as Er,fb as $r,g as gt,ga as D,gb as P,gd as si,ha as mn,hd as ai,i as gr,ia as w,ic as Xr,id as _e,j as mr,jb as Fr,k as dn,l as hn,la as y,lc as Jr,ld as ci,m as W,ma as Q,mb as We,mc as ei,md as be,nd as ui,o as x,oa as v,ob as zr,od as li,pa as de,pb as Hr,pd as di,qa as _r,qb as Ie,qd as Te,r as G,ra as C,rb as Br,rd as hi,s as M,sa as g,sb as Vr,sd as Me,t as h,ta as l,tb as qr,td as Mn,te as An,u as ue,ua as vn,ub as Wr,v as vr,vb as Ct,w as Sr,wa as br,wb as wt,wc as ti,xa as he,xb as fe,ya as j,yb as It,yc as ni}from"./chunk-35L7BBBD.js";var At=new C(""),Un=(()=>{class n{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,i,o){return this._findPluginFor(t).addEventListener(e,t,i,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(o=>o.supports(e)),!t)throw new y(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||n)(g(At),g(K))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),Ge=class{_doc;constructor(r){this._doc=r}manager},Dn="ng-app-id";function yi(n){for(let r of n)r.remove()}function Ri(n,r){let e=r.createElement("style");return e.textContent=n,e}function $o(n,r,e,t){let i=n.head?.querySelectorAll(`style[${Dn}="${r}"],link[${Dn}="${r}"]`);if(i)for(let o of i)o.removeAttribute(Dn),o instanceof HTMLLinkElement?t.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function Nn(n,r){let e=r.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",n),e}var Ln=(()=>{class n{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,i,o={}){this.doc=e,this.appId=t,this.nonce=i,$o(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let i of e)this.addUsage(i,this.inline,Ri);t?.forEach(i=>this.addUsage(i,this.external,Nn))}removeStyles(e,t){for(let i of e)this.removeUsage(i,this.inline);t?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,t,i){let o=t.get(e);o?o.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,t){let i=t.get(e);i&&(i.usage--,i.usage<=0&&(yi(i.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])yi(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:i}]of this.inline)i.push(this.addElement(e,Ri(t,this.doc)));for(let[t,{elements:i}]of this.external)i.push(this.addElement(e,Nn(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),e.appendChild(t)}static \u0275fac=function(t){return new(t||n)(g(_),g(yn),g(Rn,8),g(qe))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),On={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},xn=/%COMP%/g;var wi="%COMP%",Fo=`_nghost-${wi}`,zo=`_ngcontent-${wi}`,Ho=!0,Bo=new C("",{providedIn:"root",factory:()=>Ho});function Vo(n){return zo.replace(xn,n)}function qo(n){return Fo.replace(xn,n)}function Ii(n,r){return r.map(e=>e.replace(xn,n))}var jn=(()=>{class n{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,i,o,s,a,c,u=null,f=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=f,this.platformIsServer=!1,this.defaultRenderer=new Ye(e,s,c,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,t);return i instanceof Mt?i.applyToHost(e):i instanceof Ze&&i.applyStyles(),i}getOrCreateRenderer(e,t){let i=this.rendererByCompId,o=i.get(t.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,R=this.platformIsServer,I=this.tracingService;switch(t.encapsulation){case Cn.Emulated:o=new Mt(c,u,t,this.appId,f,s,a,R,I);break;case Cn.ShadowDom:return new Pn(c,u,e,t,s,a,this.nonce,R,I);default:o=new Ze(c,u,t,f,s,a,R,I);break}i.set(t.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||n)(g(Un),g(Ln),g(yn),g(Bo),g(_),g(qe),g(K),g(Rn),g(Gr,8))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),Ye=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,e,t,i,o){this.eventManager=r,this.doc=e,this.ngZone=t,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(r,e){return e?this.doc.createElementNS(On[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(Ci(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(Ci(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){e.remove()}selectRootElement(r,e){let t=typeof r=="string"?this.doc.querySelector(r):r;if(!t)throw new y(-5104,!1);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,i){if(i){e=i+":"+e;let o=On[i];o?r.setAttributeNS(o,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){let i=On[t];i?r.removeAttributeNS(i,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,i){i&(We.DashCase|We.Important)?r.style.setProperty(e,t,i&We.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&We.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r!=null&&(r[e]=t)}setValue(r,e){r.nodeValue=e}listen(r,e,t,i){if(typeof r=="string"&&(r=be().getGlobalEventTarget(this.doc,r),!r))throw new y(5102,!1);let o=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(r,e,o)),this.eventManager.addEventListener(r,e,o,i)}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;r(e)===!1&&e.preventDefault()}}};function Ci(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Pn=class extends Ye{sharedStylesHost;hostEl;shadowRoot;constructor(r,e,t,i,o,s,a,c,u){super(r,o,s,c,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let f=i.styles;f=Ii(i.id,f);for(let I of f){let b=document.createElement("style");a&&b.setAttribute("nonce",a),b.textContent=I,this.shadowRoot.appendChild(b)}let R=i.getExternalStyles?.();if(R)for(let I of R){let b=Nn(I,o);a&&b.setAttribute("nonce",a),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,t){return super.insertBefore(this.nodeOrShadowRoot(r),e,t)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ze=class extends Ye{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,t,i,o,s,a,c,u){super(r,o,s,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let f=t.styles;this.styles=u?Ii(u,f):f,this.styleUrls=t.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Mt=class extends Ze{contentAttr;hostAttr;constructor(r,e,t,i,o,s,a,c,u){let f=i+"-"+t.id;super(r,e,t,o,s,a,c,u,f),this.contentAttr=Vo(f),this.hostAttr=qo(f)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}};var Dt=class n extends li{supportsDOMEvents=!0;static makeCurrent(){ui(new n)}onAndCancel(r,e,t,i){return r.addEventListener(e,t,i),()=>{r.removeEventListener(e,t,i)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=Wo();return e==null?null:Go(e)}resetBaseElement(){Qe=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return pi(document.cookie,r)}},Qe=null;function Wo(){return Qe=Qe||document.head.querySelector("base"),Qe?Qe.getAttribute("href"):null}function Go(n){return new URL(n,document.baseURI).pathname}var Ot=class{addToWindow(r){Q.getAngularTestability=(t,i=!0)=>{let o=r.findTestabilityInTree(t,i);if(o==null)throw new y(5103,!1);return o},Q.getAllAngularTestabilities=()=>r.getAllTestabilities(),Q.getAllAngularRootElements=()=>r.getAllRootElements();let e=t=>{let i=Q.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&t()};i.forEach(a=>{a.whenStable(s)})};Q.frameworkStabilizers||(Q.frameworkStabilizers=[]),Q.frameworkStabilizers.push(e)}findTestabilityInTree(r,e,t){if(e==null)return null;let i=r.getTestability(e);return i??(t?be().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},Yo=(()=>{class n{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),_i=(()=>{class n extends Ge{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,i,o){return e.addEventListener(t,i,o),()=>this.removeEventListener(e,t,i,o)}removeEventListener(e,t,i,o){return e.removeEventListener(t,i,o)}static \u0275fac=function(t){return new(t||n)(g(_))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),Ei=["alt","control","meta","shift"],Zo={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Qo={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},bi=(()=>{class n extends Ge{constructor(e){super(e)}supports(e){return n.parseEventName(e)!=null}addEventListener(e,t,i,o){let s=n.parseEventName(t),a=n.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>be().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let t=e.toLowerCase().split("."),i=t.shift();if(t.length===0||!(i==="keydown"||i==="keyup"))return null;let o=n._normalizeKey(t.pop()),s="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),s="code."),Ei.forEach(u=>{let f=t.indexOf(u);f>-1&&(t.splice(f,1),s+=u+".")}),s+=o,t.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,t){let i=Zo[e.key]||e.key,o="";return t.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Ei.forEach(s=>{if(s!==i){let a=Qo[s];a(e)&&(o+=s+".")}}),o+=i,o===t)}static eventCallback(e,t,i){return o=>{n.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>t(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||n)(g(_))};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})();function Ko(n,r){let e=d({rootComponent:n},Xo(r));return ai(e)}function Xo(n){return{appProviders:[...Ti,...n?.providers??[]],platformProviders:ns}}function Jo(){Dt.makeCurrent()}function es(){return new ne}function ts(){return Or(document),document}var ns=[{provide:qe,useValue:mi},{provide:Nr,useValue:Jo,multi:!0},{provide:_,useFactory:ts}];var rs=[{provide:Et,useClass:Ot},{provide:Zr,useClass:_t,deps:[K,In,Et]},{provide:_t,useClass:_t,deps:[K,In,Et]}],Ti=[{provide:br,useValue:"root"},{provide:ne,useFactory:es},{provide:At,useClass:_i,multi:!0,deps:[_]},{provide:At,useClass:bi,multi:!0,deps:[_]},jn,Ln,Un,{provide:zr,useExisting:jn},{provide:gi,useClass:Yo},[]],is=(()=>{class n{constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275mod=fe({type:n});static \u0275inj=de({providers:[...Ti,...rs],imports:[fi,si]})}return n})();var Mi=(()=>{class n{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||n)(g(_))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var kn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:function(t){let i=null;return t?i=new(t||n):i=g(as),i},providedIn:"root"})}return n})(),as=(()=>{class n extends kn{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case P.NONE:return t;case P.HTML:return we(t,"HTML")?Ce(t):$r(this._doc,String(t)).toString();case P.STYLE:return we(t,"Style")?Ce(t):t;case P.SCRIPT:if(we(t,"Script"))return Ce(t);throw new y(5200,!1);case P.URL:return we(t,"URL")?Ce(t):kr(String(t));case P.RESOURCE_URL:if(we(t,"ResourceURL"))return Ce(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return Pr(e)}bypassSecurityTrustStyle(e){return Ur(e)}bypassSecurityTrustScript(e){return Lr(e)}bypassSecurityTrustUrl(e){return xr(e)}bypassSecurityTrustResourceUrl(e){return jr(e)}static \u0275fac=function(t){return new(t||n)(g(_))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var p="primary",ut=Symbol("RouteTitle"),Bn=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function me(n){return new Bn(n)}function ji(n,r,e){let t=e.path.split("/");if(t.length>n.length||e.pathMatch==="full"&&(r.hasChildren()||t.length<n.length))return null;let i={};for(let o=0;o<t.length;o++){let s=t[o],a=n[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:n.slice(0,t.length),posParams:i}}function cs(n,r){if(n.length!==r.length)return!1;for(let e=0;e<n.length;++e)if(!F(n[e],r[e]))return!1;return!0}function F(n,r){let e=n?Vn(n):void 0,t=r?Vn(r):void 0;if(!e||!t||e.length!=t.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!ki(n[i],r[i]))return!1;return!0}function Vn(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function ki(n,r){if(Array.isArray(n)&&Array.isArray(r)){if(n.length!==r.length)return!1;let e=[...n].sort(),t=[...r].sort();return e.every((i,o)=>t[o]===i)}else return n===r}function $i(n){return n.length>0?n[n.length-1]:null}function X(n){return vr(n)?n:Qr(n)?M(Promise.resolve(n)):h(n)}var us={exact:zi,subset:Hi},Fi={exact:ls,subset:ds,ignored:()=>!0};function Di(n,r,e){return us[e.paths](n.root,r.root,e.matrixParams)&&Fi[e.queryParams](n.queryParams,r.queryParams)&&!(e.fragment==="exact"&&n.fragment!==r.fragment)}function ls(n,r){return F(n,r)}function zi(n,r,e){if(!pe(n.segments,r.segments)||!Ut(n.segments,r.segments,e)||n.numberOfChildren!==r.numberOfChildren)return!1;for(let t in r.children)if(!n.children[t]||!zi(n.children[t],r.children[t],e))return!1;return!0}function ds(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(e=>ki(n[e],r[e]))}function Hi(n,r,e){return Bi(n,r,r.segments,e)}function Bi(n,r,e,t){if(n.segments.length>e.length){let i=n.segments.slice(0,e.length);return!(!pe(i,e)||r.hasChildren()||!Ut(i,e,t))}else if(n.segments.length===e.length){if(!pe(n.segments,e)||!Ut(n.segments,e,t))return!1;for(let i in r.children)if(!n.children[i]||!Hi(n.children[i],r.children[i],t))return!1;return!0}else{let i=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!pe(n.segments,i)||!Ut(n.segments,i,t)||!n.children[p]?!1:Bi(n.children[p],r,o,t)}}function Ut(n,r,e){return r.every((t,i)=>Fi[e](n[i].parameters,t.parameters))}var H=class{root;queryParams;fragment;_queryParamMap;constructor(r=new S([],{}),e={},t=null){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=me(this.queryParams),this._queryParamMap}toString(){return ps.serialize(this)}},S=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lt(this)}},re=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=me(this.parameters),this._parameterMap}toString(){return qi(this)}};function hs(n,r){return pe(n,r)&&n.every((e,t)=>F(e.parameters,r[t].parameters))}function pe(n,r){return n.length!==r.length?!1:n.every((e,t)=>e.path===r[t].path)}function fs(n,r){let e=[];return Object.entries(n.children).forEach(([t,i])=>{t===p&&(e=e.concat(r(i,t)))}),Object.entries(n.children).forEach(([t,i])=>{t!==p&&(e=e.concat(r(i,t)))}),e}var ve=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:()=>new ie,providedIn:"root"})}return n})(),ie=class{parse(r){let e=new Wn(r);return new H(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${Ke(r.root,!0)}`,t=vs(r.queryParams),i=typeof r.fragment=="string"?`#${gs(r.fragment)}`:"";return`${e}${t}${i}`}},ps=new ie;function Lt(n){return n.segments.map(r=>qi(r)).join("/")}function Ke(n,r){if(!n.hasChildren())return Lt(n);if(r){let e=n.children[p]?Ke(n.children[p],!1):"",t=[];return Object.entries(n.children).forEach(([i,o])=>{i!==p&&t.push(`${i}:${Ke(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=fs(n,(t,i)=>i===p?[Ke(n.children[p],!1)]:[`${i}:${Ke(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[p]!=null?`${Lt(n)}/${e[0]}`:`${Lt(n)}/(${e.join("//")})`}}function Vi(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Nt(n){return Vi(n).replace(/%3B/gi,";")}function gs(n){return encodeURI(n)}function qn(n){return Vi(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xt(n){return decodeURIComponent(n)}function Oi(n){return xt(n.replace(/\+/g,"%20"))}function qi(n){return`${qn(n.path)}${ms(n.parameters)}`}function ms(n){return Object.entries(n).map(([r,e])=>`;${qn(r)}=${qn(e)}`).join("")}function vs(n){let r=Object.entries(n).map(([e,t])=>Array.isArray(t)?t.map(i=>`${Nt(e)}=${Nt(i)}`).join("&"):`${Nt(e)}=${Nt(t)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var Ss=/^[^\/()?;#]+/;function $n(n){let r=n.match(Ss);return r?r[0]:""}var ys=/^[^\/()?;=#]+/;function Rs(n){let r=n.match(ys);return r?r[0]:""}var Cs=/^[^=?&#]+/;function ws(n){let r=n.match(Cs);return r?r[0]:""}var Is=/^[^&#]+/;function Es(n){let r=n.match(Is);return r?r[0]:""}var Wn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new S([],{}):new S([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[p]=new S(r,e)),t}parseSegment(){let r=$n(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(r),new re(xt(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=Rs(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let i=$n(this.remaining);i&&(t=i,this.capture(t))}r[xt(e)]=xt(t)}parseQueryParam(r){let e=ws(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let s=Es(this.remaining);s&&(t=s,this.capture(t))}let i=Oi(e),o=Oi(t);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=$n(this.remaining),i=this.remaining[t.length];if(i!=="/"&&i!==")"&&i!==";")throw new y(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new S([],s),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new y(4011,!1)}};function Wi(n){return n.segments.length>0?new S([],{[p]:n}):n}function Gi(n){let r={};for(let[t,i]of Object.entries(n.children)){let o=Gi(i);if(t===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[t]=o)}let e=new S(n.segments,r);return _s(e)}function _s(n){if(n.numberOfChildren===1&&n.children[p]){let r=n.children[p];return new S(n.segments.concat(r.segments),r.children)}return n}function oe(n){return n instanceof H}function Yi(n,r,e=null,t=null){let i=Zi(n);return Qi(i,r,e,t)}function Zi(n){let r;function e(o){let s={};for(let c of o.children){let u=e(c);s[c.outlet]=u}let a=new S(o.url,s);return o===n&&(r=a),a}let t=e(n.root),i=Wi(t);return r??i}function Qi(n,r,e,t){let i=n;for(;i.parent;)i=i.parent;if(r.length===0)return Fn(i,i,i,e,t);let o=bs(r);if(o.toRoot())return Fn(i,i,new S([],{}),e,t);let s=Ts(o,i,n),a=s.processChildren?Je(s.segmentGroup,s.index,o.commands):Xi(s.segmentGroup,s.index,o.commands);return Fn(i,s.segmentGroup,a,e,t)}function jt(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function tt(n){return typeof n=="object"&&n!=null&&n.outlets}function Fn(n,r,e,t,i){let o={};t&&Object.entries(t).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(f=>`${f}`):`${u}`});let s;n===r?s=e:s=Ki(n,r,e);let a=Wi(Gi(s));return new H(a,o,i)}function Ki(n,r,e){let t={};return Object.entries(n.children).forEach(([i,o])=>{o===r?t[i]=e:t[i]=Ki(o,r,e)}),new S(n.segments,t)}var kt=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&jt(t[0]))throw new y(4003,!1);let i=t.find(tt);if(i&&i!==$i(t))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function bs(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new kt(!0,0,n);let r=0,e=!1,t=n.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new kt(e,r,t)}var Ne=class{segmentGroup;processChildren;index;constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}};function Ts(n,r,e){if(n.isAbsolute)return new Ne(r,!0,0);if(!e)return new Ne(r,!1,NaN);if(e.parent===null)return new Ne(e,!0,0);let t=jt(n.commands[0])?0:1,i=e.segments.length-1+t;return Ms(e,i,n.numberOfDoubleDots)}function Ms(n,r,e){let t=n,i=r,o=e;for(;o>i;){if(o-=i,t=t.parent,!t)throw new y(4005,!1);i=t.segments.length}return new Ne(t,!1,i-o)}function As(n){return tt(n[0])?n[0].outlets:{[p]:n}}function Xi(n,r,e){if(n??=new S([],{}),n.segments.length===0&&n.hasChildren())return Je(n,r,e);let t=Ds(n,r,e),i=e.slice(t.commandIndex);if(t.match&&t.pathIndex<n.segments.length){let o=new S(n.segments.slice(0,t.pathIndex),{});return o.children[p]=new S(n.segments.slice(t.pathIndex),n.children),Je(o,0,i)}else return t.match&&i.length===0?new S(n.segments,{}):t.match&&!n.hasChildren()?Gn(n,r,e):t.match?Je(n,0,i):Gn(n,r,e)}function Je(n,r,e){if(e.length===0)return new S(n.segments,{});{let t=As(e),i={};if(Object.keys(t).some(o=>o!==p)&&n.children[p]&&n.numberOfChildren===1&&n.children[p].segments.length===0){let o=Je(n.children[p],r,e);return new S(n.segments,o.children)}return Object.entries(t).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Xi(n.children[o],r,s))}),Object.entries(n.children).forEach(([o,s])=>{t[o]===void 0&&(i[o]=s)}),new S(n.segments,i)}}function Ds(n,r,e){let t=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<n.segments.length;){if(t>=e.length)return o;let s=n.segments[i],a=e[t];if(tt(a))break;let c=`${a}`,u=t<e.length-1?e[t+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Pi(c,u,s))return o;t+=2}else{if(!Pi(c,{},s))return o;t++}i++}return{match:!0,pathIndex:i,commandIndex:t}}function Gn(n,r,e){let t=n.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(tt(o)){let c=Os(o.outlets);return new S(t,c)}if(i===0&&jt(e[0])){let c=n.segments[r];t.push(new re(c.path,Ni(e[0]))),i++;continue}let s=tt(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&jt(a)?(t.push(new re(s,Ni(a))),i+=2):(t.push(new re(s,{})),i++)}return new S(t,{})}function Os(n){let r={};return Object.entries(n).forEach(([e,t])=>{typeof t=="string"&&(t=[t]),t!==null&&(r[e]=Gn(new S([],{}),0,t))}),r}function Ni(n){let r={};return Object.entries(n).forEach(([e,t])=>r[e]=`${t}`),r}function Pi(n,r,e){return n==e.path&&F(r,e.parameters)}var Pe="imperative",E=(function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n})(E||{}),L=class{id;url;constructor(r,e){this.id=r,this.url=e}},se=class extends L{type=E.NavigationStart;navigationTrigger;restoredState;constructor(r,e,t="imperative",i=null){super(r,e),this.navigationTrigger=t,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},k=class extends L{urlAfterRedirects;type=E.NavigationEnd;constructor(r,e,t){super(r,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=(function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n[n.Aborted=4]="Aborted",n})(T||{}),Le=(function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n})(Le||{}),z=class extends L{reason;code;type=E.NavigationCancel;constructor(r,e,t,i){super(r,e),this.reason=t,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},B=class extends L{reason;code;type=E.NavigationSkipped;constructor(r,e,t,i){super(r,e),this.reason=t,this.code=i}},xe=class extends L{error;target;type=E.NavigationError;constructor(r,e,t,i){super(r,e),this.error=t,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},nt=class extends L{urlAfterRedirects;state;type=E.RoutesRecognized;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$t=class extends L{urlAfterRedirects;state;type=E.GuardsCheckStart;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ft=class extends L{urlAfterRedirects;state;shouldActivate;type=E.GuardsCheckEnd;constructor(r,e,t,i,o){super(r,e),this.urlAfterRedirects=t,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},zt=class extends L{urlAfterRedirects;state;type=E.ResolveStart;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ht=class extends L{urlAfterRedirects;state;type=E.ResolveEnd;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bt=class{route;type=E.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Vt=class{route;type=E.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},qt=class{snapshot;type=E.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wt=class{snapshot;type=E.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gt=class{snapshot;type=E.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yt=class{snapshot;type=E.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},je=class{routerEvent;position;anchor;type=E.Scroll;constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},rt=class{},ke=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Ns(n){return!(n instanceof rt)&&!(n instanceof ke)}function Ps(n,r){return n.providers&&!n._injector&&(n._injector=Ct(n.providers,r,`Route: ${n.path}`)),n._injector??r}function $(n){return n.outlet||p}function Us(n,r){let e=n.filter(t=>$(t)===r);return e.push(...n.filter(t=>$(t)!==r)),e}function ze(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let r=n.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Zt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ze(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Se(this.rootInjector)}},Se=(()=>{class n{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,t){let i=this.getOrCreateContext(e);i.outlet=t,this.contexts.set(e,i)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Zt(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(t){return new(t||n)(g(he))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Qt=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=Yn(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){let e=Yn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=Zn(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return Zn(r,this._root).map(e=>e.value)}};function Yn(n,r){if(n===r.value)return r;for(let e of r.children){let t=Yn(n,e);if(t)return t}return null}function Zn(n,r){if(n===r.value)return[r];for(let e of r.children){let t=Zn(n,e);if(t.length)return t.unshift(r),t}return[]}var U=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function Oe(n){let r={};return n&&n.children.forEach(e=>r[e.value.outlet]=e),r}var it=class extends Qt{snapshot;constructor(r,e){super(r),this.snapshot=e,rr(this,r)}toString(){return this.snapshot.toString()}};function Ji(n){let r=Ls(n),e=new x([new re("",{})]),t=new x({}),i=new x({}),o=new x({}),s=new x(""),a=new V(e,t,o,s,i,p,n,r.root);return a.snapshot=r.root,new it(new U(a,[]),r)}function Ls(n){let r={},e={},t={},o=new ge([],r,t,"",e,p,n,null,{});return new ot("",new U(o,[]))}var V=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,t,i,o,s,a,c){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=t,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(m(u=>u[ut]))??h(void 0),this.url=r,this.params=e,this.queryParams=t,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(m(r=>me(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(r=>me(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Kt(n,r,e="emptyOnly"){let t,{routeConfig:i}=n;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?t={params:d(d({},r.params),n.params),data:d(d({},r.data),n.data),resolve:d(d(d(d({},n.data),r.data),i?.data),n._resolvedData)}:t={params:d({},n.params),data:d({},n.data),resolve:d(d({},n.data),n._resolvedData??{})},i&&to(i)&&(t.resolve[ut]=i.title),t}var ge=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[ut]}constructor(r,e,t,i,o,s,a,c,u){this.url=r,this.params=e,this.queryParams=t,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=me(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=me(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},ot=class extends Qt{url;constructor(r,e){super(e),this.url=r,rr(this,e)}toString(){return eo(this._root)}};function rr(n,r){r.value._routerState=n,r.children.forEach(e=>rr(n,e))}function eo(n){let r=n.children.length>0?` { ${n.children.map(eo).join(", ")} } `:"";return`${n.value}${r}`}function zn(n){if(n.snapshot){let r=n.snapshot,e=n._futureSnapshot;n.snapshot=e,F(r.queryParams,e.queryParams)||n.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&n.fragmentSubject.next(e.fragment),F(r.params,e.params)||n.paramsSubject.next(e.params),cs(r.url,e.url)||n.urlSubject.next(e.url),F(r.data,e.data)||n.dataSubject.next(e.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function Qn(n,r){let e=F(n.params,r.params)&&hs(n.url,r.url),t=!n.parent!=!r.parent;return e&&!t&&(!n.parent||Qn(n.parent,r.parent))}function to(n){return typeof n.title=="string"||n.title===null}var no=new C(""),ir=(()=>{class n{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new Ee;deactivateEvents=new Ee;attachEvents=new Ee;detachEvents=new Ee;routerOutletData=oi(void 0);parentContexts=l(Se);location=l(Vr);changeDetector=l(Tn);inputBinder=l(lt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:i}=e.name;if(t)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new y(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new y(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Kn(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=It({type:n,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[yt]})}return n})(),Kn=class{route;childContexts;parent;outletData;constructor(r,e,t,i){this.route=r,this.childContexts=e,this.parent=t,this.outletData=i}get(r,e){return r===V?this.route:r===Se?this.childContexts:r===no?this.outletData:this.parent.get(r,e)}},lt=new C(""),or=(()=>{class n{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:t}=e,i=mt([t.queryParams,t.params,t.data]).pipe(D(([o,s,a],c)=>(a=d(d(d({},o),s),a),c===0?h(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==t||t.component===null){this.unsubscribeFromRouteData(e);return}let s=ci(t.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})(),sr=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=wt({type:n,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(t,i){t&1&&Kr(0,"router-outlet")},dependencies:[ir],encapsulation:2})}return n})();function ar(n){let r=n.children&&n.children.map(ar),e=r?N(d({},n),{children:r}):d({},n);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=sr),e}function xs(n,r,e){let t=st(n,r._root,e?e._root:void 0);return new it(t,r)}function st(n,r,e){if(e&&n.shouldReuseRoute(r.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=r.value;let i=js(n,r,e);return new U(t,i)}else{if(n.shouldAttach(r.value)){let o=n.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>st(n,a)),s}}let t=ks(r.value),i=r.children.map(o=>st(n,o));return new U(t,i)}}function js(n,r,e){return r.children.map(t=>{for(let i of e.children)if(n.shouldReuseRoute(t.value,i.value.snapshot))return st(n,t,i);return st(n,t)})}function ks(n){return new V(new x(n.url),new x(n.params),new x(n.queryParams),new x(n.fragment),new x(n.data),n.outlet,n.component,n)}var $e=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},ro="ngNavigationCancelingError";function Xt(n,r){let{redirectTo:e,navigationBehaviorOptions:t}=oe(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=io(!1,T.Redirect);return i.url=e,i.navigationBehaviorOptions=t,i}function io(n,r){let e=new Error(`NavigationCancelingError: ${n||""}`);return e[ro]=!0,e.cancellationCode=r,e}function $s(n){return oo(n)&&oe(n.url)}function oo(n){return!!n&&n[ro]}var Fs=(n,r,e,t)=>m(i=>(new Xn(r,i.targetRouterState,i.currentRouterState,e,t).activate(n),i)),Xn=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,t,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),zn(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){let i=Oe(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],t),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(r,e,t){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=t.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,t);else o&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let t=e.getContext(r.value.outlet),i=t&&r.value.component?t.children:e,o=Oe(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(t&&t.outlet){let s=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,e){let t=e.getContext(r.value.outlet),i=t&&r.value.component?t.children:e,o=Oe(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(r,e,t){let i=Oe(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],t),this.forwardEvent(new Yt(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Wt(r.value.snapshot))}activateRoutes(r,e,t){let i=r.value,o=e?e.value:null;if(zn(i),i===o)if(i.component){let s=t.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,t);else if(i.component){let s=t.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),zn(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,t)}},Jt=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},Ue=class{component;route;constructor(r,e){this.component=r,this.route=e}};function zs(n,r,e){let t=n._root,i=r?r._root:null;return Xe(t,i,e,[t.value])}function Hs(n){let r=n.routeConfig?n.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:n,guards:r}}function He(n,r){let e=Symbol(),t=r.get(n,e);return t===e?typeof n=="function"&&!_r(n)?n:r.get(n):t}function Xe(n,r,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Oe(r);return n.children.forEach(s=>{Bs(s,o[s.value.outlet],e,t.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>et(a,e.getContext(s),i)),i}function Bs(n,r,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=n.value,s=r?r.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Vs(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Jt(t)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Xe(n,r,a?a.children:null,t,i):Xe(n,r,e,t,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Ue(a.outlet.component,s))}else s&&et(r,a,i),i.canActivateChecks.push(new Jt(t)),o.component?Xe(n,null,a?a.children:null,t,i):Xe(n,null,e,t,i);return i}function Vs(n,r,e){if(typeof e=="function")return e(n,r);switch(e){case"pathParamsChange":return!pe(n.url,r.url);case"pathParamsOrQueryParamsChange":return!pe(n.url,r.url)||!F(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qn(n,r)||!F(n.queryParams,r.queryParams);case"paramsChange":default:return!Qn(n,r)}}function et(n,r,e){let t=Oe(n),i=n.value;Object.entries(t).forEach(([o,s])=>{i.component?r?et(s,r.children.getContext(o),e):et(s,null,e):et(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new Ue(r.outlet.component,i)):e.canDeactivateChecks.push(new Ue(null,i)):e.canDeactivateChecks.push(new Ue(null,i))}function dt(n){return typeof n=="function"}function qs(n){return typeof n=="boolean"}function Ws(n){return n&&dt(n.canLoad)}function Gs(n){return n&&dt(n.canActivate)}function Ys(n){return n&&dt(n.canActivateChild)}function Zs(n){return n&&dt(n.canDeactivate)}function Qs(n){return n&&dt(n.canMatch)}function so(n){return n instanceof Sr||n?.name==="EmptyError"}var Pt=Symbol("INITIAL_VALUE");function Fe(){return D(n=>mt(n.map(r=>r.pipe(ee(1),Er(Pt)))).pipe(m(r=>{for(let e of r)if(e!==!0){if(e===Pt)return Pt;if(e===!1||Ks(e))return e}return!0}),Y(r=>r!==Pt),ee(1)))}function Ks(n){return oe(n)||n instanceof $e}function Xs(n,r){return A(e=>{let{targetSnapshot:t,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?h(N(d({},e),{guardsResult:!0})):Js(s,t,i,n).pipe(A(a=>a&&qs(a)?ea(t,o,n,r):h(a)),m(a=>N(d({},e),{guardsResult:a})))})}function Js(n,r,e,t){return M(n).pipe(A(i=>oa(i.component,i.route,e,r,t)),te(i=>i!==!0,!0))}function ea(n,r,e,t){return M(r).pipe(le(i=>yr(na(i.route.parent,t),ta(i.route,t),ia(n,i.path,e),ra(n,i.route,e))),te(i=>i!==!0,!0))}function ta(n,r){return n!==null&&r&&r(new Gt(n)),h(!0)}function na(n,r){return n!==null&&r&&r(new qt(n)),h(!0)}function ra(n,r,e){let t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||t.length===0)return h(!0);let i=t.map(o=>vt(()=>{let s=ze(r)??e,a=He(o,s),c=Gs(a)?a.canActivate(r,n):j(s,()=>a(r,n));return X(c).pipe(te())}));return h(i).pipe(Fe())}function ia(n,r,e){let t=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>Hs(s)).filter(s=>s!==null).map(s=>vt(()=>{let a=s.guards.map(c=>{let u=ze(s.node)??e,f=He(c,u),R=Ys(f)?f.canActivateChild(t,n):j(u,()=>f(t,n));return X(R).pipe(te())});return h(a).pipe(Fe())}));return h(o).pipe(Fe())}function oa(n,r,e,t,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return h(!0);let s=o.map(a=>{let c=ze(r)??i,u=He(a,c),f=Zs(u)?u.canDeactivate(n,r,e,t):j(c,()=>u(n,r,e,t));return X(f).pipe(te())});return h(s).pipe(Fe())}function sa(n,r,e,t){let i=r.canLoad;if(i===void 0||i.length===0)return h(!0);let o=i.map(s=>{let a=He(s,n),c=Ws(a)?a.canLoad(r,e):j(n,()=>a(r,e));return X(c)});return h(o).pipe(Fe(),ao(t))}function ao(n){return gr(w(r=>{if(typeof r!="boolean")throw Xt(n,r)}),m(r=>r===!0))}function aa(n,r,e,t){let i=r.canMatch;if(!i||i.length===0)return h(!0);let o=i.map(s=>{let a=He(s,n),c=Qs(a)?a.canMatch(r,e):j(n,()=>a(r,e));return X(c)});return h(o).pipe(Fe(),ao(t))}var at=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},ct=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function De(n){return ue(new at(n))}function ca(n){return ue(new y(4e3,!1))}function ua(n){return ue(io(!1,T.GuardRejected))}var Jn=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let t=[],i=e.root;for(;;){if(t=t.concat(i.segments),i.numberOfChildren===0)return h(t);if(i.numberOfChildren>1||!i.children[p])return ca(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,e,t,i,o){return la(e,i,o).pipe(m(s=>{if(s instanceof H)throw new ct(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,t);if(s[0]==="/")throw new ct(a);return a}))}applyRedirectCreateUrlTree(r,e,t,i){let o=this.createSegmentGroup(r,e.root,t,i);return new H(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let t={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);t[i]=e[a]}else t[i]=o}),t}createSegmentGroup(r,e,t,i){let o=this.createSegments(r,e.segments,t,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(r,c,t,i)}),new S(o,s)}createSegments(r,e,t,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,t))}findPosParam(r,e,t){let i=t[e.path.substring(1)];if(!i)throw new y(4001,!1);return i}findOrReturn(r,e){let t=0;for(let i of e){if(i.path===r.path)return e.splice(t),i;t++}return r}};function la(n,r,e){if(typeof n=="string")return h(n);let t=n,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,params:u,data:f,title:R}=r;return X(j(e,()=>t({params:u,data:f,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,title:R})))}var er={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function da(n,r,e,t,i){let o=co(n,r,e);return o.matched?(t=Ps(r,t),aa(t,r,e,i).pipe(m(s=>s===!0?o:d({},er)))):h(o)}function co(n,r,e){if(r.path==="**")return ha(e);if(r.path==="")return r.pathMatch==="full"&&(n.hasChildren()||e.length>0)?d({},er):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||ji)(e,n,r);if(!i)return d({},er);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?d(d({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function ha(n){return{matched:!0,parameters:n.length>0?$i(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function Ui(n,r,e,t){return e.length>0&&ga(n,e,t)?{segmentGroup:new S(r,pa(t,new S(e,n.children))),slicedSegments:[]}:e.length===0&&ma(n,e,t)?{segmentGroup:new S(n.segments,fa(n,e,t,n.children)),slicedSegments:e}:{segmentGroup:new S(n.segments,n.children),slicedSegments:e}}function fa(n,r,e,t){let i={};for(let o of e)if(tn(n,r,o)&&!t[$(o)]){let s=new S([],{});i[$(o)]=s}return d(d({},t),i)}function pa(n,r){let e={};e[p]=r;for(let t of n)if(t.path===""&&$(t)!==p){let i=new S([],{});e[$(t)]=i}return e}function ga(n,r,e){return e.some(t=>tn(n,r,t)&&$(t)!==p)}function ma(n,r,e){return e.some(t=>tn(n,r,t))}function tn(n,r,e){return(n.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function va(n,r,e){return r.length===0&&!n.children[e]}var tr=class{};function Sa(n,r,e,t,i,o,s="emptyOnly"){return new nr(n,r,e,t,i,s,o).recognize()}var ya=31,nr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,t,i,o,s,a){this.injector=r,this.configLoader=e,this.rootComponentType=t,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Jn(this.urlSerializer,this.urlTree)}noMatchError(r){return new y(4002,`'${r.segmentGroup}'`)}recognize(){let r=Ui(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(m(({children:e,rootSnapshot:t})=>{let i=new U(t,e),o=new ot("",i),s=Yi(t,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(r){let e=new ge([],Object.freeze({}),Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,p,e).pipe(m(t=>({children:t,rootSnapshot:e})),Z(t=>{if(t instanceof ct)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof at?this.noMatchError(t):t}))}processSegmentGroup(r,e,t,i,o){return t.segments.length===0&&t.hasChildren()?this.processChildren(r,e,t,o):this.processSegment(r,e,t,t.segments,i,!0,o).pipe(m(s=>s instanceof U?[s]:[]))}processChildren(r,e,t,i){let o=[];for(let s of Object.keys(t.children))s==="primary"?o.unshift(s):o.push(s);return M(o).pipe(le(s=>{let a=t.children[s],c=Us(e,s);return this.processSegmentGroup(r,c,a,s,i)}),wr((s,a)=>(s.push(...a),s)),pn(null),Cr(),A(s=>{if(s===null)return De(t);let a=uo(s);return Ra(a),h(a)}))}processSegment(r,e,t,i,o,s,a){return M(e).pipe(le(c=>this.processSegmentAgainstRoute(c._injector??r,e,c,t,i,o,s,a).pipe(Z(u=>{if(u instanceof at)return h(null);throw u}))),te(c=>!!c),Z(c=>{if(so(c))return va(t,i,o)?h(new tr):De(t);throw c}))}processSegmentAgainstRoute(r,e,t,i,o,s,a,c){return $(t)!==s&&(s===p||!tn(i,o,t))?De(i):t.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,t,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,t,o,s,c):De(i)}expandSegmentAgainstRouteUsingRedirect(r,e,t,i,o,s,a){let{matched:c,parameters:u,consumedSegments:f,positionalParamSegments:R,remainingSegments:I}=co(e,i,o);if(!c)return De(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ya&&(this.allowRedirects=!1));let b=new ge(o,u,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Li(i),$(i),i.component??i._loadedComponent??null,i,xi(i)),O=Kt(b,a,this.paramsInheritanceStrategy);return b.params=Object.freeze(O.params),b.data=Object.freeze(O.data),this.applyRedirects.applyRedirectCommands(f,i.redirectTo,R,b,r).pipe(D(ce=>this.applyRedirects.lineralizeSegments(i,ce)),A(ce=>this.processSegment(r,t,e,ce.concat(I),s,!1,a)))}matchSegmentAgainstRoute(r,e,t,i,o,s){let a=da(e,t,i,r,this.urlSerializer);return t.path==="**"&&(e.children={}),a.pipe(D(c=>c.matched?(r=t._injector??r,this.getChildConfig(r,t,i).pipe(D(({routes:u})=>{let f=t._loadedInjector??r,{parameters:R,consumedSegments:I,remainingSegments:b}=c,O=new ge(I,R,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Li(t),$(t),t.component??t._loadedComponent??null,t,xi(t)),un=Kt(O,s,this.paramsInheritanceStrategy);O.params=Object.freeze(un.params),O.data=Object.freeze(un.data);let{segmentGroup:ce,slicedSegments:ln}=Ui(e,I,b,u);if(ln.length===0&&ce.hasChildren())return this.processChildren(f,u,ce,O).pipe(m(pt=>new U(O,pt)));if(u.length===0&&ln.length===0)return h(new U(O,[]));let ko=$(t)===o;return this.processSegment(f,u,ce,ln,ko?p:o,!0,O).pipe(m(pt=>new U(O,pt instanceof U?[pt]:[])))}))):De(e)))}getChildConfig(r,e,t){return e.children?h({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?h({routes:e._loadedRoutes,injector:e._loadedInjector}):sa(r,e,t,this.urlSerializer).pipe(A(i=>i?this.configLoader.loadChildren(r,e).pipe(w(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):ua(e))):h({routes:[],injector:r})}};function Ra(n){n.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function Ca(n){let r=n.value.routeConfig;return r&&r.path===""}function uo(n){let r=[],e=new Set;for(let t of n){if(!Ca(t)){r.push(t);continue}let i=r.find(o=>t.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...t.children),e.add(i)):r.push(t)}for(let t of e){let i=uo(t.children);r.push(new U(t.value,i))}return r.filter(t=>!e.has(t))}function Li(n){return n.data||{}}function xi(n){return n.resolve||{}}function wa(n,r,e,t,i,o){return A(s=>Sa(n,r,e,t,s.extractedUrl,i,o).pipe(m(({state:a,tree:c})=>N(d({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function Ia(n,r){return A(e=>{let{targetSnapshot:t,guards:{canActivateChecks:i}}=e;if(!i.length)return h(e);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of lo(c))s.add(u);let a=0;return M(s).pipe(le(c=>o.has(c)?Ea(c,t,n,r):(c.data=Kt(c,c.parent,n).resolve,h(void 0))),w(()=>a++),gn(1),A(c=>a===s.size?h(e):G))})}function lo(n){let r=n.children.map(e=>lo(e)).flat();return[n,...r]}function Ea(n,r,e,t){let i=n.routeConfig,o=n._resolve;return i?.title!==void 0&&!to(i)&&(o[ut]=i.title),vt(()=>(n.data=Kt(n,n.parent,e).resolve,_a(o,n,r,t).pipe(m(s=>(n._resolvedData=s,n.data=d(d({},n.data),s),null)))))}function _a(n,r,e,t){let i=Vn(n);if(i.length===0)return h({});let o={};return M(i).pipe(A(s=>ba(n[s],r,e,t).pipe(te(),w(a=>{if(a instanceof $e)throw Xt(new ie,a);o[s]=a}))),gn(1),m(()=>o),Z(s=>so(s)?G:ue(s)))}function ba(n,r,e,t){let i=ze(r)??t,o=He(n,i),s=o.resolve?o.resolve(r,e):j(i,()=>o(r,e));return X(s)}function Hn(n){return D(r=>{let e=n(r);return e?M(e).pipe(m(()=>r)):h(r)})}var cr=(()=>{class n{buildTitle(e){let t,i=e.root;for(;i!==void 0;)t=this.getResolvedTitleForRoute(i)??t,i=i.children.find(o=>o.outlet===p);return t}getResolvedTitleForRoute(e){return e.data[ut]}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:()=>l(ho),providedIn:"root"})}return n})(),ho=(()=>{class n extends cr{title;constructor(e){super(),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}static \u0275fac=function(t){return new(t||n)(g(Mi))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),ae=new C("",{providedIn:"root",factory:()=>({})}),ye=new C(""),nn=(()=>{class n{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(ri);loadComponent(e,t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return h(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let i=X(j(e,()=>t.loadComponent())).pipe(m(po),D(go),w(s=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=s}),Re(()=>{this.componentLoaders.delete(t)})),o=new hn(i,()=>new W).pipe(dn());return this.componentLoaders.set(t,o),o}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return h({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let o=fo(t,this.compiler,e,this.onLoadEndListener).pipe(Re(()=>{this.childrenLoaders.delete(t)})),s=new hn(o,()=>new W).pipe(dn());return this.childrenLoaders.set(t,s),s}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function fo(n,r,e,t){return X(j(e,()=>n.loadChildren())).pipe(m(po),D(go),A(i=>i instanceof Wr||Array.isArray(i)?h(i):M(r.compileModuleAsync(i))),m(i=>{t&&t(n);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(ye,[],{optional:!0,self:!0}).flat()),{routes:s.map(ar),injector:o}}))}function Ta(n){return n&&typeof n=="object"&&"default"in n}function po(n){return Ta(n)?n.default:n}function go(n){return h(n)}var rn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:()=>l(Ma),providedIn:"root"})}return n})(),Ma=(()=>{class n{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),ur=new C(""),lr=new C("");function mo(n,r,e){let t=n.get(lr),i=n.get(_);if(!i.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),Aa(n)));a.ready.catch(u=>{});let{onViewTransitionCreated:c}=t;return c&&j(n,()=>c({transition:a,from:r,to:e})),s}function Aa(n){return new Promise(r=>{Yr({read:()=>setTimeout(r)},{injector:n})})}var dr=new C(""),on=(()=>{class n{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new W;transitionAbortWithErrorSubject=new W;configLoader=l(nn);environmentInjector=l(he);destroyRef=l(Tr);urlSerializer=l(ve);rootContexts=l(Se);location=l(Me);inputBindingEnabled=l(lt,{optional:!0})!==null;titleStrategy=l(cr);options=l(ae,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(rn);createViewTransition=l(ur,{optional:!0});navigationErrorHandler=l(dr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>h(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Bt(i)),t=i=>this.events.next(new Vt(i));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;this.transitions?.next(N(d({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:t}))}setupNavigations(e){return this.transitions=new x(null),this.transitions.pipe(Y(t=>t!==null),D(t=>{let i=!1;return h(t).pipe(D(o=>{if(this.navigationId>t.id)return this.cancelNavigationTransition(t,"",T.SupersededByNewNavigation),G;this.currentTransition=t,this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?N(d({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()};let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new B(o.id,this.urlSerializer.serialize(o.rawUrl),"",Le.IgnoredSameUrlNavigation)),o.resolve(!1),G;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return h(o).pipe(D(c=>(this.events.next(new se(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?G:Promise.resolve(c))),wa(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),w(c=>{t.targetSnapshot=c.targetSnapshot,t.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation=N(d({},this.currentNavigation),{finalUrl:c.urlAfterRedirects});let u=new nt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:c,extractedUrl:u,source:f,restoredState:R,extras:I}=o,b=new se(c,this.urlSerializer.serialize(u),f,R);this.events.next(b);let O=Ji(this.rootComponentType).snapshot;return this.currentTransition=t=N(d({},o),{targetSnapshot:O,urlAfterRedirects:u,extras:N(d({},I),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=u,h(t)}else return this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Le.IgnoredByUrlHandlingStrategy)),o.resolve(!1),G}),w(o=>{let s=new $t(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),m(o=>(this.currentTransition=t=N(d({},o),{guards:zs(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),t)),Xs(this.environmentInjector,o=>this.events.next(o)),w(o=>{if(t.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw Xt(this.urlSerializer,o.guardsResult);let s=new Ft(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),Y(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",T.GuardRejected),!1)),Hn(o=>{if(o.guards.canActivateChecks.length!==0)return h(o).pipe(w(s=>{let a=new zt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),D(s=>{let a=!1;return h(s).pipe(Ia(this.paramsInheritanceStrategy,this.environmentInjector),w({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",T.NoDataFromResolver)}}))}),w(s=>{let a=new Ht(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),Hn(o=>{let s=a=>{let c=[];if(a.routeConfig?.loadComponent&&!a.routeConfig._loadedComponent){let u=ze(a)??this.environmentInjector;c.push(this.configLoader.loadComponent(u,a.routeConfig).pipe(w(f=>{a.component=f}),m(()=>{})))}for(let u of a.children)c.push(...s(u));return c};return mt(s(o.targetSnapshot.root)).pipe(pn(null),ee(1))}),Hn(()=>this.afterPreactivation()),D(()=>{let{currentSnapshot:o,targetSnapshot:s}=t,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?M(a).pipe(m(()=>t)):h(t)}),m(o=>{let s=xs(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=t=N(d({},o),{targetRouterState:s}),this.currentNavigation.targetRouterState=s,t}),w(()=>{this.events.next(new rt)}),Fs(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),ee(1),mn(new mr(o=>{let s=t.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(Y(()=>!i&&!t.targetRouterState),w(()=>{this.cancelNavigationTransition(t,t.abortController.signal.reason+"",T.Aborted)}))),w({next:o=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new k(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),mn(this.transitionAbortWithErrorSubject.pipe(w(o=>{throw o}))),Re(()=>{i||this.cancelNavigationTransition(t,"",T.SupersededByNewNavigation),this.currentTransition?.id===t.id&&(this.currentNavigation=null,this.currentTransition=null)}),Z(o=>{if(this.destroyed)return t.resolve(!1),G;if(i=!0,oo(o))this.events.next(new z(t.id,this.urlSerializer.serialize(t.extractedUrl),o.message,o.cancellationCode)),$s(o)?this.events.next(new ke(o.url,o.navigationBehaviorOptions)):t.resolve(!1);else{let s=new xe(t.id,this.urlSerializer.serialize(t.extractedUrl),o,t.targetSnapshot??void 0);try{let a=j(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof $e){let{message:c,cancellationCode:u}=Xt(this.urlSerializer,a);this.events.next(new z(t.id,this.urlSerializer.serialize(t.extractedUrl),c,u)),this.events.next(new ke(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?t.resolve(!1):t.reject(a)}}return G}))}))}cancelNavigationTransition(e,t,i){let o=new z(e.id,this.urlSerializer.serialize(e.extractedUrl),t,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==t?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Da(n){return n!==Pe}var vo=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:()=>l(Oa),providedIn:"root"})}return n})(),en=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},Oa=(()=>{class n extends en{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Sn(n)))(i||n)}})();static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),So=(()=>{class n{urlSerializer=l(ve);options=l(ae,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=l(Me);urlHandlingStrategy=l(rn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new H;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:t,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,t):t,s=i??o;return s instanceof H?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:t,initialUrl:i}){t&&e?(this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(t,i),this.routerState=e):this.rawUrlTree=i}routerState=Ji(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:()=>l(Na),providedIn:"root"})}return n})(),Na=(()=>{class n extends So{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(t=>{t.type==="popstate"&&setTimeout(()=>{e(t.url,t.state,"popstate")})})}handleRouterEvent(e,t){e instanceof se?this.updateStateMemento():e instanceof B?this.commitTransition(t):e instanceof nt?this.urlUpdateStrategy==="eager"&&(t.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof rt?(this.commitTransition(t),this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof z&&e.code!==T.SupersededByNewNavigation&&e.code!==T.Redirect?this.restoreHistory(t):e instanceof xe?this.restoreHistory(t,!0):e instanceof k&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:t,id:i}){let{replaceUrl:o,state:s}=t;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,c=d(d({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",c)}else{let a=d(d({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Sn(n)))(i||n)}})();static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function sn(n,r){n.events.pipe(Y(e=>e instanceof k||e instanceof z||e instanceof xe||e instanceof B),m(e=>e instanceof k||e instanceof B?0:(e instanceof z?e.code===T.Redirect||e.code===T.SupersededByNewNavigation:!1)?2:1),Y(e=>e!==2),ee(1)).subscribe(()=>{r()})}var Pa={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ua={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},q=(()=>{class n{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(wn);stateManager=l(So);options=l(ae,{optional:!0})||{};pendingTasks=l(Ar);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(on);urlSerializer=l(ve);location=l(Me);urlHandlingStrategy=l(rn);injector=l(he);_events=new W;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(vo);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(ye,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(lt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new gt;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(t=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(t,o),t instanceof z&&t.code!==T.Redirect&&t.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof k)this.navigated=!0;else if(t instanceof ke){let s=t.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(t.url,i.currentRawUrl),c=d({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Da(i.source)},s);this.scheduleNavigation(a,Pe,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Ns(t)&&this._events.next(t)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Pe,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t,i)=>{this.navigateToSyncWithBrowser(e,i,t)})}navigateToSyncWithBrowser(e,t,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=d({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,t,s,o).catch(c=>{this.disposed||this.injector.get(St)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(ar),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,t={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=t,u=c?this.currentUrlTree.fragment:s,f=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":f=d(d({},this.currentUrlTree.queryParams),o);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=o||null}f!==null&&(f=this.removeEmptyProps(f));let R;try{let I=i?i.snapshot:this.routerState.snapshot.root;R=Zi(I)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),R=this.currentUrlTree.root}return Qi(R,e,f,u??null)}navigateByUrl(e,t={skipLocationChange:!1}){let i=oe(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Pe,null,t)}navigate(e,t={skipLocationChange:!1}){return La(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let i;if(t===!0?i=d({},Pa):t===!1?i=d({},Ua):i=t,oe(e))return Di(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Di(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((t,[i,o])=>(o!=null&&(t[i]=o),t),{})}scheduleNavigation(e,t,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((R,I)=>{a=R,c=I});let f=this.pendingTasks.add();return sn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(R=>Promise.reject(R))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function La(n){for(let r=0;r<n.length;r++)if(n[r]==null)throw new y(4008,!1)}var yo=(()=>{class n{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Mr(null);get href(){return ii(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new W;applicationErrorHandler=l(St);options=l(ae,{optional:!0});constructor(e,t,i,o,s,a){this.router=e,this.route=t,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(l(new Tt("href"),{optional:!0}));let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,t=i=>i==="merge"||i==="preserve";e||=t(this.queryParamsHandling),e||=!this.queryParamsHandling&&!t(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(i=>{i instanceof k&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(oe(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,t,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||t||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,t){let i=this.renderer,o=this.el.nativeElement;t!==null?i.setAttribute(o,e,t):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:oe(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(t){return new(t||n)(Ie(q),Ie(V),Dr("tabindex"),Ie(Hr),Ie(Rt),Ie(Te))};static \u0275dir=It({type:n,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(t,i){t&1&&Xr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),t&2&&bt("href",i.reactiveHref(),Fr)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",_e],skipLocationChange:[2,"skipLocationChange","skipLocationChange",_e],replaceUrl:[2,"replaceUrl","replaceUrl",_e],routerLink:"routerLink"},features:[yt]})}return n})();var ht=class{};var Ro=(()=>{class n{router;injector;preloadingStrategy;loader;subscription;constructor(e,t,i,o){this.router=e,this.injector=t,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Y(e=>e instanceof k),le(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){let i=[];for(let o of t){o.providers&&!o._injector&&(o._injector=Ct(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return M(i).pipe(fn())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let i;t.loadChildren&&t.canLoad===void 0?i=this.loader.loadChildren(e,t):i=h(null);let o=i.pipe(A(s=>s===null?h(void 0):(t._loadedRoutes=s.routes,t._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(t.loadComponent&&!t._loadedComponent){let s=this.loader.loadComponent(e,t);return M([o,s]).pipe(fn())}else return o})}static \u0275fac=function(t){return new(t||n)(g(q),g(he),g(ht),g(nn))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Co=new C(""),xa=(()=>{class n{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Pe;restoredId=0;store={};constructor(e,t,i,o,s={}){this.urlSerializer=e,this.transitions=t,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof se?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof k?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof B&&e.code===Le.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof je&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.zone.runOutsideAngular(()=>pr(this,null,function*(){yield new Promise(i=>{setTimeout(i),typeof requestAnimationFrame<"u"&&requestAnimationFrame(i)}),this.zone.run(()=>{this.transitions.events.next(new je(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,t))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(t){Br()};static \u0275prov=v({token:n,factory:n.\u0275fac})}return n})();function ja(n,...r){return vn([{provide:ye,multi:!0,useValue:n},[],{provide:V,useFactory:wo,deps:[q]},{provide:_n,multi:!0,useFactory:Io},r.map(e=>e.\u0275providers)])}function wo(n){return n.routerState.root}function Be(n,r){return{\u0275kind:n,\u0275providers:r}}function Io(){let n=l(Ve);return r=>{let e=n.get(bn);if(r!==e.components[0])return;let t=n.get(q),i=n.get(Eo);n.get(fr)===1&&t.initialNavigation(),n.get(To,null,{optional:!0})?.setUpPreloading(),n.get(Co,null,{optional:!0})?.init(),t.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Eo=new C("",{factory:()=>new W}),fr=new C("",{providedIn:"root",factory:()=>1});function _o(){let n=[{provide:fr,useValue:0},En(()=>{let r=l(Ve);return r.get(di,Promise.resolve()).then(()=>new Promise(t=>{let i=r.get(q),o=r.get(Eo);sn(i,()=>{t(!0)}),r.get(on).afterPreactivation=()=>(t(!0),o.closed?h(void 0):o),i.initialNavigation()}))})];return Be(2,n)}function bo(){let n=[En(()=>{l(q).setUpLocationChangeListener()}),{provide:fr,useValue:2}];return Be(3,n)}var To=new C("");function Mo(n){return Be(0,[{provide:To,useExisting:Ro},{provide:ht,useExisting:n}])}function ka(){return Be(6,[{provide:Te,useClass:Mn}])}function Ao(){return Be(8,[or,{provide:lt,useExisting:or}])}function Do(n){qr("NgRouterViewTransitions");let r=[{provide:ur,useValue:mo},{provide:lr,useValue:d({skipNextTransition:!!n?.skipInitialTransition},n)}];return Be(9,r)}var Oo=[Me,{provide:ve,useClass:ie},q,Se,{provide:V,useFactory:wo,deps:[q]},nn,[]],$a=(()=>{class n{constructor(){}static forRoot(e,t){return{ngModule:n,providers:[Oo,[],{provide:ye,multi:!0,useValue:e},[],t?.errorHandler?{provide:dr,useValue:t.errorHandler}:[],{provide:ae,useValue:t||{}},t?.useHash?za():Ha(),Fa(),t?.preloadingStrategy?Mo(t.preloadingStrategy).\u0275providers:[],t?.initialNavigation?Ba(t):[],t?.bindToComponentInputs?Ao().\u0275providers:[],t?.enableViewTransitions?Do().\u0275providers:[],Va()]}}static forChild(e){return{ngModule:n,providers:[{provide:ye,multi:!0,useValue:e}]}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=fe({type:n});static \u0275inj=de({})}return n})();function Fa(){return{provide:Co,useFactory:()=>{let n=l(vi),r=l(K),e=l(ae),t=l(on),i=l(ve);return e.scrollOffset&&n.setOffset(e.scrollOffset),new xa(i,t,n,r,e)}}}function za(){return{provide:Te,useClass:Mn}}function Ha(){return{provide:Te,useClass:hi}}function Ba(n){return[n.initialNavigation==="disabled"?bo().\u0275providers:[],n.initialNavigation==="enabledBlocking"?_o().\u0275providers:[]]}var hr=new C("");function Va(){return[{provide:hr,useFactory:Io},{provide:_n,multi:!0,useExisting:hr}]}var an;function qa(){if(an===void 0&&(an=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(an=n.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return an}function ft(n){return qa()?.createHTML(n)||n}function No(n){return Error(`Unable to find icon with the name "${n}"`)}function Wa(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Po(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Uo(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var J=class{url;svgText;options;svgElement;constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}},xo=(()=>{class n{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,t,i,o){this._httpClient=e,this._sanitizer=t,this._errorHandler=o,this._document=i}addSvgIcon(e,t,i){return this.addSvgIconInNamespace("",e,t,i)}addSvgIconLiteral(e,t,i){return this.addSvgIconLiteralInNamespace("",e,t,i)}addSvgIconInNamespace(e,t,i,o){return this._addSvgIconConfig(e,t,new J(i,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,i,o){let s=this._sanitizer.sanitize(P.HTML,i);if(!s)throw Uo(i);let a=ft(s);return this._addSvgIconConfig(e,t,new J("",a,o))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,i){return this._addSvgIconSetConfig(e,new J(t,null,i))}addSvgIconSetLiteralInNamespace(e,t,i){let o=this._sanitizer.sanitize(P.HTML,t);if(!o)throw Uo(t);let s=ft(o);return this._addSvgIconSetConfig(e,new J("",s,i))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let t=this._sanitizer.sanitize(P.RESOURCE_URL,e);if(!t)throw Po(e);let i=this._cachedIconsByUrl.get(t);return i?h(cn(i)):this._loadSvgIconFromConfig(new J(e,null)).pipe(w(o=>this._cachedIconsByUrl.set(t,o)),m(o=>cn(o)))}getNamedSvgIcon(e,t=""){let i=Lo(t,e),o=this._svgIconConfigs.get(i);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(t,e),o)return this._svgIconConfigs.set(i,o),this._getSvgFromConfig(o);let s=this._iconSetConfigs.get(t);return s?this._getSvgFromIconSetConfigs(e,s):ue(No(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?h(cn(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(m(t=>cn(t)))}_getSvgFromIconSetConfigs(e,t){let i=this._extractIconWithNameFromAnySet(e,t);if(i)return h(i);let o=t.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Z(a=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(P.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(u)),h(null)})));return Rr(o).pipe(m(()=>{let s=this._extractIconWithNameFromAnySet(e,t);if(!s)throw No(e);return s}))}_extractIconWithNameFromAnySet(e,t){for(let i=t.length-1;i>=0;i--){let o=t[i];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(w(t=>e.svgText=t),m(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?h(null):this._fetchIcon(e).pipe(w(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,i){let o=e.querySelector(`[id="${t}"]`);if(!o)return null;let s=o.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,i);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),i);let a=this._svgElementFromString(ft("<svg></svg>"));return a.appendChild(s),this._setSvgAttributes(a,i)}_svgElementFromString(e){let t=this._document.createElement("DIV");t.innerHTML=e;let i=t.querySelector("svg");if(!i)throw Error("<svg> tag not found");return i}_toSvgElement(e){let t=this._svgElementFromString(ft("<svg></svg>")),i=e.attributes;for(let o=0;o<i.length;o++){let{name:s,value:a}=i[o];s!=="id"&&t.setAttribute(s,a)}for(let o=0;o<e.childNodes.length;o++)e.childNodes[o].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[o].cloneNode(!0));return t}_setSvgAttributes(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}_fetchIcon(e){let{url:t,options:i}=e,o=i?.withCredentials??!1;if(!this._httpClient)throw Wa();if(t==null)throw Error(`Cannot fetch icon from URL "${t}".`);let s=this._sanitizer.sanitize(P.RESOURCE_URL,t);if(!s)throw Po(t);let a=this._inProgressUrlFetches.get(s);if(a)return a;let c=this._httpClient.get(s,{responseType:"text",withCredentials:o}).pipe(m(u=>ft(u)),Re(()=>this._inProgressUrlFetches.delete(s)),Ir());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,t,i){return this._svgIconConfigs.set(Lo(e,t),i),this}_addSvgIconSetConfig(e,t){let i=this._iconSetConfigs.get(e);return i?i.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){let t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let i=0;i<this._resolvers.length;i++){let o=this._resolvers[i](t,e);if(o)return Ga(o)?new J(o.url,null,o.options):new J(o,null)}}static \u0275fac=function(t){return new(t||n)(g(Si,8),g(kn),g(_,8),g(ne))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function cn(n){return n.cloneNode(!0)}function Lo(n,r){return n+":"+r}function Ga(n){return!!(n.url&&n.options)}var Ya=["*"],Za=new C("MAT_ICON_DEFAULT_OPTIONS"),Qa=new C("mat-icon-location",{providedIn:"root",factory:Ka});function Ka(){let n=l(_),r=n?n.location:null;return{getPathname:()=>r?r.pathname+r.search:""}}var jo=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Xa=jo.map(n=>`[${n}]`).join(", "),Ja=/^url\(['"]?#(.*?)['"]?\)$/,Zu=(()=>{class n{_elementRef=l(Rt);_iconRegistry=l(xo);_location=l(Qa);_errorHandler=l(ne);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=gt.EMPTY;constructor(){let e=l(new Tt("aria-hidden"),{optional:!0}),t=l(Za,{optional:!0});t&&(t.color&&(this.color=this._defaultColor=t.color),t.fontSet&&(this.fontSet=t.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){let i=e.childNodes[t];(i.nodeType!==1||i.nodeName.toLowerCase()==="svg")&&i.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(i=>i.length>0);this._previousFontSetClass.forEach(i=>e.classList.remove(i)),t.forEach(i=>e.classList.add(i)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let t=this._elementsWithExternalReferences;t&&t.forEach((i,o)=>{i.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let t=e.querySelectorAll(Xa),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<t.length;o++)jo.forEach(s=>{let a=t[o],c=a.getAttribute(s),u=c?c.match(Ja):null;if(u){let f=i.get(a);f||(f=[],i.set(a,f)),f.push({name:s,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[t,i]=this._splitIconName(e);t&&(this._svgNamespace=t),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,t).pipe(ee(1)).subscribe(o=>this._setSvgElement(o),o=>{let s=`Error retrieving icon ${t}:${i}! ${o.message}`;this._errorHandler.handleError(new Error(s))})}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=wt({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(t,i){t&2&&(bt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),ni(i.color?"mat-"+i.color:""),ti("mat-icon-inline",i.inline)("mat-icon-no-color",i.color!=="primary"&&i.color!=="accent"&&i.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",_e],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:Ya,decls:1,vars:0,template:function(t,i){t&1&&(Jr(),ei(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}
2
- `],encapsulation:2,changeDetection:0})}return n})(),Qu=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=fe({type:n});static \u0275inj=de({imports:[An,An]})}return n})();export{jn as a,Ko as b,is as c,kn as d,V as e,ir as f,q as g,yo as h,ja as i,ka as j,$a as k,xo as l,Zu as m,Qu as n};
@@ -1 +0,0 @@
1
- import{g as c,m as p,n as u}from"./chunk-TXPLRBW5.js";import{Ac as s,De as h,Ie as f,Zb as a,_b as n,ad as g,ic as d,lb as r,ta as l,wb as m,zc as i}from"./chunk-35L7BBBD.js";var w=(()=>{class e{pageTitle=g();_router=l(c);closePage(){this._router.navigate(["/dashboard"])}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=m({type:e,selectors:[["page-header"]],inputs:{pageTitle:[1,"pageTitle"]},decls:6,vars:1,consts:[[1,"fullpage-header"],[1,"fullpage-header-title"],["mat-icon-button","",1,"dialog-close-icon",3,"click"]],template:function(t,o){t&1&&(a(0,"div",0)(1,"h6",1),i(2),n(),a(3,"button",2),d("click",function(){return o.closePage()}),a(4,"mat-icon"),i(5,"close"),n()()()),t&2&&(r(2),s(o.pageTitle()))},dependencies:[f,h,u,p],styles:[".fullpage-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline}.fullpage-header-title[_ngcontent-%COMP%]{margin-block-start:0px;margin-block-end:0px;padding:18px 24px 13px;color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, .87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, .03125em))}.dialog-close-icon[_ngcontent-%COMP%]{margin-right:15px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:max-content}.dialog-content-padding[_ngcontent-%COMP%]{--mat-dialog-content-padding: 0px 24px 20px 24px}"]})}return e})();export{w as a};
@@ -1,2 +0,0 @@
1
- import{i as ve,p as be}from"./chunk-TA4GACKT.js";import{d as tt,e as rt,oa as ye,ta as Z}from"./chunk-35L7BBBD.js";var we=tt(($,Q)=>{(function(f,R){typeof $=="object"&&typeof Q<"u"?Q.exports=R():typeof define=="function"&&define.amd?define(R):(f=typeof globalThis<"u"?globalThis:f||self,f.Qty=R())})($,function(){"use strict";function f(e){return typeof e=="string"||e instanceof String}var R=Number.isFinite||window.isFinite;function n(e){return R(e)}function l(e){return e}function p(e){var t={};return e.filter(function(r){return t.hasOwnProperty(r)?!1:t[r]=!0})}function c(e,t){if(t.length!==e.length)return!1;for(var r=0;r<e.length;r++)if(t[r].compareArray&&!t[r].compareArray(e[r])||t[r]!==e[r])return!1;return!0}function y(e,t){Object.keys(t).forEach(function(r){e[r]=t[r]})}function h(){for(var e=1,t=0,r=0;r<arguments.length;r++){var i=arguments[r];t=t+ee(i),e*=i}return t!==0?F(e,t):e}function x(e,t){if(t===0)throw new Error("Divide by zero");var r=Math.pow(10,ee(t)),i=r/(r*t);return h(e,i)}function F(e,t){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)}function ee(e){if(!isFinite(e))return 0;for(var t=0;e%1!==0;)e*=10,t++;return t}function m(){var e;if(!this)return e=Object.create(m.prototype),m.apply(e,arguments),e;e=Error.apply(this,arguments),this.name="QtyError",this.message=e.message,this.stack=e.stack}m.prototype=Object.create(Error.prototype,{constructor:{value:m}});function z(e,t){throw new m("Incompatible units: "+e+" and "+t)}var S={"<googol>":[["googol"],1e100,"prefix"],"<kibi>":[["Ki","Kibi","kibi"],Math.pow(2,10),"prefix"],"<mebi>":[["Mi","Mebi","mebi"],Math.pow(2,20),"prefix"],"<gibi>":[["Gi","Gibi","gibi"],Math.pow(2,30),"prefix"],"<tebi>":[["Ti","Tebi","tebi"],Math.pow(2,40),"prefix"],"<pebi>":[["Pi","Pebi","pebi"],Math.pow(2,50),"prefix"],"<exi>":[["Ei","Exi","exi"],Math.pow(2,60),"prefix"],"<zebi>":[["Zi","Zebi","zebi"],Math.pow(2,70),"prefix"],"<yebi>":[["Yi","Yebi","yebi"],Math.pow(2,80),"prefix"],"<yotta>":[["Y","Yotta","yotta"],1e24,"prefix"],"<zetta>":[["Z","Zetta","zetta"],1e21,"prefix"],"<exa>":[["E","Exa","exa"],1e18,"prefix"],"<peta>":[["P","Peta","peta"],1e15,"prefix"],"<tera>":[["T","Tera","tera"],1e12,"prefix"],"<giga>":[["G","Giga","giga"],1e9,"prefix"],"<mega>":[["M","Mega","mega"],1e6,"prefix"],"<kilo>":[["k","kilo"],1e3,"prefix"],"<hecto>":[["h","Hecto","hecto"],100,"prefix"],"<deca>":[["da","Deca","deca","deka"],10,"prefix"],"<deci>":[["d","Deci","deci"],.1,"prefix"],"<centi>":[["c","Centi","centi"],.01,"prefix"],"<milli>":[["m","Milli","milli"],.001,"prefix"],"<micro>":[["u","\u03BC","\xB5","Micro","mc","micro"],1e-6,"prefix"],"<nano>":[["n","Nano","nano"],1e-9,"prefix"],"<pico>":[["p","Pico","pico"],1e-12,"prefix"],"<femto>":[["f","Femto","femto"],1e-15,"prefix"],"<atto>":[["a","Atto","atto"],1e-18,"prefix"],"<zepto>":[["z","Zepto","zepto"],1e-21,"prefix"],"<yocto>":[["y","Yocto","yocto"],1e-24,"prefix"],"<1>":[["1","<1>"],1,""],"<meter>":[["m","meter","meters","metre","metres"],1,"length",["<meter>"]],"<inch>":[["in","inch","inches",'"'],.0254,"length",["<meter>"]],"<foot>":[["ft","foot","feet","'"],.3048,"length",["<meter>"]],"<yard>":[["yd","yard","yards"],.9144,"length",["<meter>"]],"<mile>":[["mi","mile","miles"],1609.344,"length",["<meter>"]],"<naut-mile>":[["nmi","naut-mile"],1852,"length",["<meter>"]],"<league>":[["league","leagues"],4828,"length",["<meter>"]],"<furlong>":[["furlong","furlongs"],201.2,"length",["<meter>"]],"<rod>":[["rd","rod","rods"],5.029,"length",["<meter>"]],"<mil>":[["mil","mils"],254e-7,"length",["<meter>"]],"<angstrom>":[["ang","angstrom","angstroms"],1e-10,"length",["<meter>"]],"<fathom>":[["fathom","fathoms"],1.829,"length",["<meter>"]],"<pica>":[["pica","picas"],.00423333333,"length",["<meter>"]],"<point>":[["pt","point","points"],.000352777778,"length",["<meter>"]],"<redshift>":[["z","red-shift","redshift"],1302773e20,"length",["<meter>"]],"<AU>":[["AU","astronomical-unit"],1495979e5,"length",["<meter>"]],"<light-second>":[["ls","light-second"],299792500,"length",["<meter>"]],"<light-minute>":[["lmin","light-minute"],1798755e4,"length",["<meter>"]],"<light-year>":[["ly","light-year"],9460528e9,"length",["<meter>"]],"<parsec>":[["pc","parsec","parsecs"],3085678e10,"length",["<meter>"]],"<datamile>":[["DM","datamile"],1828.8,"length",["<meter>"]],"<kilogram>":[["kg","kilogram","kilograms"],1,"mass",["<kilogram>"]],"<AMU>":[["u","AMU","amu"],1660538921e-36,"mass",["<kilogram>"]],"<dalton>":[["Da","Dalton","Daltons","dalton","daltons"],1660538921e-36,"mass",["<kilogram>"]],"<slug>":[["slug","slugs"],14.5939029,"mass",["<kilogram>"]],"<short-ton>":[["tn","ton","short-ton"],907.18474,"mass",["<kilogram>"]],"<metric-ton>":[["t","tonne","metric-ton"],1e3,"mass",["<kilogram>"]],"<carat>":[["ct","carat","carats"],2e-4,"mass",["<kilogram>"]],"<pound>":[["lbs","lb","pound","pounds","#"],.45359237,"mass",["<kilogram>"]],"<ounce>":[["oz","ounce","ounces"],.0283495231,"mass",["<kilogram>"]],"<gram>":[["g","gram","grams","gramme","grammes"],.001,"mass",["<kilogram>"]],"<grain>":[["grain","grains","gr"],6479891e-11,"mass",["<kilogram>"]],"<dram>":[["dram","drams","dr"],.0017718452,"mass",["<kilogram>"]],"<stone>":[["stone","stones","st"],6.35029318,"mass",["<kilogram>"]],"<hectare>":[["hectare"],1e4,"area",["<meter>","<meter>"]],"<acre>":[["acre","acres"],4046.85642,"area",["<meter>","<meter>"]],"<sqft>":[["sqft"],1,"area",["<foot>","<foot>"]],"<liter>":[["l","L","liter","liters","litre","litres"],.001,"volume",["<meter>","<meter>","<meter>"]],"<gallon>":[["gal","gallon","gallons"],.0037854118,"volume",["<meter>","<meter>","<meter>"]],"<gallon-imp>":[["galimp","gallon-imp","gallons-imp"],.00454609,"volume",["<meter>","<meter>","<meter>"]],"<quart>":[["qt","quart","quarts"],.00094635295,"volume",["<meter>","<meter>","<meter>"]],"<pint>":[["pt","pint","pints"],.000473176475,"volume",["<meter>","<meter>","<meter>"]],"<pint-imp>":[["ptimp","pint-imp","pints-imp"],.00056826125,"volume",["<meter>","<meter>","<meter>"]],"<cup>":[["cu","cup","cups"],.000236588238,"volume",["<meter>","<meter>","<meter>"]],"<fluid-ounce>":[["floz","fluid-ounce","fluid-ounces"],295735297e-13,"volume",["<meter>","<meter>","<meter>"]],"<fluid-ounce-imp>":[["flozimp","floz-imp","fluid-ounce-imp","fluid-ounces-imp"],284130625e-13,"volume",["<meter>","<meter>","<meter>"]],"<tablespoon>":[["tb","tbsp","tbs","tablespoon","tablespoons"],147867648e-13,"volume",["<meter>","<meter>","<meter>"]],"<teaspoon>":[["tsp","teaspoon","teaspoons"],492892161e-14,"volume",["<meter>","<meter>","<meter>"]],"<bushel>":[["bu","bsh","bushel","bushels"],.035239072,"volume",["<meter>","<meter>","<meter>"]],"<oilbarrel>":[["bbl","oilbarrel","oilbarrels","oil-barrel","oil-barrels"],.158987294928,"volume",["<meter>","<meter>","<meter>"]],"<beerbarrel>":[["bl","bl-us","beerbarrel","beerbarrels","beer-barrel","beer-barrels"],.1173477658,"volume",["<meter>","<meter>","<meter>"]],"<beerbarrel-imp>":[["blimp","bl-imp","beerbarrel-imp","beerbarrels-imp","beer-barrel-imp","beer-barrels-imp"],.16365924,"volume",["<meter>","<meter>","<meter>"]],"<kph>":[["kph"],.277777778,"speed",["<meter>"],["<second>"]],"<mph>":[["mph"],.44704,"speed",["<meter>"],["<second>"]],"<knot>":[["kt","kn","kts","knot","knots"],.514444444,"speed",["<meter>"],["<second>"]],"<fps>":[["fps"],.3048,"speed",["<meter>"],["<second>"]],"<gee>":[["gee"],9.80665,"acceleration",["<meter>"],["<second>","<second>"]],"<Gal>":[["Gal"],.01,"acceleration",["<meter>"],["<second>","<second>"]],"<kelvin>":[["degK","kelvin"],1,"temperature",["<kelvin>"]],"<celsius>":[["degC","celsius","celsius","centigrade"],1,"temperature",["<kelvin>"]],"<fahrenheit>":[["degF","fahrenheit"],5/9,"temperature",["<kelvin>"]],"<rankine>":[["degR","rankine"],5/9,"temperature",["<kelvin>"]],"<temp-K>":[["tempK","temp-K"],1,"temperature",["<temp-K>"]],"<temp-C>":[["tempC","temp-C"],1,"temperature",["<temp-K>"]],"<temp-F>":[["tempF","temp-F"],5/9,"temperature",["<temp-K>"]],"<temp-R>":[["tempR","temp-R"],5/9,"temperature",["<temp-K>"]],"<second>":[["s","sec","secs","second","seconds"],1,"time",["<second>"]],"<minute>":[["min","mins","minute","minutes"],60,"time",["<second>"]],"<hour>":[["h","hr","hrs","hour","hours"],3600,"time",["<second>"]],"<day>":[["d","day","days"],3600*24,"time",["<second>"]],"<week>":[["wk","week","weeks"],7*3600*24,"time",["<second>"]],"<fortnight>":[["fortnight","fortnights"],1209600,"time",["<second>"]],"<year>":[["y","yr","year","years","annum"],31556926,"time",["<second>"]],"<decade>":[["decade","decades"],315569260,"time",["<second>"]],"<century>":[["century","centuries"],3155692600,"time",["<second>"]],"<pascal>":[["Pa","pascal","Pascal"],1,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<bar>":[["bar","bars"],1e5,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<mmHg>":[["mmHg"],133.322368,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<inHg>":[["inHg"],3386.3881472,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<torr>":[["torr"],133.322368,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<atm>":[["atm","ATM","atmosphere","atmospheres"],101325,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<psi>":[["psi"],6894.76,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<cmh2o>":[["cmH2O","cmh2o"],98.0638,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<inh2o>":[["inH2O","inh2o"],249.082052,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<poise>":[["P","poise"],.1,"viscosity",["<kilogram>"],["<meter>","<second>"]],"<stokes>":[["St","stokes"],1e-4,"viscosity",["<meter>","<meter>"],["<second>"]],"<mole>":[["mol","mole"],1,"substance",["<mole>"]],"<molar>":[["M","molar"],1e3,"molar_concentration",["<mole>"],["<meter>","<meter>","<meter>"]],"<wtpercent>":[["wt%","wtpercent"],10,"molar_concentration",["<kilogram>"],["<meter>","<meter>","<meter>"]],"<katal>":[["kat","katal","Katal"],1,"activity",["<mole>"],["<second>"]],"<unit>":[["U","enzUnit","unit"],16667e-19,"activity",["<mole>"],["<second>"]],"<farad>":[["F","farad","Farad"],1,"capacitance",["<second>","<second>","<second>","<second>","<ampere>","<ampere>"],["<meter>","<meter>","<kilogram>"]],"<coulomb>":[["C","coulomb","Coulomb"],1,"charge",["<ampere>","<second>"]],"<Ah>":[["Ah"],3600,"charge",["<ampere>","<second>"]],"<ampere>":[["A","Ampere","ampere","amp","amps"],1,"current",["<ampere>"]],"<siemens>":[["S","Siemens","siemens"],1,"conductance",["<second>","<second>","<second>","<ampere>","<ampere>"],["<kilogram>","<meter>","<meter>"]],"<henry>":[["H","Henry","henry"],1,"inductance",["<meter>","<meter>","<kilogram>"],["<second>","<second>","<ampere>","<ampere>"]],"<volt>":[["V","Volt","volt","volts"],1,"potential",["<meter>","<meter>","<kilogram>"],["<second>","<second>","<second>","<ampere>"]],"<ohm>":[["Ohm","ohm","\u03A9","\u2126"],1,"resistance",["<meter>","<meter>","<kilogram>"],["<second>","<second>","<second>","<ampere>","<ampere>"]],"<weber>":[["Wb","weber","webers"],1,"magnetism",["<meter>","<meter>","<kilogram>"],["<second>","<second>","<ampere>"]],"<tesla>":[["T","tesla","teslas"],1,"magnetism",["<kilogram>"],["<second>","<second>","<ampere>"]],"<gauss>":[["G","gauss"],1e-4,"magnetism",["<kilogram>"],["<second>","<second>","<ampere>"]],"<maxwell>":[["Mx","maxwell","maxwells"],1e-8,"magnetism",["<meter>","<meter>","<kilogram>"],["<second>","<second>","<ampere>"]],"<oersted>":[["Oe","oersted","oersteds"],250/Math.PI,"magnetism",["<ampere>"],["<meter>"]],"<joule>":[["J","joule","Joule","joules","Joules"],1,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<erg>":[["erg","ergs"],1e-7,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<btu>":[["BTU","btu","BTUs"],1055.056,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<calorie>":[["cal","calorie","calories"],4.184,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<Calorie>":[["Cal","Calorie","Calories"],4184,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<therm-US>":[["th","therm","therms","Therm","therm-US"],105480400,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<Wh>":[["Wh"],3600,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<electronvolt>":[["eV","electronvolt","electronvolts"],1602176634e-28,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<newton>":[["N","Newton","newton"],1,"force",["<kilogram>","<meter>"],["<second>","<second>"]],"<dyne>":[["dyn","dyne"],1e-5,"force",["<kilogram>","<meter>"],["<second>","<second>"]],"<pound-force>":[["lbf","pound-force"],4.448222,"force",["<kilogram>","<meter>"],["<second>","<second>"]],"<hertz>":[["Hz","hertz","Hertz"],1,"frequency",["<1>"],["<second>"]],"<radian>":[["rad","radian","radians"],1,"angle",["<radian>"]],"<degree>":[["deg","degree","degrees"],Math.PI/180,"angle",["<radian>"]],"<arcminute>":[["arcmin","arcminute","arcminutes"],Math.PI/10800,"angle",["<radian>"]],"<arcsecond>":[["arcsec","arcsecond","arcseconds"],Math.PI/648e3,"angle",["<radian>"]],"<gradian>":[["gon","grad","gradian","grads"],Math.PI/200,"angle",["<radian>"]],"<steradian>":[["sr","steradian","steradians"],1,"solid_angle",["<steradian>"]],"<rotation>":[["rotation"],2*Math.PI,"angle",["<radian>"]],"<rpm>":[["rpm"],2*Math.PI/60,"angular_velocity",["<radian>"],["<second>"]],"<byte>":[["B","byte","bytes"],1,"information",["<byte>"]],"<bit>":[["b","bit","bits"],.125,"information",["<byte>"]],"<Bps>":[["Bps"],1,"information_rate",["<byte>"],["<second>"]],"<bps>":[["bps"],.125,"information_rate",["<byte>"],["<second>"]],"<dollar>":[["USD","dollar"],1,"currency",["<dollar>"]],"<cents>":[["cents"],.01,"currency",["<dollar>"]],"<candela>":[["cd","candela"],1,"luminosity",["<candela>"]],"<lumen>":[["lm","lumen"],1,"luminous_power",["<candela>","<steradian>"]],"<lux>":[["lux"],1,"illuminance",["<candela>","<steradian>"],["<meter>","<meter>"]],"<watt>":[["W","watt","watts"],1,"power",["<kilogram>","<meter>","<meter>"],["<second>","<second>","<second>"]],"<volt-ampere>":[["VA","volt-ampere"],1,"power",["<kilogram>","<meter>","<meter>"],["<second>","<second>","<second>"]],"<volt-ampere-reactive>":[["var","Var","VAr","VAR","volt-ampere-reactive"],1,"power",["<kilogram>","<meter>","<meter>"],["<second>","<second>","<second>"]],"<horsepower>":[["hp","horsepower"],745.699872,"power",["<kilogram>","<meter>","<meter>"],["<second>","<second>","<second>"]],"<gray>":[["Gy","gray","grays"],1,"radiation",["<meter>","<meter>"],["<second>","<second>"]],"<roentgen>":[["R","roentgen"],.00933,"radiation",["<meter>","<meter>"],["<second>","<second>"]],"<sievert>":[["Sv","sievert","sieverts"],1,"radiation",["<meter>","<meter>"],["<second>","<second>"]],"<becquerel>":[["Bq","becquerel","becquerels"],1,"radiation",["<1>"],["<second>"]],"<curie>":[["Ci","curie","curies"],37e9,"radiation",["<1>"],["<second>"]],"<cpm>":[["cpm"],1/60,"rate",["<count>"],["<second>"]],"<dpm>":[["dpm"],1/60,"rate",["<count>"],["<second>"]],"<bpm>":[["bpm"],1/60,"rate",["<count>"],["<second>"]],"<dot>":[["dot","dots"],1,"resolution",["<each>"]],"<pixel>":[["pixel","px"],1,"resolution",["<each>"]],"<ppi>":[["ppi"],1,"resolution",["<pixel>"],["<inch>"]],"<dpi>":[["dpi"],1,"typography",["<dot>"],["<inch>"]],"<cell>":[["cells","cell"],1,"counting",["<each>"]],"<each>":[["each"],1,"counting",["<each>"]],"<count>":[["count"],1,"counting",["<each>"]],"<base-pair>":[["bp","base-pair"],1,"counting",["<each>"]],"<nucleotide>":[["nt","nucleotide"],1,"counting",["<each>"]],"<molecule>":[["molecule","molecules"],1,"counting",["<1>"]],"<dozen>":[["doz","dz","dozen"],12,"prefix_only",["<each>"]],"<percent>":[["%","percent"],.01,"prefix_only",["<1>"]],"<ppm>":[["ppm"],1e-6,"prefix_only",["<1>"]],"<ppb>":[["ppb"],1e-9,"prefix_only",["<1>"]],"<ppt>":[["ppt"],1e-12,"prefix_only",["<1>"]],"<ppq>":[["ppq"],1e-15,"prefix_only",["<1>"]],"<gross>":[["gr","gross"],144,"prefix_only",["<dozen>","<dozen>"]],"<decibel>":[["dB","decibel","decibels"],1,"logarithmic",["<decibel>"]]},ke=["<meter>","<kilogram>","<second>","<mole>","<ampere>","<radian>","<kelvin>","<temp-K>","<byte>","<dollar>","<candela>","<each>","<steradian>","<decibel>"],K="<1>",b=[K];function Ce(e,t){var r=t[1],i=t[3]||[],s=t[4]||[];if(!n(r))throw new m(e+": Invalid unit definition. 'scalar' must be a number");i.forEach(function(a){if(S[a]===void 0)throw new m(e+": Invalid unit definition. Unit "+a+" in 'numerator' is not recognized")}),s.forEach(function(a){if(S[a]===void 0)throw new m(e+": Invalid unit definition. Unit "+a+" in 'denominator' is not recognized")})}var U={},N={},k={},P={},I={};for(var _ in S)if(S.hasOwnProperty(_)){var M=S[_];if(M[2]==="prefix"){U[_]=M[1];for(var G=0;G<M[0].length;G++)N[M[0][G]]=_}else{Ce(_,M),k[_]={scalar:M[1],numerator:M[3],denominator:M[4]};for(var O=0;O<M[0].length;O++)P[M[0][O]]=_}I[_]=M[0][0]}function Se(e){var t,r=[],i=Object.keys(S);if(typeof e>"u")for(t=0;t<i.length;t++)["","prefix"].indexOf(S[i[t]][2])===-1&&r.push(i[t].substr(1,i[t].length-2));else{if(this.getKinds().indexOf(e)===-1)throw new m("Kind not recognized");for(t=0;t<i.length;t++)S[i[t]][2]===e&&r.push(i[t].substr(1,i[t].length-2))}return r.sort(function(s,a){return s.toLowerCase()<a.toLowerCase()?-1:s.toLowerCase()>a.toLowerCase()?1:0})}function Me(e){if(!P[e])throw new m("Unit not recognized");return S[P[e]][0]}var L=["length","time","temperature","mass","current","substance","luminosity","currency","information","angle"];function Te(){if(this.signature)return this.signature;for(var e=te.call(this),t=0;t<e.length;t++)e[t]*=Math.pow(20,t);return e.reduce(function(r,i){return r+i},0)}function te(){if(!this.isBase())return te.call(this.toBase());for(var e=new Array(L.length),t=0;t<e.length;t++)e[t]=0;for(var r,i,s=0;s<this.numerator.length;s++)(r=S[this.numerator[s]])&&(i=L.indexOf(r[2]),i>=0&&(e[i]=e[i]+1));for(var a=0;a<this.denominator.length;a++)(r=S[this.denominator[a]])&&(i=L.indexOf(r[2]),i>=0&&(e[i]=e[i]-1));return e}var re="[+-]",W="\\d+",qe=re+"?"+W,ne="\\."+W,xe="(?:"+W+"(?:"+ne+")?)|(?:"+ne+")",Ue="[Ee]"+qe,_e="(?:"+xe+")(?:"+Ue+")?",Ae=re+"?\\s*"+_e,Ee="("+Ae+")?\\s*([^/]*)(?:/(.+))?",Pe=new RegExp("^"+Ee+"$"),ie="\\^|\\*{2}",se="[01234]",De=new RegExp("([^ \\*\\d]+?)(?:"+ie+")?(-?"+se+"(?![a-zA-Z]))"),Re=new RegExp("([^ \\*\\d]+?)(?:"+ie+")?("+se+"(?![a-zA-Z]))");function ae(e){f(e)||(e=e.toString()),e=e.trim();var t=Pe.exec(e);if(!t)throw new m(e+": Quantity not recognized");var r=t[1];r?(r=r.replace(/\s/g,""),this.scalar=parseFloat(r)):this.scalar=1;for(var i=t[2],s=t[3],a,g,d;t=De.exec(i);){if(a=parseFloat(t[2]),isNaN(a))throw new m("Unit exponent is not a number");if(a===0&&!J.test(t[1]))throw new m("Unit not recognized");g=t[1]+" ",d="";for(var v=0;v<Math.abs(a);v++)d+=g;a>=0?i=i.replace(t[0],d):(s=s?s+d:d,i=i.replace(t[0],""))}for(;t=Re.exec(s);){if(a=parseFloat(t[2]),isNaN(a))throw new m("Unit exponent is not a number");if(a===0&&!J.test(t[1]))throw new m("Unit not recognized");g=t[1]+" ",d="";for(var C=0;C<a;C++)d+=g;s=s.replace(t[0],d)}i&&(this.numerator=me(i.trim())),s&&(this.denominator=me(s.trim()))}var ze=Object.keys(N).sort(function(e,t){return t.length-e.length}).join("|"),Fe=Object.keys(P).sort(function(e,t){return t.length-e.length}).join("|"),Ke="\\b|$",oe="("+ze+")??("+Fe+")(?:"+Ke+")",J=new RegExp("^\\s*("+oe+"[\\s\\*]*)+$"),Ne=new RegExp(oe,"g"),ue={};function me(e){var t=ue[e];if(t)return t;var r,i=[];if(!J.test(e))throw new m("Unit not recognized");for(;r=Ne.exec(e);)i.push(r.slice(1));return i=i.map(function(s){return N[s[0]]?[N[s[0]],P[s[1]]]:[P[s[1]]]}),i=i.reduce(function(s,a){return s.concat(a)},[]),i=i.filter(function(s){return s}),ue[e]=i,i}function Ie(e){if(!f(e))throw new m("Argument should be a string");try{return this(e)}catch{return null}}function H(e){return e instanceof o}function o(e,t){if(He.apply(null,arguments),!H(this))return new o(e,t);if(this.scalar=null,this.baseScalar=null,this.signature=null,this._conversionCache={},this.numerator=b,this.denominator=b,ce(e)?(this.scalar=e.scalar,this.numerator=e.numerator&&e.numerator.length!==0?e.numerator:b,this.denominator=e.denominator&&e.denominator.length!==0?e.denominator:b):t?(ae.call(this,t),this.scalar=e):ae.call(this,e),this.denominator.join("*").indexOf("temp")>=0)throw new m("Cannot divide with temperatures");if(this.numerator.join("*").indexOf("temp")>=0){if(this.numerator.length>1)throw new m("Cannot multiply by temperatures");if(!c(this.denominator,b))throw new m("Cannot divide with temperatures")}if(this.initValue=e,Be.call(this),this.isTemperature()&&this.baseScalar<0)throw new m("Temperatures must not be less than absolute zero")}o.prototype={constructor:o};function He(e,t){if(t){if(!(n(e)&&f(t)))throw new m("Only number accepted as initialization value when units are explicitly provided")}else if(!(f(e)||n(e)||H(e)||ce(e)))throw new m("Only string, number or quantity accepted as single initialization value")}function ce(e){return e&&typeof e=="object"&&e.hasOwnProperty("scalar")}function Be(){if(this.baseScalar)return this.baseScalar;if(this.isBase())this.baseScalar=this.scalar,this.signature=Te.call(this);else{var e=this.toBase();this.baseScalar=e.scalar,this.signature=e.signature}}var V={"-312078":"elastance","-312058":"resistance","-312038":"inductance","-152058":"potential","-152040":"magnetism","-152038":"magnetism","-7997":"specific_volume","-79":"snap","-59":"jolt","-39":"acceleration","-38":"radiation","-20":"frequency","-19":"speed","-18":"viscosity","-17":"volumetric_flow","-1":"wavenumber",0:"unitless",1:"length",2:"area",3:"volume",20:"time",400:"temperature",7941:"yank",7942:"power",7959:"pressure",7961:"force",7962:"energy",7979:"viscosity",7981:"momentum",7982:"angular_momentum",7997:"density",7998:"area_density",8e3:"mass",152020:"radiation_exposure",159999:"magnetism",16e4:"current",160020:"charge",312058:"conductance",312078:"capacitance",3199980:"activity",3199997:"molar_concentration",32e5:"substance",63999998:"illuminance",64e6:"luminous_power",128e7:"currency","25599999980":"information_rate","25600000000":"information","511999999980":"angular_velocity","512000000000":"angle"};function Ge(){return p(Object.keys(V).map(function(e){return V[e]}))}o.prototype.kind=function(){return V[this.signature.toString()]},y(o.prototype,{isDegrees:function(){return(this.signature===null||this.signature===400)&&this.numerator.length===1&&c(this.denominator,b)&&(this.numerator[0].match(/<temp-[CFRK]>/)||this.numerator[0].match(/<(kelvin|celsius|rankine|fahrenheit)>/))},isTemperature:function(){return this.isDegrees()&&this.numerator[0].match(/<temp-[CFRK]>/)}});function Oe(e,t){var r=e.units(),i=t.to(r),s=o(j(r));return o({scalar:e.scalar-i.scalar,numerator:s.numerator,denominator:s.denominator})}function Le(e,t){var r=t.to(j(e.units()));return o({scalar:e.scalar-r.scalar,numerator:e.numerator,denominator:e.denominator})}function le(e,t){var r=t.to(j(e.units()));return o({scalar:e.scalar+r.scalar,numerator:e.numerator,denominator:e.denominator})}function j(e){if(e==="tempK")return"degK";if(e==="tempC")return"degC";if(e==="tempF")return"degF";if(e==="tempR")return"degR";throw new m("Unknown type for temp conversion from: "+e)}function We(e,t){var r=Je(e),i=t.units(),s;if(i==="degK")s=r.scalar;else if(i==="degC")s=r.scalar;else if(i==="degF")s=r.scalar*9/5;else if(i==="degR")s=r.scalar*9/5;else throw new m("Unknown type for degree conversion to: "+i);return o({scalar:s,numerator:t.numerator,denominator:t.denominator})}function Je(e){var t=e.units(),r;if(t.match(/(deg)[CFRK]/))r=e.baseScalar;else if(t==="tempK")r=e.scalar;else if(t==="tempC")r=e.scalar;else if(t==="tempF")r=e.scalar*5/9;else if(t==="tempR")r=e.scalar*5/9;else throw new m("Unknown type for temp conversion from: "+t);return o({scalar:r,numerator:["<kelvin>"],denominator:b})}function Ve(e,t){var r=t.units(),i;if(r==="tempK")i=e.baseScalar;else if(r==="tempC")i=e.baseScalar-273.15;else if(r==="tempF")i=e.baseScalar*9/5-459.67;else if(r==="tempR")i=e.baseScalar*9/5;else throw new m("Unknown type for temp conversion to: "+r);return o({scalar:i,numerator:t.numerator,denominator:t.denominator})}function je(e){var t=e.units(),r;if(t.match(/(deg)[CFRK]/))r=e.baseScalar;else if(t==="tempK")r=e.scalar;else if(t==="tempC")r=e.scalar+273.15;else if(t==="tempF")r=(e.scalar+459.67)*5/9;else if(t==="tempR")r=e.scalar*5/9;else throw new m("Unknown type for temp conversion from: "+t);return o({scalar:r,numerator:["<temp-K>"],denominator:b})}y(o.prototype,{to:function(e){var t,r;if(e==null)return this;if(!f(e))return this.to(e.units());if(t=this._conversionCache[e],t)return t;if(r=o(e),r.units()===this.units())return this;if(!this.isCompatible(r))this.isInverse(r)?r=this.inverse().to(e):z(this.units(),r.units());else if(r.isTemperature())r=Ve(this,r);else if(r.isDegrees())r=We(this,r);else{var i=x(this.baseScalar,r.baseScalar);r=o({scalar:i,numerator:r.numerator,denominator:r.denominator})}return this._conversionCache[e]=r,r},toBase:function(){if(this.isBase())return this;if(this.isTemperature())return je(this);var e=pe[this.units()];return e||(e=Ye(this.numerator,this.denominator),pe[this.units()]=e),e.mul(this.scalar)},toFloat:function(){if(this.isUnitless())return this.scalar;throw new m("Can't convert to Float unless unitless. Use Unit#scalar")},toPrec:function(e){if(f(e)&&(e=o(e)),n(e)&&(e=o(e+" "+this.units())),this.isUnitless()?e.isUnitless()||z(this.units(),e.units()):e=e.to(this.units()),e.scalar===0)throw new m("Divide by zero");var t=h(Math.round(this.scalar/e.scalar),e.scalar);return o(t+this.units())}});function Xe(e,t){var r=o(e),i=o(t);if(r.eq(i))return l;var s;return r.isTemperature()?s=function(a){return r.mul(a).to(i).scalar}:s=function(a){return a*r.baseScalar/i.baseScalar},function(g){var d,v,C;if(Array.isArray(g)){for(v=g.length,C=[],d=0;d<v;d++)C.push(s(g[d]));return C}else return s(g)}}var pe={};function Ye(e,t){for(var r=[],i=[],s=1,a,g=0;g<e.length;g++)a=e[g],U[a]?s=h(s,U[a]):k[a]&&(s*=k[a].scalar,k[a].numerator&&r.push(k[a].numerator),k[a].denominator&&i.push(k[a].denominator));for(var d=0;d<t.length;d++)a=t[d],U[a]?s/=U[a]:k[a]&&(s/=k[a].scalar,k[a].numerator&&i.push(k[a].numerator),k[a].denominator&&r.push(k[a].denominator));return r=r.reduce(function(v,C){return v.concat(C)},[]),i=i.reduce(function(v,C){return v.concat(C)},[]),o({scalar:s,numerator:r,denominator:i})}o.parse=Ie,o.getUnits=Se,o.getAliases=Me,o.mulSafe=h,o.divSafe=x,o.getKinds=Ge,o.swiftConverter=Xe,o.Error=m,y(o.prototype,{add:function(e){if(f(e)&&(e=o(e)),this.isCompatible(e)||z(this.units(),e.units()),this.isTemperature()&&e.isTemperature())throw new m("Cannot add two temperatures");return this.isTemperature()?le(this,e):e.isTemperature()?le(e,this):o({scalar:this.scalar+e.to(this).scalar,numerator:this.numerator,denominator:this.denominator})},sub:function(e){if(f(e)&&(e=o(e)),this.isCompatible(e)||z(this.units(),e.units()),this.isTemperature()&&e.isTemperature())return Oe(this,e);if(this.isTemperature())return Le(this,e);if(e.isTemperature())throw new m("Cannot subtract a temperature from a differential degree unit");return o({scalar:this.scalar-e.to(this).scalar,numerator:this.numerator,denominator:this.denominator})},mul:function(e){if(n(e))return o({scalar:h(this.scalar,e),numerator:this.numerator,denominator:this.denominator});if(f(e)&&(e=o(e)),(this.isTemperature()||e.isTemperature())&&!(this.isUnitless()||e.isUnitless()))throw new m("Cannot multiply by temperatures");var t=this,r=e;t.isCompatible(r)&&t.signature!==400&&(r=r.to(t));var i=de(t.numerator,t.denominator,r.numerator,r.denominator);return o({scalar:h(t.scalar,r.scalar,i[2]),numerator:i[0],denominator:i[1]})},div:function(e){if(n(e)){if(e===0)throw new m("Divide by zero");return o({scalar:this.scalar/e,numerator:this.numerator,denominator:this.denominator})}else f(e)&&(e=o(e));if(e.scalar===0)throw new m("Divide by zero");if(e.isTemperature())throw new m("Cannot divide with temperatures");if(this.isTemperature()&&!e.isUnitless())throw new m("Cannot divide with temperatures");var t=this,r=e;t.isCompatible(r)&&t.signature!==400&&(r=r.to(t));var i=de(t.numerator,t.denominator,r.denominator,r.numerator);return o({scalar:h(t.scalar,i[2])/r.scalar,numerator:i[0],denominator:i[1]})},inverse:function(){if(this.isTemperature())throw new m("Cannot divide with temperatures");if(this.scalar===0)throw new m("Divide by zero");return o({scalar:1/this.scalar,numerator:this.denominator,denominator:this.numerator})}});function de(e,t,r,i){function s(T){return T!==K}e=e.filter(s),r=r.filter(s),t=t.filter(s),i=i.filter(s);var a={};function g(T,A){for(var q,B,Y,E=0;E<T.length;E++)if(U[T[E]]?(q=T[E+1],B=T[E],Y=U[B],E++):(q=T[E],B=null,Y=1),q&&q!==K)if(a[q]){a[q][0]+=A;var et=a[q][2]?U[a[q][2]]:1;a[q][A===1?3:4]*=x(Y,et)}else a[q]=[A,q,B,1,1]}g(e,1),g(t,-1),g(r,1),g(i,-1);var d=[],v=[],C=1;for(var ge in a)if(a.hasOwnProperty(ge)){var w=a[ge],D;if(w[0]>0)for(D=0;D<w[0];D++)d.push(w[2]===null?w[1]:[w[2],w[1]]);else if(w[0]<0)for(D=0;D<-w[0];D++)v.push(w[2]===null?w[1]:[w[2],w[1]]);C*=x(w[3],w[4])}return d.length===0&&(d=b),v.length===0&&(v=b),d=d.reduce(function(T,A){return T.concat(A)},[]),v=v.reduce(function(T,A){return T.concat(A)},[]),[d,v,C]}y(o.prototype,{eq:function(e){return this.compareTo(e)===0},lt:function(e){return this.compareTo(e)===-1},lte:function(e){return this.eq(e)||this.lt(e)},gt:function(e){return this.compareTo(e)===1},gte:function(e){return this.eq(e)||this.gt(e)},compareTo:function(e){if(f(e))return this.compareTo(o(e));if(this.isCompatible(e)||z(this.units(),e.units()),this.baseScalar<e.baseScalar)return-1;if(this.baseScalar===e.baseScalar)return 0;if(this.baseScalar>e.baseScalar)return 1},same:function(e){return this.scalar===e.scalar&&this.units()===e.units()}}),y(o.prototype,{isUnitless:function(){return[this.numerator,this.denominator].every(function(e){return c(e,b)})},isCompatible:function(e){return f(e)?this.isCompatible(o(e)):H(e)&&e.signature!==void 0?this.signature===e.signature:!1},isInverse:function(e){return this.inverse().isCompatible(e)},isBase:function(){return this._isBase!==void 0?this._isBase:this.isDegrees()&&this.numerator[0].match(/<(kelvin|temp-K)>/)?(this._isBase=!0,this._isBase):(this.numerator.concat(this.denominator).forEach(function(e){e!==K&&ke.indexOf(e)===-1&&(this._isBase=!1)},this),this._isBase===!1?this._isBase:(this._isBase=!0,this._isBase))}});function X(){}X.prototype.get=function(e){return arguments.length>1&&(e=Array.apply(null,arguments)),e.reduce(function(t,r,i){if(t){var s=t[r];return i===e.length-1?s?s.data:void 0:s}},this)},X.prototype.set=function(e,t){return arguments.length>2&&(e=Array.prototype.slice.call(arguments,0,-1),t=arguments[arguments.length-1]),e.reduce(function(r,i,s){var a=r[i];return a===void 0&&(a=r[i]={}),s===e.length-1?(a.data=t,t):a},this)};function Ze(e,t){return(e+" "+t).trim()}o.formatter=Ze,y(o.prototype,{units:function(){if(this._units!==void 0)return this._units;var e=c(this.numerator,b),t=c(this.denominator,b);if(e&&t)return this._units="",this._units;var r=he(this.numerator),i=he(this.denominator);return this._units=r+(t?"":"/"+i),this._units},toString:function(e,t){var r;if(n(e))r=this.units(),t=e;else if(f(e))r=e;else if(H(e))return this.toPrec(e).toString(t);var i=this.to(r),s=t!==void 0?F(i.scalar,t):i.scalar;return i=(s+" "+i.units()).trim(),i},format:function(e,t){arguments.length===1&&typeof e=="function"&&(t=e,e=void 0),t=t||o.formatter;var r=this.to(e);return t.call(this,r.scalar,r.units())}});var fe=new X;function he(e){var t=fe.get(e);if(t)return t;var r=c(e,b);return r?t="1":t=Qe($e(e)).join("*"),fe.set(e,t),t}function $e(e){for(var t=[],r,i,s=0;s<e.length;s++)r=e[s],i=e[s+1],U[r]?(t.push(I[r]+I[i]),s++):t.push(I[r]);return t}function Qe(e){var t=e.reduce(function(r,i){var s=r[i];return s||r.push(s=r[i]=[i,0]),s[1]++,r},[]);return t.map(function(r){return r[0]+(r[1]>1?r[1]:"")})}return o.version="1.8.0",o})});var u=rt(we());var ut=(()=>{class f{AppSettingsService=Z(ve);data=Z(be);_defaultUnitsSub;_conversionList=[{group:"Unitless",units:[{measure:"unitless",description:"As-Is numeric value"},{measure:" ",description:"No unit label - As-Is numeric value"}]},{group:"Speed",units:[{measure:"knots",description:"Knots - Nautical miles per hour"},{measure:"kph",description:"kph - Kilometers per hour"},{measure:"mph",description:"mph - Miles per hour"},{measure:"m/s",description:"m/s - Meters per second (base)"}]},{group:"Flow",units:[{measure:"m3/s",description:"Cubic meters per second (base)"},{measure:"l/min",description:"Liters per minute"},{measure:"l/h",description:"Liters per hour"},{measure:"g/min",description:"Gallons per minute"},{measure:"g/h",description:"Gallons per hour"}]},{group:"Fuel Distance",units:[{measure:"m/m3",description:"Meters per cubic meter (base)"},{measure:"nm/l",description:"Nautical Miles per liter"},{measure:"nm/g",description:"Nautical Miles per gallon"},{measure:"km/l",description:"Kilometers per liter"},{measure:"mpg",description:"Miles per Gallon"}]},{group:"Energy Distance",units:[{measure:"m/J",description:"Meters per Joule (base)"},{measure:"nm/J",description:"Nautical Miles per Joule"},{measure:"km/J",description:"Kilometers per Joule"},{measure:"nm/kWh",description:"Nautical Miles per Kilowatt-hour"},{measure:"km/kWh",description:"Kilometers per Kilowatt-hour"}]},{group:"Temperature",units:[{measure:"K",description:"Kelvin (base)"},{measure:"celsius",description:"Celsius"},{measure:"fahrenheit",description:"Fahrenheit"}]},{group:"Length",units:[{measure:"m",description:"Meters (base)"},{measure:"mm",description:"Millimeters"},{measure:"fathom",description:"Fathoms"},{measure:"nm",description:"Nautical Miles"},{measure:"km",description:"Kilometers"},{measure:"mi",description:"Miles"},{measure:"feet",description:"Feet"},{measure:"inch",description:"Inches"}]},{group:"Volume",units:[{measure:"liter",description:"Liters (base)"},{measure:"m3",description:"Cubic Meters"},{measure:"gallon",description:"Gallons"}]},{group:"Current",units:[{measure:"A",description:"Amperes (base)"},{measure:"mA",description:"Milliamperes"}]},{group:"Potential",units:[{measure:"V",description:"Volts (base)"},{measure:"mV",description:"Millivolts"}]},{group:"Charge",units:[{measure:"C",description:"Coulomb (base)"},{measure:"Ah",description:"Ampere*Hours"}]},{group:"Power",units:[{measure:"W",description:"Watts (base)"},{measure:"mW",description:"Milliwatts"}]},{group:"Energy",units:[{measure:"J",description:"Joules (base)"},{measure:"kWh",description:"Kilowatt*Hours"}]},{group:"Resistance",units:[{measure:"ohm",description:"\u2126 (base)"},{measure:"kiloohm",description:"k\u2126"}]},{group:"Pressure",units:[{measure:"Pa",description:"Pa (base)"},{measure:"kPa",description:"kPa"},{measure:"hPa",description:"hPa"},{measure:"mbar",description:"mbar"},{measure:"bar",description:"Bars"},{measure:"psi",description:"psi"},{measure:"mmHg",description:"mmHg"},{measure:"inHg",description:"inHg"}]},{group:"Density",units:[{measure:"kg/m3",description:"Air density - kg/cubic meter (base)"}]},{group:"Time",units:[{measure:"s",description:"Seconds (base)"},{measure:"Minutes",description:"Minutes"},{measure:"Hours",description:"Hours"},{measure:"Days",description:"Days"},{measure:"D HH:MM:SS",description:"Day Hour:Minute:sec"}]},{group:"Angular Velocity",units:[{measure:"rad/s",description:"Radians per second (base)"},{measure:"deg/s",description:"Degrees per second"},{measure:"deg/min",description:"Degrees per minute"}]},{group:"Angle",units:[{measure:"rad",description:"Radians (base)"},{measure:"deg",description:"Degrees"},{measure:"grad",description:"Gradians"}]},{group:"Frequency",units:[{measure:"rpm",description:"RPM - Rotations per minute"},{measure:"Hz",description:"Hz - Hertz (base)"},{measure:"KHz",description:"KHz - Kilohertz"},{measure:"MHz",description:"MHz - Megahertz"},{measure:"GHz",description:"GHz - Gigahertz"}]},{group:"Ratio",units:[{measure:"percent",description:"As percentage value"},{measure:"percentraw",description:"As ratio 0-1 with % sign"},{measure:"ratio",description:"Ratio 0-1 (base)"}]},{group:"Position",units:[{measure:"pdeg",description:"Position Degrees"},{measure:"latitudeMin",description:"Latitude in minutes"},{measure:"latitudeSec",description:"Latitude in seconds"},{measure:"longitudeMin",description:"Longitude in minutes"},{measure:"longitudeSec",description:"Longitude in seconds"}]}];skBaseUnits=[{unit:"s",properties:{display:"s",quantity:"Time",quantityDisplay:"t",description:"Elapsed time (interval) in seconds"}},{unit:"Hz",properties:{display:"Hz",quantity:"Frequency",quantityDisplay:"f",description:"Frequency in Hertz"}},{unit:"m3",properties:{display:"m\xB3",quantity:"Volume",quantityDisplay:"V",description:"Volume in cubic meters"}},{unit:"m3/s",properties:{display:"m\xB3/s",quantity:"Flow",quantityDisplay:"Q",description:"Liquid or gas flow in cubic meters per second"}},{unit:"kg/s",properties:{display:"kg/s",quantity:"Mass flow rate",quantityDisplay:"\u1E41",description:"Liquid or gas flow in kilograms per second"}},{unit:"kg/m3",properties:{display:"kg/m\xB3",quantity:"Density",quantityDisplay:"\u03C1",description:"Density in kg per cubic meter"}},{unit:"deg",properties:{display:"Position",quantity:"Angle",quantityDisplay:"\u2220",description:"Latitude or longitude in decimal degrees"}},{unit:"rad",properties:{display:"\xB0",quantity:"Angle",quantityDisplay:"\u2220",description:"Angular arc in radians"}},{unit:"rad/s",properties:{display:"\u33AD/s",quantity:"Rotation",quantityDisplay:"\u03C9",description:"Angular rate in radians per second"}},{unit:"A",properties:{display:"A",quantity:"Current",quantityDisplay:"I",description:"Electrical current in ampere"}},{unit:"C",properties:{display:"C",quantity:"Charge",quantityDisplay:"Q",description:"Electrical charge in Coulomb"}},{unit:"V",properties:{display:"V",quantity:"Voltage",quantityDisplay:"V",description:"Electrical potential in volt"}},{unit:"W",properties:{display:"W",quantity:"Power",quantityDisplay:"P",description:"Power in watt"}},{unit:"Nm",properties:{display:"Nm",quantity:"Torque",quantityDisplay:"\u03C4",description:"Torque in Newton meter"}},{unit:"J",properties:{display:"J",quantity:"Energy",quantityDisplay:"E",description:"Electrical energy in joule"}},{unit:"ohm",properties:{display:"\u2126",quantity:"Resistance",quantityDisplay:"R",description:"Electrical resistance in ohm"}},{unit:"m",properties:{display:"m",quantity:"Distance",quantityDisplay:"d",description:"Distance in meters"}},{unit:"m/s",properties:{display:"m/s",quantity:"Speed",quantityDisplay:"v",description:"Speed in meters per second"}},{unit:"m2",properties:{display:"\u33A1",quantity:"Area",quantityDisplay:"A",description:"(Surface) area in square meters"}},{unit:"K",properties:{display:"K",quantity:"Temperature",quantityDisplay:"T",description:"Temperature in kelvin"}},{unit:"Pa",properties:{display:"Pa",quantity:"Pressure",quantityDisplay:"P",description:"Pressure in pascal"}},{unit:"kg",properties:{display:"kg",quantity:"Mass",quantityDisplay:"m",description:"Mass in kilogram"}},{unit:"ratio",properties:{display:"",quantity:"Ratio",quantityDisplay:"\u03C6",description:"Relative value compared to reference or normal value. 0 = 0%, 1 = 100%, 1e-3 = 1 ppt"}},{unit:"m/s2",properties:{display:"m/s\xB2",quantity:"Acceleration",quantityDisplay:"a",description:"Acceleration in meters per second squared"}},{unit:"rad/s2",properties:{display:"rad/s\xB2",quantity:"Angular acceleration",quantityDisplay:"a",description:"Angular acceleration in radians per second squared"}},{unit:"N",properties:{display:"N",quantity:"Force",quantityDisplay:"F",description:"Force in newton"}},{unit:"T",properties:{display:"T",quantity:"Magnetic field",quantityDisplay:"B",description:"Magnetic field strength in tesla"}},{unit:"Lux",properties:{display:"lx",quantity:"Light Intensity",quantityDisplay:"Ev",description:"Light Intensity in lux"}},{unit:"Pa/s",properties:{display:"Pa/s",quantity:"Pressure rate",quantityDisplay:"R",description:"Pressure change rate in pascal per second"}},{unit:"Pa.s",properties:{display:"Pa s",quantity:"Viscosity",quantityDisplay:"\u03BC",description:"Viscosity in pascal seconds"}}];_defaultUnits=null;constructor(){this._defaultUnitsSub=this.AppSettingsService.getDefaultUnitsAsO().subscribe(n=>{this._defaultUnits=n})}unitConversionFunctions={unitless:function(n){return n}," ":function(n){return n},knots:u.default.swiftConverter("m/s","kn"),kph:u.default.swiftConverter("m/s","kph"),"m/s":function(n){return n},mph:u.default.swiftConverter("m/s","mph"),liter:u.default.swiftConverter("m^3","liter"),gallon:u.default.swiftConverter("m^3","gallon"),m3:function(n){return n},"m3/s":function(n){return n},"l/min":u.default.swiftConverter("m^3/s","liter/minute"),"l/h":u.default.swiftConverter("m^3/s","liter/hour"),"g/min":u.default.swiftConverter("m^3/s","gallon/minute"),"g/h":u.default.swiftConverter("m^3/s","gallon/hour"),"m/m3":function(n){return n},"nm/l":u.default.swiftConverter("m/m^3","naut-mile/liter"),"nm/g":u.default.swiftConverter("m/m^3","naut-mile/gallon"),"km/l":u.default.swiftConverter("m/m^3","km/liter"),mpg:u.default.swiftConverter("m/m^3","mile/gallon"),"m/J":function(n){return n},"nm/J":u.default.swiftConverter("m/J","naut-mile/J"),"km/J":u.default.swiftConverter("km/J","km/J"),"nm/kWh":u.default.swiftConverter("m/J","naut-mile/kWh"),"km/kWh":u.default.swiftConverter("m/J","km/kWh"),K:function(n){return n},celsius:u.default.swiftConverter("tempK","tempC"),fahrenheit:u.default.swiftConverter("tempK","tempF"),m:function(n){return n},mm:function(n){return n*1e3},fathom:u.default.swiftConverter("m","fathom"),feet:u.default.swiftConverter("m","foot"),inch:u.default.swiftConverter("m","in"),km:u.default.swiftConverter("m","km"),nm:u.default.swiftConverter("m","nmi"),mi:u.default.swiftConverter("m","mi"),V:function(n){return n},mV:function(n){return n*1e3},A:function(n){return n},mA:function(n){return n*1e3},C:function(n){return n},Ah:u.default.swiftConverter("C","Ah"),W:function(n){return n},mW:function(n){return n*1e3},J:function(n){return n},kWh:u.default.swiftConverter("J","kWh"),ohm:function(n){return n},kiloohm:function(n){return n/1e3},Pa:function(n){return n},bar:u.default.swiftConverter("Pa","bar"),psi:u.default.swiftConverter("Pa","psi"),mmHg:u.default.swiftConverter("Pa","mmHg"),inHg:u.default.swiftConverter("Pa","inHg"),hPa:u.default.swiftConverter("Pa","hPa"),kPa:u.default.swiftConverter("Pa","kPa"),mbar:u.default.swiftConverter("Pa","millibar"),"kg/m3":function(n){return n},s:function(n){return n},Minutes:u.default.swiftConverter("s","minutes"),Hours:u.default.swiftConverter("s","hours"),Days:u.default.swiftConverter("s","days"),"D HH:MM:SS":function(n){n=parseInt(n,10);let l=n<0;n=Math.abs(n);let p=Math.floor(n/86400),c=Math.floor(n%86400/3600),y=Math.floor(n%3600/60),h=Math.floor(n%60),x=l?"-":"";return p>0?x+=p+"d "+c.toString()+":"+y.toString().padStart(2,"0")+":"+h.toString().padStart(2,"0"):x+=c.toString()+":"+y.toString().padStart(2,"0")+":"+h.toString().padStart(2,"0"),x},"rad/s":function(n){return n},"deg/s":u.default.swiftConverter("rad/s","deg/s"),"deg/min":u.default.swiftConverter("rad/s","deg/min"),rpm:function(n){return n*60},Hz:function(n){return n},KHz:function(n){return n/1e3},MHz:function(n){return n/1e6},GHz:function(n){return n/1e9},rad:function(n){return n},deg:u.default.swiftConverter("rad","deg"),grad:u.default.swiftConverter("rad","grad"),percent:function(n){return n*100},percentraw:function(n){return n},ratio:function(n){return n},pdeg:function(n){return n},latitudeMin:function(n){let l=Math.trunc(n),p="N";n<0&&(p="S",l=l*-1);let c=n%1*60;return p=="S"&&(c=c*-1),l+"\xB0 "+c.toFixed(2).padStart(5,"0")+"' "+p},latitudeSec:function(n){let l=Math.trunc(n),p="N";n<0&&(p="S",l=l*-1);let c=n%1*60;p=="S"&&(c=c*-1);let y=Math.trunc(c),h=c%1*60;return l+"\xB0 "+y+"' "+h.toFixed(2).padStart(5,"0")+'" '+p},longitudeMin:function(n){let l=Math.trunc(n),p="E";n<0&&(p="W",l=l*-1);let c=n%1*60;return p=="W"&&(c=c*-1),l+"\xB0 "+c.toFixed(2).padStart(5,"0")+"' "+p},longitudeSec:function(n){let l=Math.trunc(n),p="E";n<0&&(p="W",l=l*-1);let c=n%1*60;p=="W"&&(c=c*-1);let y=Math.trunc(c),h=c%1*60;return l+"\xB0 "+y+"' "+h.toFixed(2).padStart(5,"0")+'" '+p}};convertToUnit(n,l){if(!(n in this.unitConversionFunctions)||l===null)return null;let p=+l;return this.unitConversionFunctions[n](p)}getDefaults(){return this._defaultUnits}getConversions(){return this._conversionList}getConversionsForPath(n){let l=this.data.getPathUnitType(n),p="unitless",c="unitless";if(l===null||l==="RFC 3339 (UTC)")return{base:p,conversions:this._conversionList};{let y=this._conversionList.filter(h=>h.group=="Position"&&(n.includes("position.latitude")||n.includes("position.longitude"))?!0:h.units.find(F=>F.measure==l)?(c=this._defaultUnits[h.group],!0):!1);return y.length>0?{base:c,conversions:y}:(console.log("[Units Service] Unit type: "+l+", found for path: "+n+`
2
- but Kip does not support it.`),{base:p,conversions:this._conversionList})}}ngOnDestroy(){this._defaultUnitsSub?.unsubscribe()}static \u0275fac=function(l){return new(l||f)};static \u0275prov=ye({token:f,factory:f.\u0275fac})}return f})();export{ut as a};
@@ -1,2 +0,0 @@
1
- import{a as zt,b as Gt,c as $t,f as Qt,g as te,h as ee,i as ie,k as se,l as ne,n as re,o as oe}from"./chunk-OSYHJB4F.js";import"./chunk-PKNLASTF.js";import"./chunk-VYUMZVH2.js";import"./chunk-CBUY7NMR.js";import"./chunk-JY3WVS7C.js";import{a as ae}from"./chunk-VHFBF47T.js";import"./chunk-ZBCOJLI4.js";import{m as G,n as $}from"./chunk-TXPLRBW5.js";import"./chunk-3LEMFOCV.js";import"./chunk-FBFTGVZ6.js";import"./chunk-2YVW3TBK.js";import"./chunk-TA4GACKT.js";import{$b as Ht,A as xt,Aa as R,Ac as rt,Da as Tt,Ea as Q,Fb as v,Gb as V,Ge as Kt,Hb as Mt,Ie as Yt,J as Et,Ja as tt,K as H,Mc as ot,Na as kt,Qa as et,R as Rt,Rb as Lt,Rd as Ut,Sd as Wt,Td as z,Ue as Xt,Vd as M,Wb as Nt,We as Jt,Xb as At,Yb as Ft,Yd as lt,Zb as _,_b as D,_d as S,be as Zt,de as jt,ed as at,fa as X,g as y,ga as Ct,gc as Bt,ha as O,ia as It,ic as P,id as T,j as Y,jd as Vt,kc as I,lb as B,le as qt,m as p,o as Pt,oa as J,ob as it,q as yt,ra as x,sb as Ot,se as dt,ta as c,wb as C,wc as nt,yb as st,za as E,zc as b}from"./chunk-35L7BBBD.js";function pt(r){let e=r.cloneNode(!0),t=e.querySelectorAll("[id]"),i=r.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s<t.length;s++)t[s].removeAttribute("id");return i==="canvas"?ce(r,e):(i==="input"||i==="select"||i==="textarea")&&de(r,e),le("canvas",r,e,ce),le("input, textarea, select",r,e,de),e}function le(r,e,t,i){let s=e.querySelectorAll(r);if(s.length){let n=t.querySelectorAll(r);for(let o=0;o<s.length;o++)i(s[o],n[o])}}var Be=0;function de(r,e){e.type!=="file"&&(e.value=r.value),e.type==="radio"&&e.name&&(e.name=`mat-clone-${e.name}-${Be++}`)}function ce(r,e){let t=e.getContext("2d");if(t)try{t.drawImage(r,0,0)}catch{}}function vt(r){let e=r.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}}function _t(r,e,t){let{top:i,bottom:s,left:n,right:o}=r;return t>=i&&t<=s&&e>=n&&e<=o}function Ve(r,e){let t=e.left<r.left,i=e.left+e.width>r.right,s=e.top<r.top,n=e.top+e.height>r.bottom;return t||i||s||n}function A(r,e,t){r.top+=e,r.bottom=r.top+r.height,r.left+=t,r.right=r.left+r.width}function he(r,e,t,i){let{top:s,right:n,bottom:o,left:a,width:l,height:d}=r,h=l*e,u=d*e;return i>s-u&&i<o+u&&t>a-h&&t<n+h}var U=class{_document;positions=new Map;constructor(e){this._document=e}clear(){this.positions.clear()}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),e.forEach(t=>{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:vt(t)})})}handleScroll(e){let t=M(e),i=this.positions.get(t);if(!i)return null;let s=i.scrollPosition,n,o;if(t===this._document){let d=this.getViewportScrollPosition();n=d.top,o=d.left}else n=t.scrollTop,o=t.scrollLeft;let a=s.top-n,l=s.left-o;return this.positions.forEach((d,h)=>{d.clientRect&&t!==h&&t.contains(h)&&A(d.clientRect,a,l)}),s.top=n,s.left=o,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function xe(r,e){let t=r.rootNodes;if(t.length===1&&t[0].nodeType===e.ELEMENT_NODE)return t[0];let i=e.createElement("div");return t.forEach(s=>i.appendChild(s)),i}function Dt(r,e,t){for(let i in e)if(e.hasOwnProperty(i)){let s=e[i];s?r.setProperty(i,s,t?.has(i)?"important":""):r.removeProperty(i)}return r}function k(r,e){let t=e?"":"none";Dt(r.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function pe(r,e,t){Dt(r.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},t)}function W(r,e){return e&&e!="none"?r+" "+e:r}function _e(r,e){r.style.width=`${e.width}px`,r.style.height=`${e.height}px`,r.style.transform=F(e.left,e.top)}function F(r,e){return`translate3d(${Math.round(r)}px, ${Math.round(e)}px, 0)`}function ge(r){let e=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*e}function ze(r){let e=getComputedStyle(r),t=ct(e,"transition-property"),i=t.find(a=>a==="transform"||a==="all");if(!i)return 0;let s=t.indexOf(i),n=ct(e,"transition-duration"),o=ct(e,"transition-delay");return ge(n[s])+ge(o[s])}function ct(r,e){return r.getPropertyValue(e).split(",").map(i=>i.trim())}var Ge=new Set(["position"]),gt=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(e,t,i,s,n,o,a,l,d,h){this._document=e,this._rootElement=t,this._direction=i,this._initialDomRect=s,this._previewTemplate=n,this._previewClass=o,this._pickupPositionOnPage=a,this._initialTransform=l,this._zIndex=d,this._renderer=h}attach(e){this._preview=this._createPreview(),e.appendChild(this._preview),ue(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(e){this._preview.style.transform=e}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(e){this._preview.classList.add(e)}getTransitionDuration(){return ze(this._preview)}addEventListener(e,t){return this._renderer.listen(this._preview,e,t)}_createPreview(){let e=this._previewTemplate,t=this._previewClass,i=e?e.template:null,s;if(i&&e){let n=e.matchSize?this._initialDomRect:null,o=e.viewContainer.createEmbeddedView(i,e.context);o.detectChanges(),s=xe(o,this._document),this._previewEmbeddedView=o,e.matchSize?_e(s,n):s.style.transform=F(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=pt(this._rootElement),_e(s,this._initialDomRect),this._initialTransform&&(s.style.transform=this._initialTransform);return Dt(s.style,{"pointer-events":"none",margin:ue(s)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},Ge),k(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("popover","manual"),s.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(n=>s.classList.add(n)):s.classList.add(t)),s}};function ue(r){return"showPopover"in r}var $e={passive:!0},me={passive:!1},Ue={passive:!1,capture:!0},We=800,fe="cdk-drag-placeholder",ve=new Set(["position"]),ut=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=tt(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new p;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=y.EMPTY;_pointerUpSubscription=y.EMPTY;_scrollSubscription=y.EMPTY;_resizeSubscription=y.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(e){e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>k(t,e)))}_disabled=!1;beforeStarted=new p;started=new p;released=new p;ended=new p;entered=new p;exited=new p;dropped=new p;moved=this._moveEvents;data;constrainPosition;constructor(e,t,i,s,n,o,a){this._config=t,this._document=i,this._ngZone=s,this._viewportRuler=n,this._dragDropRegistry=o,this._renderer=a,this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new U(i),o.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(i=>S(i)),this._handles.forEach(i=>k(i,this.disabled)),this._toggleNativeDragInteractions();let t=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&t.add(i)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){let t=S(e);if(t!==this._rootElement){this._removeRootElementListeners();let i=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(t,"mousedown",this._pointerDown,me),i.listen(t,"touchstart",this._pointerDown,$e),i.listen(t,"dragstart",this._nativeDragStart,me)]),this._initialTransform=void 0,this._rootElement=t}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?S(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&Ve(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let e=this._boundaryElement.getBoundingClientRect(),t=this._rootElement.getBoundingClientRect(),i=0,s=0;t.left<e.left?i=e.left-t.left:t.right>e.right&&(i=e.right-t.right),t.top<e.top?s=e.top-t.top:t.bottom>e.bottom&&(s=e.bottom-t.bottom);let n=this._activeTransform.x,o=this._activeTransform.y,a=n+i,l=o+s;this._rootElement.style.transform=F(a,l),this._activeTransform={x:a,y:l},this._passiveTransform={x:a,y:l}}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),k(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),k(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){let e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){let e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null}_pointerDown=e=>{if(this.beforeStarted.next(),this._handles.length){let t=this._getTargetHandle(e);t&&!this._disabledHandles.has(t)&&!this.disabled&&this._initializeDragSequence(t,e)}else this.disabled||this._initializeDragSequence(this._rootElement,e)};_pointerMove=e=>{let t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging()){let s=Math.abs(t.x-this._pickupPositionOnPage.x),n=Math.abs(t.y-this._pickupPositionOnPage.y);if(s+n>=this._config.dragStartThreshold){let a=Date.now()>=this._dragStartTime+this._getDragStartDelay(e),l=this._dropContainer;if(!a){this._endDragSequence(e);return}(!l||!l.isDragging()&&!l.isReceiving())&&(e.cancelable&&e.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(e)))}return}e.cancelable&&e.preventDefault();let i=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,t);else{let s=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,n=this._activeTransform;n.x=i.x-s.x+this._passiveTransform.x,n.y=i.y-s.y+this._passiveTransform.y,this._applyRootElementTransform(n.x,n.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:e,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})};_pointerUp=e=>{this._endDragSequence(e)};_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){L(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let t=this._getShadowRoot(),i=this._dropContainer;if(t&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(t,"selectstart",Ze,Ue)}),i){let s=this._rootElement,n=s.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._marker=this._marker||this._document.createComment("");n.insertBefore(a,s),this._initialTransform=s.style.transform||"",this._preview=new gt(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(n,t)),pe(s,!1,ve),this._document.body.appendChild(n.replaceChild(o,s)),this.started.next({source:this,event:e}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();let i=this.isDragging(),s=L(t),n=!s&&t.button!==0,o=this._rootElement,a=M(t),l=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+We>Date.now(),d=s?Wt(t):Ut(t);if(a&&a.draggable&&t.type==="mousedown"&&t.preventDefault(),i||n||l||d)return;if(this._handles.length){let w=o.style;this._rootElementTapHighlight=w.webkitTapHighlightColor||"",w.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(w=>this._updateOnScroll(w)),this._boundaryElement&&(this._boundaryRect=vt(this._boundaryElement));let h=this._previewTemplate;this._pickupPositionInElement=h&&h.template&&!h.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,e,t);let u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){pe(this._rootElement,!0,ve),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let t=this._dropContainer,i=t.getItemIndex(this),s=this._getPointerPositionOnPage(e),n=this._getDragDistance(s),o=t._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:n,dropPoint:s,event:e}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:n,dropPoint:s,event:e}),t.drop(this,i,this._initialIndex,this._initialContainer,o,n,s,e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:i,y:s}){let n=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!n&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(n=this._initialContainer),n&&n!==this._dropContainer&&this._ngZone.run(()=>{let o=this._dropContainer.getItemIndex(this),a=this._dropContainer.getItemAtIndex(o+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(n,this._dropContainer,a),this._dropContainer=n,this._dropContainer.enter(this,e,t,n===this._initialContainer&&n.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:n,currentIndex:n.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,s),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,t):this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let e=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);let t=this._preview.getTransitionDuration();return t===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{let s=a=>{(!a||this._preview&&M(a)===this._preview.element&&a.propertyName==="transform")&&(o(),i(),clearTimeout(n))},n=setTimeout(s,t*1.5),o=this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){let e=this._placeholderTemplate,t=e?e.template:null,i;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=xe(this._placeholderRef,this._document)):i=pt(this._rootElement),i.style.pointerEvents="none",i.classList.add(fe),i}_getPointerPositionInElement(e,t,i){let s=t===this._rootElement?null:t,n=s?s.getBoundingClientRect():e,o=L(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition(),l=o.pageX-n.left-a.left,d=o.pageY-n.top-a.top;return{x:n.left-e.left+l,y:n.top-e.top+d}}_getPointerPositionOnPage(e){let t=this._getViewportScrollPosition(),i=L(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,s=i.pageX-t.left,n=i.pageY-t.top;if(this._ownerSVGElement){let o=this._ownerSVGElement.getScreenCTM();if(o){let a=this._ownerSVGElement.createSVGPoint();return a.x=s,a.y=n,a.matrixTransform(o.inverse())}}return{x:s,y:n}}_getConstrainedPointerPosition(e){let t=this._dropContainer?this._dropContainer.lockAxis:null,{x:i,y:s}=this.constrainPosition?this.constrainPosition(e,this,this._initialDomRect,this._pickupPositionInElement):e;if(this.lockAxis==="x"||t==="x"?s=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||t==="y")&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:n,y:o}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:d}=this._getPreviewRect(),h=a.top+o,u=a.bottom-(d-o),w=a.left+n,q=a.right-(l-n);i=De(i,w,q),s=De(s,h,u)}return{x:i,y:s}}_updatePointerDirectionDelta(e){let{x:t,y:i}=e,s=this._pointerDirectionDelta,n=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-n.x),a=Math.abs(i-n.y);return o>this._config.pointerDirectionChangeThreshold&&(s.x=t>n.x?1:-1,n.x=t),a>this._config.pointerDirectionChangeThreshold&&(s.y=i>n.y?1:-1,n.y=i),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,k(this._rootElement,e))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(e=>e()),this._rootElementCleanups=void 0}_applyRootElementTransform(e,t){let i=1/this.scale,s=F(e*i,t*i),n=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=n.transform&&n.transform!="none"?n.transform:""),n.transform=W(s,this._initialTransform)}_applyPreviewTransform(e,t){let i=this._previewTemplate?.template?void 0:this._initialTransform,s=F(e,t);this._preview.setTransform(W(s,i))}_getDragDistance(e){let t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(e===0&&t===0||this.isDragging()||!this._boundaryElement)return;let i=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(s.width===0&&s.height===0||i.width===0&&i.height===0)return;let n=s.left-i.left,o=i.right-s.right,a=s.top-i.top,l=i.bottom-s.bottom;s.width>i.width?(n>0&&(e+=n),o>0&&(e-=o)):e=0,s.height>i.height?(a>0&&(t+=a),l>0&&(t-=l)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){let t=this.dragStartDelay;return typeof t=="number"?t:L(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){let t=this._parentPositions.handleScroll(e);if(t){let i=M(e);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&A(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=z(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){let i=this._previewContainer||"global";if(i==="parent")return e;if(i==="global"){let s=this._document;return t||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return S(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=e=>{if(this._handles.length){let t=this._getTargetHandle(e);t&&!this._disabledHandles.has(t)&&!this.disabled&&e.preventDefault()}else this.disabled||e.preventDefault()};_getTargetHandle(e){return this._handles.find(t=>e.target&&(e.target===t||t.contains(e.target)))}_conditionallyInsertAnchor(e,t,i){if(e===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(t===this._initialContainer&&t.hasAnchor){let s=this._anchor??=pt(this._placeholder);s.classList.remove(fe),s.classList.add("cdk-drag-anchor"),s.style.transform="",i?i.before(s):S(t.element).appendChild(s)}}};function De(r,e,t){return Math.max(e,Math.min(t,r))}function L(r){return r.type[0]==="t"}function Ze(r){r.preventDefault()}function j(r,e,t){let i=be(e,r.length-1),s=be(t,r.length-1);if(i===s)return;let n=r[i],o=s<i?-1:1;for(let a=i;a!==s;a+=o)r[a]=r[a+o];r[s]=n}function be(r,e){return Math.max(0,Math.min(e,r))}var Z=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction;constructor(e){this._dragDropRegistry=e}_previousSwap={drag:null,delta:0,overlaps:!1};start(e){this.withItems(e)}sort(e,t,i,s){let n=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,i,s);if(o===-1&&n.length>0)return null;let a=this.orientation==="horizontal",l=n.findIndex(m=>m.drag===e),d=n[o],h=n[l].clientRect,u=d.clientRect,w=l>o?1:-1,q=this._getItemOffsetPx(h,u,w),Ae=this._getSiblingOffsetPx(l,n,w),Fe=n.slice();return j(n,l,o),n.forEach((m,He)=>{if(Fe[He]===m)return;let bt=m.drag===e,K=bt?q:Ae,wt=bt?e.getPlaceholderElement():m.drag.getRootElement();m.offset+=K;let St=Math.round(m.offset*(1/m.drag.scale));a?(wt.style.transform=W(`translate3d(${St}px, 0, 0)`,m.initialTransform),A(m.clientRect,0,K)):(wt.style.transform=W(`translate3d(0, ${St}px, 0)`,m.initialTransform),A(m.clientRect,K,0))}),this._previousSwap.overlaps=_t(u,t,i),this._previousSwap.drag=d.drag,this._previousSwap.delta=a?s.x:s.y,{previousIndex:l,currentIndex:o}}enter(e,t,i,s){let n=s==null||s<0?this._getItemIndexFromPointerPosition(e,t,i):s,o=this._activeDraggables,a=o.indexOf(e),l=e.getPlaceholderElement(),d=o[n];if(d===e&&(d=o[n+1]),!d&&(n==null||n===-1||n<o.length-1)&&this._shouldEnterAsFirstChild(t,i)&&(d=o[0]),a>-1&&o.splice(a,1),d&&!this._dragDropRegistry.isDragging(d)){let h=d.getRootElement();h.parentElement.insertBefore(l,h),o.splice(n,0,e)}else this._element.appendChild(l),o.push(e);l.style.transform="",this._cacheItemPositions()}withItems(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}withSortPredicate(e){this._sortPredicate=e}reset(){this._activeDraggables?.forEach(e=>{let t=e.getRootElement();if(t){let i=this._itemPositions.find(s=>s.drag===e)?.initialTransform;t.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(e){return this._getVisualItemPositions().findIndex(t=>t.drag===e)}getItemAtIndex(e){return this._getVisualItemPositions()[e]?.drag||null}updateOnScroll(e,t){this._itemPositions.forEach(({clientRect:i})=>{A(i,e,t)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}withElementContainer(e){this._element=e}_cacheItemPositions(){let e=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(t=>{let i=t.getVisibleElement();return{drag:t,offset:0,initialTransform:i.style.transform||"",clientRect:vt(i)}}).sort((t,i)=>e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(e,t,i){let s=this.orientation==="horizontal",n=s?t.left-e.left:t.top-e.top;return i===-1&&(n+=s?t.width-e.width:t.height-e.height),n}_getSiblingOffsetPx(e,t,i){let s=this.orientation==="horizontal",n=t[e].clientRect,o=t[e+i*-1],a=n[s?"width":"height"]*i;if(o){let l=s?"left":"top",d=s?"right":"bottom";i===-1?a-=o.clientRect[l]-n[d]:a+=n[l]-o.clientRect[d]}return a}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;let i=this._itemPositions,s=this.orientation==="horizontal";if(i[0].drag!==this._activeDraggables[0]){let o=i[i.length-1].clientRect;return s?e>=o.right:t>=o.bottom}else{let o=i[0].clientRect;return s?e<=o.left:t<=o.top}}_getItemIndexFromPointerPosition(e,t,i,s){let n=this.orientation==="horizontal",o=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===e)return!1;if(s){let d=n?s.x:s.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&d===this._previousSwap.delta)return!1}return n?t>=Math.floor(l.left)&&t<Math.floor(l.right):i>=Math.floor(l.top)&&i<Math.floor(l.bottom)});return o===-1||!this._sortPredicate(o,e)?-1:o}},mt=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(e,t){this._document=e,this._dragDropRegistry=t}start(e){let t=this._element.childNodes;this._relatedNodes=[];for(let i=0;i<t.length;i++){let s=t[i];this._relatedNodes.push([s,s.nextSibling])}this.withItems(e)}sort(e,t,i,s){let n=this._getItemIndexFromPointerPosition(e,t,i),o=this._previousSwap;if(n===-1||this._activeItems[n]===e)return null;let a=this._activeItems[n];if(o.drag===a&&o.overlaps&&o.deltaX===s.x&&o.deltaY===s.y)return null;let l=this.getItemIndex(e),d=e.getPlaceholderElement(),h=a.getRootElement();n>l?h.after(d):h.before(d),j(this._activeItems,l,n);let u=this._getRootNode().elementFromPoint(t,i);return o.deltaX=s.x,o.deltaY=s.y,o.drag=a,o.overlaps=h===u||h.contains(u),{previousIndex:l,currentIndex:n}}enter(e,t,i,s){let n=this._activeItems.indexOf(e);n>-1&&this._activeItems.splice(n,1);let o=s==null||s<0?this._getItemIndexFromPointerPosition(e,t,i):s;o===-1&&(o=this._getClosestItemIndexToPointer(e,t,i));let a=this._activeItems[o];a&&!this._dragDropRegistry.isDragging(a)?(this._activeItems.splice(o,0,e),a.getRootElement().before(e.getPlaceholderElement())):(this._activeItems.push(e),this._element.appendChild(e.getPlaceholderElement()))}withItems(e){this._activeItems=e.slice()}withSortPredicate(e){this._sortPredicate=e}reset(){let e=this._element,t=this._previousSwap;for(let i=this._relatedNodes.length-1;i>-1;i--){let[s,n]=this._relatedNodes[i];s.parentNode===e&&s.nextSibling!==n&&(n===null?e.appendChild(s):n.parentNode===e&&e.insertBefore(s,n))}this._relatedNodes=[],this._activeItems=[],t.drag=null,t.deltaX=t.deltaY=0,t.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(e){return this._activeItems.indexOf(e)}getItemAtIndex(e){return this._activeItems[e]||null}updateOnScroll(){this._activeItems.forEach(e=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()})}withElementContainer(e){e!==this._element&&(this._element=e,this._rootNode=void 0)}_getItemIndexFromPointerPosition(e,t,i){let s=this._getRootNode().elementFromPoint(Math.floor(t),Math.floor(i)),n=s?this._activeItems.findIndex(o=>{let a=o.getRootElement();return s===a||a.contains(s)}):-1;return n===-1||!this._sortPredicate(n,e)?-1:n}_getRootNode(){return this._rootNode||(this._rootNode=z(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(e,t,i){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let s=1/0,n=-1;for(let o=0;o<this._activeItems.length;o++){let a=this._activeItems[o];if(a!==e){let{x:l,y:d}=a.getRootElement().getBoundingClientRect(),h=Math.hypot(t-l,i-d);h<s&&(s=h,n=o)}}return n}},we=.05,Ee=.05,f=(function(r){return r[r.NONE=0]="NONE",r[r.UP=1]="UP",r[r.DOWN=2]="DOWN",r})(f||{}),g=(function(r){return r[r.NONE=0]="NONE",r[r.LEFT=1]="LEFT",r[r.RIGHT=2]="RIGHT",r})(g||{}),ft=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis;autoScrollDisabled=!1;autoScrollStep=2;hasAnchor=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new p;entered=new p;exited=new p;dropped=new p;sorted=new p;receivingStarted=new p;receivingStopped=new p;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=y.EMPTY;_verticalScrollDirection=f.NONE;_horizontalScrollDirection=g.NONE;_scrollNode;_stopScrollTimers=new p;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(e,t,i,s,n){this._dragDropRegistry=t,this._ngZone=s,this._viewportRuler=n;let o=this.element=S(e);this._document=i,this.withOrientation("vertical").withElementContainer(o),t.registerDropContainer(this),this._parentPositions=new U(i)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,i,s){this._draggingStarted(),s==null&&this.sortingDisabled&&(s=this._draggables.indexOf(e)),this._sortStrategy.enter(e,t,i,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,i,s,n,o,a,l={}){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:i,container:this,previousContainer:s,isPointerOverContainer:n,distance:o,dropPoint:a,event:l})}withItems(e){let t=this._draggables;return this._draggables=e,e.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(t.filter(s=>s.isDragging()).every(s=>e.indexOf(s)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(e){return this._direction=e,this._sortStrategy instanceof Z&&(this._sortStrategy.direction=e),this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){if(e==="mixed")this._sortStrategy=new mt(this._document,this._dragDropRegistry);else{let t=new Z(this._dragDropRegistry);t.direction=this._direction,t.orientation=e,this._sortStrategy=t}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((t,i)=>this.sortPredicate(t,i,this)),this}withScrollableParents(e){let t=this._container;return this._scrollableElements=e.indexOf(t)===-1?[t,...e]:e.slice(),this}withElementContainer(e){if(e===this._container)return this;let t=S(this.element),i=this._scrollableElements.indexOf(this._container),s=this._scrollableElements.indexOf(e);return i>-1&&this._scrollableElements.splice(i,1),s>-1&&this._scrollableElements.splice(s,1),this._sortStrategy&&this._sortStrategy.withElementContainer(e),this._cachedShadowRoot=null,this._scrollableElements.unshift(e),this._container=e,this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}getItemAtIndex(e){return this._isDragging?this._sortStrategy.getItemAtIndex(e):this._draggables[e]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,i,s){if(this.sortingDisabled||!this._domRect||!he(this._domRect,we,t,i))return;let n=this._sortStrategy.sort(e,t,i,s);n&&this.sorted.next({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:e})}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let i,s=f.NONE,n=g.NONE;if(this._parentPositions.positions.forEach((o,a)=>{a===this._document||!o.clientRect||i||he(o.clientRect,we,e,t)&&([s,n]=je(a,o.clientRect,this._direction,e,t),(s||n)&&(i=a))}),!s&&!n){let{width:o,height:a}=this._viewportRuler.getViewportSize(),l={width:o,height:a,top:0,right:o,bottom:a,left:0};s=Re(l,t),n=Ce(l,e),i=window}i&&(s!==this._verticalScrollDirection||n!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=n,this._scrollNode=i,(s||n)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let e=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let e=this._container.style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(t=>t._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),Et(0,yt).pipe(O(this._stopScrollTimers)).subscribe(()=>{let e=this._scrollNode,t=this.autoScrollStep;this._verticalScrollDirection===f.UP?e.scrollBy(0,-t):this._verticalScrollDirection===f.DOWN&&e.scrollBy(0,t),this._horizontalScrollDirection===g.LEFT?e.scrollBy(-t,0):this._horizontalScrollDirection===g.RIGHT&&e.scrollBy(t,0)})};_isOverContainer(e,t){return this._domRect!=null&&_t(this._domRect,e,t)}_getSiblingContainerFromPosition(e,t,i){return this._siblings.find(s=>s._canReceive(e,t,i))}_canReceive(e,t,i){if(!this._domRect||!_t(this._domRect,t,i)||!this.enterPredicate(e,this))return!1;let s=this._getShadowRoot().elementFromPoint(t,i);return s?s===this._container||this._container.contains(s):!1}_startReceiving(e,t){let i=this._activeSiblings;!i.has(e)&&t.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:e,receiver:this,items:t}))}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:e,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){let t=this._parentPositions.handleScroll(e);t&&this._sortStrategy.updateOnScroll(t.top,t.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let e=z(this._container);this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let e=this._sortStrategy.getActiveItemsSnapshot().filter(t=>t.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}};function Re(r,e){let{top:t,bottom:i,height:s}=r,n=s*Ee;return e>=t-n&&e<=t+n?f.UP:e>=i-n&&e<=i+n?f.DOWN:f.NONE}function Ce(r,e){let{left:t,right:i,width:s}=r,n=s*Ee;return e>=t-n&&e<=t+n?g.LEFT:e>=i-n&&e<=i+n?g.RIGHT:g.NONE}function je(r,e,t,i,s){let n=Re(e,s),o=Ce(e,i),a=f.NONE,l=g.NONE;if(n){let d=r.scrollTop;n===f.UP?d>0&&(a=f.UP):r.scrollHeight-d>r.clientHeight&&(a=f.DOWN)}if(o){let d=r.scrollLeft;t==="rtl"?o===g.RIGHT?d<0&&(l=g.RIGHT):r.scrollWidth+d>r.clientWidth&&(l=g.LEFT):o===g.LEFT?d>0&&(l=g.LEFT):r.scrollWidth-d>r.clientWidth&&(l=g.RIGHT)}return[a,l]}var N={capture:!0},ht={passive:!1,capture:!0},qe=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275cmp=C({type:r,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(i,s){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
2
- `],encapsulation:2,changeDetection:0})}return r})(),Ie=(()=>{class r{_ngZone=c(V);_document=c(Q);_styleLoader=c(Zt);_renderer=c(it).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new p;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=tt([]);_globalListeners;_draggingPredicate=t=>t.isDragging();_domNodesToDirectives=null;pointerMove=new p;pointerUp=new p;constructor(){}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,ht)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(t,i){if(!(this._activeDragInstances().indexOf(t)>-1)&&(this._styleLoader.load(qe),this._activeDragInstances.update(s=>[...s,t]),this._activeDragInstances().length===1)){let s=i.type.startsWith("touch"),n=a=>this.pointerUp.next(a),o=[["scroll",a=>this._scroll.next(a),N],["selectstart",this._preventDefaultWhileDragging,ht]];s?o.push(["touchend",n,N],["touchcancel",n,N]):o.push(["mouseup",n,N]),s||o.push(["mousemove",a=>this.pointerMove.next(a),ht]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=o.map(([a,l,d])=>this._renderer.listen(this._document,a,l,d))})}}stopDragging(t){this._activeDragInstances.update(i=>{let s=i.indexOf(t);return s>-1?(i.splice(s,1),[...i]):i}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances().indexOf(t)>-1}scrolled(t){let i=[this._scroll];return t&&t!==this._document&&i.push(new Y(s=>this._ngZone.runOutsideAngular(()=>{let n=this._renderer.listen(t,"scroll",o=>{this._activeDragInstances().length&&s.next(o)},N);return()=>{n()}}))),H(...i)}registerDirectiveNode(t,i){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(t,i)}removeDirectiveNode(t){this._domNodesToDirectives?.delete(t)}getDragDirectiveForNode(t){return this._domNodesToDirectives?.get(t)||null}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=t=>{this._activeDragInstances().length>0&&t.preventDefault()};_persistentTouchmoveListener=t=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))};_clearGlobalListeners(){this._globalListeners?.forEach(t=>t()),this._globalListeners=void 0}static \u0275fac=function(i){return new(i||r)};static \u0275prov=J({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Ke={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Te=(()=>{class r{_document=c(Q);_ngZone=c(V);_viewportRuler=c(Jt);_dragDropRegistry=c(Ie);_renderer=c(it).createRenderer(null,null);constructor(){}createDrag(t,i=Ke){return new ut(t,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(t){return new ft(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(i){return new(i||r)};static \u0275prov=J({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Se=new x("CDK_DRAG_PARENT");var Ye=new x("CdkDragHandle");var ke=new x("CDK_DRAG_CONFIG"),Oe=new x("CdkDropList"),Me=(()=>{class r{element=c(et);dropContainer=c(Oe,{optional:!0,skipSelf:!0});_ngZone=c(V);_viewContainerRef=c(Ot);_dir=c(dt,{optional:!0});_changeDetectorRef=c(at);_selfHandle=c(Ye,{optional:!0,self:!0});_parentDrag=c(Se,{optional:!0,skipSelf:!0});_dragDropRegistry=c(Ie);_destroyed=new p;_handles=new Pt([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(t){this._disabled=t,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new v;released=new v;ended=new v;entered=new v;exited=new v;dropped=new v;moved=new Y(t=>{let i=this._dragRef.moved.pipe(xt(s=>({source:this,pointerPosition:s.pointerPosition,event:s.event,delta:s.delta,distance:s.distance}))).subscribe(t);return()=>{i.unsubscribe()}});_injector=c(Tt);constructor(){let t=this.dropContainer,i=c(ke,{optional:!0}),s=c(Te);this._dragRef=s.createDrag(this.element,{dragStartThreshold:i&&i.dragStartThreshold!=null?i.dragStartThreshold:5,pointerDirectionChangeThreshold:i&&i.pointerDirectionChangeThreshold!=null?i.pointerDirectionChangeThreshold:5,zIndex:i?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),i&&this._assignDefaults(i),t&&(t.addItem(this),t._dropListRef.beforeStarted.pipe(O(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}resetToBoundary(){this._dragRef.resetToBoundary()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(t){this._dragRef.setFreeDragPosition(t)}ngAfterViewInit(){Mt(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(t){let i=t.rootElementSelector,s=t.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(t){let i=this._handles.getValue();i.push(t),this._handles.next(i)}_removeHandle(t){let i=this._handles.getValue(),s=i.indexOf(t);s>-1&&(i.splice(s,1),this._handles.next(i))}_setPreviewTemplate(t){this._previewTemplate=t}_resetPreviewTemplate(t){t===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(t){this._placeholderTemplate=t}_resetPlaceholderTemplate(t){t===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let t=this.element.nativeElement,i=t;this.rootElementSelector&&(i=t.closest!==void 0?t.closest(this.rootElementSelector):t.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||t)}_getBoundaryElement(){let t=this.boundaryElement;return t?typeof t=="string"?this.element.nativeElement.closest(t):S(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){let i=this._dir,s=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,o=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.scale=this.scale,t.dragStartDelay=typeof s=="object"&&s?s:lt(s),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(o).withPreviewContainer(this.previewContainer||"global"),i&&t.withDirection(i.value)}}),t.beforeStarted.pipe(Rt(1)).subscribe(()=>{if(this._parentDrag){t.withParent(this._parentDrag._dragRef);return}let i=this.element.nativeElement.parentElement;for(;i;){let s=this._dragDropRegistry.getDragDirectiveForNode(i);if(s){t.withParent(s._dragRef);break}i=i.parentElement}})}_handleEvents(t){t.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),t.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(t){let{lockAxis:i,dragStartDelay:s,constrainPosition:n,previewClass:o,boundaryElement:a,draggingDisabled:l,rootElementSelector:d,previewContainer:h}=t;this.disabled=l??!1,this.dragStartDelay=s||0,i&&(this.lockAxis=i),n&&(this.constrainPosition=n),o&&(this.previewClass=o),a&&(this.boundaryElement=a),d&&(this.rootElementSelector=d),h&&(this.previewContainer=h)}_setupHandlesListener(){this._handles.pipe(It(t=>{let i=t.map(s=>s.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),Ct(t=>H(...t.map(i=>i._stateChanges.pipe(X(i))))),O(this._destroyed)).subscribe(t=>{let i=this._dragRef,s=t.element.nativeElement;t.disabled?i.disableHandle(s):i.enableHandle(s)})}static \u0275fac=function(i){return new(i||r)};static \u0275dir=st({type:r,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(i,s){i&2&&nt("cdk-drag-disabled",s.disabled)("cdk-drag-dragging",s._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",T],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",Vt]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[ot([{provide:Se,useExisting:r}]),kt]})}return r})(),Pe=new x("CdkDropListGroup");var Le=(()=>{class r{element=c(et);_changeDetectorRef=c(at);_scrollDispatcher=c(Xt);_dir=c(dt,{optional:!0});_group=c(Pe,{optional:!0,skipSelf:!0});_latestSortedRefs;_destroyed=new p;_scrollableParentsResolved;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation;id=c(qt).getId("cdk-drop-list-");lockAxis;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=t}_disabled;sortingDisabled;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled;autoScrollStep;elementContainerSelector;hasAnchor;dropped=new v;entered=new v;exited=new v;sorted=new v;_unsortedItems=new Set;constructor(){let t=c(Te),i=c(ke,{optional:!0});this._dropListRef=t.createDropList(this.element),this._dropListRef.data=this,i&&this._assignDefaults(i),this._dropListRef.enterPredicate=(s,n)=>this.enterPredicate(s.data,n.data),this._dropListRef.sortPredicate=(s,n,o)=>this.sortPredicate(s,n.data,o.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),r._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(t){this._unsortedItems.add(t),t._dragRef._withDropContainer(this._dropListRef),this._dropListRef.isDragging()&&this._syncItemsWithRef(this.getSortedItems().map(i=>i._dragRef))}removeItem(t){if(this._unsortedItems.delete(t),this._latestSortedRefs){let i=this._latestSortedRefs.indexOf(t._dragRef);i>-1&&(this._latestSortedRefs.splice(i,1),this._syncItemsWithRef(this._latestSortedRefs))}}getSortedItems(){return Array.from(this._unsortedItems).sort((t,i)=>t._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let t=r._dropLists.indexOf(this);t>-1&&r._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._latestSortedRefs=void 0,this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(t){this._dir&&this._dir.change.pipe(X(this._dir.value),O(this._destroyed)).subscribe(i=>t.withDirection(i)),t.beforeStarted.subscribe(()=>{let i=jt(this.connectedTo).map(s=>{if(typeof s=="string"){let n=r._dropLists.find(o=>o.id===s);return n}return s});if(this._group&&this._group._items.forEach(s=>{i.indexOf(s)===-1&&i.push(s)}),!this._scrollableParentsResolved){let s=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(n=>n.getElementRef().nativeElement);this._dropListRef.withScrollableParents(s),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let s=this.element.nativeElement.querySelector(this.elementContainerSelector);t.withElementContainer(s)}t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.sortingDisabled=this.sortingDisabled,t.autoScrollDisabled=this.autoScrollDisabled,t.autoScrollStep=lt(this.autoScrollStep,2),t.hasAnchor=this.hasAnchor,t.connectedTo(i.filter(s=>s&&s!==this).map(s=>s._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(this.getSortedItems().map(i=>i._dragRef)),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),H(t.receivingStarted,t.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(t){let{lockAxis:i,draggingDisabled:s,sortingDisabled:n,listAutoScrollDisabled:o,listOrientation:a}=t;this.disabled=s??!1,this.sortingDisabled=n??!1,this.autoScrollDisabled=o??!1,this.orientation=a||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(t){this._latestSortedRefs=t,this._dropListRef.withItems(t)}static \u0275fac=function(i){return new(i||r)};static \u0275dir=st({type:r,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(i,s){i&2&&(Lt("id",s.id),nt("cdk-drop-list-disabled",s.disabled)("cdk-drop-list-dragging",s._dropListRef.isDragging())("cdk-drop-list-receiving",s._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",T],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",T],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",T],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor","hasAnchor",T]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[ot([{provide:Pe,useValue:void 0},{provide:Oe,useExisting:r}])]})}return r})();var Ne=(()=>{class r{_bottomSheetRef=c(te);clickAction(t){this._bottomSheetRef.dismiss(t)}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=C({type:r,selectors:[["dashboards-manage-bottom-sheet"]],decls:11,vars:0,consts:[["mat-list-item","",3,"click"],["matListItemIcon",""]],template:function(i,s){i&1&&(_(0,"mat-action-list")(1,"button",0),P("click",function(){return s.clickAction("duplicate")}),_(2,"mat-icon",1),b(3,"content_copy"),D(),_(4,"span"),b(5,"Duplicate"),D()(),_(6,"button",0),P("click",function(){return s.clickAction("delete")}),_(7,"mat-icon",1),b(8,"delete_forever"),D(),_(9,"span"),b(10,"Delete"),D()()())},dependencies:[oe,ne,re,se,$,G],encapsulation:2})}return r})();var Je=(r,e)=>e.id;function Qe(r,e){if(r&1){let t=Bt();_(0,"div",6),P("cdkDragStarted",function(){E(t);let s=I();return R(s.dragStart())})("cdkDragMoved",function(s){E(t);let n=I();return R(n.onDragMoved(s))})("cdkDragEnded",function(){E(t);let s=I();return R(s.dragEnd())})("press",function(){let s=E(t).$index,n=I();return R(n.onPress(s))})("doubletap",function(){let s=E(t).$index,n=I();return R(n.editDashboard(s))}),_(1,"span",7)(2,"div",8),b(3),D()(),_(4,"p",9),b(5),D()()}if(r&2){let t=e.$implicit,i=e.$index;B(3),rt(i+1),B(2),rt(t.name)}}var Ui=(()=>{class r{pageTitle="Dashboards";_bottomSheet=c(ee);_dashboard=c($t);_uiEvent=c(zt);_dialog=c(Qt);_dragActive=!1;_dragMoved=!1;_dragSuppressThresholdPx=4;addDashboard(){this._dialog.openNameDialog({title:"New Dashboard",name:`Dashboard ${this._dashboard.dashboards().length+1}`,confirmBtnText:"Create",cancelBtnText:"Cancel"}).afterClosed().subscribe(t=>{t&&this._dashboard.add(t.name,[])})}openBottomSheet(t){this._bottomSheet.open(Ne).afterDismissed().subscribe(s=>{switch(s){case"delete":this.deleteDashboard(t);break;case"duplicate":this.duplicateDashboard(t,`${this._dashboard.dashboards()[t].name}`);break;default:break}})}editDashboard(t){this._dialog.openNameDialog({title:"Rename Dashboard",name:this._dashboard.dashboards()[t].name,confirmBtnText:"Save",cancelBtnText:"Cancel"}).afterClosed().subscribe(i=>{i&&this._dashboard.update(t,i.name)})}deleteDashboard(t){this._dashboard.delete(t)}duplicateDashboard(t,i){this._dialog.openNameDialog({title:"Duplicate Dashboard",name:`${i} copy`,confirmBtnText:"Save",cancelBtnText:"Cancel"}).afterClosed().subscribe(s=>{s&&this._dashboard.duplicate(t,s.name)})}drop(t){this._dashboard.dashboards.update(i=>{let s=[...i];return j(s,t.previousIndex,t.currentIndex),s})}dragStart(){this._uiEvent.isDragging.set(!0),this._dragActive=!0,this._dragMoved=!1}dragEnd(){this._uiEvent.isDragging.set(!1),this._dragActive=!1,setTimeout(()=>{this._dragMoved=!1},60)}onDragMoved(t){if(!this._dragActive||this._dragMoved)return;Math.hypot(t.distance.x,t.distance.y)>this._dragSuppressThresholdPx&&(this._dragMoved=!0)}onPress(t){this._dragMoved||this.openBottomSheet(t)}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=C({type:r,selectors:[["dashboards-editor"]],decls:11,vars:1,consts:[[3,"pageTitle"],["cdkDropList","","cdkDropListOrientation","mixed",1,"dashboard-manage",3,"cdkDropListDropped"],["kipGestures","","cdkDrag","","cdkDragBoundary",".dashboard-manage",1,"dashboard-card","dashboard-item"],[1,"dashboard-card","dashboard-item-add","dashboard-add-btn"],["mat-fab","",3,"click"],[2,"margin-top","10px"],["kipGestures","","cdkDrag","","cdkDragBoundary",".dashboard-manage",1,"dashboard-card","dashboard-item",3,"cdkDragStarted","cdkDragMoved","cdkDragEnded","press","doubletap"],[2,"display","block","width","100%"],[1,"item-index"],[1,"mat-title-large",2,"margin-top","25px"]],template:function(i,s){i&1&&(Ht(0,"page-header",0),_(1,"div",1),P("cdkDropListDropped",function(o){return s.drop(o)}),Nt(2,Qe,6,2,"div",2,Je),_(4,"div",3)(5,"button",4),P("click",function(){return s.addDashboard()}),_(6,"mat-icon"),b(7,"add_box"),D()(),_(8,"p",5)(9,"i"),b(10,"Add Dashboard"),D()()()()),i&2&&(Ft("pageTitle",s.pageTitle),B(2),At(s._dashboard.dashboards()))},dependencies:[ie,Yt,Kt,ae,$,G,Le,Me,Gt],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}.dashboard-manage[_ngcontent-%COMP%]{box-sizing:border-box;padding:0 60px;width:100%;height:calc(100% - 63px);display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-around;overflow-y:auto;scroll-behavior:smooth}.dashboard-card[_ngcontent-%COMP%]{position:relative;height:200px;width:300px;margin:10px;border-radius:15px;padding:10px;align-content:center;text-align:center}.dashboard-item[_ngcontent-%COMP%]{background-color:var(--kip-widget-card-background-color);border:1px solid var(--mat-sys-surface-container-highest)}.dashboard-item-add[_ngcontent-%COMP%]{background-color:var(--mat-sys-surface-container);border:1px solid var(--mat-sys-surface-container-highest)}.dashboard-add-btn[_ngcontent-%COMP%]{align-content:center;text-align:center;border:dashed 1px var(--mat-sys-outline)}.item-index[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;height:42px;width:42px;background-color:var(--mat-sys-tertiary-fixed);color:var(--mat-sys-surface-bright);border-radius:50%;align-content:center;align-items:center;justify-content:center;font-weight:700}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px var(--mat-sys-on-primary-container),0 8px 10px 1px var(--mat-sys-on-primary-container),0 3px 14px 2px var(--mat-sys-on-primary-container)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}"]})}return r})();export{Ui as DashboardsEditorComponent};