guito 0.2.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/README.md +39 -2
  2. package/bin/index.js +727 -50
  3. package/bin/ui/3rdpartylicenses.txt +329 -0
  4. package/bin/ui/browser/favicon.svg +9 -0
  5. package/bin/ui/browser/index.html +13 -0
  6. package/bin/ui/browser/main-2DRQNM37.js +5 -0
  7. package/bin/ui/browser/polyfills-5CFQRCPP.js +2 -0
  8. package/bin/ui/browser/styles-I7K2YZTW.css +1 -0
  9. package/bin/ui/browser/vs/abap-D-t0cyap.js +1 -0
  10. package/bin/ui/browser/vs/apex-CcIm7xu6.js +1 -0
  11. package/bin/ui/browser/vs/assets/css.worker-URu8fCFR.js +97 -0
  12. package/bin/ui/browser/vs/assets/editor.worker-lj3bdIIn.js +30 -0
  13. package/bin/ui/browser/vs/assets/editorWebWorkerMain-CA_vMoUU.js +30 -0
  14. package/bin/ui/browser/vs/assets/html.worker-D1SL3iM8.js +474 -0
  15. package/bin/ui/browser/vs/assets/json.worker-CoJx_OPf.js +62 -0
  16. package/bin/ui/browser/vs/assets/ts.worker-BWKtMYOk.js +67722 -0
  17. package/bin/ui/browser/vs/azcli-BA0tQDCg.js +1 -0
  18. package/bin/ui/browser/vs/basic-languages/monaco.contribution.js +1 -0
  19. package/bin/ui/browser/vs/bat-C397hTD6.js +1 -0
  20. package/bin/ui/browser/vs/bicep-DF5aW17k.js +2 -0
  21. package/bin/ui/browser/vs/cameligo-plsz8qhj.js +1 -0
  22. package/bin/ui/browser/vs/clojure-Y2auQMzK.js +1 -0
  23. package/bin/ui/browser/vs/coffee-Bu45yuWE.js +1 -0
  24. package/bin/ui/browser/vs/cpp-CkKPQIni.js +1 -0
  25. package/bin/ui/browser/vs/csharp-CX28MZyh.js +1 -0
  26. package/bin/ui/browser/vs/csp-D8uWnyxW.js +1 -0
  27. package/bin/ui/browser/vs/css-CaeNmE3S.js +3 -0
  28. package/bin/ui/browser/vs/css.worker-CyhWkhHo.js +1 -0
  29. package/bin/ui/browser/vs/cssMode-CV6Ay48H.js +1 -0
  30. package/bin/ui/browser/vs/cypher-DVThT8BS.js +1 -0
  31. package/bin/ui/browser/vs/dart-CmGfCvrO.js +1 -0
  32. package/bin/ui/browser/vs/dockerfile-CZqqYdch.js +1 -0
  33. package/bin/ui/browser/vs/ecl-30fUercY.js +1 -0
  34. package/bin/ui/browser/vs/editor/editor.main.css +1 -0
  35. package/bin/ui/browser/vs/editor/editor.main.js +1 -0
  36. package/bin/ui/browser/vs/editor/editor.worker.js +1 -0
  37. package/bin/ui/browser/vs/editor-KLE6jdfb.js +831 -0
  38. package/bin/ui/browser/vs/editor.js +1 -0
  39. package/bin/ui/browser/vs/editorWorkerHost-fVE1cjcC.js +35 -0
  40. package/bin/ui/browser/vs/elixir-xjPaIfzF.js +1 -0
  41. package/bin/ui/browser/vs/flow9-DqtmStfK.js +1 -0
  42. package/bin/ui/browser/vs/freemarker2-FWreY7v7.js +3 -0
  43. package/bin/ui/browser/vs/fsharp-BOMdg4U1.js +1 -0
  44. package/bin/ui/browser/vs/go-D_hbi-Jt.js +1 -0
  45. package/bin/ui/browser/vs/graphql-CKUU4kLG.js +1 -0
  46. package/bin/ui/browser/vs/handlebars-CZi4pHCH.js +1 -0
  47. package/bin/ui/browser/vs/hcl-DTaboeZW.js +1 -0
  48. package/bin/ui/browser/vs/html-j_7ZTNRU.js +1 -0
  49. package/bin/ui/browser/vs/html.worker-CA3iAimZ.js +1 -0
  50. package/bin/ui/browser/vs/htmlMode-27by_KM4.js +1 -0
  51. package/bin/ui/browser/vs/index-049xrXrp.js +1 -0
  52. package/bin/ui/browser/vs/index-CBVt3dzv.js +5 -0
  53. package/bin/ui/browser/vs/index.js +1 -0
  54. package/bin/ui/browser/vs/ini-CsNwO04R.js +1 -0
  55. package/bin/ui/browser/vs/initialize-DL0l1TGY.js +1 -0
  56. package/bin/ui/browser/vs/java-CI4ZMsH9.js +1 -0
  57. package/bin/ui/browser/vs/javascript-DTJl4Jn1.js +1 -0
  58. package/bin/ui/browser/vs/json.worker-BizpAl9O.js +1 -0
  59. package/bin/ui/browser/vs/jsonMode-DLUiMUrI.js +1 -0
  60. package/bin/ui/browser/vs/julia-BwzEvaQw.js +1 -0
  61. package/bin/ui/browser/vs/kotlin-IUYPiTV8.js +1 -0
  62. package/bin/ui/browser/vs/language/css/css.worker.js +66 -0
  63. package/bin/ui/browser/vs/language/css/monaco.contribution.js +1 -0
  64. package/bin/ui/browser/vs/language/html/html.worker.js +443 -0
  65. package/bin/ui/browser/vs/language/html/monaco.contribution.js +1 -0
  66. package/bin/ui/browser/vs/language/json/json.worker.js +17 -0
  67. package/bin/ui/browser/vs/language/json/monaco.contribution.js +1 -0
  68. package/bin/ui/browser/vs/language/typescript/monaco.contribution.js +1 -0
  69. package/bin/ui/browser/vs/language/typescript/ts.worker.js +67693 -0
  70. package/bin/ui/browser/vs/less-C0eDYdqa.js +2 -0
  71. package/bin/ui/browser/vs/lexon-iON-Kj97.js +1 -0
  72. package/bin/ui/browser/vs/liquid-CLJYelW6.js +1 -0
  73. package/bin/ui/browser/vs/loader.js +1368 -0
  74. package/bin/ui/browser/vs/lspLanguageFeatures-BIkJOWLw.js +2 -0
  75. package/bin/ui/browser/vs/lua-DtygF91M.js +1 -0
  76. package/bin/ui/browser/vs/m3-CsR4AuFi.js +1 -0
  77. package/bin/ui/browser/vs/main-BEx-Fmlo.js +15 -0
  78. package/bin/ui/browser/vs/main-DsK8pnKg.js +3 -0
  79. package/bin/ui/browser/vs/markdown-C_rD0bIw.js +1 -0
  80. package/bin/ui/browser/vs/mdx-CpzZIPHF.js +1 -0
  81. package/bin/ui/browser/vs/mips-CiYP61RB.js +1 -0
  82. package/bin/ui/browser/vs/monaco.contribution-9cKT3C7t.js +1 -0
  83. package/bin/ui/browser/vs/monaco.contribution-BE88ZNGY.js +1 -0
  84. package/bin/ui/browser/vs/monaco.contribution-BPhsneLd.js +1 -0
  85. package/bin/ui/browser/vs/monaco.contribution-BgRy6xDf.js +1 -0
  86. package/bin/ui/browser/vs/msdax-C38-sJlp.js +1 -0
  87. package/bin/ui/browser/vs/mysql-CdtbpvbG.js +1 -0
  88. package/bin/ui/browser/vs/nls/lang/cs.d.ts +1 -0
  89. package/bin/ui/browser/vs/nls/lang/cs.js +9 -0
  90. package/bin/ui/browser/vs/nls/lang/de.d.ts +1 -0
  91. package/bin/ui/browser/vs/nls/lang/de.js +9 -0
  92. package/bin/ui/browser/vs/nls/lang/es.d.ts +1 -0
  93. package/bin/ui/browser/vs/nls/lang/es.js +9 -0
  94. package/bin/ui/browser/vs/nls/lang/fr.d.ts +1 -0
  95. package/bin/ui/browser/vs/nls/lang/fr.js +9 -0
  96. package/bin/ui/browser/vs/nls/lang/it.d.ts +1 -0
  97. package/bin/ui/browser/vs/nls/lang/it.js +9 -0
  98. package/bin/ui/browser/vs/nls/lang/ja.d.ts +1 -0
  99. package/bin/ui/browser/vs/nls/lang/ja.js +9 -0
  100. package/bin/ui/browser/vs/nls/lang/ko.d.ts +1 -0
  101. package/bin/ui/browser/vs/nls/lang/ko.js +9 -0
  102. package/bin/ui/browser/vs/nls/lang/pl.d.ts +1 -0
  103. package/bin/ui/browser/vs/nls/lang/pl.js +9 -0
  104. package/bin/ui/browser/vs/nls/lang/pt-br.d.ts +1 -0
  105. package/bin/ui/browser/vs/nls/lang/pt-br.js +9 -0
  106. package/bin/ui/browser/vs/nls/lang/ru.d.ts +1 -0
  107. package/bin/ui/browser/vs/nls/lang/ru.js +9 -0
  108. package/bin/ui/browser/vs/nls/lang/tr.d.ts +1 -0
  109. package/bin/ui/browser/vs/nls/lang/tr.js +9 -0
  110. package/bin/ui/browser/vs/nls/lang/zh-cn.d.ts +1 -0
  111. package/bin/ui/browser/vs/nls/lang/zh-cn.js +9 -0
  112. package/bin/ui/browser/vs/nls/lang/zh-tw.d.ts +1 -0
  113. package/bin/ui/browser/vs/nls/lang/zh-tw.js +9 -0
  114. package/bin/ui/browser/vs/nls.messages-loader.js +1 -0
  115. package/bin/ui/browser/vs/objective-c-CntZFaHX.js +1 -0
  116. package/bin/ui/browser/vs/pascal-r6kuqfl_.js +1 -0
  117. package/bin/ui/browser/vs/pascaligo-BiXoTmXh.js +1 -0
  118. package/bin/ui/browser/vs/perl-DABw_TcH.js +1 -0
  119. package/bin/ui/browser/vs/pgsql-me_jFXeX.js +1 -0
  120. package/bin/ui/browser/vs/php-D_kh-9LK.js +1 -0
  121. package/bin/ui/browser/vs/pla-VfZjczW0.js +1 -0
  122. package/bin/ui/browser/vs/postiats-BBSzz8Pk.js +1 -0
  123. package/bin/ui/browser/vs/powerquery-Dt-g_2cc.js +1 -0
  124. package/bin/ui/browser/vs/powershell-B-7ap1zc.js +1 -0
  125. package/bin/ui/browser/vs/protobuf-BmtuEB1A.js +2 -0
  126. package/bin/ui/browser/vs/pug-BRpRNeEb.js +1 -0
  127. package/bin/ui/browser/vs/python-CqWUUgfu.js +1 -0
  128. package/bin/ui/browser/vs/qsharp-BzsFaUU9.js +1 -0
  129. package/bin/ui/browser/vs/r-f8dDdrp4.js +1 -0
  130. package/bin/ui/browser/vs/razor-hok5y9Km.js +1 -0
  131. package/bin/ui/browser/vs/redis-fvZQY4PI.js +1 -0
  132. package/bin/ui/browser/vs/redshift-45Et0LQi.js +1 -0
  133. package/bin/ui/browser/vs/restructuredtext-C7UUFKFD.js +1 -0
  134. package/bin/ui/browser/vs/ruby-CZO8zYTz.js +1 -0
  135. package/bin/ui/browser/vs/rust-Bfetafyc.js +1 -0
  136. package/bin/ui/browser/vs/sb-3GYllVck.js +1 -0
  137. package/bin/ui/browser/vs/scala-foMgrKo1.js +1 -0
  138. package/bin/ui/browser/vs/scheme-CHdMtr7p.js +1 -0
  139. package/bin/ui/browser/vs/scss-C1cmLt9V.js +3 -0
  140. package/bin/ui/browser/vs/shell-ClXCKCEW.js +1 -0
  141. package/bin/ui/browser/vs/solidity-MZ6ExpPy.js +1 -0
  142. package/bin/ui/browser/vs/sophia-DWkuSsPQ.js +1 -0
  143. package/bin/ui/browser/vs/sparql-AUGFYSyk.js +1 -0
  144. package/bin/ui/browser/vs/sql-32GpJSV2.js +1 -0
  145. package/bin/ui/browser/vs/st-CuDFIVZ_.js +1 -0
  146. package/bin/ui/browser/vs/swift-t-PfMj7W.js +1 -0
  147. package/bin/ui/browser/vs/systemverilog-Ch4vA8Yt.js +1 -0
  148. package/bin/ui/browser/vs/tcl-D74tq1nH.js +1 -0
  149. package/bin/ui/browser/vs/toggleHighContrast-qGX7E9o7.js +61 -0
  150. package/bin/ui/browser/vs/ts.worker-2QLmBukE.js +1 -0
  151. package/bin/ui/browser/vs/tsMode-B0S_kp2q.js +11 -0
  152. package/bin/ui/browser/vs/twig-C6taOxMV.js +1 -0
  153. package/bin/ui/browser/vs/typescript-_2t_511t.js +1 -0
  154. package/bin/ui/browser/vs/typespec-8OfoLt6R.js +1 -0
  155. package/bin/ui/browser/vs/vb-Dyb2648j.js +1 -0
  156. package/bin/ui/browser/vs/wgsl-BhLXMOR0.js +298 -0
  157. package/bin/ui/browser/vs/workers-BBttULjf.js +1 -0
  158. package/bin/ui/browser/vs/xml-cZjNDqDT.js +1 -0
  159. package/bin/ui/browser/vs/yaml-A1fOIdH6.js +1 -0
  160. package/bin/ui/prerendered-routes.json +3 -0
  161. package/package.json +19 -20
  162. package/bin/ui/assets/index-6fEMLduw.js +0 -7876
  163. package/bin/ui/assets/index-baVP32pl.css +0 -1
  164. package/bin/ui/assets/svelte-CKrU6DOB.css +0 -18684
  165. package/bin/ui/assets/svelte-dark-7cNU_wYW.css +0 -18684
  166. package/bin/ui/index.html +0 -38
  167. package/bin/ui/vite.svg +0 -1
@@ -0,0 +1,5 @@
1
+ var oh=Object.defineProperty,ih=Object.defineProperties;var sh=Object.getOwnPropertyDescriptors;var hl=Object.getOwnPropertySymbols;var ah=Object.prototype.hasOwnProperty,ch=Object.prototype.propertyIsEnumerable;var gl=(e,t,n)=>t in e?oh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z=(e,t)=>{for(var n in t||={})ah.call(t,n)&&gl(e,n,t[n]);if(hl)for(var n of hl(t))ch.call(t,n)&&gl(e,n,t[n]);return e},re=(e,t)=>ih(e,sh(t));var Mn=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(l){o(l)}},s=c=>{try{a(n.throw(c))}catch(l){o(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});var Ds;function co(){return Ds}function nt(e){let t=Ds;return Ds=e,t}var ml=Symbol("NotFound");function xn(e){return e===ml||e?.name==="\u0275NotFound"}var ve=null,lo=!1,Es=1,lh=null,ge=Symbol("SIGNAL");function T(e){let t=ve;return ve=e,t}function ho(){return ve}var Vt={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Sn(e){if(lo)throw new Error("");if(ve===null)return;ve.consumerOnSignalRead(e);let t=ve.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=ve.recomputing;if(r&&(n=t!==void 0?t.nextProducer:ve.producers,n!==void 0&&n.producer===e)){ve.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===ve&&(!r||dh(o,ve)))return;let i=Rn(ve),s={producer:e,consumer:ve,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};ve.producersTail=s,t!==void 0?t.nextProducer=s:ve.producers=s,i&&El(e,s)}function yl(){Es++}function go(e){if(!(Rn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Es)){if(!e.producerMustRecompute(e)&&!An(e)){po(e);return}e.producerRecomputeValue(e),po(e)}}function bs(e){if(e.consumers===void 0)return;let t=lo;lo=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||uh(r)}}finally{lo=t}}function Cs(){return ve?.consumerAllowSignalWrites!==!1}function uh(e){e.dirty=!0,bs(e),e.consumerMarkedDirty?.(e)}function po(e){e.dirty=!1,e.lastCleanEpoch=Es}function Ht(e){return e&&vl(e),T(e)}function vl(e){e.producersTail=void 0,e.recomputing=!0}function Nn(e,t){T(t),e&&Dl(e)}function Dl(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Rn(e))do n=_s(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function An(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(go(n),r!==n.version))return!0}return!1}function $t(e){if(Rn(e)){let t=e.producers;for(;t!==void 0;)t=_s(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function El(e,t){let n=e.consumersTail,r=Rn(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)El(o.producer,o)}function _s(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!Rn(t)){let i=t.producers;for(;i!==void 0;)i=_s(i)}return n}function Rn(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function mo(e){lh?.(e)}function dh(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function yo(e,t){return Object.is(e,t)}function sr(e,t){let n=Object.create(fh);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(go(n),Sn(n),n.value===ir)throw n.error;return n.value};return r[ge]=n,mo(n),r}var uo=Symbol("UNSET"),fo=Symbol("COMPUTING"),ir=Symbol("ERRORED"),fh=re(Z({},Vt),{value:uo,dirty:!0,error:null,equal:yo,kind:"computed",producerMustRecompute(e){return e.value===uo||e.value===fo},producerRecomputeValue(e){if(e.value===fo)throw new Error("");let t=e.value;e.value=fo;let n=Ht(e),r,o=!1;try{r=e.computation(),T(null),o=t!==uo&&t!==ir&&r!==ir&&e.equal(t,r)}catch(i){r=ir,e.error=i}finally{Nn(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function ph(){throw new Error}var bl=ph;function Cl(e){bl(e)}function ws(e){bl=e}var hh=null;function Is(e,t){let n=Object.create(vo);n.value=e,t!==void 0&&(n.equal=t);let r=()=>_l(n);return r[ge]=n,mo(n),[r,s=>kn(n,s),s=>Ts(n,s)]}function _l(e){return Sn(e),e.value}function kn(e,t){Cs()||Cl(e),e.equal(e.value,t)||(e.value=t,gh(e))}function Ts(e,t){Cs()||Cl(e),kn(e,t(e.value))}var vo=re(Z({},Vt),{equal:yo,value:void 0,kind:"signal"});function gh(e){e.version++,yl(),bs(e),hh?.(e)}function O(e){return typeof e=="function"}function On(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Do=On(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
+ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function ar(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var we=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(O(r))try{r()}catch(i){t=i instanceof Do?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{wl(i)}catch(s){t=t??[],s instanceof Do?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Do(t)}}add(t){var n;if(t&&t!==this)if(this.closed)wl(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&ar(n,t)}remove(t){let{_finalizers:n}=this;n&&ar(n,t),t instanceof e&&t._removeParent(this)}};we.EMPTY=(()=>{let e=new we;return e.closed=!0,e})();var Ms=we.EMPTY;function Eo(e){return e instanceof we||e&&"closed"in e&&O(e.remove)&&O(e.add)&&O(e.unsubscribe)}function wl(e){O(e)?e():e.unsubscribe()}var qe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Pn={setTimeout(e,t,...n){let{delegate:r}=Pn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Pn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function bo(e){Pn.setTimeout(()=>{let{onUnhandledError:t}=qe;if(t)t(e);else throw e})}function xs(){}var Il=Ss("C",void 0,void 0);function Tl(e){return Ss("E",void 0,e)}function Ml(e){return Ss("N",e,void 0)}function Ss(e,t,n){return{kind:e,value:t,error:n}}var Ut=null;function Fn(e){if(qe.useDeprecatedSynchronousErrorHandling){let t=!Ut;if(t&&(Ut={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ut;if(Ut=null,n)throw r}}else e()}function xl(e){qe.useDeprecatedSynchronousErrorHandling&&Ut&&(Ut.errorThrown=!0,Ut.error=e)}var Gt=class extends we{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Eo(t)&&t.add(this)):this.destination=vh}static create(t,n,r){return new Tt(t,n,r)}next(t){this.isStopped?As(Ml(t),this):this._next(t)}error(t){this.isStopped?As(Tl(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?As(Il,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},mh=Function.prototype.bind;function Ns(e,t){return mh.call(e,t)}var Rs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Co(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Co(r)}else Co(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Co(n)}}},Tt=class extends Gt{constructor(t,n,r){super();let o;if(O(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&qe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Ns(t.next,i),error:t.error&&Ns(t.error,i),complete:t.complete&&Ns(t.complete,i)}):o=t}this.destination=new Rs(o)}};function Co(e){qe.useDeprecatedSynchronousErrorHandling?xl(e):bo(e)}function yh(e){throw e}function As(e,t){let{onStoppedNotification:n}=qe;n&&Pn.setTimeout(()=>n(e,t))}var vh={closed:!0,next:xs,error:yh,complete:xs};var Ln=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Sl(e){return e}function Nl(e){return e.length===0?Sl:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var K=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Eh(n)?n:new Tt(n,r,o);return Fn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Al(r),new r((o,i)=>{let s=new Tt({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Ln](){return this}pipe(...n){return Nl(n)(this)}toPromise(n){return n=Al(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Al(e){var t;return(t=e??qe.Promise)!==null&&t!==void 0?t:Promise}function Dh(e){return e&&O(e.next)&&O(e.error)&&O(e.complete)}function Eh(e){return e&&e instanceof Gt||Dh(e)&&Eo(e)}function bh(e){return O(e?.lift)}function De(e){return t=>{if(bh(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ee(e,t,n,r,o){return new ks(e,t,n,r,o)}var ks=class extends Gt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var Rl=On(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Mt=(()=>{class e extends K{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new _o(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Rl}next(n){Fn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Fn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Fn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Ms:(this.currentObservers=null,i.push(n),new we(()=>{this.currentObservers=null,ar(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new K;return n.source=this,n}}return e.create=(t,n)=>new _o(t,n),e})(),_o=class extends Mt{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Ms}};var cr=class extends Mt{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function kl(e){return e&&O(e.schedule)}function Ol(e){return e[e.length-1]}function Pl(e){return O(Ol(e))?e.pop():void 0}function Fl(e){return kl(Ol(e))?e.pop():void 0}function jl(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function Ll(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function zt(e){return this instanceof zt?(this.v=e,this):new zt(e)}function Bl(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(y){return Promise.resolve(y).then(f,d)}}function a(f,y){r[f]&&(o[f]=function(_){return new Promise(function(w,C){i.push([f,_,w,C])>1||c(f,_)})},y&&(o[f]=y(o[f])))}function c(f,y){try{l(r[f](y))}catch(_){p(i[0][3],_)}}function l(f){f.value instanceof zt?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,y){f(y),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Vl(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ll=="function"?Ll(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var wo=e=>e&&typeof e.length=="number"&&typeof e!="function";function Io(e){return O(e?.then)}function To(e){return O(e[Ln])}function Mo(e){return Symbol.asyncIterator&&O(e?.[Symbol.asyncIterator])}function xo(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Ch(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var So=Ch();function No(e){return O(e?.[So])}function Ao(e){return Bl(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield zt(n.read());if(o)return yield zt(void 0);yield yield zt(r)}}finally{n.releaseLock()}})}function Ro(e){return O(e?.getReader)}function be(e){if(e instanceof K)return e;if(e!=null){if(To(e))return _h(e);if(wo(e))return wh(e);if(Io(e))return Ih(e);if(Mo(e))return Hl(e);if(No(e))return Th(e);if(Ro(e))return Mh(e)}throw xo(e)}function _h(e){return new K(t=>{let n=e[Ln]();if(O(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function wh(e){return new K(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Ih(e){return new K(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,bo)})}function Th(e){return new K(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Hl(e){return new K(t=>{xh(e,t).catch(n=>t.error(n))})}function Mh(e){return Hl(Ao(e))}function xh(e,t){var n,r,o,i;return jl(this,void 0,void 0,function*(){try{for(n=Vl(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function je(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function ko(e,t=0){return De((n,r)=>{n.subscribe(Ee(r,o=>je(r,e,()=>r.next(o),t),()=>je(r,e,()=>r.complete(),t),o=>je(r,e,()=>r.error(o),t)))})}function Oo(e,t=0){return De((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function $l(e,t){return be(e).pipe(Oo(t),ko(t))}function Ul(e,t){return be(e).pipe(Oo(t),ko(t))}function Gl(e,t){return new K(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function zl(e,t){return new K(n=>{let r;return je(n,t,()=>{r=e[So](),je(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>O(r?.return)&&r.return()})}function Po(e,t){if(!e)throw new Error("Iterable cannot be null");return new K(n=>{je(n,t,()=>{let r=e[Symbol.asyncIterator]();je(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Wl(e,t){return Po(Ao(e),t)}function ql(e,t){if(e!=null){if(To(e))return $l(e,t);if(wo(e))return Gl(e,t);if(Io(e))return Ul(e,t);if(Mo(e))return Po(e,t);if(No(e))return zl(e,t);if(Ro(e))return Wl(e,t)}throw xo(e)}function Zl(e,t){return t?ql(e,t):be(e)}function jn(...e){let t=Fl(e);return Zl(e,t)}var Yl=On(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Fo(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new Tt({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new Yl)}});e.subscribe(i)})}function Be(e,t){return De((n,r)=>{let o=0;n.subscribe(Ee(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Sh}=Array;function Nh(e,t){return Sh(t)?e(...t):e(t)}function Ql(e){return Be(t=>Nh(e,t))}var{isArray:Ah}=Array,{getPrototypeOf:Rh,prototype:kh,keys:Oh}=Object;function Kl(e){if(e.length===1){let t=e[0];if(Ah(t))return{args:t,keys:null};if(Ph(t)){let n=Oh(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Ph(e){return e&&typeof e=="object"&&Rh(e)===kh}function Xl(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Jl(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&t.complete()},f=_=>l<r?y(_):c.push(_),y=_=>{i&&t.next(_),l++;let w=!1;be(n(_,u++)).subscribe(Ee(t,C=>{o?.(C),i?f(C):t.next(C)},()=>{w=!0},void 0,()=>{if(w)try{for(l--;c.length&&l<r;){let C=c.shift();s?je(t,s,()=>y(C)):y(C)}p()}catch(C){t.error(C)}}))};return e.subscribe(Ee(t,f,()=>{d=!0,p()})),()=>{a?.()}}function Lo(e,t,n=1/0){return O(t)?Lo((r,o)=>Be((i,s)=>t(r,i,o,s))(be(e(r,o))),n):(typeof t=="number"&&(n=t),De((r,o)=>Jl(r,o,e,n)))}function Os(...e){let t=Pl(e),{args:n,keys:r}=Kl(e),o=new K(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;be(n[u]).subscribe(Ee(i,p=>{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Xl(r,a):a),i.complete())}))}});return t?o.pipe(Ql(t)):o}function Ps(e,t){return De((n,r)=>{let o=0;n.subscribe(Ee(r,i=>e.call(t,i,o++)&&r.next(i)))})}function jo(e){return De((t,n)=>{let r=null,o=!1,i;r=t.subscribe(Ee(n,void 0,void 0,s=>{i=be(e(s,jo(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Fs(e,t){return O(t)?Lo(e,t,1):Lo(e,1)}function Ls(e){return De((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function js(e,t){return De((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(Ee(r,c=>{o?.unsubscribe();let l=0,u=i++;be(e(c,u)).subscribe(o=Ee(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var eu=re(Z({},Vt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function tu(e){if(e.dirty=!1,e.version>0&&!An(e))return;e.version++;let t=Ht(e);try{e.cleanup(),e.fn()}finally{Nn(e,t)}}var Qs="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",b=class extends Error{code;constructor(t,n){super(Qt(t,n)),this.code=t}};function Fh(e){return`NG0${Math.abs(e)}`}function Qt(e,t){return`${Fh(e)}${t?": "+t:""}`}var Kt=globalThis;function $(e){for(let t in e)if(e[t]===$)return t;throw Error("")}function xt(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(xt).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function Uo(e,t){return e?t?`${e} ${t}`:e:t||""}var Lh=$({__forward_ref__:$});function Go(e){return e.__forward_ref__=Go,e.toString=function(){return xt(this())},e}function Re(e){return ou(e)?e():e}function ou(e){return typeof e=="function"&&e.hasOwnProperty(Lh)&&e.__forward_ref__===Go}function B(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function zo(e){return jh(e,Wo)}function jh(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Bh(e){let t=e?.[Wo]??null;return t||null}function Vs(e){return e&&e.hasOwnProperty(Vo)?e[Vo]:null}var Wo=$({\u0275prov:$}),Vo=$({\u0275inj:$}),x=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=B({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ks(e){return e&&!!e.\u0275providers}var Xs=$({\u0275cmp:$}),Js=$({\u0275dir:$}),ea=$({\u0275pipe:$});var Hs=$({\u0275fac:$}),Xt=$({__NG_ELEMENT_ID__:$}),nu=$({__NG_ENV_ID__:$});function qo(e){return typeof e=="string"?e:e==null?"":String(e)}function iu(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():qo(e)}var su=$({ngErrorCode:$}),Vh=$({ngErrorMessage:$}),Hh=$({ngTokenPath:$});function ta(e,t){return au("",-200,t)}function Zo(e,t){throw new b(-201,!1)}function au(e,t,n){let r=new b(t,e);return r[su]=t,r[Vh]=e,n&&(r[Hh]=n),r}function $h(e){return e[su]}var $s;function cu(){return $s}function Ie(e){let t=$s;return $s=e,t}function na(e,t,n){let r=zo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Zo(e,"Injector")}var Uh={},Wt=Uh,Gh="__NG_DI_FLAG__",Us=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=qt(n)||0;try{return this.injector.get(t,r&8?null:Wt,r)}catch(o){if(xn(o))return o;throw o}}};function zh(e,t=0){let n=co();if(n===void 0)throw new b(-203,!1);if(n===null)return na(e,void 0,t);{let r=Wh(t),o=n.retrieve(e,r);if(xn(o)){if(r.optional)return null;throw o}return o}}function P(e,t=0){return(cu()||zh)(Re(e),t)}function E(e,t){return P(e,qt(t))}function qt(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Wh(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Gs(e){let t=[];for(let n=0;n<e.length;n++){let r=Re(e[n]);if(Array.isArray(r)){if(r.length===0)throw new b(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=qh(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(P(o,i))}else t.push(P(r))}return t}function qh(e){return e[Gh]}function Zt(e,t){let n=e.hasOwnProperty(Hs);return n?e[Hs]:null}function lu(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function uu(e){return e.flat(Number.POSITIVE_INFINITY)}function Yo(e,t){e.forEach(n=>Array.isArray(n)?Yo(n,t):t(n))}function ra(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function fr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function du(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Qo(e,t,n){let r=Vn(e,t);return r>=0?e[r|1]=n:(r=~r,du(e,r,t,n)),r}function Ko(e,t){let n=Vn(e,t);if(n>=0)return e[n|1]}function Vn(e,t){return Zh(e,t,1)}function Zh(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Jt={},Ze=[],en=new x(""),oa=new x("",-1),ia=new x(""),ur=class{get(t,n=Wt){if(n===Wt){let o=au("",-201);throw o.name="\u0275NotFound",o}return n}};function tn(e){return e[Xs]||null}function sa(e){return e[Js]||null}function fu(e){return e[ea]||null}function pr(e){return{\u0275providers:e}}function pu(...e){return{\u0275providers:aa(!0,e),\u0275fromNgModule:!0}}function aa(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Yo(t,s=>{let a=s;Ho(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&hu(o,i),n}function hu(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ca(o,i=>{t(i,r)})}}function Ho(e,t,n,r){if(e=Re(e),!e)return!1;let o=null,i=Vs(e),s=!i&&tn(e);if(!i&&!s){let c=e.ngModule;if(i=Vs(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Ho(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;Yo(i.imports,u=>{Ho(u,t,n,r)&&(l||=[],l.push(u))}),l!==void 0&&hu(l,t)}if(!a){let l=Zt(o)||(()=>new o);t({provide:o,useFactory:l,deps:Ze},o),t({provide:ia,useValue:o,multi:!0},o),t({provide:en,useValue:()=>P(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;ca(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function ca(e,t){for(let n of e)Ks(n)&&(n=n.\u0275providers),Array.isArray(n)?ca(n,t):t(n)}var Yh=$({provide:String,useValue:$});function gu(e){return e!==null&&typeof e=="object"&&Yh in e}function Qh(e){return!!(e&&e.useExisting)}function Kh(e){return!!(e&&e.useFactory)}function $o(e){return typeof e=="function"}var hr=new x(""),Bo={},ru={},Bs;function gr(){return Bs===void 0&&(Bs=new ur),Bs}var Me=class{},Yt=class extends Me{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Ws(t,s=>this.processProvider(s)),this.records.set(oa,Bn(void 0,this)),o.has("environment")&&this.records.set(Me,Bn(void 0,this));let i=this.records.get(hr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ia,Ze,{self:!0}))}retrieve(t,n){let r=qt(n)||0;try{return this.get(t,Wt,r)}catch(o){if(xn(o))return o;throw o}}destroy(){lr(this),this._destroyed=!0;let t=T(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),T(t)}}onDestroy(t){return lr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){lr(this);let n=nt(this),r=Ie(void 0),o;try{return t()}finally{nt(n),Ie(r)}}get(t,n=Wt,r){if(lr(this),t.hasOwnProperty(nu))return t[nu](this);let o=qt(r),i,s=nt(this),a=Ie(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=ng(t)&&zo(t);u&&this.injectableDefInScope(u)?l=Bn(zs(t),Bo):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?gr():this.parent;return n=o&8&&n===Wt?null:n,c.get(t,n)}catch(c){let l=$h(c);throw l===-200||l===-201?new b(l,null):c}finally{Ie(a),nt(s)}}resolveInjectorInitializers(){let t=T(null),n=nt(this),r=Ie(void 0),o;try{let i=this.get(en,Ze,{self:!0});for(let s of i)s()}finally{nt(n),Ie(r),T(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(xt(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Re(t);let n=$o(t)?t:Re(t&&t.provide),r=Jh(t);if(!$o(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Bn(void 0,Bo,!0),o.factory=()=>Gs(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=T(null);try{if(n.value===ru)throw ta(xt(t));return n.value===Bo&&(n.value=ru,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&tg(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Re(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function zs(e){let t=zo(e),n=t!==null?t.factory:Zt(e);if(n!==null)return n;if(e instanceof x)throw new b(204,!1);if(e instanceof Function)return Xh(e);throw new b(204,!1)}function Xh(e){if(e.length>0)throw new b(204,!1);let n=Bh(e);return n!==null?()=>n.factory(e):()=>new e}function Jh(e){if(gu(e))return Bn(void 0,e.useValue);{let t=mu(e);return Bn(t,Bo)}}function mu(e,t,n){let r;if($o(e)){let o=Re(e);return Zt(o)||zs(o)}else if(gu(e))r=()=>Re(e.useValue);else if(Kh(e))r=()=>e.useFactory(...Gs(e.deps||[]));else if(Qh(e))r=(o,i)=>P(Re(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Re(e&&(e.useClass||e.provide));if(eg(e))r=()=>new o(...Gs(e.deps));else return Zt(o)||zs(o)}return r}function lr(e){if(e.destroyed)throw new b(205,!1)}function Bn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function eg(e){return!!e.deps}function tg(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function ng(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Ws(e,t){for(let n of e)Array.isArray(n)?Ws(n,t):n&&Ks(n)?Ws(n.\u0275providers,t):t(n)}function Hn(e,t){let n;e instanceof Yt?(lr(e),n=e):n=new Us(e);let r,o=nt(n),i=Ie(void 0);try{return t()}finally{nt(o),Ie(i)}}function yu(){return cu()!==void 0||co()!=null}var Ye=0,I=1,M=2,le=3,He=4,$e=5,$n=6,Un=7,oe=8,gt=9,mt=10,X=11,Gn=12,la=13,nn=14,Ue=15,Nt=16,rn=17,ot=18,mr=19,ua=20,pt=21,Xo=22,yt=23,ke=24,Jo=25,on=26,ue=27,vu=1,da=6,At=7,yr=8,sn=9,ee=10;function vt(e){return Array.isArray(e)&&typeof e[vu]=="object"}function Qe(e){return Array.isArray(e)&&e[vu]===!0}function fa(e){return(e.flags&4)!==0}function an(e){return e.componentOffset>-1}function ei(e){return(e.flags&1)===1}function cn(e){return!!e.template}function zn(e){return(e[M]&512)!==0}function ln(e){return(e[M]&256)===256}var pa="svg",Du="math";function Ge(e){for(;Array.isArray(e);)e=e[Ye];return e}function ha(e,t){return Ge(t[e])}function Ke(e,t){return Ge(t[e.index])}function vr(e,t){return e.data[t]}function Eu(e,t){return e[t]}function ga(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function it(e,t){let n=t[e];return vt(n)?n:n[Ye]}function ti(e){return(e[M]&128)===128}function bu(e){return Qe(e[le])}function st(e,t){return t==null?null:e[t]}function ma(e){e[rn]=0}function ya(e){e[M]&1024||(e[M]|=1024,ti(e)&&un(e))}function Cu(e,t){for(;e>0;)t=t[nn],e--;return t}function Dr(e){return!!(e[M]&9216||e[ke]?.dirty)}function ni(e){e[mt].changeDetectionScheduler?.notify(8),e[M]&64&&(e[M]|=1024),Dr(e)&&un(e)}function un(e){e[mt].changeDetectionScheduler?.notify(0);let t=St(e);for(;t!==null&&!(t[M]&8192||(t[M]|=8192,!ti(t)));)t=St(t)}function va(e,t){if(ln(e))throw new b(911,!1);e[pt]===null&&(e[pt]=[]),e[pt].push(t)}function _u(e,t){if(e[pt]===null)return;let n=e[pt].indexOf(t);n!==-1&&e[pt].splice(n,1)}function St(e){let t=e[le];return Qe(t)?t[le]:t}function Da(e){return e[Un]??=[]}function Ea(e){return e.cleanup??=[]}function wu(e,t,n,r){let o=Da(t);o.push(n),e.firstCreatePass&&Ea(e).push(r,o.length-1)}var S={lFrame:Bu(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var qs=!1;function Iu(){return S.lFrame.elementDepthCount}function Tu(){S.lFrame.elementDepthCount++}function ba(){S.lFrame.elementDepthCount--}function Mu(){return S.bindingsEnabled}function xu(){return S.skipHydrationRootTNode!==null}function Ca(e){return S.skipHydrationRootTNode===e}function _a(){S.skipHydrationRootTNode=null}function j(){return S.lFrame.lView}function Ce(){return S.lFrame.tView}function V(e){return S.lFrame.contextLView=e,e[oe]}function H(e){return S.lFrame.contextLView=null,e}function Oe(){let e=wa();for(;e!==null&&e.type===64;)e=e.parent;return e}function wa(){return S.lFrame.currentTNode}function Su(){let e=S.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Wn(e,t){let n=S.lFrame;n.currentTNode=e,n.isParent=t}function Ia(){return S.lFrame.isParent}function Nu(){S.lFrame.isParent=!1}function Ta(){return qs}function qn(e){let t=qs;return qs=e,t}function Au(){let e=S.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ru(e){return S.lFrame.bindingIndex=e}function dn(){return S.lFrame.bindingIndex++}function Ma(e){let t=S.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function ku(){return S.lFrame.inI18n}function Ou(e,t){let n=S.lFrame;n.bindingIndex=n.bindingRootIndex=e,ri(t)}function Pu(){return S.lFrame.currentDirectiveIndex}function ri(e){S.lFrame.currentDirectiveIndex=e}function Fu(e){let t=S.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Lu(){return S.lFrame.currentQueryIndex}function oi(e){S.lFrame.currentQueryIndex=e}function rg(e){let t=e[I];return t.type===2?t.declTNode:t.type===1?e[$e]:null}function xa(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=rg(i),o===null||(i=i[nn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=S.lFrame=ju();return r.currentTNode=t,r.lView=e,!0}function ii(e){let t=ju(),n=e[I];S.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ju(){let e=S.lFrame,t=e===null?null:e.child;return t===null?Bu(e):t}function Bu(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Vu(){let e=S.lFrame;return S.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Sa=Vu;function si(){let e=Vu();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Hu(e){return(S.lFrame.contextLView=Cu(e,S.lFrame.contextLView))[oe]}function Dt(){return S.lFrame.selectedIndex}function Rt(e){S.lFrame.selectedIndex=e}function ai(){let e=S.lFrame;return vr(e.tView,e.selectedIndex)}function z(){S.lFrame.currentNamespace=pa}function me(){og()}function og(){S.lFrame.currentNamespace=null}function Na(){return S.lFrame.currentNamespace}var $u=!0;function ci(){return $u}function li(e){$u=e}function Zs(e,t=null,n=null,r){let o=Uu(e,t,n,r);return o.resolveInjectorInitializers(),o}function Uu(e,t=null,n=null,r,o=new Set){let i=[n||Ze,pu(e)];return r=r||(typeof e=="object"?void 0:xt(e)),new Yt(i,t||gr(),r||null,o)}var ht=class e{static THROW_IF_NOT_FOUND=Wt;static NULL=new ur;static create(t,n){if(Array.isArray(t))return Zs({name:""},n,t,"");{let r=t.name??"";return Zs({name:r},t.parent,t.providers,r)}}static \u0275prov=B({token:e,providedIn:"any",factory:()=>P(oa)});static __NG_ELEMENT_ID__=-1},Pe=new x(""),kt=(()=>{class e{static __NG_ELEMENT_ID__=ig;static __NG_ENV_ID__=n=>n}return e})(),dr=class extends kt{_lView;constructor(t){super(),this._lView=t}get destroyed(){return ln(this._lView)}onDestroy(t){let n=this._lView;return va(n,t),()=>_u(n,t)}};function ig(){return new dr(j())}var Ve=class{_console=console;handleError(t){this._console.error("ERROR",t)}},at=new x("",{providedIn:"root",factory:()=>{let e=E(Me),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(Ve),t.handleError(n))}}}),Gu={provide:en,useValue:()=>{E(Ve)},multi:!0};function F(e,t){let[n,r,o]=Is(e,t?.equal),i=n,s=i[ge];return i.set=r,i.update=o,i.asReadonly=Aa.bind(i),i}function Aa(){let e=this[ge];if(e.readonlyFn===void 0){let t=()=>this();t[ge]=e,e.readonlyFn=t}return e.readonlyFn}var Er=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=sg}return e})();function sg(){return new Er(j(),Oe())}var rt=class{},br=new x("",{providedIn:"root",factory:()=>!1});var Ra=new x(""),ka=new x(""),Ot=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new cr(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new K(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}return e})(),Cr=(()=>{class e{internalPendingTasks=E(Ot);scheduler=E(rt);errorHandler=E(at);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}return e})();function fn(...e){}var _r=(()=>{class e{static \u0275prov=B({token:e,providedIn:"root",factory:()=>new Ys})}return e})(),Ys=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}};function Dd(e){return{toString:e}.toString()}function mg(e){return typeof e=="function"}var yi=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Ed(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function yg(e){return e.type.prototype.ngOnChanges&&(e.setInput=Dg),vg}function vg(){let e=Cd(this),t=e?.current;if(t){let n=e.previous;if(n===Jt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Dg(e,t,n,r,o){let i=this.declaredInputs[r],s=Cd(e)||Eg(e,{previous:Jt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new yi(l&&l.currentValue,n,c===Jt),Ed(e,t,o,n)}var bd="__ngSimpleChanges__";function Cd(e){return e[bd]||null}function Eg(e,t){return e[bd]=t}var zu=[];var W=function(e,t=null,n){for(let r=0;r<zu.length;r++){let o=zu[r];o(e,t,n)}};function bg(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=yg(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Cg(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function fi(e,t,n){_d(e,t,3,n)}function pi(e,t,n,r){(e[M]&3)===n&&_d(e,t,n,r)}function Oa(e,t){let n=e[M];(n&3)===t&&(n&=16383,n+=1,e[M]=n)}function _d(e,t,n,r){let o=r!==void 0?e[rn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[rn]+=65536),(a<i||i==-1)&&(_g(e,n,t,c),e[rn]=(e[rn]&4294901760)+c+2),c++}function Wu(e,t){W(4,e,t);let n=T(null);try{t.call(e)}finally{T(n),W(5,e,t)}}function _g(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[M]>>14<e[rn]>>16&&(e[M]&3)===t&&(e[M]+=16384,Wu(a,i)):Wu(a,i)}var Yn=-1,Tr=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function wg(e){return(e.flags&8)!==0}function Ig(e){return(e.flags&16)!==0}function Tg(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];xg(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Mg(e){return e===3||e===4||e===6}function xg(e){return e.charCodeAt(0)===64}function ki(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?qu(e,n,o,null,t[++r]):qu(e,n,o,null,null))}}return e}function qu(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function wd(e){return e!==Yn}function vi(e){return e&32767}function Sg(e){return e>>16}function Di(e,t){let n=Sg(e),r=t;for(;n>0;)r=r[nn],n--;return r}var $a=!0;function Ei(e){let t=$a;return $a=e,t}var Ng=256,Id=Ng-1,Td=5,Ag=0,ct={};function Rg(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Xt)&&(r=n[Xt]),r==null&&(r=n[Xt]=Ag++);let o=r&Id,i=1<<o;t.data[e+(o>>Td)]|=i}function Md(e,t){let n=xd(e,t);if(n!==-1)return n;let r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,Pa(r.data,e),Pa(t,null),Pa(r.blueprint,null));let o=vc(e,t),i=e.injectorIndex;if(wd(o)){let s=vi(o),a=Di(o,t),c=a[I].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Pa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function xd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function vc(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=kd(o),r===null)return Yn;if(n++,o=o[nn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Yn}function kg(e,t,n){Rg(e,t,n)}function Sd(e,t,n){if(n&8||e!==void 0)return e;Zo(t,"NodeInjector")}function Nd(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[gt],i=Ie(void 0);try{return o?o.get(t,r,n&8):na(t,r,n&8)}finally{Ie(i)}}return Sd(r,t,n)}function Ad(e,t,n,r=0,o){if(e!==null){if(t[M]&2048&&!(r&2)){let s=Lg(e,t,n,r,ct);if(s!==ct)return s}let i=Rd(e,t,n,r,ct);if(i!==ct)return i}return Nd(t,n,r,o)}function Rd(e,t,n,r,o){let i=Pg(n);if(typeof i=="function"){if(!xa(t,e,r))return r&1?Sd(o,n,r):Nd(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Zo(n);else return s}finally{Sa()}}else if(typeof i=="number"){let s=null,a=xd(e,t),c=Yn,l=r&1?t[Ue][$e]:null;for((a===-1||r&4)&&(c=a===-1?vc(e,t):t[a+8],c===Yn||!Yu(r,!1)?a=-1:(s=t[I],a=vi(c),t=Di(c,t)));a!==-1;){let u=t[I];if(Zu(i,a,u.data)){let d=Og(a,t,n,s,r,l);if(d!==ct)return d}c=t[a+8],c!==Yn&&Yu(r,t[I].data[a+8]===l)&&Zu(i,a,t)?(s=u,a=vi(c),t=Di(c,t)):a=-1}}return o}function Og(e,t,n,r,o,i){let s=t[I],a=s.data[e+8],c=r==null?an(a)&&$a:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=hi(a,s,n,c,l);return u!==null?bi(t,s,u,a,o):ct}function hi(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:l;for(let f=d;f<p;f++){let y=s[f];if(f<c&&n===y||f>=c&&y.type===n)return f}if(o){let f=s[c];if(f&&cn(f)&&f.type===n)return c}return null}function bi(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Tr){let a=i;if(a.resolving){let f=iu(s[n]);throw ta(f)}let c=Ei(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?Ie(a.injectImpl):null,p=xa(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&bg(n,s[n],t)}finally{d!==null&&Ie(d),Ei(c),a.resolving=!1,Sa()}}return i}function Pg(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Xt)?e[Xt]:void 0;return typeof t=="number"?t>=0?t&Id:Fg:t}function Zu(e,t,n){let r=1<<e;return!!(n[t+(e>>Td)]&r)}function Yu(e,t){return!(e&2)&&!(e&1&&t)}var pn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Ad(this._tNode,this._lView,t,qt(r),n)}};function Fg(){return new pn(Oe(),j())}function Lg(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[M]&2048&&!zn(s);){let a=Rd(i,s,n,r|2,ct);if(a!==ct)return a;let c=i.parent;if(!c){let l=s[ua];if(l){let u=l.get(n,ct,r);if(u!==ct)return u}c=kd(s),s=s[nn]}i=c}return o}function kd(e){let t=e[I],n=t.type;return n===2?t.declTNode:n===1?e[$e]:null}function jg(){return er(Oe(),j())}function er(e,t){return new tr(Ke(e,t))}var tr=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=jg}return e})();function Bg(e){return e instanceof tr?e.nativeElement:e}function Vg(){return this._results[Symbol.iterator]()}var Ci=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Mt}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=uu(t);(this._changesDetected=!lu(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Vg};function Od(e){return(e.flags&128)===128}var Dc=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Dc||{}),Pd=new Map,Hg=0;function $g(){return Hg++}function Ug(e){Pd.set(e[mr],e)}function Ua(e){Pd.delete(e[mr])}var Qu="__ngContext__";function Qn(e,t){vt(t)?(e[Qu]=t[mr],Ug(t)):e[Qu]=t}function Fd(e){return jd(e[Gn])}function Ld(e){return jd(e[He])}function jd(e){for(;e!==null&&!Qe(e);)e=e[He];return e}var Ga;function Ec(e){Ga=e}function Bd(){if(Ga!==void 0)return Ga;if(typeof document<"u")return document;throw new b(210,!1)}var Oi=new x("",{providedIn:"root",factory:()=>Gg}),Gg="ng",Pi=new x(""),Or=new x("",{providedIn:"platform",factory:()=>"unknown"});var Fi=new x("",{providedIn:"root",factory:()=>Bd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var zg="h",Wg="b";var Vd="r";var Hd="di";var $d=!1,Ud=new x("",{providedIn:"root",factory:()=>$d});var qg=(e,t,n,r)=>{};function Zg(e,t,n,r){qg(e,t,n,r)}function bc(e){return(e.flags&32)===32}var Yg=()=>null;function Gd(e,t,n=!1){return Yg(e,t,n)}function zd(e,t){let n=e.contentQueries;if(n!==null){let r=T(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];oi(i),a.contentQueries(2,t[s],s)}}}finally{T(r)}}}function za(e,t,n){oi(0);let r=T(null);try{t(e,n)}finally{T(r)}}function Wd(e,t,n){if(fa(t)){let r=T(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{T(r)}}}var bt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(bt||{});var Wa=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Qs})`}};function Cc(e){return e instanceof Wa?e.changingThisBreaksApplicationSecurity:e}function Qg(e,t){return e.createText(t)}function Kg(e,t,n){e.setValue(t,n)}function qd(e,t,n){return e.createElement(t,n)}function _i(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Zd(e,t,n){e.appendChild(t,n)}function Ku(e,t,n,r,o){r!==null?_i(e,t,n,r,o):Zd(e,t,n)}function Yd(e,t,n,r){e.removeChild(null,t,n,r)}function Xg(e,t,n){e.setAttribute(t,"style",n)}function Jg(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Qd(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Tg(e,t,r),o!==null&&Jg(e,t,o),i!==null&&Xg(e,t,i)}function dt(e){return e.ownerDocument}function em(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Kd="ng-template";function tm(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&em(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(_c(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function _c(e){return e.type===4&&e.value!==Kd}function nm(e,t,n){let r=e.type===4&&!n?Kd:e.value;return t===r}function rm(e,t,n){let r=4,o=e.attrs,i=o!==null?sm(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Xe(r)&&!Xe(c))return!1;if(s&&Xe(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!nm(e,c,n)||c===""&&t.length===1){if(Xe(r))return!1;s=!0}}else if(r&8){if(o===null||!tm(e,o,c,n)){if(Xe(r))return!1;s=!0}}else{let l=t[++a],u=om(c,o,_c(e),n);if(u===-1){if(Xe(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(Xe(r))return!1;s=!0}}}}return Xe(r)||s}function Xe(e){return(e&1)===0}function om(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return am(t,e)}function im(e,t,n=!1){for(let r=0;r<t.length;r++)if(rm(e,t[r],n))return!0;return!1}function sm(e){for(let t=0;t<e.length;t++){let n=e[t];if(Mg(n))return t}return e.length}function am(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Xu(e,t){return e?":not("+t.trim()+")":t}function cm(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Xe(s)&&(t+=Xu(i,o),o=""),r=s,i=i||!Xe(r);n++}return o!==""&&(t+=Xu(i,o)),t}function lm(e){return e.map(cm).join(",")}function um(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Xe(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var ze={};function wc(e,t,n,r,o,i,s,a,c,l,u){let d=ue+r,p=d+o,f=dm(d,p),y=typeof l=="function"?l():l;return f[I]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:y,incompleteFirstPass:!1,ssrId:u}}function dm(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:ze);return n}function fm(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=wc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ic(e,t,n,r,o,i,s,a,c,l,u){let d=t.blueprint.slice();return d[Ye]=o,d[M]=r|4|128|8|64|1024,(l!==null||e&&e[M]&2048)&&(d[M]|=2048),ma(d),d[le]=d[nn]=e,d[oe]=n,d[mt]=s||e&&e[mt],d[X]=a||e&&e[X],d[gt]=c||e&&e[gt]||null,d[$e]=i,d[mr]=$g(),d[$n]=u,d[ua]=l,d[Ue]=t.type==2?e[Ue]:d,d}function pm(e,t,n){let r=Ke(t,e),o=fm(n),i=e[mt].rendererFactory,s=Tc(e,Ic(e,o,null,Xd(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Xd(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Jd(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Tc(e,t){return e[Gn]?e[la][He]=t:e[Gn]=t,e[la]=t,t}function h(e=1){ef(Ce(),j(),Dt()+e,!1)}function ef(e,t,n,r){if(!r)if((t[M]&3)===3){let i=e.preOrderCheckHooks;i!==null&&fi(t,i,n)}else{let i=e.preOrderHooks;i!==null&&pi(t,i,0,n)}Rt(n)}var Li=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Li||{});function qa(e,t,n,r){let o=T(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Li.SignalBased)!==0&&(c=t[i][ge]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Ed(t,c,i,r)}finally{T(o)}}var lt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(lt||{}),hm;function Mc(e,t){return hm(e,t)}var hn=new Set,xc=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(xc||{}),Pr=new x(""),Ju=new Set;function yn(e){Ju.has(e)||(Ju.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var tf=!1,Za=class extends Mt{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,yu()&&(this.destroyRef=E(kt,{optional:!0})??void 0,this.pendingTasks=E(Ot,{optional:!0})??void 0)}emit(t){let n=T(null);try{super.next(t)}finally{T(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof we&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Et=Za;function nf(e){let t,n;function r(){e=fn;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function ed(e){return queueMicrotask(()=>e()),()=>{e=fn}}var Sc="isAngularZone",wi=Sc+"_ID",gm=0,de=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Et(!1);onMicrotaskEmpty=new Et(!1);onStable=new Et(!1);onError=new Et(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=tf}=t;if(typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,vm(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Sc)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new b(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,mm,fn,fn);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},mm={};function Nc(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function ym(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){nf(()=>{e.callbackScheduled=!1,Ya(e),e.isCheckStableRunning=!0,Nc(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ya(e)}function vm(e){let t=()=>{ym(e)},n=gm++;e._inner=e._inner.fork({name:"angular",properties:{[Sc]:!0,[wi]:n,[wi+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Dm(c))return r.invokeTask(i,s,a,c);try{return td(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),nd(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return td(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Em(c)&&t(),nd(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ya(e),Nc(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Ya(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function td(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function nd(e){e._nesting--,Nc(e)}var Ii=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Et;onMicrotaskEmpty=new Et;onStable=new Et;onError=new Et;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Dm(e){return rf(e,"__ignore_ng_zone__")}function Em(e){return rf(e,"__scheduler_tick__")}function rf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var of=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}return e})();var sf=new x("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function af(e,t,n){let r=e.get(sf);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function bm(e,t){let n=e.get(sf);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function Cm(e,t){for(let[n,r]of t)af(e,r.animateFns)}function rd(e,t,n,r){let o=e?.[on]?.enter;t!==null&&o&&o.has(n.index)&&Cm(r,o)}function Zn(e,t,n,r,o,i,s,a){if(o!=null){let c,l=!1;Qe(o)?c=o:vt(o)&&(l=!0,o=o[Ye]);let u=Ge(o);e===0&&r!==null?(rd(a,r,i,n),s==null?Zd(t,r,u):_i(t,r,u,s||null,!0)):e===1&&r!==null?(rd(a,r,i,n),_i(t,r,u,s||null,!0)):e===2?od(a,i,n,d=>{Yd(t,u,l,d)}):e===3&&od(a,i,n,()=>{t.destroyNode(u)}),c!=null&&Pm(t,e,n,c,i,r,s)}}function _m(e,t){cf(e,t),t[Ye]=null,t[$e]=null}function wm(e,t,n,r,o,i){r[Ye]=o,r[$e]=t,Bi(e,r,n,1,o,i)}function cf(e,t){t[mt].changeDetectionScheduler?.notify(9),Bi(e,t,t[X],2,null,null)}function Im(e){let t=e[Gn];if(!t)return Fa(e[I],e);for(;t;){let n=null;if(vt(t))n=t[Gn];else{let r=t[ee];r&&(n=r)}if(!n){for(;t&&!t[He]&&t!==e;)vt(t)&&Fa(t[I],t),t=t[le];t===null&&(t=e),vt(t)&&Fa(t[I],t),n=t&&t[He]}t=n}}function Ac(e,t){let n=e[sn],r=n.indexOf(t);n.splice(r,1)}function ji(e,t){if(ln(t))return;let n=t[X];n.destroyNode&&Bi(e,t,n,3,null,null),Im(t)}function Fa(e,t){if(ln(t))return;let n=T(null);try{t[M]&=-129,t[M]|=256,t[ke]&&$t(t[ke]),xm(e,t),Mm(e,t),t[I].type===1&&t[X].destroy();let r=t[Nt];if(r!==null&&Qe(t[le])){r!==t[le]&&Ac(r,t);let o=t[ot];o!==null&&o.detachView(e)}Ua(t)}finally{T(n)}}function od(e,t,n,r){let o=e?.[on];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&hn.add(e),af(n,()=>{if(o.leave&&o.leave.has(t.index)){let s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let l=s.animateFns[c],{promise:u}=l();a.push(u)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),Tm(e,r)}else e&&hn.delete(e),r(!1)},o)}function Tm(e,t){let n=e[on]?.running;if(n){n.then(()=>{e[on].running=void 0,hn.delete(e),t(!0)});return}t(!1)}function Mm(e,t){let n=e.cleanup,r=t[Un];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Un]=null);let o=t[pt];if(o!==null){t[pt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[yt];if(i!==null){t[yt]=null;for(let s of i)s.destroy()}}function xm(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Tr)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];W(4,a,c);try{c.call(a)}finally{W(5,a,c)}}else{W(4,o,i);try{i.call(o)}finally{W(5,o,i)}}}}}function Sm(e,t,n){return Nm(e,t.parent,n)}function Nm(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ye];if(an(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===bt.None||o===bt.Emulated)return null}return Ke(r,n)}function Am(e,t,n){return km(e,t,n)}function Rm(e,t,n){return e.type&40?Ke(e,n):null}var km=Rm,id;function Rc(e,t,n,r){let o=Sm(e,r,t),i=t[X],s=r.parent||t[$e],a=Am(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Ku(i,o,n[c],a,!1);else Ku(i,o,n,a,!1);id!==void 0&&id(i,r,t,n,o)}function wr(e,t){if(t!==null){let n=t.type;if(n&3)return Ke(t,e);if(n&4)return Qa(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return wr(e,r);{let o=e[t.index];return Qe(o)?Qa(-1,o):Ge(o)}}else{if(n&128)return wr(e,t.next);if(n&32)return Mc(t,e)()||Ge(e[t.index]);{let r=lf(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=St(e[Ue]);return wr(o,r)}else return wr(e,t.next)}}}return null}function lf(e,t){if(t!==null){let r=e[Ue][$e],o=t.projection;return r.projection[o]}return null}function Qa(e,t){let n=ee+e+1;if(n<t.length){let r=t[n],o=r[I].firstChild;if(o!==null)return wr(r,o)}return t[At]}function kc(e,t,n,r,o,i,s){for(;n!=null;){let a=r[gt];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&t===0&&(c&&Qn(Ge(c),r),n.flags|=2),!bc(n))if(l&8)kc(e,t,n.child,r,o,i,!1),Zn(t,e,a,o,c,n,i,r);else if(l&32){let u=Mc(n,r),d;for(;d=u();)Zn(t,e,a,o,d,n,i,r);Zn(t,e,a,o,c,n,i,r)}else l&16?Om(e,t,r,n,o,i):Zn(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function Bi(e,t,n,r,o,i){kc(n,r,e.firstChild,t,o,i,!1)}function Om(e,t,n,r,o,i){let s=n[Ue],c=s[$e].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Zn(t,e,n[gt],o,u,r,i,n)}else{let l=c,u=s[le];Od(r)&&(l.flags|=128),kc(e,t,l,u,o,i,!0)}}function Pm(e,t,n,r,o,i,s){let a=r[At],c=Ge(r);a!==c&&Zn(t,e,n,i,a,o,s);for(let l=ee;l<r.length;l++){let u=r[l];Bi(u[I],u,e,t,i,a)}}function Fm(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:lt.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=lt.Important),e.setStyle(n,r,o,i))}}function uf(e,t,n,r,o){let i=Dt(),s=r&2;try{Rt(-1),s&&t.length>ue&&ef(e,t,ue,!1),W(s?2:0,o,n),n(r,o)}finally{Rt(i),W(s?3:1,o,n)}}function df(e,t,n){Um(e,t,n),(n.flags&64)===64&&Gm(e,t,n)}function Oc(e,t,n=Ke){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function Lm(e,t,n,r){let i=r.get(Ud,$d)||n===bt.ShadowDom,s=e.selectRootElement(t,i);return jm(s),s}function jm(e){Bm(e)}var Bm=()=>null;function Vm(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Hm(e,t,n,r,o,i){let s=t[I];if(Pc(e,s,t,n,r)){an(e)&&$m(t,e.index);return}e.type&3&&(n=Vm(n)),ff(e,t,n,r,o,i)}function ff(e,t,n,r,o,i){if(e.type&3){let s=Ke(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function $m(e,t){let n=it(t,e);n[M]&16||(n[M]|=64)}function Um(e,t,n){let r=n.directiveStart,o=n.directiveEnd;an(n)&&pm(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Md(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=bi(t,e,s,n);if(Qn(c,t),i!==null&&Ym(t,s-r,c,a,n,i),cn(a)){let l=it(n.index,t);l[oe]=bi(t,e,s,n)}}}function Gm(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Pu();try{Rt(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];ri(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&zm(c,l)}}finally{Rt(-1),ri(s)}}function zm(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Wm(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];im(t,i.selectors,!1)&&(r??=[],cn(i)?r.unshift(i):r.push(i))}return r}function qm(e,t,n,r,o,i){let s=Ke(e,t);Zm(t[X],s,i,e.value,n,r,o)}function Zm(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?qo(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function Ym(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];qa(r,n,c,l)}}function pf(e,t,n,r,o){let i=ue+n,s=t[I],a=o(s,t,e,r,n);t[i]=a,Wn(e,!0);let c=e.type===2;return c?(Qd(t[X],a,e),(Iu()===0||ei(e))&&Qn(a,t),Tu()):Qn(a,t),ci()&&(!c||!bc(e))&&Rc(s,t,a,e),e}function hf(e){let t=e;return Ia()?Nu():(t=t.parent,Wn(t,!1)),t}function Qm(e,t){let n=e[gt];if(!n)return;let r;try{r=n.get(at,null)}catch{r=null}r?.(t)}function Pc(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=t.data[l];qa(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=t.data[c];qa(u,l,r,o),a=!0}return a}function Km(e,t){let n=it(t,e),r=n[I];Xm(r,n);let o=n[Ye];o!==null&&n[$n]===null&&(n[$n]=Gd(o,n[gt])),W(18),Fc(r,n,n[oe]),W(19,n[oe])}function Xm(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Fc(e,t,n){ii(t);try{let r=e.viewQuery;r!==null&&za(1,r,n);let o=e.template;o!==null&&uf(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[ot]?.finishViewCreation(e),e.staticContentQueries&&zd(e,t),e.staticViewQueries&&za(2,e.viewQuery,n);let i=e.components;i!==null&&Jm(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[M]&=-5,si()}}function Jm(e,t){for(let n=0;n<t.length;n++)Km(e,t[n])}function Vi(e,t,n,r){let o=T(null);try{let i=t.tView,a=e[M]&4096?4096:16,c=Ic(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[Nt]=l;let u=e[ot];return u!==null&&(c[ot]=u.createEmbeddedView(i)),Fc(i,c,n),c}finally{T(o)}}function Mr(e,t){return!t||t.firstChild===null||Od(e)}function xr(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(Ge(i)),Qe(i)&&gf(i,r);let s=n.type;if(s&8)xr(e,t,n.child,r);else if(s&32){let a=Mc(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=lf(t,n);if(Array.isArray(a))r.push(...a);else{let c=St(t[Ue]);xr(c[I],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function gf(e,t){for(let n=ee;n<e.length;n++){let r=e[n],o=r[I].firstChild;o!==null&&xr(r[I],r,o,t)}e[At]!==e[Ye]&&t.push(e[At])}function mf(e){if(e[Jo]!==null){for(let t of e[Jo])t.impl.addSequence(t);e[Jo].length=0}}var yf=[];function ey(e){return e[ke]??ty(e)}function ty(e){let t=yf.pop()??Object.create(ry);return t.lView=e,t}function ny(e){e.lView[ke]!==e&&(e.lView=null,yf.push(e))}var ry=re(Z({},Vt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{un(e.lView)},consumerOnSignalRead(){this.lView[ke]=this}});function oy(e){let t=e[ke]??Object.create(iy);return t.lView=e,t}var iy=re(Z({},Vt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=St(e.lView);for(;t&&!vf(t[I]);)t=St(t);t&&ya(t)},consumerOnSignalRead(){this.lView[ke]=this}});function vf(e){return e.type!==2}function Df(e){if(e[yt]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[yt])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[M]&8192)}}var sy=100;function Ef(e,t=0){let r=e[mt].rendererFactory,o=!1;o||r.begin?.();try{ay(e,t)}finally{o||r.end?.()}}function ay(e,t){let n=Ta();try{qn(!0),Ka(e,t);let r=0;for(;Dr(e);){if(r===sy)throw new b(103,!1);r++,Ka(e,1)}}finally{qn(n)}}function cy(e,t,n,r){if(ln(t))return;let o=t[M],i=!1,s=!1;ii(t);let a=!0,c=null,l=null;i||(vf(e)?(l=ey(t),c=Ht(l)):ho()===null?(a=!1,l=oy(t),c=Ht(l)):t[ke]&&($t(t[ke]),t[ke]=null));try{ma(t),Ru(e.bindingStartIndex),n!==null&&uf(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&fi(t,f,null)}else{let f=e.preOrderHooks;f!==null&&pi(t,f,0,null),Oa(t,0)}if(s||ly(t),Df(t),bf(t,0),e.contentQueries!==null&&zd(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&fi(t,f)}else{let f=e.contentHooks;f!==null&&pi(t,f,1),Oa(t,1)}dy(e,t);let d=e.components;d!==null&&_f(t,d,0);let p=e.viewQuery;if(p!==null&&za(2,p,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&fi(t,f)}else{let f=e.viewHooks;f!==null&&pi(t,f,2),Oa(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Xo]){for(let f of t[Xo])f();t[Xo]=null}i||(mf(t),t[M]&=-73)}catch(u){throw i||un(t),u}finally{l!==null&&(Nn(l,c),a&&ny(l)),si()}}function bf(e,t){for(let n=Fd(e);n!==null;n=Ld(n))for(let r=ee;r<n.length;r++){let o=n[r];Cf(o,t)}}function ly(e){for(let t=Fd(e);t!==null;t=Ld(t)){if(!(t[M]&2))continue;let n=t[sn];for(let r=0;r<n.length;r++){let o=n[r];ya(o)}}}function uy(e,t,n){W(18);let r=it(t,e);Cf(r,n),W(19,r[oe])}function Cf(e,t){ti(e)&&Ka(e,t)}function Ka(e,t){let r=e[I],o=e[M],i=e[ke],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&An(i)),s||=!1,i&&(i.dirty=!1),e[M]&=-9217,s)cy(r,e,r.template,e[oe]);else if(o&8192){let a=T(null);try{Df(e),bf(e,1);let c=r.components;c!==null&&_f(e,c,1),mf(e)}finally{T(a)}}}function _f(e,t,n){for(let r=0;r<t.length;r++)uy(e,t[r],n)}function dy(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Rt(~o);else{let i=o,s=n[++r],a=n[++r];Ou(s,i);let c=t[i];W(24,c),a(2,c),W(25,c)}}}finally{Rt(-1)}}function Lc(e,t){let n=Ta()?64:1088;for(e[mt].changeDetectionScheduler?.notify(t);e;){e[M]|=n;let r=St(e);if(zn(e)&&!r)return e;e=r}return null}function wf(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function If(e,t){let n=ee+t;if(n<e.length)return e[n]}function Hi(e,t,n,r=!0){let o=t[I];if(fy(o,t,e,n),r){let s=Qa(n,e),a=t[X],c=a.parentNode(e[At]);c!==null&&wm(o,e[$e],a,t,c,s)}let i=t[$n];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Tf(e,t){let n=Sr(e,t);return n!==void 0&&ji(n[I],n),n}function Sr(e,t){if(e.length<=ee)return;let n=ee+t,r=e[n];if(r){let o=r[Nt];o!==null&&o!==e&&Ac(o,r),t>0&&(e[n-1][He]=r[He]);let i=fr(e,ee+t);_m(r[I],r);let s=i[ot];s!==null&&s.detachView(i[I]),r[le]=null,r[He]=null,r[M]&=-129}return r}function fy(e,t,n,r){let o=ee+r,i=n.length;r>0&&(n[o-1][He]=t),r<i-ee?(t[He]=n[o],ra(n,ee+r,t)):(n.push(t),t[He]=null),t[le]=n;let s=t[Nt];s!==null&&n!==s&&Mf(s,t);let a=t[ot];a!==null&&a.insertView(e),ni(t),t[M]|=128}function Mf(e,t){let n=e[sn],r=t[le];if(vt(r))e[M]|=2;else{let o=r[le][Ue];t[Ue]!==o&&(e[M]|=2)}n===null?e[sn]=[t]:n.push(t)}var Kn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[I];return xr(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[oe]}set context(t){this._lView[oe]=t}get destroyed(){return ln(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[le];if(Qe(t)){let n=t[yr],r=n?n.indexOf(this):-1;r>-1&&(Sr(t,r),fr(n,r))}this._attachedToViewContainer=!1}ji(this._lView[I],this._lView)}onDestroy(t){va(this._lView,t)}markForCheck(){Lc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[M]&=-129}reattach(){ni(this._lView),this._lView[M]|=128}detectChanges(){this._lView[M]|=1024,Ef(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=zn(this._lView),n=this._lView[Nt];n!==null&&!t&&Ac(n,this._lView),cf(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=t;let n=zn(this._lView),r=this._lView[Nt];r!==null&&!n&&Mf(r,this._lView),ni(this._lView)}};var Xn=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=py;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=Vi(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Kn(i)}}return e})();function py(){return jc(Oe(),j())}function jc(e,t){return e.type&4?new Xn(t,e,er(e,t)):null}function $i(e,t,n,r,o){let i=e.data[t];if(i===null)i=hy(e,t,n,r,o),ku()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Su();i.injectorIndex=s===null?-1:s.injectorIndex}return Wn(i,!0),i}function hy(e,t,n,r,o){let i=wa(),s=Ia(),a=s?i:i&&i.parent,c=e.data[t]=my(e,a,n,t,r,o);return gy(e,c,i,s),c}function gy(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function my(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return xu()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:Na(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var ET=new RegExp(`^(\\d+)*(${Wg}|${zg})*(.*)`);function yy(e){let t=e[da]??[],r=e[le][X],o=[];for(let i of t)i.data[Hd]!==void 0?o.push(i):vy(i,r);e[da]=o}function vy(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Vd];for(;n<o;){let i=r.nextSibling;Yd(t,r,!1),r=i,n++}}}var Dy=()=>null,Ey=()=>null;function Xa(e,t){return Dy(e,t)}function xf(e,t,n){return Ey(e,t,n)}var Sf=class{},Ui=class{},Ja=class{resolveComponentFactory(t){throw new b(917,!1)}},Gi=class{static NULL=new Ja},gn=class{};var Nf=(()=>{class e{static \u0275prov=B({token:e,providedIn:"root",factory:()=>null})}return e})();var gi={},ec=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,gi,r);return o!==gi||n===gi?o:this.parentInjector.get(t,n,r)}};function Ti(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Uo(o,a);else if(i==2){let c=a,l=t[++s];r=Uo(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function vn(e,t=0){let n=j();if(n===null)return P(e,t);let r=Oe();return Ad(r,n,Re(e),t)}function by(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}wy(e,t,n,a,i,c,l)}i!==null&&r!==null&&Cy(n,r,i)}function Cy(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new b(-301,!1);r.push(t[o],i)}}function _y(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function wy(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let p=0;p<a;p++){let f=r[p];!c&&cn(f)&&(c=!0,_y(e,n,p)),kg(Md(n,t),e,f.type)}Ny(n,e.data.length,a);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=Jd(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=ki(n.mergedAttrs,f.hostAttrs),Ty(e,n,t,d,f),Sy(d,f,o),s!==null&&s.has(f)){let[_,w]=s.get(f);n.directiveToIndex.set(f.type,[d,_+n.directiveStart,w+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let y=f.type.prototype;!l&&(y.ngOnChanges||y.ngOnInit||y.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(y.ngOnChanges||y.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}Iy(e,n,i)}function Iy(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))sd(0,t,o,r),sd(1,t,o,r),cd(t,r,!1);else{let i=n.get(o);ad(0,t,i,r),ad(1,t,i,r),cd(t,r,!0)}}}function sd(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Af(t,i)}}function ad(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Af(t,s)}}function Af(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function cd(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||_c(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function Ty(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Zt(o.type,!0)),s=new Tr(i,cn(o),vn,null);e.blueprint[r]=s,n[r]=s,My(e,t,r,Jd(e,n,o.hostVars,ze),o)}function My(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;xy(s)!=a&&s.push(a),s.push(n,r,i)}}function xy(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Sy(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;cn(t)&&(n[""]=e)}}function Ny(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Rf(e,t,n,r,o,i,s,a){let c=t[I],l=c.consts,u=st(l,s),d=$i(c,e,n,r,u);return i&&by(c,t,d,st(l,a),o),d.mergedAttrs=ki(d.mergedAttrs,d.attrs),d.attrs!==null&&Ti(d,d.attrs,!1),d.mergedAttrs!==null&&Ti(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function kf(e,t){Cg(e,t),fa(t)&&e.queries.elementEnd(t)}function Ay(e,t,n,r,o,i){let s=t.consts,a=st(s,o),c=$i(t,e,n,r,a);if(c.mergedAttrs=ki(c.mergedAttrs,c.attrs),i!=null){let l=st(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&Ti(c,c.attrs,!1),c.mergedAttrs!==null&&Ti(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function Ry(e,t,n){return e[t]=n}function ut(e,t,n){if(n===ze)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function ky(e,t,n,r){let o=ut(e,t,n);return ut(e,t+1,r)||o}function mi(e,t,n){return function r(o){let i=an(e)?it(e.index,t):t;Lc(i,5);let s=t[oe],a=ld(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=ld(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function ld(e,t,n,r){let o=T(null);try{return W(6,t,n),n(r)!==!1}catch(i){return Qm(e,i),!1}finally{W(7,t,n),T(o)}}function Of(e,t,n,r,o,i,s,a){let c=ei(e),l=!1,u=null;if(!r&&c&&(u=Py(t,n,i,e.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=Ke(e,n),p=r?r(d):d;Zg(n,p,i,a);let f=o.listen(p,i,a);if(!Oy(i)){let y=r?_=>r(Ge(_[e.index])):e.index;Pf(y,t,n,i,a,f,!1)}}return l}function Oy(e){return e.startsWith("animation")||e.startsWith("transition")}function Py(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Un],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Pf(e,t,n,r,o,i,s){let a=t.firstCreatePass?Ea(t):null,c=Da(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function ud(e,t,n,r,o,i){let s=t[n],a=t[I],l=a.data[n].outputs[r],d=s[l].subscribe(i);Pf(e.index,a,t,o,i,d,!0)}var tc=Symbol("BINDING");var nc=class extends Gi{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=tn(t);return new Nr(n,this.ngModule)}};function Fy(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Li.SignalBased)!==0};return o&&(i.transform=o),i})}function Ly(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function jy(e,t,n){let r=t instanceof Me?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new ec(n,r):n}function By(e){let t=e.get(gn,null);if(t===null)throw new b(407,!1);let n=e.get(Nf,null),r=e.get(rt,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function Vy(e,t){let n=Ff(e);return qd(t,n,n==="svg"?pa:n==="math"?Du:null)}function Hy(e){if(e?.toLowerCase()==="script")throw new b(905,!1)}function Ff(e){return(e.selectors[0][0]||"div").toLowerCase()}var Nr=class extends Ui{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Fy(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Ly(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=lm(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){W(22);let a=T(null);try{let c=this.componentDef,l=$y(r,c,s,i),u=jy(c,o||this.ngModule,t),d=By(u),p=d.rendererFactory.createRenderer(null,c),f=r?Lm(p,r,c.encapsulation,u):Vy(c,p);Hy(f?.tagName);let y=s?.some(dd)||i?.some(C=>typeof C!="function"&&C.bindings.some(dd)),_=Ic(null,l,null,512|Xd(c),null,null,d,p,u,null,Gd(f,u,!0));_[ue]=f,ii(_);let w=null;try{let C=Rf(ue,_,2,"#host",()=>l.directiveRegistry,!0,0);Qd(p,f,C),Qn(f,_),df(l,_,C),Wd(l,C,_),kf(l,C),n!==void 0&&Gy(C,this.ngContentSelectors,n),w=it(C.index,_),_[oe]=w[oe],Fc(l,_,null)}catch(C){throw w!==null&&Ua(w),Ua(_),C}finally{W(23),si()}return new Mi(this.componentType,_,!!y)}finally{T(a)}}};function $y(e,t,n,r){let o=e?["ng-version","20.3.29"]:um(t.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[tc].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let p of d.bindings){a+=p[tc].requiredVars;let f=u+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p))}}let c=[t];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,p=sa(d);c.push(p)}return wc(0,null,Uy(i,s),1,a,c,null,null,null,[o],null)}function Uy(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function dd(e){let t=e[tc].kind;return t==="input"||t==="twoWay"}var Mi=class extends Sf{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=vr(n[I],ue),this.location=er(this._tNode,n),this.instance=it(this._tNode.index,n)[oe],this.hostView=this.changeDetectorRef=new Kn(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Pc(r,o[I],o,t,n);this.previousInputValues.set(t,n);let s=it(r.index,o);Lc(s,1)}get injector(){return new pn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Gy(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Fr=(()=>{class e{static __NG_ELEMENT_ID__=zy}return e})();function zy(){let e=Oe();return jf(e,j())}var Wy=Fr,Lf=class extends Wy{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return er(this._hostTNode,this._hostLView)}get injector(){return new pn(this._hostTNode,this._hostLView)}get parentInjector(){let t=vc(this._hostTNode,this._hostLView);if(wd(t)){let n=Di(t,this._hostLView),r=vi(t),o=n[I].data[r+8];return new pn(o,n)}else return new pn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=fd(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ee}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Xa(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Mr(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!mg(t),l;if(c)l=n;else{let w=n||{};l=w.index,r=w.injector,o=w.projectableNodes,i=w.environmentInjector||w.ngModuleRef,s=w.directives,a=w.bindings}let u=c?t:new Nr(tn(t)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let C=(c?d:this.parentInjector).get(Me,null);C&&(i=C)}let p=tn(u.componentType??{}),f=Xa(this._lContainer,p?.id??null),y=f?.firstChild??null,_=u.create(d,o,y,i,s,a);return this.insertImpl(_.hostView,l,Mr(this._hostTNode,f)),_}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(bu(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[le],l=new Lf(c,c[$e],c[le]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Hi(s,o,i,r),t.attachToViewContainerRef(),ra(La(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=fd(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Sr(this._lContainer,n);r&&(fr(La(this._lContainer),n),ji(r[I],r))}detach(t){let n=this._adjustIndex(t,-1),r=Sr(this._lContainer,n);return r&&fr(La(this._lContainer),n)!=null?new Kn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function fd(e){return e[yr]}function La(e){return e[yr]||(e[yr]=[])}function jf(e,t){let n,r=t[e.index];return Qe(r)?n=r:(n=wf(r,t,null,e),t[e.index]=n,Tc(t,n)),Zy(n,t,e,r),new Lf(n,e,t)}function qy(e,t){let n=e[X],r=n.createComment(""),o=Ke(t,e),i=n.parentNode(o);return _i(n,i,r,n.nextSibling(o),!1),r}var Zy=Ky,Yy=()=>!1;function Qy(e,t,n){return Yy(e,t,n)}function Ky(e,t,n,r){if(e[At])return;let o;n.type&8?o=Ge(r):o=qy(t,n),e[At]=o}var rc=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},oc=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Hf(t,n).matches!==null&&this.queries[n].setDirty()}},ic=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=ov(t):this.predicate=t}},sc=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},ac=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,Xy(n,i)),this.matchTNodeWithReadOption(t,n,hi(n,t,i,!1,!1))}else r===Xn?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,hi(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===tr||o===Fr||o===Xn&&n.type&4)this.addMatch(n.index,-2);else{let i=hi(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function Xy(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function Jy(e,t){return e.type&11?er(e,t):e.type&4?jc(e,t):null}function ev(e,t,n,r){return n===-1?Jy(t,e):n===-2?tv(e,t,r):bi(e,e[I],n,t)}function tv(e,t,n){if(n===tr)return er(t,e);if(n===Xn)return jc(t,e);if(n===Fr)return jf(t,e)}function Bf(e,t,n,r){let o=t[ot].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(ev(t,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function cc(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Bf(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=t[-c];for(let d=ee;d<u.length;d++){let p=u[d];p[Nt]===p[le]&&cc(p[I],p,l,r)}if(u[sn]!==null){let d=u[sn];for(let p=0;p<d.length;p++){let f=d[p];cc(f[I],f,l,r)}}}}}return r}function Vf(e,t){return e[ot].queries[t].queryList}function nv(e,t,n){let r=new Ci((n&4)===4);return wu(e,t,r,r.destroy),(t[ot]??=new oc).queries.push(new rc(r))-1}function rv(e,t,n){let r=Ce();return r.firstCreatePass&&(iv(r,new ic(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),nv(r,j(),t)}function ov(e){return e.split(",").map(t=>t.trim())}function iv(e,t,n){e.queries===null&&(e.queries=new sc),e.queries.track(new ac(t,n))}function Hf(e,t){return e.queries.getByIndex(t)}function sv(e,t){let n=e[I],r=Hf(n,t);return r.crossesNgTemplate?cc(n,e,t,[]):Bf(n,e,r,t)}function $f(e,t,n){let r,o=sr(()=>{r._dirtyCounter();let i=cv(r,e);if(t&&i===void 0)throw new b(-951,!1);return i});return r=o[ge],r._dirtyCounter=F(0),r._flatValue=void 0,o}function Uf(e){return $f(!0,!1,e)}function Gf(e){return $f(!0,!0,e)}function av(e,t){let n=e[ge];n._lView=j(),n._queryIndex=t,n._queryList=Vf(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function cv(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[M]&4)return t?void 0:Ze;let o=Vf(n,r),i=sv(n,r);return o.reset(i,Bg),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}var Ar=class{};var Rr=class extends Ar{injector;componentFactoryResolver=new nc(this);instance=null;constructor(t){super();let n=new Yt([...t.providers,{provide:Ar,useValue:this},{provide:Gi,useValue:this.componentFactoryResolver}],t.parent||gr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function zf(e,t,n=null){return new Rr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var lv=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=aa(!1,n.type),o=r.length>0?zf([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=B({token:e,providedIn:"environment",factory:()=>new e(P(Me))})}return e})();function Te(e){return Dd(()=>{let t=pv(e),n=re(Z({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Dc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(lv).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||bt.Emulated,styles:e.styles||Ze,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&yn("NgStandalone"),hv(n);let r=e.dependencies;return n.directiveDefs=pd(r,uv),n.pipeDefs=pd(r,fu),n.id=gv(n),n})}function uv(e){return tn(e)||sa(e)}function dv(e,t){if(e==null)return Jt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Li.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function fv(e){if(e==null)return Jt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Bc(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function pv(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Jt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Ze,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:dv(e.inputs,t),outputs:fv(e.outputs),debugInfo:null}}function hv(e){e.features?.forEach(t=>t(e))}function pd(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function gv(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function mv(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=ki(e.mergedAttrs,e.attrs);let u=e.tView=wc(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),u.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Wn(e,!1);let c=yv(n,t,e,r);ci()&&Rc(n,t,c,e),Qn(c,t);let l=wf(c,t,c,e);t[r+ue]=l,Tc(t,l),Qy(l,e,t)}function xi(e,t,n,r,o,i,s,a,c,l,u){let d=n+ue,p;if(t.firstCreatePass){if(p=$i(t,d,4,s||null,a||null),l!=null){let f=st(t.consts,l);p.localNames=[];for(let y=0;y<f.length;y+=2)p.localNames.push(f[y],-1)}}else p=t.data[d];return mv(p,e,t,n,r,o,i,c),l!=null&&Oc(e,p,u),p}var yv=vv;function vv(e,t,n,r){return li(!0),t[X].createComment("")}var Vc=new x("");function zi(e){return!!e&&typeof e.then=="function"}function Hc(e){return!!e&&typeof e.subscribe=="function"}var Wf=new x("");var $c=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=E(Wf,{optional:!0})??[];injector=E(ht);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Hn(this.injector,o);if(zi(i))n.push(i);else if(Hc(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),qf=new x("");function Zf(){ws(()=>{let e="";throw new b(600,e)})}function Yf(e){return e.isBoundToModule}var Dv=10;var Lr=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=E(at);afterRenderManager=E(of);zonelessEnabled=E(br);rootEffectScheduler=E(_r);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Mt;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=E(Ot);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Be(n=>!n))}constructor(){E(Pr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=E(Me);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=ht.NULL){return this._injector.get(de).run(()=>{W(10);let s=n instanceof Ui;if(!this._injector.get($c).done){let y="";throw new b(405,y)}let c;s?c=n:c=this._injector.get(Gi).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=Yf(c)?void 0:this._injector.get(Ar),u=r||c.selector,d=c.create(o,[],u,l),p=d.location.nativeElement,f=d.injector.get(Vc,null);return f?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),Ir(this.components,d),f?.unregisterApplication(p)}),this._loadComponent(d),W(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){W(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(xc.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new b(101,!1);let n=T(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,T(n),this.afterTick.next(),W(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(gn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Dv;)W(14),this.synchronizeOnce(),W(15)}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Dr(o))continue;let i=r&&!this.zonelessEnabled?0:1;Ef(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Dr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Ir(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(qf,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ir(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new b(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ir(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function xe(e,t,n,r){let o=j(),i=dn();if(ut(o,i,t)){let s=Ce(),a=ai();qm(a,o,e,t,n,r)}return xe}var TT=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var lc=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function ja(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Ev(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let l=e.at(i),u=t[i],d=ja(i,l,i,u,n);if(d!==0){d<0&&e.updateValue(i,u),i++;continue}let p=e.at(s),f=t[c],y=ja(s,p,c,f,n);if(y!==0){y<0&&e.updateValue(s,f),s--,c--;continue}let _=n(i,l),w=n(s,p),C=n(i,u);if(Object.is(C,w)){let he=n(c,f);Object.is(he,_)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,u),i++;continue}if(r??=new Si,o??=gd(e,i,s,n),uc(e,r,i,C))e.updateValue(i,u),i++,s++;else if(o.has(C))r.set(_,e.detach(i)),s--;else{let he=e.create(i,t[i]);e.attach(i,he),i++,s++}}for(;i<=c;)hd(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),l=c.next();for(;!l.done&&i<=s;){let u=e.at(i),d=l.value,p=ja(i,u,i,d,n);if(p!==0)p<0&&e.updateValue(i,d),i++,l=c.next();else{r??=new Si,o??=gd(e,i,s,n);let f=n(i,d);if(uc(e,r,i,f))e.updateValue(i,d),i++,s++,l=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,l=c.next();else{let y=n(i,u);r.set(y,e.detach(i)),s--}}}for(;!l.done;)hd(e,r,n,e.length,l.value),l=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function uc(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function hd(e,t,n,r,o){if(uc(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function gd(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Si=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function N(e,t,n,r,o,i,s,a){yn("NgControlFlow");let c=j(),l=Ce(),u=st(l.consts,i);return xi(c,l,e,t,n,r,o,u,256,s,a),Uc}function Uc(e,t,n,r,o,i,s,a){yn("NgControlFlow");let c=j(),l=Ce(),u=st(l.consts,i);return xi(c,l,e,t,n,r,o,u,512,s,a),Uc}function A(e,t){yn("NgControlFlow");let n=j(),r=dn(),o=n[r]!==ze?n[r]:-1,i=o!==-1?Ni(n,ue+o):void 0,s=0;if(ut(n,r,e)){let a=T(null);try{if(i!==void 0&&Tf(i,s),e!==-1){let c=ue+e,l=Ni(n,c),u=hc(n[I],c),d=xf(l,u,n),p=Vi(n,u,t,{dehydratedView:d});Hi(l,p,s,Mr(u,d))}}finally{T(a)}}else if(i!==void 0){let a=If(i,s);a!==void 0&&(a[oe]=t)}}var dc=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ee}};function Dn(e){return e}var fc=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Se(e,t,n,r,o,i,s,a,c,l,u,d,p){yn("NgControlFlow");let f=j(),y=Ce(),_=c!==void 0,w=j(),C=a?s.bind(w[Ue][oe]):s,he=new fc(_,C);w[ue+e]=he,xi(f,y,e+1,t,n,r,o,st(y.consts,i),256),_&&xi(f,y,e+2,c,l,u,d,st(y.consts,p),512)}var pc=class extends lc{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ee}at(t){return this.getLView(t)[oe].$implicit}attach(t,n){let r=n[$n];this.needsIndexUpdate||=t!==this.length,Hi(this.lContainer,n,t,Mr(this.templateTNode,r)),bv(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Cv(this.lContainer,t),_v(this.lContainer,t)}create(t,n){let r=Xa(this.lContainer,this.templateTNode.tView.ssrId),o=Vi(this.hostLView,this.templateTNode,new dc(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){ji(t[I],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[oe].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[oe].$index=t}getLView(t){return wv(this.lContainer,t)}};function Ne(e){let t=T(null),n=Dt();try{let r=j(),o=r[I],i=r[n],s=n+1,a=Ni(r,s);if(i.liveCollection===void 0){let l=hc(o,s);i.liveCollection=new pc(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(Ev(c,e,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let l=dn(),u=c.length===0;if(ut(r,l,u)){let d=n+2,p=Ni(r,d);if(u){let f=hc(o,d),y=xf(p,f,r),_=Vi(r,f,void 0,{dehydratedView:y});Hi(p,_,0,Mr(f,y))}else o.firstUpdatePass&&yy(p),Tf(p,0)}}}finally{T(t)}}function Ni(e,t){return e[t]}function bv(e,t){if(e.length<=ee)return;let n=ee+t,r=e[n],o=r?r[on]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[gt];bm(i,o),hn.delete(r),o.detachedLeaveAnimationFns=void 0}}function Cv(e,t){if(e.length<=ee)return;let n=ee+t,r=e[n],o=r?r[on]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function _v(e,t){return Sr(e,t)}function wv(e,t){return If(e,t)}function hc(e,t){return vr(e,t)}function et(e,t,n){let r=j(),o=dn();if(ut(r,o,t)){let i=Ce(),s=ai();Hm(s,r,e,t,r[X],n)}return et}function gc(e,t,n,r,o){Pc(t,e,n,o?"class":"style",r)}function k(e,t,n,r){let o=j(),i=o[I],s=e+ue,a=i.firstCreatePass?Rf(s,o,2,t,Wm,Mu(),n,r):i.data[s];if(pf(a,o,e,t,Qf),ei(a)){let c=o[I];df(c,o,a),Wd(c,a,o)}return r!=null&&Oc(o,a),k}function R(){let e=Ce(),t=Oe(),n=hf(t);return e.firstCreatePass&&kf(e,n),Ca(n)&&_a(),ba(),n.classesWithoutHost!=null&&wg(n)&&gc(e,n,j(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Ig(n)&&gc(e,n,j(),n.stylesWithoutHost,!1),R}function Pt(e,t,n,r){return k(e,t,n,r),R(),Pt}function g(e,t,n,r){let o=j(),i=o[I],s=e+ue,a=i.firstCreatePass?Ay(s,i,2,t,n,r):i.data[s];return pf(a,o,e,t,Qf),r!=null&&Oc(o,a),g}function m(){let e=Oe(),t=hf(e);return Ca(t)&&_a(),ba(),m}function Y(e,t,n,r){return g(e,t,n,r),m(),Y}var Qf=(e,t,n,r,o)=>(li(!0),qd(t[X],r,Na()));function te(){return j()}function se(e,t,n){let r=j(),o=dn();if(ut(r,o,t)){let i=Ce(),s=ai();ff(s,r,e,t,r[X],n)}return se}var ui=void 0;function Iv(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Tv=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ui,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ui,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ui,"{1} 'at' {0}",ui],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Iv],Ba={};function Fe(e){let t=Mv(e),n=md(t);if(n)return n;let r=t.split("-")[0];if(n=md(r),n)return n;if(r==="en")return Tv;throw new b(701,!1)}function md(e){if(!(e in Ba)){let t=Kt.ng&&Kt.ng.common&&Kt.ng.common.locales&&Kt.ng.common.locales[e];return t!==void 0&&(Ba[e]=t),t}return Ba[e]}var ie=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(ie||{});function Mv(e){return e.toLowerCase().replace(/_/g,"-")}var jr="en-US";var xv=jr;function Kf(e){typeof e=="string"&&(xv=e.toLowerCase().replace(/_/g,"-"))}function ae(e,t,n){let r=j(),o=Ce(),i=Oe();return Sv(o,r,r[X],i,e,t,n),ae}function L(e,t,n){let r=j(),o=Ce(),i=Oe();return(i.type&3||n)&&Of(i,o,r,n,r[X],e,t,mi(i,r,t)),L}function Sv(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=mi(r,t,i),Of(r,e,t,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let p=u[d],f=u[d+1];c??=mi(r,t,i),ud(r,t,p,f,o,c)}if(l&&l.length)for(let d of l)c??=mi(r,t,i),ud(r,t,d,o,o,c)}}function D(e=1){return Hu(e)}function Br(e,t,n,r){av(e,rv(t,n,r))}function Vr(e=1){oi(Lu()+e)}function di(e,t){return e<<17|t<<2}function mn(e){return e>>17&32767}function Nv(e){return(e&2)==2}function Av(e,t){return e&131071|t<<17}function mc(e){return e|2}function Jn(e){return(e&131068)>>2}function Va(e,t){return e&-131069|t<<2}function Rv(e){return(e&1)===1}function yc(e){return e|1}function kv(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=mn(s),c=Jn(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Vn(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let p=mn(e[a+1]);e[r+1]=di(p,a),p!==0&&(e[p+1]=Va(e[p+1],r)),e[a+1]=Av(e[a+1],r)}else e[r+1]=di(a,0),a!==0&&(e[a+1]=Va(e[a+1],r)),a=r;else e[r+1]=di(c,0),a===0?a=r:e[c+1]=Va(e[c+1],r),c=r;l&&(e[r+1]=mc(e[r+1])),yd(e,u,r,!0),yd(e,u,r,!1),Ov(t,u,e,r,i),s=di(a,c),i?t.classBindings=s:t.styleBindings=s}function Ov(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Vn(i,t)>=0&&(n[r+1]=yc(n[r+1]))}function yd(e,t,n,r){let o=e[n+1],i=t===null,s=r?mn(o):Jn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];Pv(c,t)&&(a=!0,e[s+1]=r?yc(l):mc(l)),s=r?mn(l):Jn(l)}a&&(e[n+1]=r?mc(o):yc(o))}function Pv(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Vn(e,t)>=0:!1}var Je={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fv(e){return e.substring(Je.key,Je.keyEnd)}function Lv(e){return jv(e),Xf(e,Jf(e,0,Je.textEnd))}function Xf(e,t){let n=Je.textEnd;return n===t?-1:(t=Je.keyEnd=Bv(e,Je.key=t,n),Jf(e,t,n))}function jv(e){Je.key=0,Je.keyEnd=0,Je.value=0,Je.valueEnd=0,Je.textEnd=e.length}function Jf(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Bv(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function fe(e,t,n){return ep(e,t,n,!1),fe}function ft(e,t){return ep(e,t,null,!0),ft}function En(e){Hv(qv,Vv,e,!0)}function Vv(e,t){for(let n=Lv(t);n>=0;n=Xf(t,n))Qo(e,Fv(t),!0)}function ep(e,t,n,r){let o=j(),i=Ce(),s=Ma(2);if(i.firstUpdatePass&&np(i,e,s,r),t!==ze&&ut(o,s,t)){let a=i.data[Dt()];rp(i,a,o,o[X],e,o[s+1]=Yv(t,n),r,s)}}function Hv(e,t,n,r){let o=Ce(),i=Ma(2);o.firstUpdatePass&&np(o,null,i,r);let s=j();if(n!==ze&&ut(s,i,n)){let a=o.data[Dt()];if(op(a,r)&&!tp(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Uo(c,n||"")),gc(o,a,s,n,r)}else Zv(o,a,s,s[X],s[i+1],s[i+1]=Wv(e,t,n),r,i)}}function tp(e,t){return t>=e.expandoStartIndex}function np(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Dt()],s=tp(e,n);op(i,r)&&t===null&&!s&&(t=!1),t=$v(o,i,t,r),kv(o,i,t,n,s,r)}}function $v(e,t,n,r){let o=Fu(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ha(null,e,t,n,r),n=kr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ha(o,e,t,n,r),i===null){let c=Uv(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ha(null,e,t,c[1],r),c=kr(c,t.attrs,r),Gv(e,t,r,c))}else i=zv(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Uv(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Jn(r)!==0)return e[mn(r)]}function Gv(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[mn(o)]=r}function zv(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=kr(r,s,n)}return kr(r,t.attrs,n)}function Ha(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=kr(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function kr(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Qo(e,s,n?!0:t[++i]))}return e===void 0?null:e}function Wv(e,t,n){if(n==null||n==="")return Ze;let r=[],o=Cc(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function qv(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Qo(e,r,n)}function Zv(e,t,n,r,o,i,s,a){o===ze&&(o=Ze);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,y=null,_;u===d?(c+=2,l+=2,p!==f&&(y=d,_=f)):d===null||u!==null&&u<d?(c+=2,y=u):(l+=2,y=d,_=f),y!==null&&rp(e,t,n,r,y,_,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function rp(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=Rv(l)?vd(c,t,n,o,Jn(l),s):void 0;if(!Ai(u)){Ai(i)||Nv(l)&&(i=vd(c,null,n,o,a,s));let d=ha(Dt(),n);Fm(r,s,d,o,i)}}function vd(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[o+1];p===ze&&(p=d?Ze:void 0);let f=d?Ko(p,r):u===r?p:void 0;if(l&&!Ai(f)&&(f=Ko(c,r)),Ai(f)&&(a=f,s))return a;let y=e[o+1];o=s?mn(y):Jn(y)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ko(c,r))}return a}function Ai(e){return e!==void 0}function Yv(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=xt(Cc(e)))),e}function op(e,t){return(e.flags&(t?8:16))!==0}function v(e,t=""){let n=j(),r=Ce(),o=e+ue,i=r.firstCreatePass?$i(r,o,1,t,null):r.data[o],s=Qv(r,n,i,t,e);n[o]=s,ci()&&Rc(r,n,s,i),Wn(i,!1)}var Qv=(e,t,n,r,o)=>(li(!0),Qg(t[X],r));function Kv(e,t,n,r=""){return ut(e,dn(),n)?t+qo(n)+r:ze}function U(e){return ne("",e),U}function ne(e,t,n){let r=j(),o=Kv(r,e,t,n);return o!==ze&&Xv(r,Dt(),o),ne}function Xv(e,t,n){let r=ha(t,e);Kg(e[X],r,n)}function Jv(e,t){let n=e[t];return n===ze?void 0:n}function eD(e,t,n,r,o,i,s){let a=t+n;return ky(e,a,o,i)?Ry(e,a+2,s?r.call(s,o,i):r(o,i)):Jv(e,a+2)}function Hr(e,t){let n=Ce(),r,o=e+ue;n.firstCreatePass?(r=tD(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Zt(r.type,!0)),s,a=Ie(vn);try{let c=Ei(!1),l=i();return Ei(c),ga(n,j(),o,l),l}finally{Ie(a)}}function tD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function $r(e,t,n,r){let o=e+ue,i=j(),s=Eu(i,o);return nD(i,o)?eD(i,Au(),t,s.transform,n,r,s):s.transform(n,r)}function nD(e,t){return e[I].data[t].pure}var rD=(()=>{class e{zone=E(de);changeDetectionScheduler=E(rt);applicationRef=E(Lr);applicationErrorHandler=E(at);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(n){this.applicationErrorHandler(n)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ip=new x("",{factory:()=>!1});function Gc({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new de(re(Z({},Wc()),{scheduleInRootZone:n})),[{provide:de,useFactory:e},{provide:en,multi:!0,useFactory:()=>{let r=E(rD,{optional:!0});return()=>r.initialize()}},{provide:en,multi:!0,useFactory:()=>{let r=E(oD);return()=>{r.initialize()}}},t===!0?{provide:Ra,useValue:!0}:[],{provide:ka,useValue:n??tf},{provide:at,useFactory:()=>{let r=E(de),o=E(Me),i;return s=>{r.runOutsideAngular(()=>{o.destroyed&&!i?setTimeout(()=>{throw s}):(i??=o.get(Ve),i.handleError(s))})}}}]}function zc(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Gc({ngZoneFactory:()=>{let o=Wc(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&yn("NgZone_CoalesceEvent"),new de(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return pr([{provide:ip,useValue:!0},{provide:br,useValue:!1},r])}function Wc(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var oD=(()=>{class e{subscription=new we;initialized=!1;zone=E(de);pendingTasks=E(Ot);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{de.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{de.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var sp=(()=>{class e{applicationErrorHandler=E(at);appRef=E(Lr);taskService=E(Ot);ngZone=E(de);zonelessEnabled=E(br);tracing=E(Pr,{optional:!0});disableScheduling=E(Ra,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new we;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(wi):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(E(ka,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Ii||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?ed:nf;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(wi+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.taskService.remove(n),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,ed(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function iD(){return typeof $localize<"u"&&$localize.locale||jr}var Ur=new x("",{providedIn:"root",factory:()=>E(Ur,{optional:!0,skipSelf:!0})||iD()});var Wi=class{destroyed=!1;listeners=null;errorHandler=E(Ve,{optional:!0});destroyRef=E(kt);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new b(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed){console.warn(Qt(953,!1));return}if(this.listeners===null)return;let n=T(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{T(n)}}};function Q(e,t){return sr(e,t?.equal)}var qc=class{[ge];constructor(t){this[ge]=t}destroy(){this[ge].destroy()}};function Gr(e,t){let n=t?.injector??E(ht),r=t?.manualCleanup!==!0?n.get(kt):null,o,i=n.get(Er,null,{optional:!0}),s=n.get(rt);return i!==null?(o=cD(i.view,s,e),r instanceof dr&&r._lView===i.view&&(r=null)):o=lD(e,n.get(_r),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new qc(o)}var ap=re(Z({},eu),{cleanupFns:void 0,zone:null,onDestroyFn:fn,run(){let e=qn(!1);try{tu(this)}finally{qn(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=T(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],T(e)}}}),sD=re(Z({},ap),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){$t(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),aD=re(Z({},ap),{consumerMarkedDirty(){this.view[M]|=8192,un(this.view),this.notifier.notify(13)},destroy(){$t(this),this.onDestroyFn(),this.cleanup(),this.view[yt]?.delete(this)}});function cD(e,t,n){let r=Object.create(aD);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=cp(r,n),e[yt]??=new Set,e[yt].add(r),r.consumerMarkedDirty(r),r}function lD(e,t,n){let r=Object.create(sD);return r.fn=cp(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function cp(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}var dp=Symbol("InputSignalNode#UNSET"),wD=re(Z({},vo),{transformFn:void 0,applyValueToInputSignal(e,t){kn(e,t)}});function fp(e,t){let n=Object.create(wD);n.value=e,n.transformFn=t?.transform;function r(){if(Sn(n),n.value===dp){let o=null;throw new b(-950,o)}return n.value}return r[ge]=n,r}var ID=new x("");ID.__NG_ELEMENT_ID__=e=>{let t=Oe();if(t===null)throw new b(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new b(204,!1)};function pe(e){return new Wi}function lp(e,t){return fp(e,t)}function TD(e){return fp(dp,e)}var J=(lp.required=TD,lp);function up(e,t){return Uf(t)}function MD(e,t){return Gf(t)}var Zi=(up.required=MD,up);var Zc=new x(""),xD=new x("");function zr(e){return!e.moduleRef}function SD(e){let t=zr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(de);return n.run(()=>{zr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(at),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),zr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Zc);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Zc);s.add(i),e.moduleRef.onDestroy(()=>{Ir(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return AD(r,n,()=>{let i=t.get(Ot),s=i.add(),a=t.get($c);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Ur,jr);if(Kf(c||jr),!t.get(xD,!0))return zr(e)?t.get(Lr):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(zr(e)){let u=t.get(Lr);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return ND?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var ND;function AD(e,t,n){try{let r=n();return zi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var qi=null;function RD(e=[],t){return ht.create({name:t,providers:[{provide:hr,useValue:"platform"},{provide:Zc,useValue:new Set([()=>qi=null])},...e]})}function kD(e=[]){if(qi)return qi;let t=RD(e);return qi=t,Zf(),OD(t),t}function OD(e){let t=e.get(Pi,null);Hn(e,()=>{t?.forEach(n=>n())})}function pp(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;W(8);try{let i=o?.injector??kD(r),s=[Gc({}),{provide:rt,useExisting:sp},Gu,...n||[]],a=new Rr({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return SD({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{W(9)}}var hp=null;function qr(){return hp}function Qc(e){hp??=e}var Wr=class{};var _e=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(_e||{}),G=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(G||{}),Ae=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Ae||{}),_t={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function mp(e){return Fe(e)[ie.LocaleId]}function yp(e,t,n){let r=Fe(e),o=[r[ie.DayPeriodsFormat],r[ie.DayPeriodsStandalone]],i=We(o,t);return We(i,n)}function vp(e,t,n){let r=Fe(e),o=[r[ie.DaysFormat],r[ie.DaysStandalone]],i=We(o,t);return We(i,n)}function Dp(e,t,n){let r=Fe(e),o=[r[ie.MonthsFormat],r[ie.MonthsStandalone]],i=We(o,t);return We(i,n)}function Ep(e,t){let r=Fe(e)[ie.Eras];return We(r,t)}function Zr(e,t){let n=Fe(e);return We(n[ie.DateFormat],t)}function Yr(e,t){let n=Fe(e);return We(n[ie.TimeFormat],t)}function Qr(e,t){let r=Fe(e)[ie.DateTimeFormat];return We(r,t)}function Kr(e,t){let n=Fe(e),r=n[ie.NumberSymbols][t];if(typeof r>"u"){if(t===_t.CurrencyDecimal)return n[ie.NumberSymbols][_t.Decimal];if(t===_t.CurrencyGroup)return n[ie.NumberSymbols][_t.Group]}return r}function bp(e){if(!e[ie.ExtraData])throw new b(2303,!1)}function Cp(e){let t=Fe(e);return bp(t),(t[ie.ExtraData][2]||[]).map(r=>typeof r=="string"?Kc(r):[Kc(r[0]),Kc(r[1])])}function _p(e,t,n){let r=Fe(e);bp(r);let o=[r[ie.ExtraData][0],r[ie.ExtraData][1]],i=We(o,t)||[];return We(i,n)||[]}function We(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new b(2304,!1)}function Kc(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var PD=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Yi={},FD=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,LD=256;function wp(e,t,n,r){let o=qD(e);jD(t),t=Ct(n,t)||t;let s=[],a;for(;t;)if(a=FD.exec(t),a){s=s.concat(a.slice(1));let u=s.pop();if(!u)break;t=u}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Tp(r,c),o=WD(o,r));let l="";return s.forEach(u=>{let d=GD(u);l+=d?d(o,n,c):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function jD(e){if(e.length>LD)throw new b(2300,!1)}function es(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Ct(e,t){let n=mp(e);if(Yi[n]??={},Yi[n][t])return Yi[n][t];let r="";switch(t){case"shortDate":r=Zr(e,Ae.Short);break;case"mediumDate":r=Zr(e,Ae.Medium);break;case"longDate":r=Zr(e,Ae.Long);break;case"fullDate":r=Zr(e,Ae.Full);break;case"shortTime":r=Yr(e,Ae.Short);break;case"mediumTime":r=Yr(e,Ae.Medium);break;case"longTime":r=Yr(e,Ae.Long);break;case"fullTime":r=Yr(e,Ae.Full);break;case"short":let o=Ct(e,"shortTime"),i=Ct(e,"shortDate");r=Qi(Qr(e,Ae.Short),[o,i]);break;case"medium":let s=Ct(e,"mediumTime"),a=Ct(e,"mediumDate");r=Qi(Qr(e,Ae.Medium),[s,a]);break;case"long":let c=Ct(e,"longTime"),l=Ct(e,"longDate");r=Qi(Qr(e,Ae.Long),[c,l]);break;case"full":let u=Ct(e,"fullTime"),d=Ct(e,"fullDate");r=Qi(Qr(e,Ae.Full),[u,d]);break}return r&&(Yi[n][t]=r),r}function Qi(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function tt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function BD(e,t){return tt(e,3).substring(0,t)}function ce(e,t,n=0,r=!1,o=!1){return function(i,s){let a=VD(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return BD(a,t);let c=Kr(s,_t.MinusSign);return tt(a,t,c,r,o)}}function VD(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new b(2301,!1)}}function q(e,t,n=_e.Format,r=!1){return function(o,i){return HD(o,i,e,t,n,r)}}function HD(e,t,n,r,o,i){switch(n){case 2:return Dp(t,o,r)[e.getMonth()];case 1:return vp(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let l=Cp(t),u=_p(t,o,r),d=l.findIndex(p=>{if(Array.isArray(p)){let[f,y]=p,_=s>=f.hours&&a>=f.minutes,w=s<y.hours||s===y.hours&&a<y.minutes;if(f.hours<y.hours){if(_&&w)return!0}else if(_||w)return!0}else if(p.hours===s&&p.minutes===a)return!0;return!1});if(d!==-1)return u[d]}return yp(t,o,r)[s<12?0:1];case 3:return Ep(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new b(2302,!1)}}function Ki(e){return function(t,n,r){let o=-1*r,i=Kr(n,_t.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+tt(s,2,i)+tt(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+tt(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+tt(s,2,i)+":"+tt(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+tt(s,2,i)+":"+tt(Math.abs(o%60),2,i);default:throw new b(2310,!1)}}}var $D=0,Ji=4;function UD(e){let t=es(e,$D,1).getDay();return es(e,0,1+(t<=Ji?Ji:Ji+7)-t)}function Ip(e){let t=e.getDay(),n=t===0?-3:Ji-t;return es(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Xc(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=Ip(n),s=UD(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return tt(o,e,Kr(r,_t.MinusSign))}}function Xi(e,t=!1){return function(n,r){let i=Ip(n).getFullYear();return tt(i,e,Kr(r,_t.MinusSign),t)}}var Jc={};function GD(e){if(Jc[e])return Jc[e];let t;switch(e){case"G":case"GG":case"GGG":t=q(3,G.Abbreviated);break;case"GGGG":t=q(3,G.Wide);break;case"GGGGG":t=q(3,G.Narrow);break;case"y":t=ce(0,1,0,!1,!0);break;case"yy":t=ce(0,2,0,!0,!0);break;case"yyy":t=ce(0,3,0,!1,!0);break;case"yyyy":t=ce(0,4,0,!1,!0);break;case"Y":t=Xi(1);break;case"YY":t=Xi(2,!0);break;case"YYY":t=Xi(3);break;case"YYYY":t=Xi(4);break;case"M":case"L":t=ce(1,1,1);break;case"MM":case"LL":t=ce(1,2,1);break;case"MMM":t=q(2,G.Abbreviated);break;case"MMMM":t=q(2,G.Wide);break;case"MMMMM":t=q(2,G.Narrow);break;case"LLL":t=q(2,G.Abbreviated,_e.Standalone);break;case"LLLL":t=q(2,G.Wide,_e.Standalone);break;case"LLLLL":t=q(2,G.Narrow,_e.Standalone);break;case"w":t=Xc(1);break;case"ww":t=Xc(2);break;case"W":t=Xc(1,!0);break;case"d":t=ce(2,1);break;case"dd":t=ce(2,2);break;case"c":case"cc":t=ce(7,1);break;case"ccc":t=q(1,G.Abbreviated,_e.Standalone);break;case"cccc":t=q(1,G.Wide,_e.Standalone);break;case"ccccc":t=q(1,G.Narrow,_e.Standalone);break;case"cccccc":t=q(1,G.Short,_e.Standalone);break;case"E":case"EE":case"EEE":t=q(1,G.Abbreviated);break;case"EEEE":t=q(1,G.Wide);break;case"EEEEE":t=q(1,G.Narrow);break;case"EEEEEE":t=q(1,G.Short);break;case"a":case"aa":case"aaa":t=q(0,G.Abbreviated);break;case"aaaa":t=q(0,G.Wide);break;case"aaaaa":t=q(0,G.Narrow);break;case"b":case"bb":case"bbb":t=q(0,G.Abbreviated,_e.Standalone,!0);break;case"bbbb":t=q(0,G.Wide,_e.Standalone,!0);break;case"bbbbb":t=q(0,G.Narrow,_e.Standalone,!0);break;case"B":case"BB":case"BBB":t=q(0,G.Abbreviated,_e.Format,!0);break;case"BBBB":t=q(0,G.Wide,_e.Format,!0);break;case"BBBBB":t=q(0,G.Narrow,_e.Format,!0);break;case"h":t=ce(3,1,-12);break;case"hh":t=ce(3,2,-12);break;case"H":t=ce(3,1);break;case"HH":t=ce(3,2);break;case"m":t=ce(4,1);break;case"mm":t=ce(4,2);break;case"s":t=ce(5,1);break;case"ss":t=ce(5,2);break;case"S":t=ce(6,1);break;case"SS":t=ce(6,2);break;case"SSS":t=ce(6,3);break;case"Z":case"ZZ":case"ZZZ":t=Ki(0);break;case"ZZZZZ":t=Ki(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ki(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ki(2);break;default:return null}return Jc[e]=t,t}function Tp(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function zD(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function WD(e,t,n){let o=e.getTimezoneOffset(),i=Tp(t,o);return zD(e,-1*(i-o))}function qD(e){if(gp(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return es(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(PD))return ZD(r)}let t=new Date(e);if(!gp(t))throw new b(2311,!1);return t}function ZD(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,l),t}function gp(e){return e instanceof Date&&!isNaN(e.valueOf())}function YD(e,t){return new b(2100,!1)}var QD="mediumDate",Mp=new x(""),xp=new x(""),Xr=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??QD,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return wp(n,s,i||this.locale,a)}catch(s){throw YD(e,s.message)}}static \u0275fac=function(r){return new(r||e)(vn(Ur,16),vn(Mp,24),vn(xp,24))};static \u0275pipe=Bc({name:"date",type:e,pure:!0})}return e})();function Jr(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Cn=class{};var Sp="browser";var eo=class{_doc;constructor(t){this._doc=t}manager},ts=(()=>{class e extends eo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(P(Pe))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),rs=new x(""),ol=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof ts));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof ts);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new b(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(P(rs),P(de))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),el="ng-app-id";function Np(e){for(let t of e)t.remove()}function Ap(e,t){let n=t.createElement("style");return n.textContent=e,n}function JD(e,t,n,r){let o=e.head?.querySelectorAll(`style[${el}="${t}"],link[${el}="${t}"]`);if(o)for(let i of o)i.removeAttribute(el),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function nl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var il=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,JD(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Ap);r?.forEach(o=>this.addUsage(o,this.external,nl))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Np(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Np(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Ap(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,nl(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(P(Pe),P(Oi),P(Fi,8),P(Or))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),tl={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"},sl=/%COMP%/g;var kp="%COMP%",eE=`_nghost-${kp}`,tE=`_ngcontent-${kp}`,nE=!0,rE=new x("",{providedIn:"root",factory:()=>nE});function oE(e){return tE.replace(sl,e)}function iE(e){return eE.replace(sl,e)}function Op(e,t){return t.map(n=>n.replace(sl,e))}var al=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c=null,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=l,this.platformIsServer=!1,this.defaultRenderer=new to(n,s,a,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof ns?o.applyToHost(n):o instanceof no&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer,p=this.tracingService;switch(r.encapsulation){case bt.Emulated:i=new ns(c,l,r,this.appId,u,s,a,d,p);break;case bt.ShadowDom:return new rl(c,l,n,r,s,a,this.nonce,d,p);default:i=new no(c,l,r,u,s,a,d,p);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(P(ol),P(il),P(Oi),P(rE),P(Pe),P(de),P(Fi),P(Pr,8))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),to=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(tl[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Rp(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Rp(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new b(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=tl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=tl[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(lt.DashCase|lt.Important)?t.style.setProperty(n,r,o&lt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&lt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=qr().getGlobalEventTarget(this.doc,t),!t))throw new b(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function Rp(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var rl=class extends to{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,c,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=o.styles;u=Op(o.id,u);for(let p of u){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=p,this.shadowRoot.appendChild(f)}let d=o.getExternalStyles?.();if(d)for(let p of d){let f=nl(p,i);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},no=class extends to{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=l?Op(l,u):u,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&hn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ns=class extends no{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,l,u),this.contentAttr=oE(u),this.hostAttr=iE(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var os=class e extends Wr{supportsDOMEvents=!0;static makeCurrent(){Qc(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=sE();return n==null?null:aE(n)}resetBaseElement(){ro=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Jr(document.cookie,t)}},ro=null;function sE(){return ro=ro||document.head.querySelector("base"),ro?ro.getAttribute("href"):null}function aE(e){return new URL(e,document.baseURI).pathname}var cE=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),Pp=["alt","control","meta","shift"],lE={"\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"},uE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Fp=(()=>{class e extends eo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>qr().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Pp.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=lE[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Pp.forEach(s=>{if(s!==o){let a=uE[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(P(Pe))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();function cl(e,t,n){let r=Z({rootComponent:e,platformRef:n?.platformRef},dE(t));return pp(r)}function dE(e){return{appProviders:[...mE,...e?.providers??[]],platformProviders:gE}}function fE(){os.makeCurrent()}function pE(){return new Ve}function hE(){return Ec(document),document}var gE=[{provide:Or,useValue:Sp},{provide:Pi,useValue:fE,multi:!0},{provide:Pe,useFactory:hE}];var mE=[{provide:hr,useValue:"root"},{provide:Ve,useFactory:pE},{provide:rs,useClass:ts,multi:!0,deps:[Pe]},{provide:rs,useClass:Fp,multi:!0,deps:[Pe]},al,il,ol,{provide:gn,useExisting:al},{provide:Cn,useClass:cE},[]];var wn=class{},oo=class{},Ft=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
+ `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init();for(let[n,r]of t.headers.entries())this.headers.set(n,r),this.normalizedNames.set(n,t.normalizedNames.get(n))}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=t.op==="a"?(this.headers.get(n)||[]).slice():[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(i===void 0)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=Array.isArray(i)?i:[i],a=this.headers.get(n);if(!a)return;a=a.filter(c=>s.indexOf(c)===-1),a.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var ss=class{encodeKey(t){return Lp(t)}encodeValue(t){return Lp(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function yE(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var vE=/%(\d[a-f0-9])/gi,DE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Lp(e){return encodeURIComponent(e).replace(vE,(t,n)=>DE[n]??t)}function is(e){return`${e}`}var wt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new ss,t.fromString){if(t.fromObject)throw new b(2805,!1);this.map=yE(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(is):[is(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[t,n]of this.cloneFrom.map.entries())this.map.set(t,n);this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=t.op==="a"?(this.map.get(t.param)||[]).slice():[];n.push(is(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=(this.map.get(t.param)||[]).slice(),o=r.indexOf(is(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null}}};var as=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function EE(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function jp(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Bp(e){return typeof Blob<"u"&&e instanceof Blob}function Vp(e){return typeof FormData<"u"&&e instanceof FormData}function bE(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Hp="Content-Type",$p="Accept",Up="X-Request-URL",Gp="text/plain",zp="application/json",CE=`${zp}, ${Gp}, */*`,nr=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(EE(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new b(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),this.transferCache=i.transferCache}if(this.headers??=new Ft,this.context??=new as,!this.params)this.params=new wt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||jp(this.body)||Bp(this.body)||Vp(this.body)||bE(this.body)?this.body:this.body instanceof wt?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Vp(this.body)?null:Bp(this.body)?this.body.type||null:jp(this.body)?null:typeof this.body=="string"?Gp:this.body instanceof wt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?zp:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,u=t.credentials||this.credentials,d=t.referrer??this.referrer,p=t.integrity||this.integrity,f=t.transferCache??this.transferCache,y=t.timeout??this.timeout,_=t.body!==void 0?t.body:this.body,w=t.withCredentials??this.withCredentials,C=t.reportProgress??this.reportProgress,he=t.headers||this.headers,Tn=t.params||this.params,ye=t.context??this.context;return t.setHeaders!==void 0&&(he=Object.keys(t.setHeaders).reduce((jt,Bt)=>jt.set(Bt,t.setHeaders[Bt]),he)),t.setParams&&(Tn=Object.keys(t.setParams).reduce((jt,Bt)=>jt.set(Bt,t.setParams[Bt]),Tn)),new e(n,r,_,{params:Tn,headers:he,context:ye,reportProgress:C,responseType:o,withCredentials:w,transferCache:f,keepalive:i,cache:a,priority:s,timeout:y,mode:c,redirect:l,credentials:u,referrer:d,integrity:p})}},_n=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(_n||{}),or=class{headers;status;statusText;url;ok;type;redirected;constructor(t,n=200,r="OK"){this.headers=t.headers||new Ft,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.ok=this.status>=200&&this.status<300}},cs=class e extends or{constructor(t={}){super(t)}type=_n.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},io=class e extends or{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=_n.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected})}},rr=class extends or{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},_E=200,wE=204;function ll(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer}}var us=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof nr)i=n;else{let c;o.headers instanceof Ft?c=o.headers:c=new Ft(o.headers);let l;o.params&&(o.params instanceof wt?l=o.params:l=new wt({fromObject:o.params})),i=new nr(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,integrity:o.integrity,timeout:o.timeout})}let s=jn(i).pipe(Fs(c=>this.handler.handle(c)));if(n instanceof nr||o.observe==="events")return s;let a=s.pipe(Ps(c=>c instanceof io));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Be(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new b(2806,!1);return c.body}));case"blob":return a.pipe(Be(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new b(2807,!1);return c.body}));case"text":return a.pipe(Be(c=>{if(c.body!==null&&typeof c.body!="string")throw new b(2808,!1);return c.body}));default:return a.pipe(Be(c=>c.body))}case"response":return a;default:throw new b(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new wt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,ll(o,r))}post(n,r,o={}){return this.request("POST",n,ll(o,r))}put(n,r,o={}){return this.request("PUT",n,ll(o,r))}static \u0275fac=function(r){return new(r||e)(P(wn))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();var IE=new x("");function TE(e,t){return t(e)}function ME(e,t,n){return(r,o)=>Hn(n,()=>t(r,i=>e(i,o)))}var Wp=new x(""),qp=new x(""),Zp=new x("",{providedIn:"root",factory:()=>!0});var ls=(()=>{class e extends wn{backend;injector;chain=null;pendingTasks=E(Cr);contributeToStability=E(Zp);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=this.injector.get(wn,null,{skipSelf:!0}),o=r!==null&&this.backend===r,i=this.injector.get(qp,[],o?{self:!0}:void 0),s=Array.from(new Set([...this.injector.get(Wp),...i]));this.chain=s.reduceRight((a,c)=>ME(a,c,this.injector),TE)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Ls(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(P(oo),P(Me))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();var xE=/^\)\]\}',?\n/,SE=RegExp(`^${Up}:`,"m");function NE(e){return"responseURL"in e&&e.responseURL?e.responseURL:SE.test(e.getAllResponseHeaders())?e.getResponseHeader(Up):null}var ul=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new b(-2800,!1);let r=this.xhrFactory;return jn(null).pipe(js(()=>new K(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((w,C)=>s.setRequestHeader(w,C.join(","))),n.headers.has($p)||s.setRequestHeader($p,CE),!n.headers.has(Hp)){let w=n.detectContentTypeHeader();w!==null&&s.setRequestHeader(Hp,w)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let w=n.responseType.toLowerCase();s.responseType=w!=="json"?w:"text"}let a=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let w=s.statusText||"OK",C=new Ft(s.getAllResponseHeaders()),he=NE(s)||n.url;return c=new cs({headers:C,status:s.status,statusText:w,url:he}),c},u=()=>{let{headers:w,status:C,statusText:he,url:Tn}=l(),ye=null;C!==wE&&(ye=typeof s.response>"u"?s.responseText:s.response),C===0&&(C=ye?_E:0);let jt=C>=200&&C<300;if(n.responseType==="json"&&typeof ye=="string"){let Bt=ye;ye=ye.replace(xE,"");try{ye=ye!==""?JSON.parse(ye):null}catch(rh){ye=Bt,jt&&(jt=!1,ye={error:rh,text:ye})}}jt?(i.next(new io({body:ye,headers:w,status:C,statusText:he,url:Tn||void 0})),i.complete()):i.error(new rr({error:ye,headers:w,status:C,statusText:he,url:Tn||void 0}))},d=w=>{let{url:C}=l(),he=new rr({error:w,status:s.status||0,statusText:s.statusText||"Unknown Error",url:C||void 0});i.error(he)},p=d;n.timeout&&(p=w=>{let{url:C}=l(),he=new rr({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:C||void 0});i.error(he)});let f=!1,y=w=>{f||(i.next(l()),f=!0);let C={type:_n.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(C.total=w.total),n.responseType==="text"&&s.responseText&&(C.partialText=s.responseText),i.next(C)},_=w=>{let C={type:_n.UploadProgress,loaded:w.loaded};w.lengthComputable&&(C.total=w.total),i.next(C)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",p),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",y),a!==null&&s.upload&&s.upload.addEventListener("progress",_)),s.send(a),i.next({type:_n.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",p),n.reportProgress&&(s.removeEventListener("progress",y),a!==null&&s.upload&&s.upload.removeEventListener("progress",_)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(P(Cn))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),Yp=new x(""),AE="XSRF-TOKEN",RE=new x("",{providedIn:"root",factory:()=>AE}),kE="X-XSRF-TOKEN",OE=new x("",{providedIn:"root",factory:()=>kE}),so=class{},PE=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Jr(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(P(Pe),P(RE))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),FE=/^(?:https?:)?\/\//i;function LE(e,t){if(!E(Yp)||e.method==="GET"||e.method==="HEAD"||FE.test(e.url))return t(e);let n=E(so).getToken(),r=E(OE);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function dl(...e){let t=[us,ul,ls,{provide:wn,useExisting:ls},{provide:oo,useFactory:()=>E(IE,{optional:!0})??E(ul)},{provide:Wp,useValue:LE,multi:!0},{provide:Yp,useValue:!0},{provide:so,useClass:PE}];for(let n of e)t.push(...n.\u0275providers);return pr(t)}var Qp={providers:[zc({eventCoalescing:!0}),dl()]};var It="__working__";var Lt=class e{http=E(us);base="/api";getRepoInfo(){return this.http.get(`${this.base}/repo`)}getCommits(){return this.http.get(`${this.base}/commits`)}getAllBranches(){return this.http.get(`${this.base}/branches/all`)}getCommitDiff(t){return this.http.post(`${this.base}/commit/diff`,{hash:t})}getWorkingChanges(){return this.http.get(`${this.base}/working-changes`)}getFileContent(t,n){return this.http.post(`${this.base}/file-content`,{path:t,ref:n})}fetch(){return this.http.get(`${this.base}/fetch`)}pull(t=!1){return this.http.post(`${this.base}/pull`,{rebase:t})}push(){return this.http.post(`${this.base}/push`,{})}sync(){return this.http.post(`${this.base}/sync`,{})}checkout(t){return this.http.post(`${this.base}/checkout`,{ref:t})}revert(t){return this.http.post(`${this.base}/revert`,{commit:t})}cherryPick(t){return this.http.post(`${this.base}/cherry-pick`,{commit:t})}dropCommit(t){return this.http.post(`${this.base}/commit/drop`,{commit:t})}resetToCommit(t){return this.http.post(`${this.base}/reset-commit`,{commit:t})}commit(t,n){return this.http.post(`${this.base}/commit`,{message:t,description:n})}stage(t){return this.http.post(`${this.base}/stage`,{files:t})}unstage(t){return this.http.post(`${this.base}/unstage`,{files:t})}discard(t){return this.http.post(`${this.base}/discard`,{files:t})}resetWorking(){return this.http.post(`${this.base}/reset`,{})}cleanUntracked(){return this.http.post(`${this.base}/clean`,{})}stashSave(t){return this.http.post(`${this.base}/stash/save`,{message:t})}createBranch(t,n){return this.http.post(`${this.base}/branch/create`,{name:t,startPoint:n})}deleteBranch(t,n=!1){return this.http.post(`${this.base}/branch/delete`,{name:t,force:n})}deleteRemoteBranch(t,n){return this.http.post(`${this.base}/branch/delete-remote`,{remote:t,branch:n})}renameBranch(t,n){return this.http.post(`${this.base}/branch/rename`,{oldName:t,newName:n})}merge(t){return this.http.post(`${this.base}/merge`,{branch:t})}rebase(t){return this.http.post(`${this.base}/rebase`,{branch:t})}createTag(t,n){return this.http.post(`${this.base}/tag/create`,{name:t,commit:n})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})};function Xp(e){let t=[],n=[],r=o=>{let i=t.indexOf(o);return i===-1&&(i=t.indexOf(null),i===-1&&(t.push(null),i=t.length-1),t[i]=o),i};for(let o of e){let i=o.parents??[],s=t.map((c,l)=>c===o.hash?l:-1).filter(c=>c!==-1),a;if(s.length>0){a=s[0];for(let c=1;c<s.length;c++)t[s[c]]=null}else a=r(o.hash);t[a]=i[0]??null;for(let c=1;c<i.length;c++)r(i[c]);n.push({commit:o,lane:a,parents:i})}return n}var Kp=["#3794ff","#4ec9b0","#d7ba7d","#c586c0","#89d185","#ce9178","#d16969","#569cd6","#b5cea8","#dcdcaa"];function ao(e){return Kp[Math.abs(e)%Kp.length]}function Jp(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)|0;return Math.abs(t)}var ds=class e{loading=null;load(){return this.loading||(this.loading=new Promise((t,n)=>{let r=window;if(r.monaco){t(r.monaco);return}let o=document.createElement("script");o.src="vs/loader.js",o.async=!0,o.onload=()=>{let i=r.require;if(!i){n(new Error("Monaco AMD loader not found."));return}i.config({paths:{vs:"vs"}}),i(["vs/editor/editor.main"],()=>{this.applyTheme(r.monaco),t(r.monaco)})},o.onerror=()=>{this.loading=null,n(new Error("Failed to load the Monaco editor."))},document.head.appendChild(o)})),this.loading}applyTheme(t){t.editor.defineTheme("guito",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#1e1e1e","editor.foreground":"#cccccc","editorGutter.background":"#1e1e1e","editorLineNumber.foreground":"#5a5a5a","editorLineNumber.activeForeground":"#cccccc","diffEditor.insertedTextBackground":"#89d18526","diffEditor.removedTextBackground":"#f4877126","diffEditor.insertedLineBackground":"#89d1851a","diffEditor.removedLineBackground":"#f487711a","scrollbarSlider.background":"#4a4a4a80","scrollbarSlider.hoverBackground":"#5a5a5a99","editorWidget.background":"#232323","editorWidget.border":"#3c3c3c","editorSuggestWidget.background":"#232323"}})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})};var jE=["host"];function BE(e,t){if(e&1&&(g(0,"span",6),v(1),m()),e&2){let n=D();h(),ne("+",n.file().additions)}}function VE(e,t){if(e&1&&(g(0,"span",7),v(1),m()),e&2){let n=D();h(),ne("\u2212",n.file().deletions)}}function HE(e,t){e&1&&(z(),Y(0,"line",11))}function $E(e,t){e&1&&(z(),Y(0,"line",12))}function UE(e,t){e&1&&(g(0,"div",18),v(1,"Loading diff\u2026"),m())}function GE(e,t){if(e&1&&(g(0,"div",19),v(1),m()),e&2){let n=D();h(),U(n.error())}}function zE(e,t){e&1&&(g(0,"div",18),v(1,"Binary file not shown."),m())}var WE=0,fs=class e{git=E(Lt);monacoService=E(ds);file=J.required();originalRef=J.required();modifiedRef=J.required();closed=pe();host=Zi.required("host");loading=F(!0);error=F("");binary=F(!1);sideBySide=F(!0);editor=null;models=[];onEscape(){this.closed.emit()}ngAfterViewInit(){return Mn(this,null,function*(){this.loading.set(!0),this.error.set(""),this.binary.set(!1);try{let t=yield this.monacoService.load(),n=this.file(),r=n.status==="added"&&!n.oldPath?"EMPTY":this.originalRef(),[o,i]=yield Promise.all([Fo(this.git.getFileContent(n.oldPath||n.path,r)),Fo(this.git.getFileContent(n.path,this.modifiedRef()))]);if(o.binary||i.binary){this.binary.set(!0),this.loading.set(!1);return}let s=++WE,a=t.editor.createModel(o.content,void 0,t.Uri.parse(`inmemory://diff/${s}/original/${n.oldPath||n.path}`)),c=t.editor.createModel(i.content,void 0,t.Uri.parse(`inmemory://diff/${s}/modified/${n.path}`));this.models=[a,c],this.editor=t.editor.createDiffEditor(this.host().nativeElement,{theme:"guito",readOnly:!0,originalEditable:!1,renderSideBySide:this.sideBySide(),ignoreTrimWhitespace:!1,automaticLayout:!0,fontSize:12,fontFamily:"ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace",minimap:{enabled:!1},scrollBeyondLastLine:!1,renderOverviewRuler:!1,hideUnchangedRegions:{enabled:!0,contextLineCount:3},scrollbar:{verticalScrollbarSize:10,horizontalScrollbarSize:10},padding:{top:8}}),this.editor.setModel({original:a,modified:c}),this.loading.set(!1)}catch{this.error.set("Failed to load the diff."),this.loading.set(!1)}})}ngOnDestroy(){this.editor?.dispose(),this.editor=null;for(let t of this.models)t.dispose();this.models=[]}toggleLayout(){this.sideBySide.update(t=>!t),this.editor?.updateOptions({renderSideBySide:this.sideBySide()})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-diff-dialog"]],viewQuery:function(n,r){n&1&&Br(r.host,jE,5),n&2&&Vr()},hostBindings:function(n,r){n&1&&ae("keydown.escape",function(){return r.onEscape()},dt)},inputs:{file:[1,"file"],originalRef:[1,"originalRef"],modifiedRef:[1,"modifiedRef"]},outputs:{closed:"closed"},decls:25,vars:10,consts:[["host",""],[1,"backdrop",3,"click"],["role","dialog","aria-modal","true",1,"dialog"],[1,"dialog-head"],[1,"path",3,"title"],[1,"counts"],[1,"additions"],[1,"deletions"],["type","button","title","Toggle diff layout",1,"icon-btn",3,"click"],["viewBox","0 0 24 24","aria-hidden","true"],["x","3","y","4","width","18","height","16","rx","2"],["x1","12","y1","4","x2","12","y2","20"],["x1","3","y1","12","x2","21","y2","12"],["type","button","title","Close","aria-label","Close diff",1,"icon-btn",3,"click"],["x1","18","y1","6","x2","6","y2","18"],["x1","6","y1","6","x2","18","y2","18"],[1,"dialog-body"],[1,"editor-host"],[1,"state"],[1,"state","state-error"]],template:function(n,r){if(n&1){let o=te();g(0,"div",1),L("click",function(){return V(o),H(r.closed.emit())}),m(),g(1,"div",2)(2,"header",3)(3,"span"),v(4),m(),g(5,"span",4),v(6),m(),g(7,"span",5),N(8,BE,2,1,"span",6),N(9,VE,2,1,"span",7),m(),g(10,"button",8),L("click",function(){return V(o),H(r.toggleLayout())}),z(),g(11,"svg",9),Y(12,"rect",10),N(13,HE,1,0,":svg:line",11)(14,$E,1,0,":svg:line",12),m()(),me(),g(15,"button",13),L("click",function(){return V(o),H(r.closed.emit())}),z(),g(16,"svg",9),Y(17,"line",14)(18,"line",15),m()()(),me(),g(19,"div",16),Y(20,"div",17,0),N(22,UE,2,0,"div",18)(23,GE,2,1,"div",19)(24,zE,2,0,"div",18),m()()}n&2&&(h(3),En("status status-"+r.file().status),h(),U(r.file().status),h(),se("title",r.file().path),h(),U(r.file().path),h(2),A(r.file().additions>0?8:-1),h(),A(r.file().deletions>0?9:-1),h(),xe("aria-label",r.sideBySide()?"Switch to inline view":"Switch to side-by-side view"),h(3),A(r.sideBySide()?13:14),h(9),A(r.loading()?22:r.error()?23:r.binary()?24:-1))},styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:#0000008c;z-index:200}.dialog[_ngcontent-%COMP%]{position:fixed;top:4vh;left:4vw;right:4vw;bottom:4vh;display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--border);border-radius:8px;box-shadow:0 12px 48px #0009;overflow:hidden;z-index:201}.dialog-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex:none;height:42px;padding:0 10px;background:var(--bg-alt);border-bottom:1px solid var(--border)}.status[_ngcontent-%COMP%]{flex:none;padding:1px 7px;border-radius:3px;font-size:10px;text-transform:uppercase;letter-spacing:.4px}.status-added[_ngcontent-%COMP%]{background:#89d18526;color:#89d185}.status-deleted[_ngcontent-%COMP%]{background:#f4877126;color:#f48771}.status-modified[_ngcontent-%COMP%]{background:#3794ff26;color:#4fc1ff}.status-renamed[_ngcontent-%COMP%]{background:#c586c026;color:#c586c0}.status-binary[_ngcontent-%COMP%]{background:#ffffff14;color:#9d9d9d}.path[_ngcontent-%COMP%]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono);font-size:12px;color:var(--text)}.counts[_ngcontent-%COMP%]{flex:none;display:flex;gap:6px;font-family:var(--mono);font-size:11px}.additions[_ngcontent-%COMP%]{color:#89d185}.deletions[_ngcontent-%COMP%]{color:#f48771}.icon-btn[_ngcontent-%COMP%]{flex:none;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:4px;background:transparent;color:var(--text);cursor:pointer}.icon-btn[_ngcontent-%COMP%]:hover{background:var(--bg-hover);color:var(--text-bright)}.icon-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.dialog-body[_ngcontent-%COMP%]{position:relative;flex:1;min-height:0}.editor-host[_ngcontent-%COMP%]{position:absolute;inset:0}.state[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--bg);color:var(--text-dim);font-size:13px}.state-error[_ngcontent-%COMP%]{color:var(--red)}"],changeDetection:0})};var qE=(e,t)=>t.path;function ZE(e,t){if(e&1&&(k(0,"span",15),v(1,"\u2022"),R(),k(2,"span"),v(3),Hr(4,"date"),R(),k(5,"span",15),v(6,"\u2022"),R(),k(7,"code",16),v(8),R()),e&2){let n=D();h(3),U($r(4,2,n.commit().date,"d MMM y HH:mm")),h(5),U(n.commit().hash.slice(0,8))}}function YE(e,t){if(e&1&&(k(0,"pre",10),v(1),R()),e&2){let n=D();h(),U(n.commit().body)}}function QE(e,t){e&1&&(k(0,"div",12),v(1,"Loading changes\u2026"),R())}function KE(e,t){if(e&1&&(k(0,"div",13),v(1),R()),e&2){let n=D();h(),U(n.error())}}function XE(e,t){e&1&&(k(0,"div",12),v(1,"No changes."),R())}function JE(e,t){if(e&1&&(k(0,"span",22),v(1),R()),e&2){let n=D().$implicit;h(),ne("+",n.additions)}}function eb(e,t){if(e&1&&(k(0,"span",23),v(1),R()),e&2){let n=D().$implicit;h(),ne("\u2212",n.deletions)}}function tb(e,t){if(e&1){let n=te();k(0,"button",19),ae("click",function(){let o=V(n).$implicit,i=D(3);return H(i.openFile(o))}),k(1,"span"),v(2),R(),k(3,"span",20),v(4),R(),k(5,"span",21),N(6,JE,2,1,"span",22),N(7,eb,2,1,"span",23),R(),z(),k(8,"svg",24),Pt(9,"polyline",25),R()()}if(e&2){let n=t.$implicit;h(),En("file-status status-"+n.status),h(),U(n.status),h(),et("title",n.path),h(),U(n.path),h(2),A(n.additions>0?6:-1),h(),A(n.deletions>0?7:-1)}}function nb(e,t){if(e&1&&(k(0,"div",17),Se(1,tb,10,7,"button",18,qE),R()),e&2){let n=D();h(),Ne(n.files)}}function rb(e,t){e&1&&N(0,XE,2,0,"div",12)(1,nb,3,0,"div",17),e&2&&A(t.files.length===0?0:1)}function ob(e,t){if(e&1){let n=te();k(0,"app-diff-dialog",26),ae("closed",function(){V(n);let o=D();return H(o.dialogFile.set(null))}),R()}if(e&2){let n=D();et("file",t)("originalRef",n.originalRef())("modifiedRef",n.modifiedRef())}}var ps=class e{git=E(Lt);commit=J.required();closed=pe();diff=F(null);loading=F(!1);error=F("");dialogFile=F(null);workingHash=It;isWorking=Q(()=>this.commit().hash===this.workingHash);originalRef=Q(()=>this.isWorking()?"HEAD":`${this.commit().hash}^`);modifiedRef=Q(()=>this.isWorking()?"WORKING":this.commit().hash);initials=Q(()=>{let t=this.commit().author_name.trim();if(!t)return"?";let n=t.split(/\s+/),r=n[0].charAt(0),o=n.length>1?n[n.length-1].charAt(0):"";return(r+o).toUpperCase()});avatarColor=Q(()=>ao(Jp(this.commit().author_name)));constructor(){Gr(()=>{this.loadDiff(this.commit().hash)})}openFile(t){this.dialogFile.set(t)}loadDiff(t){if(this.loading.set(!0),this.error.set(""),this.diff.set(null),this.dialogFile.set(null),t===It){this.git.getWorkingChanges().subscribe({next:n=>{this.loading.set(!1),this.diff.set({hash:It,files:n.files})},error:()=>{this.loading.set(!1),this.error.set("Failed to load the working changes.")}});return}this.git.getCommitDiff(t).subscribe({next:n=>{this.loading.set(!1),this.diff.set(n)},error:()=>{this.loading.set(!1),this.error.set("Failed to load the commit diff.")}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-commit-detail"]],inputs:{commit:[1,"commit"]},outputs:{closed:"closed"},decls:20,vars:9,consts:[[1,"detail"],[1,"detail-head"],["title","Close",1,"close-btn",3,"click"],["viewBox","0 0 24 24","aria-hidden","true"],["x1","18","y1","6","x2","6","y2","18"],["x1","6","y1","6","x2","18","y2","18"],[1,"subject"],[1,"meta"],[1,"avatar"],[1,"author"],[1,"body"],[1,"detail-body"],[1,"state"],[1,"state","state-error"],[3,"file","originalRef","modifiedRef"],[1,"separator"],[1,"hash"],[1,"file-list"],["type","button",1,"file-row"],["type","button",1,"file-row",3,"click"],[1,"file-path",3,"title"],[1,"file-counts"],[1,"additions"],[1,"deletions"],["viewBox","0 0 24 24","aria-hidden","true",1,"chevron"],["points","9 18 15 12 9 6"],[3,"closed","file","originalRef","modifiedRef"]],template:function(n,r){if(n&1&&(k(0,"aside",0)(1,"header",1)(2,"button",2),ae("click",function(){return r.closed.emit()}),z(),k(3,"svg",3),Pt(4,"line",4)(5,"line",5),R()(),me(),k(6,"h2",6),v(7),R(),k(8,"div",7)(9,"span",8),v(10),R(),k(11,"span",9),v(12),R(),N(13,ZE,9,5),R(),N(14,YE,2,1,"pre",10),R(),k(15,"div",11),N(16,QE,2,0,"div",12)(17,KE,2,1,"div",13)(18,rb,2,1),R()(),N(19,ob,1,3,"app-diff-dialog",14)),n&2){let o,i;h(7),U(r.commit().message),h(2),fe("background",r.avatarColor()),h(),U(r.initials()),h(2),U(r.commit().author_name),h(),A(r.isWorking()?-1:13),h(),A(r.commit().body.trim()?14:-1),h(2),A(r.loading()?16:r.error()?17:(o=r.diff())?18:-1,o),h(3),A((i=r.dialogFile())?19:-1,i)}},dependencies:[fs,Xr],styles:["[_nghost-%COMP%]{display:flex;flex:none;flex-direction:column;width:480px;min-height:0}.detail[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;flex:1;min-height:0;background:var(--bg-alt);border-left:1px solid var(--border)}.file-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:0;padding:6px;gap:2px;overflow-y:auto}.file-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border:none;border-radius:4px;background:transparent;color:var(--text);font-size:12px;font-family:inherit;text-align:left;cursor:pointer}.file-row[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.chevron[_ngcontent-%COMP%]{flex:none;width:13px;height:13px;fill:none;stroke:var(--text-dim);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.file-row[_ngcontent-%COMP%]:hover .chevron[_ngcontent-%COMP%]{stroke:var(--accent)}.detail-head[_ngcontent-%COMP%]{flex:none;padding:14px 16px 12px;border-bottom:1px solid var(--border);position:relative}.close-btn[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:4px;background:transparent;color:var(--text);cursor:pointer}.close-btn[_ngcontent-%COMP%]:hover{background:var(--bg-hover);color:var(--text-bright)}.close-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.subject[_ngcontent-%COMP%]{margin:0 30px 10px 0;font-size:14px;font-weight:600;color:var(--text-bright);word-break:break-word}.meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--text-dim);font-size:12px}.avatar[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;color:#1e1e1e;font-size:10px;font-weight:700}.author[_ngcontent-%COMP%]{color:var(--text)}.hash[_ngcontent-%COMP%]{font-family:var(--mono);color:var(--accent);background:#3794ff1a;padding:1px 6px;border-radius:3px}.body[_ngcontent-%COMP%]{margin:10px 0 0;padding:8px 10px;background:#ffffff0a;border-radius:4px;font-size:12px;font-family:inherit;color:var(--text);white-space:pre-wrap;word-break:break-word;max-height:160px;overflow-y:auto}.detail-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.state[_ngcontent-%COMP%]{padding:24px;text-align:center;color:var(--text-dim)}.state-error[_ngcontent-%COMP%]{color:var(--red)}.file-status[_ngcontent-%COMP%]{flex:none;padding:0 6px;border-radius:3px;font-size:10px;text-transform:uppercase;letter-spacing:.4px}.status-added[_ngcontent-%COMP%]{background:#89d18526;color:#89d185}.status-deleted[_ngcontent-%COMP%]{background:#f4877126;color:#f48771}.status-modified[_ngcontent-%COMP%]{background:#3794ff26;color:#4fc1ff}.status-renamed[_ngcontent-%COMP%]{background:#c586c026;color:#c586c0}.status-binary[_ngcontent-%COMP%]{background:#ffffff14;color:#9d9d9d}.file-path[_ngcontent-%COMP%]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono);font-size:12px;color:var(--text)}.file-counts[_ngcontent-%COMP%]{flex:none;font-family:var(--mono);font-size:11px}.additions[_ngcontent-%COMP%]{color:#89d185}.deletions[_ngcontent-%COMP%]{color:#f48771}.binary[_ngcontent-%COMP%]{padding:12px;color:var(--text-dim);font-size:12px}"],changeDetection:0})};function eh(e){return e?e.split(",").map(t=>t.trim()).filter(Boolean).map(t=>t.startsWith("HEAD -> ")?{type:"head",name:t.slice(8)}:t==="HEAD"?{type:"head",name:"HEAD"}:t.startsWith("tag: ")?{type:"tag",name:t.slice(5)}:t.includes("/")?{type:"remote",name:t}:{type:"local",name:t}):[]}function fl(e){let t=e.refs;return t?t==="HEAD"||t.startsWith("HEAD,")||t.startsWith("HEAD ->"):!1}var ib=(e,t)=>t.hash,sb=(e,t)=>t.commit.hash,ab=(e,t)=>t.name;function cb(e,t){if(e&1&&(g(0,"span",29),v(1),m()),e&2){let n=D();h(),ne("",n.staged.length," staged")}}function lb(e,t){if(e&1&&(g(0,"span",30),v(1),m()),e&2){let n=D();h(),ne("",n.unstaged.length," unstaged")}}function ub(e,t){if(e&1&&(g(0,"span",31),v(1),m()),e&2){let n=D();h(),ne("",n.untracked.length," untracked")}}function db(e,t){if(e&1&&(N(0,cb,2,1,"span",29),N(1,lb,2,1,"span",30),N(2,ub,2,1,"span",31)),e&2){let n=t;A(n.staged.length>0?0:-1),h(),A(n.unstaged.length>0?1:-1),h(),A(n.untracked.length>0?2:-1)}}function fb(e,t){if(e&1){let n=te();g(0,"div",12),L("click",function(){V(n);let o=D();return H(o.commitClick.emit(o.workingCommit()))})("contextmenu",function(o){V(n);let i=D();return H(i.onWorkingContextMenu(o))}),g(1,"div",13),z(),g(2,"svg",14),Y(3,"path",15)(4,"path",16),m()(),me(),g(5,"div",17)(6,"span",18),z(),g(7,"svg",19),Y(8,"circle",20)(9,"path",21)(10,"path",22)(11,"path",23)(12,"path",24),m(),me(),g(13,"span",25),v(14,"Uncommitted changes"),m()(),N(15,db,3,3),m(),g(16,"div",26),v(17,"\u2014"),m(),g(18,"div",27),v(19,"You"),m(),g(20,"div",28),v(21,"\u2014"),m()()}if(e&2){let n,r=D();ft("selected",r.selectedHash()===r.workingHash),h(),fe("width",r.graphColumnWidth(),"px"),h(14),A((n=r.workingChanges())?15:-1,n),h(),fe("width",r.columnWidths().date,"px"),h(2),fe("width",r.columnWidths().author,"px"),h(2),fe("width",r.columnWidths().commit,"px")}}function pb(e,t){e&1&&(g(0,"div",11),v(1,"No commits to show"),m())}function hb(e,t){if(e&1&&(z(),Y(0,"path",33)),e&2){let n=t.$implicit;xe("d",n.d)("stroke",n.color)}}function gb(e,t){if(e&1&&(z(),Y(0,"circle",36)),e&2){let n=D().$implicit;xe("cx",n.x)("cy",n.y)("stroke",n.color)}}function mb(e,t){if(e&1&&(z(),Y(0,"circle",37)),e&2){let n=D().$implicit;xe("cx",n.x)("cy",n.y)("fill",n.color)}}function yb(e,t){if(e&1&&N(0,gb,1,3,":svg:circle",36)(1,mb,1,3,":svg:circle",37),e&2){let n=t.$implicit;A(n.isHead?0:1)}}function vb(e,t){e&1&&(z(),g(0,"svg",19),Y(1,"line",44)(2,"circle",45)(3,"circle",46)(4,"path",47),m())}function Db(e,t){e&1&&(z(),g(0,"svg",19),Y(1,"path",48)(2,"line",49),m())}function Eb(e,t){if(e&1){let n=te();g(0,"span",43),L("contextmenu",function(o){let i=V(n).$implicit,s=D().$implicit,a=D(2);return H(a.onBranchContextMenu(o,s.commit,i))}),N(1,vb,5,0,":svg:svg",19)(2,Db,3,0,":svg:svg",19),g(3,"span",25),v(4),m()()}if(e&2){let n=t.$implicit;En("badge badge-"+n.type),h(),A(n.type==="head"||n.type==="local"?1:n.type==="tag"?2:-1),h(3),U(n.name)}}function bb(e,t){if(e&1&&(g(0,"mark",50),v(1),m()),e&2){let n=D().$implicit;h(),U(n.text)}}function Cb(e,t){if(e&1&&v(0),e&2){let n=D().$implicit;ne(" ",n.text," ")}}function _b(e,t){if(e&1&&N(0,bb,2,1,"mark",50)(1,Cb,1,1),e&2){let n=t.$implicit;A(n.match?0:1)}}function wb(e,t){if(e&1&&(g(0,"mark",50),v(1),m()),e&2){let n=D().$implicit;h(),U(n.text)}}function Ib(e,t){if(e&1&&v(0),e&2){let n=D().$implicit;ne(" ",n.text," ")}}function Tb(e,t){if(e&1&&N(0,wb,2,1,"mark",50)(1,Ib,1,1),e&2){let n=t.$implicit;A(n.match?0:1)}}function Mb(e,t){if(e&1){let n=te();g(0,"div",38),L("click",function(){let o=V(n).$implicit,i=D(2);return H(i.commitClick.emit(o.commit))})("contextmenu",function(o){let i=V(n).$implicit,s=D(2);return H(s.onRowContextMenu(o,i.commit))}),Y(1,"div",13),g(2,"div",17),Se(3,Eb,5,4,"span",39,ab),g(5,"span",40),Se(6,_b,2,1,null,null,Dn),m()(),g(8,"div",26),v(9),Hr(10,"date"),m(),g(11,"div",41),Se(12,Tb,2,1,null,null,Dn),m(),g(14,"div",42),v(15),m()()}if(e&2){let n=t.$implicit,r=D(2);ft("selected",n.commit.hash===r.selectedHash()),h(),fe("width",r.graphColumnWidth(),"px"),h(2),Ne(r.badges(n.commit)),h(2),ft("head",r.isHead(n.commit)),h(),Ne(r.highlight(n.commit.message)),h(2),fe("width",r.columnWidths().date,"px"),h(),ne(" ",$r(10,16,n.commit.date,"d MMM y HH:mm")," "),h(2),fe("width",r.columnWidths().author,"px"),se("title",n.commit.author_name),h(),Ne(r.highlight(n.commit.author_name)),h(2),fe("width",r.columnWidths().commit,"px"),se("title",n.commit.hash),h(),ne(" ",n.commit.hash.slice(0,8)," ")}}function xb(e,t){if(e&1){let n=te();g(0,"button",51),L("click",function(){V(n);let o=D(2);return H(o.loadMore())}),v(1),m()}if(e&2){let n=D(2);h(),ne("Load ",n.remaining()," more commits")}}function Sb(e,t){if(e&1&&(z(),g(0,"svg",32),Se(1,hb,1,2,":svg:path",33,Dn),Se(3,yb,2,1,null,null,ib),m(),Se(5,Mb,16,19,"div",34,sb),N(7,xb,2,1,"button",35)),e&2){let n=D();xe("width",n.graphWidth())("height",n.graphHeight()),h(),Ne(n.edges()),h(2),Ne(n.nodes()),h(2),Ne(n.graphCommits()),h(2),A(n.remaining()>0?7:-1)}}var In=34,pl=14,th=10,Nb=72,nh=500,hs=class e{commits=J.required();selectedHash=J.required();search=J("");selectedBranch=J("");showRemote=J(!0);workingChanges=J(null);commitClick=pe();contextMenu=pe();limit=F(nh);columnWidths=F({graph:0,date:132,author:150,commit:84});displayed=Q(()=>this.commits().slice(0,this.limit()));graphCommits=Q(()=>Xp(this.displayed()));graphWidth=Q(()=>{let t=this.graphCommits().reduce((n,r)=>Math.max(n,r.lane),0)+1;return Math.max(Nb,th*2+t*pl)});graphColumnWidth=Q(()=>Math.max(this.graphWidth(),this.columnWidths().graph));graphHeight=Q(()=>this.graphCommits().length*In);nodes=Q(()=>this.graphCommits().map((t,n)=>({hash:t.commit.hash,x:this.laneX(t.lane),y:n*In+In/2,color:ao(t.lane),isHead:fl(t.commit)})));edges=Q(()=>{let t=this.graphCommits(),n=new Map(t.map((s,a)=>[s.commit.hash,a])),r=new Map(t.map(s=>[s.commit.hash,s.lane])),o=this.graphHeight(),i=[];return t.forEach((s,a)=>{let c=ao(s.lane),l=this.laneX(s.lane),u=a*In+In/2;for(let d of s.parents){let p=n.get(d);if(p===void 0){i.push({d:`M ${l} ${u} L ${l} ${o}`,color:c});continue}let f=this.laneX(r.get(d)??s.lane),y=p*In+In/2;if(l===f)i.push({d:`M ${l} ${u} L ${f} ${y}`,color:c});else{let _=(u+y)/2;i.push({d:`M ${l} ${u} C ${l} ${_} ${f} ${_} ${f} ${y}`,color:c})}}}),i});remaining=Q(()=>this.commits().length-this.displayed().length);hasWorkingChanges=Q(()=>(this.workingChanges()?.files.length??0)>0);workingHash=It;workingCommit=Q(()=>({hash:It,date:new Date().toISOString(),message:"Uncommitted changes",refs:"",body:"",author_name:"You",author_email:"",parents:[]}));resizeState=null;startResize(t,n){n.preventDefault(),n.stopPropagation();let r=t==="graph"?this.graphColumnWidth():this.columnWidths()[t];this.resizeState={column:t,startX:n.clientX,startWidth:r},document.addEventListener("mousemove",this.onResizeMove),document.addEventListener("mouseup",this.onResizeEnd)}onResizeMove=t=>{let n=this.resizeState;if(!n)return;let r=t.clientX-n.startX,o=n.column==="graph"?this.graphWidth():48,i=Math.max(o,n.startWidth+r);this.columnWidths.update(s=>re(Z({},s),{[n.column]:i}))};onResizeEnd=()=>{this.resizeState=null,document.removeEventListener("mousemove",this.onResizeMove),document.removeEventListener("mouseup",this.onResizeEnd)};ngOnDestroy(){this.onResizeEnd()}onRowContextMenu(t,n){t.preventDefault(),t.stopPropagation(),this.contextMenu.emit({x:t.clientX,y:t.clientY,target:{kind:"commit",commit:n}})}onBranchContextMenu(t,n,r){t.preventDefault(),t.stopPropagation(),this.contextMenu.emit({x:t.clientX,y:t.clientY,target:{kind:"branch",commit:n,branch:r}})}onWorkingContextMenu(t){t.preventDefault(),t.stopPropagation(),this.contextMenu.emit({x:t.clientX,y:t.clientY,target:{kind:"working"}})}highlight(t){let n=this.search().trim().toLowerCase();if(!n||!t)return[{text:t,match:!1}];let r=[],o=t.toLowerCase(),i=0,s=o.indexOf(n);for(;s!==-1;)s>i&&r.push({text:t.slice(i,s),match:!1}),r.push({text:t.slice(s,s+n.length),match:!0}),i=s+n.length,s=o.indexOf(n,i);return i<t.length&&r.push({text:t.slice(i),match:!1}),r.length>0?r:[{text:t,match:!1}]}loadMore(){this.limit.set(this.limit()+nh)}badges(t){let n=this.selectedBranch(),r=this.showRemote();return eh(t.refs).filter(o=>o.type==="remote"&&!r?!1:!n||o.type==="tag"?!0:o.name===n)}isHead(t){return fl(t)}laneX(t){return th+pl/2+t*pl}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-commit-table"]],inputs:{commits:[1,"commits"],selectedHash:[1,"selectedHash"],search:[1,"search"],selectedBranch:[1,"selectedBranch"],showRemote:[1,"showRemote"],workingChanges:[1,"workingChanges"]},outputs:{commitClick:"commitClick",contextMenu:"contextMenu"},decls:25,vars:10,consts:[[1,"table"],[1,"table-head"],[1,"head-cell","cell-graph"],[1,"head-label"],[1,"resizer",3,"mousedown"],[1,"head-cell","cell-desc"],[1,"head-cell","cell-date"],[1,"head-cell","cell-author"],[1,"head-cell","cell-commit"],[1,"row","working-row",3,"selected"],[1,"table-body"],[1,"empty"],[1,"row","working-row",3,"click","contextmenu"],[1,"cell","cell-graph"],["viewBox","0 0 24 24","aria-hidden","true",1,"working-icon"],["d","M12 20h9"],["d","M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"],[1,"cell","cell-desc"],[1,"badge","badge-working"],["viewBox","0 0 24 24","aria-hidden","true",1,"badge-icon"],["cx","12","cy","12","r","3"],["d","M12 2v3"],["d","M12 19v3"],["d","M2 12h3"],["d","M19 12h3"],[1,"badge-name"],[1,"cell","cell-date"],[1,"cell","cell-author"],[1,"cell","cell-commit"],[1,"count-badge","count-staged"],[1,"count-badge","count-unstaged"],[1,"count-badge","count-untracked"],["aria-hidden","true",1,"graph"],["fill","none","stroke-width","2"],[1,"row",3,"selected"],[1,"load-more"],["r","5.5","fill","#1e1e1e","stroke-width","2"],["r","4"],[1,"row",3,"click","contextmenu"],[3,"class"],[1,"message"],[1,"cell","cell-author",3,"title"],[1,"cell","cell-commit",3,"title"],[3,"contextmenu"],["x1","6","y1","3","x2","6","y2","15"],["cx","18","cy","6","r","3"],["cx","6","cy","18","r","3"],["d","M18 9a9 9 0 0 1-9 9"],["d","M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.83z"],["x1","7","y1","7","x2","7.01","y2","7"],[1,"hl"],[1,"load-more",3,"click"]],template:function(n,r){n&1&&(g(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),v(4,"Graph"),m(),g(5,"div",4),L("mousedown",function(i){return r.startResize("graph",i)}),m()(),g(6,"div",5)(7,"span",3),v(8,"Description"),m()(),g(9,"div",6)(10,"span",3),v(11,"Date"),m(),g(12,"div",4),L("mousedown",function(i){return r.startResize("date",i)}),m()(),g(13,"div",7)(14,"span",3),v(15,"Author"),m(),g(16,"div",4),L("mousedown",function(i){return r.startResize("author",i)}),m()(),g(17,"div",8)(18,"span",3),v(19,"Commit"),m(),g(20,"div",4),L("mousedown",function(i){return r.startResize("commit",i)}),m()()(),N(21,fb,22,11,"div",9),g(22,"div",10),N(23,pb,2,0,"div",11)(24,Sb,8,3),m()()),n&2&&(h(2),fe("width",r.graphColumnWidth(),"px"),h(7),fe("width",r.columnWidths().date,"px"),h(4),fe("width",r.columnWidths().author,"px"),h(4),fe("width",r.columnWidths().commit,"px"),h(4),A(r.hasWorkingChanges()?21:-1),h(2),A(r.graphCommits().length===0?23:24))},dependencies:[Xr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.table[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;width:100%;min-width:0;min-height:0}.table-head[_ngcontent-%COMP%]{display:flex;align-items:center;height:30px;flex:none;border-bottom:1px solid var(--border);background:var(--bg-alt);font-size:12px;font-weight:600;color:var(--text-bright);-webkit-user-select:none;user-select:none}.head-cell[_ngcontent-%COMP%]{position:relative;padding:0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:none}.head-cell.cell-desc[_ngcontent-%COMP%]{flex:1;min-width:0}.resizer[_ngcontent-%COMP%]{position:absolute;top:0;right:-3px;width:6px;height:100%;cursor:col-resize;z-index:1}.resizer[_ngcontent-%COMP%]:hover, .resizer.active[_ngcontent-%COMP%]{background:var(--accent)}.table-body[_ngcontent-%COMP%]{position:relative;flex:1;min-height:0;overflow-y:auto}.graph[_ngcontent-%COMP%]{position:absolute;top:0;left:0;pointer-events:none}.row[_ngcontent-%COMP%]{display:flex;align-items:center;height:34px;cursor:pointer;-webkit-user-select:none;user-select:none}.row[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.row.selected[_ngcontent-%COMP%]{background:#04395e}.cell[_ngcontent-%COMP%]{padding:0 10px;overflow:hidden;white-space:nowrap;color:var(--text);min-width:0}.cell-graph[_ngcontent-%COMP%]{flex:none}.cell-desc[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;gap:6px}.cell-date[_ngcontent-%COMP%]{flex:none;text-align:right;color:var(--text-dim)}.cell-author[_ngcontent-%COMP%]{flex:none;text-align:right;text-overflow:ellipsis}.cell-commit[_ngcontent-%COMP%]{flex:none;text-align:right;font-family:var(--mono);color:var(--text-dim)}.working-row[_ngcontent-%COMP%]{flex:none;border-bottom:1px solid var(--border);background:#d7ba7d0a}.working-row[_ngcontent-%COMP%]:hover{background:#d7ba7d14}.working-row.selected[_ngcontent-%COMP%]{background:#4d3a12}.working-icon[_ngcontent-%COMP%]{width:14px;height:14px;margin-left:4px;fill:none;stroke:#d7ba7d;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.badge-working[_ngcontent-%COMP%]{background:#d7ba7d24;color:#d7ba7d;border-color:#d7ba7d66}.count-badge[_ngcontent-%COMP%]{flex:none;padding:1px 7px;border-radius:10px;font-size:11px;line-height:16px;white-space:nowrap}.count-staged[_ngcontent-%COMP%]{background:#89d18524;color:#89d185}.count-unstaged[_ngcontent-%COMP%]{background:#f4877124;color:#f48771}.count-untracked[_ngcontent-%COMP%]{background:#3794ff24;color:#4fc1ff}.hl[_ngcontent-%COMP%]{background:#613214;color:#f5c04a;border-radius:2px;padding:0 1px}.message[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;font-weight:400}.message.head[_ngcontent-%COMP%]{font-weight:600;color:var(--text-bright)}.badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;flex:none;padding:1px 7px;border-radius:10px;border:1px solid transparent;font-size:11px;line-height:16px;white-space:nowrap}.badge-head[_ngcontent-%COMP%]{background:#0078d4;color:#fff}.badge-local[_ngcontent-%COMP%]{background:#3794ff24;color:#4fc1ff;border-color:#3794ff66}.badge-remote[_ngcontent-%COMP%]{background:#ffffff0f;color:#b8b8b8;border-color:#4a4a4a}.badge-tag[_ngcontent-%COMP%]{background:#d7ba7d1f;color:#d7ba7d;border-color:#d7ba7d66}.badge-icon[_ngcontent-%COMP%]{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.badge-name[_ngcontent-%COMP%]{max-width:160px;overflow:hidden;text-overflow:ellipsis}.empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:240px;color:var(--text-dim)}.load-more[_ngcontent-%COMP%]{display:block;width:100%;padding:10px;background:transparent;border:none;border-top:1px solid var(--border);color:var(--accent);cursor:pointer;font-size:12px;font-family:inherit}.load-more[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}"],changeDetection:0})};function Ab(e,t){e&1&&Y(0,"div",2)}function Rb(e,t){if(e&1){let n=te();g(0,"button",4),L("click",function(){V(n);let o=D().$implicit,i=D(2);return H(i.onSelect(o))}),v(1),m()}if(e&2){let n=D().$implicit;ft("danger",n.danger),se("disabled",n.disabled),h(),ne(" ",n.label," ")}}function kb(e,t){if(e&1&&N(0,Ab,1,0,"div",2)(1,Rb,2,4,"button",3),e&2){let n=t.$implicit;A(n.separator?0:1)}}function Ob(e,t){if(e&1){let n=te();g(0,"div",0),L("click",function(){V(n);let o=D();return H(o.closed.emit())})("contextmenu",function(o){V(n);let i=D();return o.preventDefault(),H(i.closed.emit())}),m(),g(1,"div",1),Se(2,kb,2,1,null,null,Dn),m()}if(e&2){let n=D();h(),fe("left",n.left(),"px")("top",n.top(),"px"),h(),Ne(t.items)}}var gs=class e{menu=J.required();select=pe();closed=pe();left=Q(()=>{let t=this.menu();return t?Math.max(4,Math.min(t.x,window.innerWidth-250)):0});top=Q(()=>{let t=this.menu();if(!t)return 0;let n=t.items.length*30+12;return Math.max(4,Math.min(t.y,window.innerHeight-n-8))});onEscape(){this.menu()&&this.closed.emit()}onSelect(t){t.disabled||!t.action||(this.select.emit(t.action),this.closed.emit())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-context-menu"]],hostBindings:function(n,r){n&1&&ae("keydown.escape",function(){return r.onEscape()},dt)},inputs:{menu:[1,"menu"]},outputs:{select:"select",closed:"closed"},decls:1,vars:1,consts:[[1,"backdrop",3,"click","contextmenu"],["role","menu",1,"menu"],[1,"separator"],["role","menuitem",1,"item",3,"danger","disabled"],["role","menuitem",1,"item",3,"click","disabled"]],template:function(n,r){if(n&1&&N(0,Ob,4,4),n&2){let o;A((o=r.menu())?0:-1,o)}},styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:300}.menu[_ngcontent-%COMP%]{position:fixed;min-width:210px;max-width:300px;padding:4px;display:flex;flex-direction:column;background:var(--bg-alt);border:1px solid var(--border);border-radius:6px;box-shadow:0 6px 24px #0000008c;z-index:301}.item[_ngcontent-%COMP%]{display:block;width:100%;padding:6px 10px;border:none;border-radius:4px;background:transparent;color:var(--text);font-size:12px;font-family:inherit;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--bg-hover);color:var(--text-bright)}.item[_ngcontent-%COMP%]:disabled{color:var(--text-dim);opacity:.55;cursor:default}.item.danger[_ngcontent-%COMP%]{color:var(--red)}.item.danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#f487711f;color:#f48771}.separator[_ngcontent-%COMP%]{height:1px;margin:4px 6px;background:var(--border);flex:none}"],changeDetection:0})};var Pb=["inputEl"];function Fb(e,t){if(e&1&&(g(0,"p",4),v(1),m()),e&2){let n=D();h(),U(n.label)}}function Lb(e,t){if(e&1){let n=te();g(0,"label",8),v(1),m(),g(2,"input",9,0),L("input",function(o){V(n);let i=D(2);return H(i.onInput(o))})("keydown.enter",function(){V(n);let o=D(2);return H(o.confirm())}),m()}if(e&2){let n=D(),r=D();h(),U(n.label||n.title),h(),se("value",r.value()),xe("placeholder",n.placeholder||" ")("aria-label",n.label||n.title)}}function jb(e,t){if(e&1){let n=te();g(0,"div",1),L("click",function(){V(n);let o=D();return H(o.cancelled.emit())}),m(),g(1,"div",2)(2,"h3",3),v(3),m(),N(4,Fb,2,1,"p",4),N(5,Lb,4,4),g(6,"div",5)(7,"button",6),L("click",function(){V(n);let o=D();return H(o.cancelled.emit())}),v(8,"Cancel"),m(),g(9,"button",7),L("click",function(){V(n);let o=D();return H(o.confirm())}),v(10),m()()()}if(e&2){let n=t,r=D();h(3),U(n.title),h(),A(n.label?4:-1),h(),A(n.confirmOnly?-1:5),h(4),ft("btn-danger",n.danger),se("disabled",!n.confirmOnly&&!n.allowEmpty&&!r.value().trim()),h(),ne(" ",n.okLabel||"OK"," ")}}var ms=class e{state=J.required();confirmed=pe();cancelled=pe();value=F("");inputEl=Zi("inputEl");constructor(){Gr(()=>{let t=this.state();t&&this.value.set(t.value??"");let n=this.inputEl();t&&n&&(n.nativeElement.focus(),n.nativeElement.select())})}onEscape(){this.state()&&this.cancelled.emit()}onInput(t){this.value.set(t.target.value)}confirm(){let t=this.state();t&&(!t.confirmOnly&&!t.allowEmpty&&!this.value().trim()||this.confirmed.emit(t.confirmOnly?"":this.value().trim()))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-prompt-dialog"]],viewQuery:function(n,r){n&1&&Br(r.inputEl,Pb,5),n&2&&Vr()},hostBindings:function(n,r){n&1&&ae("keydown.escape",function(){return r.onEscape()},dt)},inputs:{state:[1,"state"]},outputs:{confirmed:"confirmed",cancelled:"cancelled"},decls:1,vars:1,consts:[["inputEl",""],[1,"backdrop",3,"click"],["role","dialog","aria-modal","true",1,"dialog"],[1,"title"],[1,"label"],[1,"actions"],["type","button",1,"btn",3,"click"],["type","button",1,"btn","btn-primary",3,"click","disabled"],["for","prompt-input",1,"sr-only"],["id","prompt-input","type","text","placeholder"," ","title","Enter a value",1,"input",3,"input","keydown.enter","value"]],template:function(n,r){if(n&1&&N(0,jb,11,7),n&2){let o;A((o=r.state())?0:-1,o)}},styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000080;z-index:400}.dialog[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(420px,calc(100vw - 48px));padding:18px;display:flex;flex-direction:column;gap:12px;background:var(--bg-alt);border:1px solid var(--border);border-radius:8px;box-shadow:0 10px 36px #0009;z-index:401}.title[_ngcontent-%COMP%]{margin:0;font-size:14px;font-weight:600;color:var(--text-bright)}.label[_ngcontent-%COMP%]{margin:0;font-size:12px;color:var(--text-dim)}.input[_ngcontent-%COMP%]{padding:7px 10px;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text);font-size:13px;font-family:inherit;outline:none}.input[_ngcontent-%COMP%]:focus{border-color:var(--accent)}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px}.btn[_ngcontent-%COMP%]{padding:6px 14px;border:1px solid var(--border);border-radius:4px;background:transparent;color:var(--text);font-size:12px;font-family:inherit;cursor:pointer}.btn[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--bg-hover);color:var(--text-bright)}.btn-primary[_ngcontent-%COMP%]{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){background:#2b7cd3}.btn-danger[_ngcontent-%COMP%]{background:#a1260d;border-color:#a1260d;color:#fff}.btn-danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#c42b1c}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}"],changeDetection:0})};var Bb=(e,t)=>t.name;function Vb(e,t){if(e&1&&(g(0,"option",5),v(1),m()),e&2){let n=t.$implicit;se("value",n.name),h(),U(n.name)}}function Hb(e,t){if(e&1){let n=te();g(0,"div",20)(1,"button",28),L("click",function(){V(n);let o=D();return H(o.chooseRemoteAction("pull"))}),v(2,"Pull"),m(),g(3,"button",28),L("click",function(){V(n);let o=D();return H(o.chooseRemoteAction("pull-rebase"))}),v(4,"Pull (rebase)"),m()()}}function $b(e,t){if(e&1){let n=te();g(0,"div",20)(1,"button",28),L("click",function(){V(n);let o=D();return H(o.chooseRemoteAction("push"))}),v(2,"Push"),m(),g(3,"button",28),L("click",function(){V(n);let o=D();return H(o.chooseRemoteAction("sync"))}),v(4,"Sync"),m()()}}var ys=class e{branches=J.required();selectedBranch=J.required();showRemote=J.required();search=J.required();busy=J.required();branchChange=pe();remoteToggle=pe();searchChange=pe();refresh=pe();remoteAction=pe();openMenu=F(null);visibleBranches=Q(()=>this.branches());onBranchChange(t){this.branchChange.emit(t.target.value)}onRemoteToggle(t){this.remoteToggle.emit(t.target.checked)}onSearch(t){this.searchChange.emit(t.target.value)}toggleMenu(t,n){n.stopPropagation(),this.openMenu.update(r=>r===t?null:t)}chooseRemoteAction(t){this.openMenu.set(null),this.remoteAction.emit(t)}closeMenu(){this.openMenu.set(null)}closeMenuOnEscape(){this.openMenu.set(null)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-toolbar"]],hostBindings:function(n,r){n&1&&ae("click",function(){return r.closeMenu()},dt)("keydown.escape",function(){return r.closeMenuOnEscape()},dt)},inputs:{branches:[1,"branches"],selectedBranch:[1,"selectedBranch"],showRemote:[1,"showRemote"],search:[1,"search"],busy:[1,"busy"]},outputs:{branchChange:"branchChange",remoteToggle:"remoteToggle",searchChange:"searchChange",refresh:"refresh",remoteAction:"remoteAction"},decls:41,vars:10,consts:[[1,"toolbar"],[1,"group"],["for","branch-select",1,"label"],["id","branch-select",1,"select",3,"change","value"],["value",""],[3,"value"],[1,"checkbox"],["type","checkbox",3,"change","checked"],[1,"search"],["viewBox","0 0 24 24","aria-hidden","true"],["cx","11","cy","11","r","8"],["x1","21","y1","21","x2","16.65","y2","16.65"],["type","text","placeholder","Search commits",3,"input","value"],["title","Fetch",1,"icon-btn",3,"click","disabled"],["d","M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"],[1,"action-menu"],["title","Pull",1,"icon-btn",3,"click","disabled"],["cx","12","cy","12","r","10"],["points","8 12 12 16 16 12"],["x1","12","y1","8","x2","12","y2","16"],["role","menu",1,"remote-menu"],["title","Push",1,"icon-btn",3,"click","disabled"],["points","16 12 12 8 8 12"],["x1","12","y1","16","x2","12","y2","8"],["title","Refresh",1,"icon-btn",3,"click"],["points","23 4 23 10 17 10"],["points","1 20 1 14 7 14"],["d","M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"],["type","button","role","menuitem",3,"click"]],template:function(n,r){n&1&&(g(0,"div",0)(1,"div",1)(2,"label",2),v(3,"Branches:"),m(),g(4,"select",3),L("change",function(i){return r.onBranchChange(i)}),g(5,"option",4),v(6,"Show All"),m(),Se(7,Vb,2,2,"option",5,Bb),m(),g(9,"label",6)(10,"input",7),L("change",function(i){return r.onRemoteToggle(i)}),m(),g(11,"span"),v(12,"Show Remote Branches"),m()()(),g(13,"div",1)(14,"div",8),z(),g(15,"svg",9),Y(16,"circle",10)(17,"line",11),m(),me(),g(18,"input",12),L("input",function(i){return r.onSearch(i)}),m()(),g(19,"button",13),L("click",function(){return r.remoteAction.emit("fetch")}),z(),g(20,"svg",9),Y(21,"path",14),m()(),me(),g(22,"div",15)(23,"button",16),L("click",function(i){return r.toggleMenu("pull",i)}),z(),g(24,"svg",9),Y(25,"circle",17)(26,"polyline",18)(27,"line",19),m()(),N(28,Hb,5,0,"div",20),m(),me(),g(29,"div",15)(30,"button",21),L("click",function(i){return r.toggleMenu("push",i)}),z(),g(31,"svg",9),Y(32,"circle",17)(33,"polyline",22)(34,"line",23),m()(),N(35,$b,5,0,"div",20),m(),me(),g(36,"button",24),L("click",function(){return r.refresh.emit()}),z(),g(37,"svg",9),Y(38,"polyline",25)(39,"polyline",26)(40,"path",27),m()()()()),n&2&&(h(4),se("value",r.selectedBranch()),h(3),Ne(r.visibleBranches()),h(3),se("checked",r.showRemote()),h(8),se("value",r.search()),h(),se("disabled",r.busy()),h(4),se("disabled",r.busy()),xe("aria-expanded",r.openMenu()==="pull"),h(5),A(r.openMenu()==="pull"?28:-1),h(2),se("disabled",r.busy()),xe("aria-expanded",r.openMenu()==="push"),h(5),A(r.openMenu()==="push"?35:-1))},styles:[`.toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;height:42px;padding:0 12px;background:var(--bg-alt);border-bottom:1px solid var(--border)}.group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;min-width:0}.label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:var(--text-bright);-webkit-user-select:none;user-select:none;white-space:nowrap}.select[_ngcontent-%COMP%]{appearance:none;height:26px;padding:0 26px 0 10px;border:1px solid var(--border);border-radius:4px;background:#2d2d2d url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23cccccc' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;color:var(--text);font-size:12px;cursor:pointer;outline:none;max-width:260px;text-overflow:ellipsis}.select[_ngcontent-%COMP%]:hover{border-color:#555}.select[_ngcontent-%COMP%]:focus{border-color:var(--accent)}.checkbox[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--text-bright);-webkit-user-select:none;user-select:none;cursor:pointer;white-space:nowrap}.checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{accent-color:var(--accent);cursor:pointer}.search[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;height:26px;padding:0 8px;border:1px solid var(--border);border-radius:4px;background:#2d2d2d;color:var(--text-dim)}.search[_ngcontent-%COMP%]:focus-within{border-color:var(--accent)}.search[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}.search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:170px;border:none;outline:none;background:transparent;color:var(--text);font-size:12px}.search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#777}.icon-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:4px;background:transparent;color:var(--text);cursor:pointer;flex:none}.action-menu[_ngcontent-%COMP%]{position:relative;display:inline-flex}.remote-menu[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 4px);right:0;z-index:20;min-width:132px;padding:4px;background:var(--bg-alt);border:1px solid var(--border);border-radius:4px;box-shadow:0 6px 18px #00000073}.remote-menu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;width:100%;padding:6px 10px;border:none;border-radius:3px;background:transparent;color:var(--text);font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.remote-menu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .icon-btn[_ngcontent-%COMP%]:hover{background:var(--bg-hover);color:var(--text-bright)}.icon-btn[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:default}.icon-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}`],changeDetection:0})};function Ub(e,t){if(e&1&&(k(0,"div",12),v(1),R()),e&2){let n=D();h(),U(n.error())}}function Gb(e,t){if(e&1){let n=te();k(0,"app-commit-detail",19),ae("closed",function(){V(n);let o=D();return H(o.selectedCommit.set(null))}),R()}e&2&&et("commit",t)}function zb(e,t){e&1&&(k(0,"div",18),Pt(1,"div",20),R())}var vs=class e{git=E(Lt);commits=F([]);branches=F([]);selectedBranch=F("");showRemote=F(!0);search=F("");selectedCommit=F(null);loading=F(!1);busy=F(!1);error=F("");repoName=F("");workingChanges=F(null);contextMenuState=F(null);contextMenuTarget=F(null);promptState=F(null);filteredCommits=Q(()=>{let t=this.commits(),n=this.selectedBranch(),r=this.branches().filter(s=>this.showRemote()||!s.remote),o=n?r.filter(s=>s.name===n):r;if(o.length>0){let s=new Set;for(let a of o)for(let c of this.ancestorsOf(a.commit,t))s.add(c);t=t.filter(a=>s.has(a.hash))}else t=[];let i=this.search().trim().toLowerCase();return i&&(t=t.filter(s=>s.message.toLowerCase().includes(i)||s.author_name.toLowerCase().includes(i)||s.hash.toLowerCase().startsWith(i))),t});constructor(){this.refresh()}refresh(){this.loading.set(!0),this.error.set(""),Os({commits:this.git.getCommits(),branches:this.git.getAllBranches(),repo:this.git.getRepoInfo(),working:this.git.getWorkingChanges().pipe(jo(()=>jn({files:[],staged:[],unstaged:[],untracked:[]})))}).subscribe({next:({commits:t,branches:n,repo:r,working:o})=>{this.commits.set(t),this.branches.set(n),this.repoName.set(r.name),this.workingChanges.set(o),this.loading.set(!1)},error:t=>{this.error.set(this.errorMessage(t)),this.loading.set(!1)}})}onRemoteToggle(t){this.showRemote.set(t)}runRemoteAction(t){this.busy.set(!0),this.error.set(""),(t==="fetch"?this.git.fetch():t==="pull"?this.git.pull():t==="pull-rebase"?this.git.pull(!0):t==="push"?this.git.push():this.git.sync()).subscribe({next:()=>{this.busy.set(!1),this.refresh()},error:r=>{this.busy.set(!1),this.error.set(this.errorMessage(r))}})}onContextMenu(t){let n=[];t.target.kind==="commit"?(n.push({label:"Add Tag...",action:"add-tag"}),n.push({label:"Create Branch...",action:"create-branch"}),n.push({separator:!0}),n.push({label:"Checkout...",action:"checkout-commit"}),n.push({label:"Cherry Pick...",action:"cherry-pick"}),n.push({label:"Revert...",action:"revert-commit",danger:!0}),n.push({label:"Drop...",action:"drop-commit",danger:!0}),n.push({separator:!0}),n.push({label:"Merge into current branch...",action:"merge-commit"}),n.push({label:"Rebase current branch on this Commit...",action:"rebase-commit"}),n.push({label:"Reset current branch to this Commit...",action:"reset-commit",danger:!0}),n.push({separator:!0}),n.push({label:"Copy Commit Hash to Clipboard",action:"copy-hash"}),n.push({label:"Copy Commit Subject to Clipboard",action:"copy-subject"})):t.target.kind==="branch"?(n.push({label:"Checkout Branch...",action:"checkout-branch"}),n.push({label:"Delete Remote Branch...",action:"delete-remote-branch",danger:!0}),n.push({label:"Merge into current branch...",action:"merge-branch"}),n.push({label:"Pull into current branch...",action:"pull-branch"}),n.push({separator:!0}),n.push({label:"Create Archive",action:"create-archive"}),n.push({label:"Unselect in Branches Dropdown",action:"unselect-branch"}),n.push({separator:!0}),n.push({label:"Copy Branch Name to Clipboard",action:"copy-branch-name"})):(n.push({label:"Stash uncommitted changes...",action:"stash-working"}),n.push({label:"Reset uncommitted changes...",action:"reset-working",danger:!0}),n.push({label:"Clean untracked files...",action:"clean-untracked",danger:!0}),n.push({separator:!0}),n.push({label:"Open Source Control View",action:"open-source-control"})),this.contextMenuTarget.set(t.target),this.contextMenuState.set({x:t.x,y:t.y,items:n})}onContextAction(t){let n=this.contextMenuTarget()?.commit??this.selectedCommit();switch(t){case"add-tag":this.promptState.set({title:"Add Tag",label:"Tag name",placeholder:"v1.0.0",okLabel:"Add Tag"});break;case"create-branch":this.promptState.set({title:"Create Branch",label:"Branch name",placeholder:"feature/my-branch",okLabel:"Create Branch"});break;case"checkout-commit":n&&this.git.checkout(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"cherry-pick":n&&this.git.cherryPick(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"open-commit":this.selectedCommit()===null&&this.selectedCommit.set(this.commits()[0]??null);break;case"copy-hash":n&&navigator.clipboard?.writeText(n.hash);break;case"copy-subject":n&&navigator.clipboard?.writeText(n.message);break;case"view-commit-diff":n&&this.selectedCommit.set(n);break;case"revert-commit":n&&this.git.revert(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"drop-commit":this.promptState.set({title:"Drop commit?",label:"This will reset the current branch to the commit before it.",confirmOnly:!0,okLabel:"Drop",danger:!0});break;case"merge-commit":n&&this.git.merge(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"rebase-commit":n&&this.git.rebase(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"reset-commit":this.promptState.set({title:"Reset current branch to this commit?",label:"All commits after this commit will be removed from the current branch.",confirmOnly:!0,okLabel:"Reset",danger:!0});break;case"checkout-branch":this.contextMenuTarget()?.branch?.name&&this.git.checkout(this.contextMenuTarget().branch.name).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"delete-remote-branch":{let r=this.contextMenuTarget()?.branch?.name??"",o=r.indexOf("/");o>0&&this.git.deleteRemoteBranch(r.slice(0,o),r.slice(o+1)).subscribe({next:()=>this.refresh(),error:i=>this.error.set(this.errorMessage(i))});break}case"merge-branch":this.contextMenuTarget()?.branch?.name&&this.git.merge(this.contextMenuTarget().branch.name).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"pull-branch":this.git.pull().subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"create-archive":this.contextMenuTarget()?.commit?.hash&&window.open(`/api/archive?ref=${encodeURIComponent(this.contextMenuTarget().commit.hash)}`,"_blank");break;case"unselect-branch":this.selectedBranch.set("");break;case"copy-branch-name":this.contextMenuTarget()?.branch?.name&&navigator.clipboard?.writeText(this.contextMenuTarget().branch.name);break;case"rename-branch":this.promptState.set({title:"Rename branch",label:"New branch name",placeholder:"feature/my-branch",okLabel:"Rename"});break;case"delete-branch":this.promptState.set({title:"Delete branch?",label:"This will delete the local branch.",confirmOnly:!0,okLabel:"Delete",danger:!0});break;case"open-working":this.selectedCommit.set({hash:It,date:new Date().toISOString(),message:"Uncommitted changes",refs:"",body:"",author_name:"You",author_email:"",parents:[]});break;case"stash-working":this.promptState.set({title:"Stash uncommitted changes",label:"Stash message (optional)",placeholder:"WIP",allowEmpty:!0,okLabel:"Stash"});break;case"reset-working":this.promptState.set({title:"Reset uncommitted changes?",label:"Tracked changes will be discarded. Untracked files will remain.",confirmOnly:!0,okLabel:"Reset",danger:!0});break;case"clean-untracked":this.promptState.set({title:"Clean untracked files?",label:"Untracked files will be permanently deleted.",confirmOnly:!0,okLabel:"Clean",danger:!0});break;case"discard-working":this.git.getWorkingChanges().subscribe({next:r=>{let o=[...r.files.map(i=>i.path),...r.untracked];o.length>0&&this.git.discard(o).subscribe({next:()=>this.refresh(),error:i=>this.error.set(this.errorMessage(i))})},error:r=>this.error.set(this.errorMessage(r))});break;case"refresh-status":this.refresh();break;case"open-source-control":window.open("vscode://command/workbench.view.scm","_blank");break;default:break}this.contextMenuState.set(null)}onPromptConfirm(t){let n=this.promptState();if(!n)return;this.promptState.set(null);let r=this.contextMenuTarget()?.commit;if(n.title==="Add Tag"&&r){this.git.createTag(t,r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Create Branch"&&r){this.git.createBranch(t,r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Drop commit?"&&r){this.git.dropCommit(r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Reset current branch to this commit?"&&r){this.git.resetToCommit(r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Stash uncommitted changes"){this.git.stashSave(t||void 0).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Reset uncommitted changes?"){this.git.resetWorking().subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Clean untracked files?"){this.git.cleanUntracked().subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Rename branch"){this.error.set("Branch rename is not available from the current menu flow.");return}if(n.title==="Delete branch?"){this.error.set("Branch deletion is not available from the current menu flow.");return}}ancestorsOf(t,n){let r=new Map(n.map(s=>[s.hash,s])),o=new Set,i=[t];for(;i.length;){let s=i.pop();if(o.has(s))continue;o.add(s);let a=r.get(s);a&&i.push(...a.parents)}return o}errorMessage(t){let n=t;return n?.status===400&&n.error?.error?n.error.error:"Failed to communicate with the Guito server."}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Te({type:e,selectors:[["app-root"]],decls:20,vars:16,consts:[[1,"app"],[1,"titlebar"],["aria-label","Repository logo",1,"brand"],["viewBox","0 0 16 16","aria-hidden","true",1,"logo"],["d","M4.5 2.5v11","stroke","#3794ff","stroke-width","1.6","fill","none"],["d","M4.5 11.5c4.5 0 4.5-7 7.5-7","stroke","#4ec9b0","stroke-width","1.6","fill","none"],["cx","4.5","cy","3.5","r","1.7","fill","#3794ff"],["cx","4.5","cy","8","r","1.7","fill","#3794ff"],["cx","4.5","cy","12.5","r","1.7","fill","#3794ff"],["cx","12","cy","4.5","r","1.7","fill","#4ec9b0"],[1,"title"],[3,"branchChange","remoteToggle","searchChange","refresh","remoteAction","branches","selectedBranch","showRemote","search","busy"],[1,"error-banner"],[1,"content"],[3,"commitClick","contextMenu","commits","selectedHash","search","selectedBranch","showRemote","workingChanges"],[3,"commit"],[3,"select","closed","menu"],[3,"confirmed","cancelled","state"],[1,"loading-overlay"],[3,"closed","commit"],[1,"spinner"]],template:function(n,r){if(n&1&&(k(0,"div",0)(1,"header",1)(2,"div",2),z(),k(3,"svg",3),Pt(4,"path",4)(5,"path",5)(6,"circle",6)(7,"circle",7)(8,"circle",8)(9,"circle",9),R(),me(),k(10,"span",10),v(11,"Guito"),R()()(),k(12,"app-toolbar",11),ae("branchChange",function(i){return r.selectedBranch.set(i)})("remoteToggle",function(i){return r.onRemoteToggle(i)})("searchChange",function(i){return r.search.set(i)})("refresh",function(){return r.refresh()})("remoteAction",function(i){return r.runRemoteAction(i)}),R(),N(13,Ub,2,1,"div",12),k(14,"main",13)(15,"app-commit-table",14),ae("commitClick",function(i){return r.selectedCommit.set(i)})("contextMenu",function(i){return r.onContextMenu(i)}),R(),N(16,Gb,1,1,"app-commit-detail",15),R(),k(17,"app-context-menu",16),ae("select",function(i){return r.onContextAction(i)})("closed",function(){return r.contextMenuState.set(null)}),R(),k(18,"app-prompt-dialog",17),ae("confirmed",function(i){return r.onPromptConfirm(i)})("cancelled",function(){return r.promptState.set(null)}),R(),N(19,zb,2,0,"div",18),R()),n&2){let o,i;h(12),et("branches",r.branches())("selectedBranch",r.selectedBranch())("showRemote",r.showRemote())("search",r.search())("busy",r.busy()),h(),A(r.error()?13:-1),h(2),et("commits",r.filteredCommits())("selectedHash",((o=r.selectedCommit())==null?null:o.hash)??"")("search",r.search())("selectedBranch",r.selectedBranch())("showRemote",r.showRemote())("workingChanges",r.workingChanges()),h(),A((i=r.selectedCommit())?16:-1,i),h(),et("menu",r.contextMenuState()),h(),et("state",r.promptState()),h(),A(r.loading()?19:-1)}},dependencies:[ys,hs,ps,gs,ms],styles:[".app[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh;overflow:hidden}.titlebar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex:none;height:38px;padding:0 14px;background:var(--bg-alt);border-bottom:1px solid var(--border)}.brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.logo[_ngcontent-%COMP%]{width:18px;height:18px}.title[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:var(--text-bright);letter-spacing:.2px}.repo[_ngcontent-%COMP%]{font-size:12px;color:var(--text-dim)}.error-banner[_ngcontent-%COMP%]{flex:none;padding:8px 14px;background:#5a1d1d;color:#f48771;border-bottom:1px solid #7a2d2d;font-size:12px}.content[_ngcontent-%COMP%]{display:flex;flex:1;min-height:0}.loading-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#1e1e1e8c;z-index:100}.spinner[_ngcontent-%COMP%]{width:28px;height:28px;border:3px solid rgba(255,255,255,.15);border-top-color:var(--accent);border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}"],changeDetection:0})};cl(vs,Qp).catch(e=>console.error(e));