diff --git a/README.md b/README.md index de8669f..c915f19 100644 --- a/README.md +++ b/README.md @@ -365,100 +365,26 @@ pnpm devtools:publish ## Chrome DevTools Extension -To distribute this as a Chrome DevTools extension, you need a thin Chrome extension shell that opens the devtools UI in a DevTools panel. The built SPA already works standalone — the extension just embeds it. +The `extension/` directory is a Manifest V3 extension that adds an **Angular DevTools** panel to Chrome DevTools. The panel embeds the same SPA and connects it live to the devtools server of the page you inspect. -### 1. Create the extension scaffold - -Create an `extension/` directory: - -``` -extension/ - manifest.json - devtools.html - devtools.js - panel.html -``` - -### 2. `extension/manifest.json` - -```json -{ - "manifest_version": 3, - "name": "Angular DevTools", - "version": "0.0.1", - "description": "Inspect Angular components, signals, DI, and routes.", - "devtools_page": "devtools.html", - "permissions": ["scripting"], - "host_permissions": [ - "http://localhost/*", - "https://localhost/*", - "http://127.0.0.1/*", - "https://127.0.0.1/*" - ], - "icons": { - "128": "icon-128.png" - } -} -``` - -### 3. `extension/devtools.html` and `extension/devtools.js` - -```html - - - -``` - -```js -// devtools.js — creates the panel in Chrome DevTools -chrome.devtools.panels.create('Angular', 'icon-128.png', 'panel.html'); -``` - -### 4. `extension/panel.html` - -This is where the built SPA loads. Copy the built assets (`dist/devtools-ui/`) into the extension and point `panel.html` at the SPA's `index.html`: - -```html - - - - - - - - - - -``` - -### 5. Build the extension +### Load it unpacked ```sh -# Build the devtools SPA -pnpm devtools:build - -# Copy into the extension -mkdir -p extension/ui -cp -r dist/devtools-ui/* extension/ui/ +pnpm extension:build ``` -### 6. Load in Chrome - -1. Go to `chrome://extensions` -2. Enable **Developer mode** -3. Click **Load unpacked** → select the `extension/` directory -4. Open DevTools on any Angular app → the **Angular** panel appears - -### 7. Publish to Chrome Web Store +1. Go to `chrome://extensions` and enable **Developer mode** +2. Click **Load unpacked** and select the `extension/` directory +3. Run your app with the devtools server (see [How to Use](#how-to-use)), open it in Chrome, then open Chrome DevTools: the **Angular DevTools** panel appears once the page renders Angular -1. Zip the `extension/` directory -2. Go to the [Chrome Developer Dashboard](https://chrome.google.com/webstore/devconsole) -3. Click **New item** → upload the zip -4. Fill in the listing details and submit for review +`pnpm extension:zip` writes `dist/ng-devtools-extension.zip`, ready to upload to the [Chrome Web Store](https://chrome.google.com/webstore/devconsole). -### Connecting the extension to the running app +### How it works -The extension panel loads the SPA in static mode by default. To connect it to a live dev server for real-time RPC, the extension's content script or background service worker needs to detect the devframe's `__connection.json` on the inspected page and pass the connection to the panel. This is the same pattern the official Angular DevTools Chrome extension uses — a content script bridges the inspected page and the DevTools panel via `chrome.runtime.connect`. +- **Connection.** The panel looks for the devframe connection on the inspected page's origin, under `/__ng-devtools/`, `/__devframes/ng-devtools/`, `/__devframe/` and `/`, and connects to the first one that answers. When none answers, it lists the URLs it tried. +- **Inspected tab.** With several tabs open on the same app, the panel shows the page it inspects, not the one that reported last. It reconnects after each navigation. +- **Elements panel.** While the Components tab is open, selecting an element in Chrome's Elements panel selects its component there. Other tabs stay where they are. +- **Hosts.** `localhost`, `*.localhost`, `127.0.0.1` and `[::1]` work out of the box. For any other host (a LAN IP, a tunnel), the panel shows an **Allow access** button that grants the extension that host only. The devtools server still only answers requests from your machine. ## Community diff --git a/app/src/app.ts b/app/src/app.ts index 90914b5..4721ccc 100644 --- a/app/src/app.ts +++ b/app/src/app.ts @@ -109,7 +109,10 @@ function readView(): View | null { @Component({ selector: 'app-root', - host: { '[style.--accent]': 'viewAccent()' }, + host: { + '[style.--accent]': 'viewAccent()', + '(window:message)': 'inspectFromPanel($event)', + }, imports: [ Dashboard, ComponentTree, @@ -253,7 +256,12 @@ function readView(): View | null { } @case ('components') { - + } @case ('routes') { @@ -741,12 +749,27 @@ export class App implements OnInit, OnDestroy { } formFocus = signal<{ id: string } | null>(null); + // Belongs to the Components tab that received it, so leaving the tab drops it. + readonly componentFocus = linkedSignal({ + source: this.tab, + computation: () => null, + }); showForm(formId: string) { this.formFocus.set({ id: formId }); this.switchTab('forms'); } + inspectFromPanel({ source, origin, data }: MessageEvent) { + if (source !== window.parent || origin !== location.origin) return; + const message = data as { type?: unknown; id?: unknown } | null; + if (message?.type !== 'ng-devtools:inspect-component' || typeof message.id !== 'string') return; + // Any element inside the app resolves to a component, so following every + // Elements selection would pull the user off whichever tab they are on. + if (this.tab() !== 'components') return; + this.componentFocus.set({ id: message.id }); + } + switchTab(id: Tab) { const target = TAB_VIEW[id]; if (this.view() === 'angular' && target) { @@ -812,16 +835,12 @@ function sameOrigin(value: string): boolean { } } -const LOOPBACK_HOSTS = ['localhost', '127.0.0.1']; - -function loopbackFromExtension(value: string): boolean { +// The extension panel is not web accessible, and it only passes hosts the user granted. +function fromExtension(value: string): boolean { if (location.protocol !== 'chrome-extension:') return false; try { - const url = new URL(value); - return ( - (url.protocol === 'http:' || url.protocol === 'https:') && - LOOPBACK_HOSTS.includes(url.hostname) - ); + const { protocol } = new URL(value); + return protocol === 'http:' || protocol === 'https:'; } catch { return false; } @@ -834,7 +853,7 @@ function detectBaseURL(): string | undefined { // the panel opens its RPC channel. // `new URL` throws on a malformed value, and this runs before the connection // is made, so an unhandled throw would leave the panel blank. - if (fromQuery && (sameOrigin(fromQuery) || loopbackFromExtension(fromQuery))) { + if (fromQuery && (sameOrigin(fromQuery) || fromExtension(fromQuery))) { return fromQuery; } diff --git a/app/src/pages/component-tree.ts b/app/src/pages/component-tree.ts index 6aa148c..dc639e8 100644 --- a/app/src/pages/component-tree.ts +++ b/app/src/pages/component-tree.ts @@ -2,12 +2,15 @@ import { JsonPipe } from '@angular/common'; import { Component, DestroyRef, + Injector, + afterNextRender, computed, effect, inject, input, output, signal, + untracked, } from '@angular/core'; import type { DevframeRpcClient } from 'devframe/client'; import { hostPageId } from '../page-id'; @@ -1089,7 +1092,9 @@ function bare(name: string): string { }) export class ComponentTree { readonly rpc = input(null); + readonly focus = input<{ id: string } | null>(null); readonly showForm = output(); + readonly focusHandled = output(); readonly filter = signal(''); readonly loading = signal(false); @@ -1104,6 +1109,7 @@ export class ComponentTree { private readonly outlets = signal([]); private readonly pageId = hostPageId(); private readonly destroyRef = inject(DestroyRef); + private readonly injector = inject(Injector); private readonly cleanups: (() => void)[] = []; readonly page = computed(() => { @@ -1234,6 +1240,14 @@ export class ComponentTree { void this.refresh(); void this.watch(client); }); + effect(() => { + const focus = this.focus(); + if (!focus || !this.live()) return; + untracked(() => { + if (this.index().map.has(focus.id)) this.reveal(focus.id); + this.focusHandled.emit(); + }); + }); this.destroyRef.onDestroy(() => { this.highlight(null); for (const cleanup of this.cleanups.splice(0)) cleanup(); @@ -1333,6 +1347,24 @@ export class ComponentTree { .catch(() => {}); } + private reveal(id: string) { + const { parents } = this.index(); + this.collapsed.update((set) => { + const next = new Set(set); + for (let parent = parents.get(id); parent; parent = parents.get(parent)) next.delete(parent); + return next; + }); + if (!this.rows().some((row) => row.node.id === id)) this.filter.set(''); + if (this.selectedId() !== id) this.select(id); + afterNextRender( + () => + document + .querySelector(`.row[data-id="${CSS.escape(id)}"]`) + ?.scrollIntoView({ block: 'nearest' }), + { injector: this.injector }, + ); + } + toggle(id: string, event?: Event) { event?.stopPropagation(); if (this.query()) return; diff --git a/docs/privacy-policy.html b/docs/privacy-policy.html index daffa8e..eea2f9d 100644 --- a/docs/privacy-policy.html +++ b/docs/privacy-policy.html @@ -17,18 +17,18 @@

Privacy Policy

-

Last updated: September 19, 2026

+

Last updated: September 30, 2026

Angular DevTools ("the Extension") is a browser extension that helps developers inspect Angular applications. This privacy policy explains what data the Extension accesses and how it is used.

Data Collection

-

The Extension does not collect, store, transmit, or share any personal data or browsing data. Specifically:

+

The Extension does not collect, store, or share any personal data or browsing data. Specifically:

  • No personal information is collected
  • No browsing history is recorded
  • No cookies or tracking mechanisms are used
  • -
  • No analytics or telemetry data is sent
  • -
  • No data is transmitted to any external server
  • +
  • No analytics or telemetry data is sent, to the Extension's authors or to anyone else
  • +
  • No data is sent anywhere except the devtools server of the app you are inspecting, described below

What the Extension Accesses

@@ -36,12 +36,12 @@

What the Extension Accesses

  • Angular framework detection — on every page, checks for the ng-version HTML attribute and the window.ng global to determine if the page uses Angular
  • Angular debug APIs — reads component trees, signal graphs, dependency injection hierarchies, and route configurations using Angular's built-in debug utilities (available only in development builds)
  • -
  • Localhost communication — communicates with a devframe server running on localhost on the developer's own machine for live inspection data
  • +
  • Devtools server communication — communicates with the devframe server of the app you are inspecting, for live inspection data. By default this server runs on the developer's own machine (localhost, *.localhost, 127.0.0.1 or [::1])
-

All data processing happens entirely within your browser and your local machine. No information ever leaves your device.

+

By default, all data stays within your browser and your own machine. If you grant access to another host from the DevTools panel, such as a server on your local network or a tunnel, the Extension exchanges inspection data with the devtools server on that host, so that data leaves your device. It goes only to the host you granted (and, for a tunnel, through the tunnel service you chose). It is never sent to the Extension's authors or to any service the Extension picks on its own.

Host Permissions

-

The Extension requests host permissions only for localhost and 127.0.0.1, to reach the devframe server on the developer's own machine. The detect-angular.js content script runs on every page, including when DevTools is closed. It reads only the ng-version attribute and whether window.ng exists, to detect Angular. It does not modify page content.

+

The Extension requests host permissions for loopback hosts only (localhost, *.localhost, 127.0.0.1 and [::1]), to reach the devframe server on the developer's own machine. It can reach any other host only after the developer grants that host from the DevTools panel. Chrome keeps a granted host until the developer removes it from the Extension's site access settings. The detect-angular.js content script runs on every page, including when DevTools is closed. It reads only the ng-version attribute and whether window.ng exists, to detect Angular. It does not modify page content.

Data Storage

The Extension does not persist any data between sessions. All inspection data exists only in memory while the DevTools panel is open and is discarded when the panel is closed.

diff --git a/extension/manifest.json b/extension/manifest.json index 12e8459..5b204f2 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -1,17 +1,20 @@ { "manifest_version": 3, "name": "Angular DevTools", - "version": "0.0.4", + "version": "0.0.5", "description": "Inspect Angular components, signals, dependency injection, and routes.", "minimum_chrome_version": "111", "devtools_page": "devtools.html", "permissions": [], "host_permissions": [ - "http://localhost/*", - "https://localhost/*", + "http://*.localhost/*", + "https://*.localhost/*", "http://127.0.0.1/*", - "https://127.0.0.1/*" + "https://127.0.0.1/*", + "http://[::1]/*", + "https://[::1]/*" ], + "optional_host_permissions": ["http://*/*", "https://*/*"], "content_scripts": [ { "matches": [""], diff --git a/extension/panel-bridge.js b/extension/panel-bridge.js index bb9fabd..768c460 100644 --- a/extension/panel-bridge.js +++ b/extension/panel-bridge.js @@ -1,95 +1,136 @@ // Bridge between the Chrome DevTools panel and the inspected Angular page. -// Detects the devframe connection endpoint and loads the SPA with the correct baseURL. +// Finds the devframe connection, then loads the SPA scoped to the inspected page. const frame = document.getElementById('devtools-frame'); const status = document.getElementById('status'); - -const tabId = chrome.devtools.inspectedWindow.tabId; -const LOCAL_HOSTS = ['localhost', '127.0.0.1']; +const statusMessage = document.getElementById('status-message'); +const triedList = document.getElementById('status-tried'); +const allowButton = document.getElementById('status-allow'); +const docsLink = document.getElementById('status-docs'); // Where devframe may be mounted. const PATHS = ['/__ng-devtools/', '/__devframes/ng-devtools/', '/__devframe/', '/']; const CONNECTION_FILES = ['__devframe/__connection.json', '__connection.json']; const PROBE_TIMEOUT_MS = 1500; +const DETECTING = 'Detecting Angular app…'; +const PAGE_ID = `(() => { + try { + return sessionStorage.getItem('ng-devtools-page-id'); + } catch { + return null; + } +})()`; let detection = 0; -// Look for a devframe connection, but only on a loopback page: nothing else -// can be connected to, so nothing else is worth probing. -function detectConnection() { - const run = ++detection; - chrome.devtools.inspectedWindow.eval('location.origin', (origin, error) => { - if (run !== detection) return; - if (error || typeof origin !== 'string') { - loadPanel(null); - return; - } +function evalInPage(expression) { + return new Promise((resolve) => { + chrome.devtools.inspectedWindow.eval(expression, (result, error) => + resolve(error ? null : result), + ); + }); +} - let hostname; - try { - hostname = new URL(origin).hostname; - } catch { - loadPanel(null); - return; - } +function toURL(value) { + try { + return new URL(value); + } catch { + return null; + } +} - if (!LOCAL_HOSTS.includes(hostname)) { - loadPanel(null); - return; - } +async function detectConnection() { + const run = ++detection; + showStatus(DETECTING, { help: false }); + const page = toURL(await evalInPage('location.origin')); + if (run !== detection) return; + if (!page || !['http:', 'https:'].includes(page.protocol)) { + showStatus('Angular DevTools connects to pages served over http or https.'); + return; + } - findConnection(origin).then((base) => { - if (run === detection) loadPanel(base, origin); + // Loopback hosts are granted on install; the user opts in to any other host. + const access = { origins: [`${page.protocol}//${page.hostname}/*`] }; + const granted = await chrome.permissions.contains(access); + if (run !== detection) return; + if (!granted) { + showStatus(`Allow Angular DevTools to reach the devtools server on ${page.host}.`, { + allow: async () => { + if (await chrome.permissions.request(access)) detectConnection(); + }, }); - }); + return; + } + + const candidates = PATHS.flatMap((base) => + CONNECTION_FILES.map((file) => ({ base, url: new URL(base + file, page).href })), + ).filter((candidate, index, all) => all.findIndex(({ url }) => url === candidate.url) === index); + const found = await findConnection(candidates); + if (run !== detection) return; + if (!found) { + showStatus(`No devtools server answered on ${page.origin}. Tried:`, { + tried: candidates.map(({ url }) => url), + }); + return; + } + + const pageId = await evalInPage(PAGE_ID); + if (run === detection) loadPanel(new URL(found.base, page), pageId); } -// The first mount path that answers with a connection file, or null. -async function findConnection(origin) { - for (const base of PATHS) { - for (const file of CONNECTION_FILES) { - try { - const response = await fetch(new URL(base + file, origin), { - credentials: 'omit', - cache: 'no-store', - redirect: 'error', - signal: AbortSignal.timeout(PROBE_TIMEOUT_MS), - }); - if (!response.ok) continue; - await response.json(); - return base; - } catch { - // Not mounted here; try the next one. - } +// The first candidate that answers with a connection file, or null. +async function findConnection(candidates) { + for (const candidate of candidates) { + try { + const response = await fetch(candidate.url, { + credentials: 'omit', + cache: 'no-store', + redirect: 'error', + signal: AbortSignal.timeout(PROBE_TIMEOUT_MS), + }); + if (!response.ok) continue; + await response.json(); + return candidate; + } catch { + // Not mounted here; try the next one. } } return null; } -function loadPanel(baseURL, origin) { +function showStatus(message, { tried = [], allow = null, help = true } = {}) { + frame.style.display = 'none'; + status.classList.remove('hidden'); + statusMessage.textContent = message; + triedList.replaceChildren( + ...tried.map((url) => Object.assign(document.createElement('li'), { textContent: url })), + ); + triedList.hidden = !tried.length; + allowButton.onclick = allow; + allowButton.hidden = !allow; + docsLink.hidden = !help; +} + +function loadPanel(baseURL, pageId) { + const src = new URL(chrome.runtime.getURL('ui/index.html')); + src.searchParams.set('baseURL', baseURL.href); + if (typeof pageId === 'string' && pageId) src.searchParams.set('pageId', pageId); + frame.src = src.href; status.classList.add('hidden'); frame.style.display = 'block'; - - // The SPA is bundled inside the extension at ui/index.html - const panelUrl = chrome.runtime.getURL('ui/index.html'); - - if (!baseURL || !origin) { - frame.src = panelUrl; - return; - } - const url = new URL(baseURL, origin); - frame.src = LOCAL_HOSTS.includes(url.hostname) - ? `${panelUrl}?baseURL=${encodeURIComponent(url.href)}` - : panelUrl; } +chrome.devtools.panels.elements.onSelectionChanged.addListener(async () => { + const id = await evalInPage('window.__ngDevtoolsComponentOf?.($0) ?? null'); + if (typeof id !== 'string') return; + frame.contentWindow?.postMessage({ type: 'ng-devtools:inspect-component', id }, location.origin); +}); + // Start detection after a short delay to let the page settle setTimeout(detectConnection, 500); -// Re-detect on navigation chrome.devtools.network.onNavigated.addListener(() => { - frame.style.display = 'none'; - status.classList.remove('hidden'); - status.textContent = 'Detecting Angular app…'; + detection++; + showStatus(DETECTING, { help: false }); setTimeout(detectConnection, 1000); }); diff --git a/extension/panel.html b/extension/panel.html index bbae719..752b07d 100644 --- a/extension/panel.html +++ b/extension/panel.html @@ -22,22 +22,61 @@ height: 100%; border: none; } - .connecting { + .status { display: flex; + flex-direction: column; align-items: center; justify-content: center; + gap: 12px; height: 100%; + padding: 16px; color: #a1a1aa; font-family: system-ui, sans-serif; font-size: 14px; + text-align: center; } - .connecting.hidden { + .status.hidden { display: none; } + .status ul { + list-style: none; + color: #d4d4d8; + font-family: ui-monospace, monospace; + font-size: 12px; + overflow-wrap: anywhere; + } + .status button { + padding: 6px 12px; + border: none; + border-radius: 4px; + background: #f5a524; + color: #0f0f11; + font: inherit; + cursor: pointer; + } + .status a { + color: #f5a524; + } + .status :focus-visible { + outline: 2px solid #f5a524; + outline-offset: 2px; + } -
Detecting Angular app…
+
+

Detecting Angular app…

+ + + +
diff --git a/extension/ui/assets/browser-agent-rpc-BXhoSh1z-CxaePWwp.js b/extension/ui/assets/browser-agent-rpc-BXhoSh1z-yplN1jlS.js similarity index 93% rename from extension/ui/assets/browser-agent-rpc-BXhoSh1z-CxaePWwp.js rename to extension/ui/assets/browser-agent-rpc-BXhoSh1z-yplN1jlS.js index 34ddefc..1cebf67 100644 --- a/extension/ui/assets/browser-agent-rpc-BXhoSh1z-CxaePWwp.js +++ b/extension/ui/assets/browser-agent-rpc-BXhoSh1z-yplN1jlS.js @@ -1 +1 @@ -import{t as e}from"./index-B5-EMQmo.js";var t=Symbol.for(`devframe:browser-agent-registry`),{tools:n,listeners:r}=globalThis[t]??={tools:new Map,listeners:new Set};function i(){return[...n.values()]}function a(e){return r.add(e),()=>r.delete(e)}var o=`devframe:client-id`,s;function c(t=globalThis.window){try{let n=t?.sessionStorage;if(n){let t=n.getItem(o);return t||(t=e(),n.setItem(o,t)),t}}catch{}return s??=e(),s}function l(e){e.client.register({name:`devframe:agent:invoke-client-tool`,type:`action`,jsonSerializable:!0,handler:async(e,t)=>{let n=i().find(t=>t.id===e);if(!n)throw Error(`[devframe/agent] browser tool "${e}" not found`);return await n.invoke(t)}});let t=!1,n=!1,r=0,o=()=>{t||n||(t=!0,queueMicrotask(async()=>{if(t=!1,n)return;let a=i().map(({invoke:e,...t})=>t);(a.length!==0||r!==0)&&(r=a.length,await e.callOptional(`devframe:agent:sync-client-tools`,c(),a).catch(()=>{}))}))},s=a(o),l=e.events.on(`connection:status`,e=>{e===`connected`&&o()});return o(),()=>{n=!0,s(),l()}}export{l as setupBrowserAgentRpcBridge}; \ No newline at end of file +import{t as e}from"./index-Ddlacm6s.js";var t=Symbol.for(`devframe:browser-agent-registry`),{tools:n,listeners:r}=globalThis[t]??={tools:new Map,listeners:new Set};function i(){return[...n.values()]}function a(e){return r.add(e),()=>r.delete(e)}var o=`devframe:client-id`,s;function c(t=globalThis.window){try{let n=t?.sessionStorage;if(n){let t=n.getItem(o);return t||(t=e(),n.setItem(o,t)),t}}catch{}return s??=e(),s}function l(e){e.client.register({name:`devframe:agent:invoke-client-tool`,type:`action`,jsonSerializable:!0,handler:async(e,t)=>{let n=i().find(t=>t.id===e);if(!n)throw Error(`[devframe/agent] browser tool "${e}" not found`);return await n.invoke(t)}});let t=!1,n=!1,r=0,o=()=>{t||n||(t=!0,queueMicrotask(async()=>{if(t=!1,n)return;let a=i().map(({invoke:e,...t})=>t);(a.length!==0||r!==0)&&(r=a.length,await e.callOptional(`devframe:agent:sync-client-tools`,c(),a).catch(()=>{}))}))},s=a(o),l=e.events.on(`connection:status`,e=>{e===`connected`&&o()});return o(),()=>{n=!0,s(),l()}}export{l as setupBrowserAgentRpcBridge}; \ No newline at end of file diff --git a/extension/ui/assets/index-B5-EMQmo.js b/extension/ui/assets/index-Ddlacm6s.js similarity index 71% rename from extension/ui/assets/index-B5-EMQmo.js rename to extension/ui/assets/index-Ddlacm6s.js index dd2c801..adf73b1 100644 --- a/extension/ui/assets/index-B5-EMQmo.js +++ b/extension/ui/assets/index-Ddlacm6s.js @@ -3,12 +3,12 @@ \r \v ᠎ - \u2028\u2029   `;`${tn}`,`${tn}`;var nn=(function(e){return e[e.Character=0]=`Character`,e[e.Identifier=1]=`Identifier`,e[e.PrivateIdentifier=2]=`PrivateIdentifier`,e[e.Keyword=3]=`Keyword`,e[e.String=4]=`String`,e[e.Operator=5]=`Operator`,e[e.Number=6]=`Number`,e[e.RegExpBody=7]=`RegExpBody`,e[e.RegExpFlags=8]=`RegExpFlags`,e[e.Error=9]=`Error`,e})(nn||{}),rn=(function(e){return e[e.Plain=0]=`Plain`,e[e.TemplateLiteralPart=1]=`TemplateLiteralPart`,e[e.TemplateLiteralEnd=2]=`TemplateLiteralEnd`,e})(rn||{});nn.Character,S.StyleMap,S.ClassMap,S.StyleProp,S.ClassProp,S.Attribute,S.Property,S.Attribute,S.Control,S.DomProperty,S.DomProperty,S.Attribute,S.StyleMap,S.ClassMap,S.StyleProp,S.ClassProp,S.Listener,S.TwoWayListener,S.AnimationListener,S.StyleMap,S.ClassMap,S.StyleProp,S.ClassProp,S.Property,S.TwoWayProperty,S.DomProperty,S.Attribute,S.Animation,S.Control,Xt.Idle,x.deferOnIdle,x.deferPrefetchOnIdle,x.deferHydrateOnIdle,Xt.Immediate,x.deferOnImmediate,x.deferPrefetchOnImmediate,x.deferHydrateOnImmediate,Xt.Timer,x.deferOnTimer,x.deferPrefetchOnTimer,x.deferHydrateOnTimer,Xt.Hover,x.deferOnHover,x.deferPrefetchOnHover,x.deferHydrateOnHover,Xt.Interaction,x.deferOnInteraction,x.deferPrefetchOnInteraction,x.deferHydrateOnInteraction,Xt.Viewport,x.deferOnViewport,x.deferPrefetchOnViewport,x.deferHydrateOnViewport,Xt.Never,x.deferHydrateNever,x.deferHydrateNever,x.deferHydrateNever,x.pipeBind1,x.pipeBind2,x.pipeBind3,x.pipeBind4,x.textInterpolate,x.textInterpolate1,x.textInterpolate2,x.textInterpolate3,x.textInterpolate4,x.textInterpolate5,x.textInterpolate6,x.textInterpolate7,x.textInterpolate8,x.textInterpolateV,x.interpolate,x.interpolate1,x.interpolate2,x.interpolate3,x.interpolate4,x.interpolate5,x.interpolate6,x.interpolate7,x.interpolate8,x.interpolateV,x.pureFunction0,x.pureFunction1,x.pureFunction2,x.pureFunction3,x.pureFunction4,x.pureFunction5,x.pureFunction6,x.pureFunction7,x.pureFunction8,x.pureFunctionV,x.resolveWindow,x.resolveDocument,x.resolveBody,rt.HTML,x.sanitizeHtml,rt.RESOURCE_URL,x.sanitizeResourceUrl,rt.SCRIPT,x.sanitizeScript,rt.STYLE,x.sanitizeStyle,rt.URL,x.sanitizeUrl,rt.ATTRIBUTE_NO_BINDING,x.validateAttribute,rt.HTML,x.trustConstantHtml,rt.RESOURCE_URL,x.trustConstantResourceUrl;var an=(function(e){return e[e.None=0]=`None`,e[e.ViewContextRead=1]=`ViewContextRead`,e[e.ViewContextWrite=2]=`ViewContextWrite`,e[e.SideEffectful=4]=`SideEffectful`,e})(an||{});C.Tmpl,C.Tmpl,C.Both,C.Host,C.Tmpl,C.Tmpl,C.Tmpl,C.Both,C.Both,C.Both,C.Tmpl,C.Both,C.Both,C.Tmpl,C.Both,C.Tmpl,C.Both,C.Both,C.Tmpl,C.Tmpl,C.Tmpl,C.Tmpl,C.Tmpl,C.Both,C.Both,C.Tmpl,C.Tmpl,C.Tmpl,C.Tmpl,C.Both,C.Both,C.Both,C.Tmpl,C.Tmpl,C.Both,C.Tmpl,C.Tmpl,C.Tmpl,C.Both,C.Both,C.Tmpl,C.Both,C.Both,C.Both,C.Both,C.Both,C.Tmpl,C.Tmpl,C.Tmpl,C.Tmpl,C.Tmpl,C.Tmpl,C.Tmpl,C.Tmpl,C.Tmpl,C.Tmpl,C.Tmpl,C.Tmpl,C.Both,C.Tmpl,C.Both,C.Tmpl,C.Both,C.Tmpl,C.Tmpl,C.Tmpl,C.Tmpl,C.Tmpl,C.Tmpl,C.Both,C.Both,C.Both,Pt.Property,Gt.Property,Pt.TwoWay,Gt.TwoWayProperty,Pt.Attribute,Gt.Attribute,Pt.Class,Gt.ClassName,Pt.Style,Gt.StyleProperty,Pt.LegacyAnimation,Gt.LegacyAnimation,Pt.Animation,Gt.Animation;var on=`%COMP%`;`${on}`,`${on}`,class e{static SINGLETON=new e;static veWillInferAnyFor(t){let n=e.SINGLETON;return t instanceof Nt?t.visit(n):t.receiver.visit(n)}visitUnary(e){return e.expr.visit(this)}visitBinary(e){return e.left.visit(this)||e.right.visit(this)}visitChain(){return!1}visitConditional(e){return e.condition.visit(this)||e.trueExp.visit(this)||e.falseExp.visit(this)}visitCall(){return!0}visitSafeCall(){return!1}visitImplicitReceiver(){return!1}visitThisReceiver(){return!1}visitInterpolation(e){return e.expressions.some(e=>e.visit(this))}visitKeyedRead(){return!1}visitLiteralArray(){return!0}visitLiteralMap(){return!0}visitLiteralPrimitive(){return!1}visitPipe(){return!0}visitPrefixNot(e){return e.expression.visit(this)}visitTypeofExpression(e){return e.expression.visit(this)}visitVoidExpression(e){return e.expression.visit(this)}visitNonNullAssert(e){return e.expression.visit(this)}visitPropertyRead(){return!1}visitSafePropertyRead(){return!1}visitSafeKeyedRead(){return!1}visitTemplateLiteral(){return!1}visitTemplateLiteralElement(){return!1}visitTaggedTemplateLiteral(){return!1}visitParenthesizedExpression(e){return e.expression.visit(this)}visitRegularExpressionLiteral(){return!1}visitSpreadElement(e){return e.expression.visit(this)}visitArrowFunction(e,t){return!1}};var sn=null,cn=!1,ln=1,un=null,dn=Symbol(`SIGNAL`);function w(e){let t=sn;return sn=e,t}function fn(){return sn}var pn={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 mn(e){if(cn)throw Error(``);if(sn===null)return;sn.consumerOnSignalRead(e);let t=sn.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=sn.recomputing;if(r&&(n=t===void 0?sn.producers:t.nextProducer,n!==void 0&&n.producer===e)){sn.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=ln;return}let i=e.consumersTail;if(i!==void 0&&i.consumer===sn&&(!r||i.knownValidAtEpoch===ln))return;let a=kn(sn),o={producer:e,consumer:sn,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:ln,lastReadVersion:e.version,nextConsumer:void 0};sn.producersTail=o,t===void 0?sn.producers=o:t.nextProducer=o,a&&Dn(e,o)}function hn(){ln++}function gn(e){if((!kn(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==ln)){if(!e.producerMustRecompute(e)&&!Tn(e)){bn(e);return}e.producerRecomputeValue(e),bn(e)}}function _n(e){if(e.consumers===void 0)return;let t=cn;cn=!0;try{for(let t=e.consumers;t!==void 0;t=t.nextConsumer){let e=t.consumer;e.dirty||yn(e)}}finally{cn=t}}function vn(){return sn?.consumerAllowSignalWrites!==!1}function yn(e){e.dirty=!0,_n(e),e.consumerMarkedDirty?.(e)}function bn(e){e.dirty=!1,e.lastCleanEpoch=ln}function xn(e){return e&&Sn(e),w(e)}function Sn(e){if(e.producersTail?.knownValidAtEpoch===ln){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer}e.producersTail=void 0,e.recomputing=!0}function Cn(e,t){w(t),e&&wn(e)}function wn(e){e.recomputing=!1;let t=e.producersTail,n=t===void 0?e.producers:t.nextProducer;if(n!==void 0){if(kn(e))do n=On(n);while(n!==void 0);t===void 0?e.producers=void 0:t.nextProducer=void 0}}function Tn(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let e=t.producer,n=t.lastReadVersion;if(n!==e.version||(gn(e),n!==e.version))return!0}return!1}function En(e){if(kn(e)){let t=e.producers;for(;t!==void 0;)t=On(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Dn(e,t){let n=e.consumersTail,r=kn(e);if(n===void 0?(t.nextConsumer=void 0,e.consumers=t):(t.nextConsumer=n.nextConsumer,n.nextConsumer=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let t=e.producers;t!==void 0;t=t.nextProducer)Dn(t.producer,t)}function On(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,i=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r===void 0?t.consumersTail=i:r.prevConsumer=i,i!==void 0)i.nextConsumer=r;else if(t.consumers=r,!kn(t)){let e=t.producers;for(;e!==void 0;)e=On(e)}return n}function kn(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function An(e){un?.(e)}function jn(e,t){return Object.is(e,t)}function Mn(e,t){let n=Object.create(In);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(gn(n),mn(n),n.value===Fn)throw n.error;return n.value};return r[dn]=n,An(n),r}var Nn=Symbol(`UNSET`),Pn=Symbol(`COMPUTING`),Fn=Symbol(`ERRORED`),In={...pn,value:Nn,dirty:!0,error:null,equal:jn,kind:`computed`,producerMustRecompute(e){return e.value===Nn||e.value===Pn},producerRecomputeValue(e){if(e.value===Pn)throw Error(``);let t=e.value;e.value=Pn;let n=xn(e),r,i=!1;try{r=e.computation(),w(null),i=t!==Nn&&t!==Fn&&r!==Fn&&e.equal(t,r)}catch(t){r=Fn,e.error=t}finally{Cn(e,n)}if(i){e.value=t;return}e.value=r,e.version++}};function Ln(){throw Error()}var Rn=Ln;function zn(e){Rn(e)}function Bn(e){Rn=e}var Vn=null;function Hn(e,t){let n=Object.create(Kn);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Un(n);return r[dn]=n,An(n),[r,e=>Wn(n,e),e=>Gn(n,e)]}function Un(e){return mn(e),e.value}function Wn(e,t){vn()||zn(e),e.equal(e.value,t)||(e.value=t,qn(e))}function Gn(e,t){vn()||zn(e),Wn(e,t(e.value))}var Kn={...pn,equal:jn,value:void 0,kind:`signal`};function qn(e){e.version++,hn(),_n(e),Vn?.(e)}var Jn={...pn,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:`effect`};function Yn(e){if(e.dirty=!1,e.version>0&&!Tn(e))return;e.version++;let t=xn(e);try{e.cleanup(),e.fn()}finally{Cn(e,t)}}var Xn=void 0;function Zn(){return Xn}function Qn(e){let t=Xn;return Xn=e,t}var $n=Symbol(`NotFound`);function er(e){return e===$n||e?.name===`ɵNotFound`}function tr(e,t,n){let r=Object.create(ir);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(gn(r),mn(r),r.value===Fn)throw r.error;return r.value};return i[dn]=r,An(r),i}function nr(e,t){gn(e),Wn(e,t),bn(e)}function rr(e,t){if(gn(e),e.value===Fn)throw e.error;Gn(e,t),bn(e)}var ir={...pn,value:Nn,dirty:!0,error:null,equal:jn,kind:`linkedSignal`,producerMustRecompute(e){return e.value===Nn||e.value===Pn},producerRecomputeValue(e){if(e.value===Pn)throw Error(``);let t=e.value;e.value=Pn;let n=xn(e),r,i=!1;try{let n=e.source(),a=t!==Nn&&t!==Fn,o=a?{source:e.sourceValue,value:t}:void 0;r=e.computation(n,o),e.sourceValue=n,w(null),i=a&&r!==Fn&&e.equal(t,r)}catch(t){r=Fn,e.error=t}finally{Cn(e,n)}if(i){e.value=t;return}e.value=r,e.version++}};function ar(e){let t=w(null);try{return e()}finally{w(t)}}var or=function(e,t){return or=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},or(e,t)};function sr(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);or(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function cr(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 TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function lr(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function ur(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,a=n.observers;return r||i?gr:(this.currentObservers=null,a.push(e),new hr(function(){t.currentObservers=null,mr(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new Hr;return e.source=this,e},t.create=function(e,t){return new Qr(e,t)},t}(Hr),Qr=function(e){sr(t,e);function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return t.prototype.next=function(e){var t,n;(n=(t=this.destination)?.next)==null||n.call(t,e)},t.prototype.error=function(e){var t,n;(n=(t=this.destination)?.error)==null||n.call(t,e)},t.prototype.complete=function(){var e,t;(t=(e=this.destination)?.complete)==null||t.call(e)},t.prototype._subscribe=function(e){return this.source?.subscribe(e)??gr},t}(Zr),$r=function(e){sr(t,e);function t(t){var n=e.call(this)||this;return n._value=t,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Zr);function ei(e,t){return qr(function(n,r){var i=0;n.subscribe(Jr(r,function(n){r.next(e.call(t,n,i++))}))})}var ti=`https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss`,T=class extends Error{code;constructor(e,t){super(ri(e,t)),this.code=e}};function ni(e){return`NG0${Math.abs(e)}`}function ri(e,t){return`${ni(e)}${t?`: `+t:``}`}function ii(e){for(let t in e)if(e[t]===ii)return t;throw Error(``)}function ai(e){if(typeof e==`string`)return e;if(Array.isArray(e))return`[${e.map(ai).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(` -`);return r>=0?n.slice(0,r):n}function oi(e,t){return e?t?`${e} ${t}`:e:t||``}var si=ii({__forward_ref__:ii});function ci(e){return e.__forward_ref__=ci,e}function li(e){return ui(e)?e():e}function ui(e){return typeof e==`function`&&Object.hasOwn(e,si)&&e.__forward_ref__===ci}function di(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function fi(e){return pi(e,gi)}function pi(e,t){return Object.hasOwn(e,t)&&e[t]||null}function mi(e){return(e?.[gi]??null)||null}function hi(e){return e&&Object.hasOwn(e,_i)?e[_i]:null}var gi=ii({ɵprov:ii}),_i=ii({ɵinj:ii}),vi=class{_desc;ngMetadataName=`InjectionToken`;ɵprov;constructor(e,t){this._desc=e,this.ɵprov=void 0,typeof t==`number`?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.ɵprov=di({token:this,providedIn:t.providedIn||`root`,factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function yi(e){return e&&!!e.ɵproviders}var bi=ii({ɵcmp:ii}),xi=ii({ɵdir:ii}),Si=ii({ɵpipe:ii}),Ci=ii({ɵfac:ii}),wi=ii({__NG_ELEMENT_ID__:ii}),Ti=ii({__NG_ENV_ID__:ii});function Ei(e){return ki(e,`@Component`),e[bi]||null}function Di(e){return ki(e,`@Directive`),e[xi]||null}function Oi(e){return ki(e,`@Pipe`),e[Si]||null}function ki(e,t){if(e==null)throw new T(-919,!1)}function Ai(e){return typeof e==`string`?e:e==null?``:String(e)}var ji=ii({ngErrorCode:ii}),Mi=ii({ngErrorMessage:ii}),Ni=ii({ngTokenPath:ii});function Pi(e,t){return Ii(``,-200,t)}function Fi(e,t){throw new T(-201,!1)}function Ii(e,t,n){let r=new T(t,e);return r[ji]=t,r[Mi]=e,n&&(r[Ni]=n),r}function Li(e){return e[ji]}var Ri;function zi(){return Ri}function Bi(e){let t=Ri;return Ri=e,t}function Vi(e,t,n){let r=fi(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;Fi(e,``)}var Hi=globalThis,Ui={},Wi=`__NG_DI_FLAG__`,Gi=class{injector;constructor(e){this.injector=e}retrieve(e,t){let n=Ji(t)||0;try{return this.injector.get(e,n&8?null:Ui,n)}catch(e){if(er(e))return e;throw e}}};function Ki(e,t=0){let n=Zn();if(n===void 0)throw new T(-203,!1);if(n===null)return Vi(e,void 0,t);{let r=Yi(t),i=n.retrieve(e,r);if(er(i)){if(r.optional)return null;throw i}return i}}function qi(e,t=0){return(zi()||Ki)(li(e),t)}function E(e,t){return qi(e,Ji(t))}function Ji(e){return e===void 0||typeof e==`number`?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Yi(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Xi(e){let t=[];for(let n=0;nArray.isArray(e)?ta(e,t):t(e))}function na(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ra(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ia(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let t=i-2;e[i]=e[t],i--}e[t]=n,e[t+1]=r}}function aa(e,t,n){let r=sa(e,t);return r>=0?e[r|1]=n:(r=~r,ia(e,r,t,n)),r}function oa(e,t){let n=sa(e,t);if(n>=0)return e[n|1]}function sa(e,t){return ca(e,t,1)}function ca(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let a=r+(i-r>>1),o=e[a<t?i=a:r=a+1}return~(i<{n.push(e)};return ta(t,e=>{let t=e;va(t,a,[],r)&&(i||=[],i.push(t))}),i!==void 0&&_a(i,a),n}function _a(e,t){for(let n=0;n{t(e,r)})}}function va(e,t,n,r){if(e=li(e),!e)return!1;let i=null,a=hi(e),o=!a&&Ei(e);if(!a&&!o){let t=e.ngModule;if(a=hi(t),a)i=t;else return!1}else if(o&&!o.standalone)return!1;else i=e;let s=r.has(i);if(o){if(s)return!1;if(r.add(i),o.dependencies){let e=typeof o.dependencies==`function`?o.dependencies():o.dependencies;for(let i of e)va(i,t,n,r)}}else if(a){if(a.imports!=null&&!s){r.add(i);let e;try{ta(a.imports,i=>{va(i,t,n,r)&&(e||=[],e.push(i))})}finally{}e!==void 0&&_a(e,t)}if(!s){let e=Qi(i)||(()=>new i);t({provide:i,useFactory:e,deps:ua},i),t({provide:pa,useValue:i,multi:!0},i),t({provide:da,useValue:()=>qi(i),multi:!0},i)}let o=a.providers;if(o!=null&&!s){let n=e;ya(o,e=>{t(e,n)})}}else return!1;return i!==e&&e.providers!==void 0}function ya(e,t){for(let n of e)yi(n)&&(n=n.ɵproviders),Array.isArray(n)?ya(n,t):t(n)}var ba=ii({provide:String,useValue:ii});function xa(e){return typeof e==`object`&&!!e&&ba in e}function Sa(e){return!!(e&&e.useExisting)}function Ca(e){return!!(e&&e.useFactory)}function wa(e){return typeof e==`function`}var Ta=new vi(``),Ea={},Da={},Oa=void 0;function ka(){return Oa===void 0&&(Oa=new ma),Oa}var Aa=class{},ja=class extends Aa{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,Va(e,e=>this.processProvider(e)),this.records.set(fa,La(void 0,this)),r.has(`environment`)&&this.records.set(Aa,La(void 0,this));let i=this.records.get(Ta);i!=null&&typeof i.value==`string`&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(pa,ua,{self:!0}))}retrieve(e,t){let n=Ji(t)||0;try{return this.get(e,Ui,n)}catch(e){if(er(e))return e;throw e}}destroy(){Ia(this),this._destroyed=!0;let e=w(null);try{for(let e of this._ngOnDestroyHooks)e.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let t of e)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),w(e)}}onDestroy(e){return Ia(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){Ia(this);let t=Qn(this),n=Bi(void 0);try{return e()}finally{Qn(t),Bi(n)}}get(e,t=Ui,n){if(Ia(this),Object.hasOwn(e,Ti))return e[Ti](this);let r=Ji(n),i=Qn(this),a=Bi(void 0);try{if(!(r&4)){let t=this.records.get(e);if(t===void 0){let n=Ba(e)&&fi(e);t=n&&this.injectableDefInScope(n)?La(Ma(e),Ea):null,this.records.set(e,t)}if(t!=null)return this.hydrate(e,t,r)}let n=r&2?ka():this.parent;return t=r&8&&t===Ui?null:t,n.get(e,t)}catch(e){let t=Li(e);throw t===-200||t===-201?new T(t,null):e}finally{Bi(a),Qn(i)}}resolveInjectorInitializers(){let e=w(null),t=Qn(this),n=Bi(void 0);try{let e=this.get(da,ua,{self:!0});for(let t of e)t()}finally{Qn(t),Bi(n),w(e)}}toString(){return`R3Injector[...]`}processProvider(e){e=li(e);let t=wa(e)?e:li(e&&e.provide),n=Pa(e);if(!wa(e)&&e.multi===!0){let n=this.records.get(t);n||(n=La(void 0,Ea,!0),n.factory=()=>Xi(n.multi),this.records.set(t,n)),t=e,n.multi.push(e)}this.records.set(t,n)}hydrate(e,t,n){let r=w(null);try{if(t.value===Da)throw Pi(``);return t.value===Ea&&(t.value=Da,t.value=t.factory(void 0,n)),typeof t.value==`object`&&t.value&&za(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{w(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=li(e.providedIn);return typeof t==`string`?t===`any`||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function Ma(e){let t=fi(e),n=t===null?Qi(e):t.factory;if(n!==null)return n;if(e instanceof vi)throw new T(-204,!1);if(e instanceof Function)return Na(e);throw new T(-204,!1)}function Na(e){if(e.length>0)throw new T(-204,!1);let t=mi(e);return t===null?()=>new e:()=>t.factory(e)}function Pa(e){return xa(e)?La(void 0,e.useValue):La(Fa(e),Ea)}function Fa(e,t,n){let r;if(wa(e)){let t=li(e);return Qi(t)||Ma(t)}if(xa(e))r=()=>li(e.useValue);else if(Ca(e))r=()=>e.useFactory(...Xi(e.deps||[]));else if(Sa(e))r=(t,n)=>qi(li(e.useExisting),n!==void 0&&n&8?8:void 0);else{let t=li(e&&(e.useClass||e.provide));if(Ra(e))r=()=>new t(...Xi(e.deps));else return Qi(t)||Ma(t)}return r}function Ia(e){if(e.destroyed)throw new T(-205,!1)}function La(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ra(e){return!!e.deps}function za(e){return typeof e==`object`&&!!e&&typeof e.ngOnDestroy==`function`}function Ba(e){return typeof e==`function`||typeof e==`object`&&e.ngMetadataName===`InjectionToken`}function Va(e,t){for(let n of e)Array.isArray(n)?Va(n,t):n&&yi(n)?Va(n.ɵproviders,t):t(n)}function Ha(e,t){let n;e instanceof ja?(Ia(e),n=e):n=new Gi(e);let r=Qn(n),i=Bi(void 0);try{return t()}finally{Qn(r),Bi(i)}}function Ua(){return zi()!==void 0||Zn()!=null}var Wa=1;function Ga(e){return Array.isArray(e)&&typeof e[Wa]==`object`}function Ka(e){return Array.isArray(e)&&e[Wa]===!0}function qa(e){return!!(e.flags&4)}function Ja(e){return e.componentOffset>-1}function Ya(e){return(e.flags&1)==1}function Xa(e){return!!e.template}function Za(e){return!!(e[2]&512)}function Qa(e){return(e[2]&256)==256}var $a=(function(e){return e[e.NONE=0]=`NONE`,e[e.HTML=1]=`HTML`,e[e.STYLE=2]=`STYLE`,e[e.SCRIPT=3]=`SCRIPT`,e[e.URL=4]=`URL`,e[e.RESOURCE_URL=5]=`RESOURCE_URL`,e[e.ATTRIBUTE_NO_BINDING=6]=`ATTRIBUTE_NO_BINDING`,e})($a||{}),eo=`math`;function to(e){for(;Array.isArray(e);)e=e[0];return e}function no(e,t){return to(t[e])}function ro(e,t){return to(t[e.index])}function io(e,t){return e.data[t]}function ao(e,t){return e[t]}function oo(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function so(e,t){let n=t[e];return Ga(n)?n:n[0]}function co(e){return(e[2]&128)==128}function lo(e){return Ka(e[3])}function uo(e,t){return t==null?null:e[t]}function fo(e){e[17]=0}function po(e){e[2]&1024||(e[2]|=1024,co(e)&&_o(e))}function mo(e,t){for(;e>0;)t=t[14],e--;return t}function ho(e){return!!(e[2]&9216||e[24]?.dirty)}function go(e){e[10].changeDetectionScheduler?.notify(8),e[2]&64&&(e[2]|=1024),ho(e)&&_o(e)}function _o(e){e[10].changeDetectionScheduler?.notify(0);let t=bo(e);for(;t!==null&&!(t[2]&8192||(t[2]|=8192,!co(t)));)t=bo(t)}function vo(e,t){if(Qa(e))throw new T(911,!1);e[21]===null&&(e[21]=[]),e[21].push(t)}function yo(e,t){if(e[21]===null)return;let n=e[21].indexOf(t);n!==-1&&e[21].splice(n,1)}function bo(e){let t=e[3];return Ka(t)?t[3]:t}function xo(e){return e[7]??=[]}function So(e){return e.cleanup??=[]}function Co(e,t,n,r){let i=xo(t);i.push(n),e.firstCreatePass&&So(e).push(r,i.length-1)}var wo={lFrame:as(null),bindingsEnabled:!0,skipHydrationRootTNode:null},To=!1;function Eo(){return wo.lFrame.elementDepthCount}function Do(){wo.lFrame.elementDepthCount++}function Oo(){wo.lFrame.elementDepthCount--}function ko(){return wo.bindingsEnabled}function Ao(){return wo.skipHydrationRootTNode!==null}function jo(e){return wo.skipHydrationRootTNode===e}function Mo(){wo.skipHydrationRootTNode=null}function D(){return wo.lFrame.lView}function No(){return wo.lFrame.tView}function O(e){return wo.lFrame.contextLView=e,e[8]}function k(e){return wo.lFrame.contextLView=null,e}function Po(){let e=Fo();for(;e!==null&&e.type===64;)e=e.parent;return e}function Fo(){return wo.lFrame.currentTNode}function Io(){let e=wo.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Lo(e,t){let n=wo.lFrame;n.currentTNode=e,n.isParent=t}function Ro(){return wo.lFrame.isParent}function zo(){wo.lFrame.isParent=!1}function Bo(){return wo.lFrame.contextLView}function Vo(){return To}function Ho(e){let t=To;return To=e,t}function Uo(){let e=wo.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Wo(){return wo.lFrame.bindingIndex}function Go(e){return wo.lFrame.bindingIndex=e}function Ko(){return wo.lFrame.bindingIndex++}function qo(e){let t=wo.lFrame,n=t.bindingIndex;return t.bindingIndex+=e,n}function Jo(){return wo.lFrame.inI18n}function Yo(e,t){let n=wo.lFrame;n.bindingIndex=n.bindingRootIndex=e,Zo(t)}function Xo(){return wo.lFrame.currentDirectiveIndex}function Zo(e){wo.lFrame.currentDirectiveIndex=e}function Qo(e){let t=wo.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function $o(){return wo.lFrame.currentQueryIndex}function es(e){wo.lFrame.currentQueryIndex=e}function ts(e){let t=e[1];return t.type===2?t.declTNode:t.type===1?e[5]:null}function ns(e,t,n){if(n&4){let r=t,i=e;for(;r=r.parent,r===null&&!(n&1)&&(r=ts(i),!(r===null||(i=i[14],r.type&10))););if(r===null)return!1;t=r,e=i}let r=wo.lFrame=is();return r.currentTNode=t,r.lView=e,!0}function rs(e){let t=is(),n=e[1];wo.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function is(){let e=wo.lFrame,t=e===null?null:e.child;return t===null?as(e):t}function as(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 os(){let e=wo.lFrame;return wo.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ss=os;function cs(){let e=os();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 ls(e){return(wo.lFrame.contextLView=mo(e,wo.lFrame.contextLView))[8]}function us(){return wo.lFrame.selectedIndex}function ds(e){wo.lFrame.selectedIndex=e}function fs(){let e=wo.lFrame;return io(e.tView,e.selectedIndex)}function ps(){wo.lFrame.currentNamespace=`svg`}function ms(){hs()}function hs(){wo.lFrame.currentNamespace=null}function gs(){return wo.lFrame.currentNamespace}var _s=!0;function vs(){return _s}function ys(e){_s=e}function bs(e,t=null,n=null,r){let i=xs(e,t,n,r);return i.resolveInjectorInitializers(),i}function xs(e,t=null,n=null,r,i=new Set){return new ja([n||ua,ha(e)],t||ka(),null,i)}var Ss=class e{static THROW_IF_NOT_FOUND=Ui;static NULL=new ma;static create(e,t){if(Array.isArray(e))return bs({name:``},t,e,``);{let t=e.name??``;return bs({name:t},e.parent,e.providers,t)}}static ɵprov=di({token:e,providedIn:`any`,factory:()=>qi(fa)});static __NG_ELEMENT_ID__=-1},Cs=new vi(``),ws=class{static __NG_ELEMENT_ID__=Es;static __NG_ENV_ID__=e=>e},Ts=class extends ws{_lView;constructor(e){super(),this._lView=e}get destroyed(){return Qa(this._lView)}onDestroy(e){let t=this._lView;return vo(t,e),()=>yo(t,e)}};function Es(){return new Ts(D())}var Ds=new vi(``),Os=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new $r(!1);debugTaskTracker=E(Ds,{optional:!0});get hasPendingTasks(){return!this.destroyed&&this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Hr(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),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 ɵprov=di({token:e,providedIn:`root`,factory:()=>new e})}return e})(),ks=class extends Zr{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Ua()&&(this.destroyRef=E(ws,{optional:!0})??void 0,this.pendingTasks=E(Os,{optional:!0})??void 0)}emit(e){let t=w(null);try{super.next(e)}finally{w(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),a=n;if(e&&typeof e==`object`){let t=e;r=t.next?.bind(t),i=t.error?.bind(t),a=t.complete?.bind(t)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&=this.wrapInTimeout(r),a&&=this.wrapInTimeout(a));let o=super.subscribe({next:r,error:i,complete:a});return e instanceof hr&&e.add(o),o}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{e(t)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}};function As(...e){}function js(e){let t,n;function r(){e=As;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 Ms(e){return queueMicrotask(()=>e()),()=>{e=As}}var Ns=`isAngularZone`,Ps=`isAngularZone_ID`,Fs=0,Is=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ks(!1);onMicrotaskEmpty=new ks(!1);onStable=new ks(!1);onError=new ks(!1);constructor(e){let{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:i=!1}=e;if(typeof Zone>`u`)throw new T(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&n,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=i,Bs(a)}static isInAngularZone(){return typeof Zone<`u`&&Zone.current.get(Ns)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new T(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new T(909,!1)}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){let i=this._inner,a=i.scheduleEventTask(`NgZoneEvent: `+r,e,Ls,As,As);try{return i.runTask(a,t,n)}finally{i.cancelTask(a)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}},Ls={};function Rs(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 zs(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){js(()=>{e.callbackScheduled=!1,Vs(e),e.isCheckStableRunning=!0,Rs(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Vs(e)}function Bs(e){let t=()=>{zs(e)},n=Fs++;e._inner=e._inner.fork({name:`angular`,properties:{[Ns]:!0,[Ps]:n,[Ps+n]:!0},onInvokeTask:(n,r,i,a,o,s)=>{if(Gs(s))return n.invokeTask(i,a,o,s);try{return Hs(e),n.invokeTask(i,a,o,s)}finally{(e.shouldCoalesceEventChangeDetection&&a.type===`eventTask`||e.shouldCoalesceRunChangeDetection)&&t(),Us(e)}},onInvoke:(n,r,i,a,o,s,c)=>{try{return Hs(e),n.invoke(i,a,o,s,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Ks(s)&&t(),Us(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&(i.change==`microTask`?(e._hasPendingMicrotasks=i.microTask,Vs(e),Rs(e)):i.change==`macroTask`&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function Vs(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0)}function Hs(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Us(e){e._nesting--,Rs(e)}var Ws=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ks;onMicrotaskEmpty=new ks;onStable=new ks;onError=new ks;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function Gs(e){return qs(e,`__ignore_ng_zone__`)}function Ks(e){return qs(e,`__scheduler_tick__`)}function qs(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Js=class{_console=console;handleError(e){this._console.error(`ERROR`,e)}},Ys=new vi(``,{factory:()=>{let e=E(Is),t=E(Aa),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Js),n.handleError(r))})}}}),Xs={provide:da,useValue:()=>{E(Js,{optional:!0})},multi:!0};function A(e,t){let[n,r,i]=Hn(e,t?.equal),a=n;return a[dn],a.set=r,a.update=i,a.asReadonly=Zs.bind(a),a}function Zs(){let e=this[dn];if(e.readonlyFn===void 0){let t=()=>this();t[dn]=e,e.readonlyFn=t}return e.readonlyFn}var Qs=new vi(``,{factory:()=>$s}),$s=`ng`,ec=new vi(``),tc=new vi(``,{providedIn:`platform`,factory:()=>`unknown`}),nc=new vi(``,{factory:()=>E(Cs).body?.querySelector(`[ngCspNonce]`)?.getAttribute(`ngCspNonce`)||null}),rc=(()=>{class e{view;node;constructor(e,t){this.view=e,this.node=t}static __NG_ELEMENT_ID__=ic}return e})();function ic(){return new rc(D(),Po())}var ac=class{},oc=new vi(``,{factory:()=>!0}),sc=new vi(``),cc=(()=>{class e{static ɵprov=di({token:e,providedIn:`root`,factory:()=>new lc})}return e})(),lc=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||n.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[t,n]of this.queues)e||=t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n));e||(this.dirtyEffectCount=0)}}flushQueue(e){let t=!1;for(let n of e)n.dirty&&(this.dirtyEffectCount--,t=!0,n.run());return t}},uc=class{[dn];constructor(e){this[dn]=e}destroy(){this[dn].destroy()}};function dc(e,t){let n=t?.injector??E(Ss),r=t?.manualCleanup===!0?null:n.get(ws),i,a=n.get(rc,null,{optional:!0}),o=n.get(ac);return a===null?i=gc(e,n.get(cc),o):(i=hc(a.view,o,e),r instanceof Ts&&r._lView===a.view&&(r=null)),i.injector=n,r!==null&&(i.onDestroyFns=[r.onDestroy(()=>i.destroy())]),new uc(i)}var fc={...Jn,cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Ho(!1);try{Yn(this)}finally{Ho(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=w(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],w(e)}}},pc={...fc,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(En(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}},mc={...fc,consumerMarkedDirty(){this.view[2]|=8192,_o(this.view),this.notifier.notify(13)},destroy(){if(En(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[23]?.delete(this)}};function hc(e,t,n){let r=Object.create(mc);return r.view=e,r.zone=typeof Zone<`u`?Zone.current:null,r.notifier=t,r.fn=_c(r,n),e[23]??=new Set,e[23].add(r),r.consumerMarkedDirty(r),r}function gc(e,t,n){let r=Object.create(pc);return r.fn=_c(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 _c(e,t){return()=>{t(t=>(e.cleanupFns??=[]).push(t))}}function vc(e){return typeof e==`function`&&e[dn]!==void 0}function yc(e){return vc(e)&&typeof e.set==`function`}var bc=Symbol(`InputSignalNode#UNSET`),xc={...Kn,transformFn:void 0,applyValueToInputSignal(e,t){Wn(e,t)}};function Sc(e){return{toString:e}.toString()}var Cc=(function(e){return e[e.TemplateCreateStart=0]=`TemplateCreateStart`,e[e.TemplateCreateEnd=1]=`TemplateCreateEnd`,e[e.TemplateUpdateStart=2]=`TemplateUpdateStart`,e[e.TemplateUpdateEnd=3]=`TemplateUpdateEnd`,e[e.LifecycleHookStart=4]=`LifecycleHookStart`,e[e.LifecycleHookEnd=5]=`LifecycleHookEnd`,e[e.OutputStart=6]=`OutputStart`,e[e.OutputEnd=7]=`OutputEnd`,e[e.BootstrapApplicationStart=8]=`BootstrapApplicationStart`,e[e.BootstrapApplicationEnd=9]=`BootstrapApplicationEnd`,e[e.BootstrapComponentStart=10]=`BootstrapComponentStart`,e[e.BootstrapComponentEnd=11]=`BootstrapComponentEnd`,e[e.ChangeDetectionStart=12]=`ChangeDetectionStart`,e[e.ChangeDetectionEnd=13]=`ChangeDetectionEnd`,e[e.ChangeDetectionSyncStart=14]=`ChangeDetectionSyncStart`,e[e.ChangeDetectionSyncEnd=15]=`ChangeDetectionSyncEnd`,e[e.AfterRenderHooksStart=16]=`AfterRenderHooksStart`,e[e.AfterRenderHooksEnd=17]=`AfterRenderHooksEnd`,e[e.ComponentStart=18]=`ComponentStart`,e[e.ComponentEnd=19]=`ComponentEnd`,e[e.DeferBlockStateStart=20]=`DeferBlockStateStart`,e[e.DeferBlockStateEnd=21]=`DeferBlockStateEnd`,e[e.DynamicComponentStart=22]=`DynamicComponentStart`,e[e.DynamicComponentEnd=23]=`DynamicComponentEnd`,e[e.HostBindingsUpdateStart=24]=`HostBindingsUpdateStart`,e[e.HostBindingsUpdateEnd=25]=`HostBindingsUpdateEnd`,e})(Cc||{});function wc(e,t,n,r){t===null?e[n]=r:t.applyValueToInputSignal(t,r)}var Tc=null;function Ec(){return Tc}var Dc=[],Oc=function(e,t=null,n){for(let r=0;r=r)break}else t[c]<0&&(e[17]+=65536),(s>14>16&&(e[2]&3)===t&&(e[2]+=16384,Fc(o,a)):Fc(o,a)}var Lc=-1,Rc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n,r){this.factory=e,this.name=r,this.canSeeViewProviders=t,this.injectImpl=n}};function zc(e){return!!(e.flags&8)}function Bc(e){return!!(e.flags&16)}function Vc(e,t,n){let r=0;for(;rt){o=a-1;break}}}for(;a>16}function Yc(e,t){let n=Jc(e),r=t;for(;n>0;)r=r[14],n--;return r}var Xc=!0;function Zc(e){let t=Xc;return Xc=e,t}var Qc=255,$c=5,el=0,tl={};function nl(e,t,n){let r;typeof n==`string`?r=n.charCodeAt(0)||0:Object.hasOwn(n,wi)&&(r=n[wi]),r??=n[wi]=el++;let i=r&Qc,a=1<>$c)]|=a}function rl(e,t){let n=al(e,t);if(n!==-1)return n;let r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,il(r.data,e),il(t,null),il(r.blueprint,null));let i=ol(e,t),a=e.injectorIndex;if(Kc(i)){let e=qc(i),n=Yc(i,t),r=n[1].data;for(let i=0;i<8;i++)t[a+i]=n[e+i]|r[e+i]}return t[a+8]=i,a}function il(e,t){e.push(0,0,0,0,0,0,0,0,t)}function al(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ol(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=xl(i),r===null)return Lc;if(n++,i=i[14],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Lc}function sl(e,t,n){nl(e,t,n)}function cl(e,t,n){if(n&8||e!==void 0)return e;Fi(t,`NodeInjector`)}function ll(e,t,n,r){if(n&8&&r===void 0&&(r=null),!(n&3)){let i=e[9],a=Bi(void 0);try{return i?i.get(t,r,n&8):Vi(t,r,n&8)}finally{Bi(a)}}return cl(r,t,n)}function ul(e,t,n,r=0,i){if(e!==null){if(t[2]&2048&&!(r&2)){let i=bl(e,t,n,r,tl);if(i!==tl)return i}let i=dl(e,t,n,r,tl);if(i!==tl)return i}return ll(t,n,r,i)}function dl(e,t,n,r,i){let a=hl(n);if(typeof a==`function`){if(!ns(t,e,r))return r&1?cl(i,n,r):ll(t,n,r,i);try{let e;if(e=a(r),e==null&&!(r&8))Fi(n);else return e}finally{ss()}}else if(typeof a==`number`){let i=null,o=al(e,t),s=Lc,c=r&1?t[15][5]:null;for((o===-1||r&4)&&(s=o===-1?ol(e,t):t[o+8],s===Lc||!_l(r,!1)?o=-1:(i=t[1],o=qc(s),t=Yc(s,t)));o!==-1;){let e=t[1];if(gl(a,o,e.data)){let e=fl(o,t,n,i,r,c);if(e!==tl)return e}s=t[o+8],s!==Lc&&_l(r,t[1].data[o+8]===c)&&gl(a,o,t)?(i=e,o=qc(s),t=Yc(s,t)):o=-1}}return i}function fl(e,t,n,r,i,a){let o=t[1],s=o.data[e+8],c=pl(s,o,n,r==null?Ja(s)&&Xc:r!=o&&!!(s.type&3),i&1&&a===s);return c===null?tl:ml(t,o,c,s,i)}function pl(e,t,n,r,i){let a=e.providerIndexes,o=t.data,s=a&1048575,c=e.directiveStart,l=e.directiveEnd,u=a>>20,d=r?s:s+u,f=i?s+u:l;for(let e=d;e=c&&t.type===n)return e}if(i){let e=o[c];if(e&&Xa(e)&&e.type===n)return c}return null}function ml(e,t,n,r,i){let a=e[n],o=t.data;if(a instanceof Rc){let s=a;if(s.resolving)throw Pi(``);let c=Zc(s.canSeeViewProviders);s.resolving=!0,o[n].type||o[n];let l=s.injectImpl?Bi(s.injectImpl):null;ns(e,r,0);try{a=e[n]=s.factory(void 0,i,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&kc(n,o[n],t)}finally{l!==null&&Bi(l),Zc(c),s.resolving=!1,ss()}}return a}function hl(e){if(typeof e==`string`)return e.charCodeAt(0)||0;let t=Object.hasOwn(e,wi)?e[wi]:void 0;return typeof t==`number`?t>=0?t&Qc:yl:t}function gl(e,t,n){let r=1<>$c)]&r)}function _l(e,t){return!(e&2)&&!(e&1&&t)}var vl=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return ul(this._tNode,this._lView,e,Ji(n),t)}};function yl(){return new vl(Po(),D())}function bl(e,t,n,r,i){let a=e,o=t;for(;a!==null&&o!==null&&o[2]&2048&&!Za(o);){let e=dl(a,o,n,r|2,tl);if(e!==tl)return e;r&=-5;let t=a.parent;if(!t){let e=o[20];if(e){let t=e.get(n,tl,r);if(t!==tl)return t}t=xl(o),o=o[14]}a=t}return i}function xl(e){let t=e[1],n=t.type;return n===2?t.declTNode:n===1?e[5]:null}function Sl(e){return{token:e.token,providedIn:e.autoProvided===!1?null:`root`,factory:e.factory,value:void 0}}function Cl(){return wl(Po(),D())}function wl(e,t){return new Tl(ro(e,t))}var Tl=(()=>{class e{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=Cl}return e})();function El(e){return e instanceof Tl?e.nativeElement:e}function Dl(){return this._results[Symbol.iterator]()}var Ol=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 Zr}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;let n=ea(e);(this._changesDetected=!$i(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Dl};function kl(e){return(e.flags&128)==128}var Al=(function(e){return e[e.OnPush=0]=`OnPush`,e[e.Eager=1]=`Eager`,e[e.Default=1]=`Default`,e})(Al||{}),jl=new Map,Ml=0;function Nl(){return Ml++}function Pl(e){jl.set(e[19],e)}function Fl(e){jl.delete(e[19])}var Il=`__ngContext__`;function Ll(e,t){Ga(t)?(e[Il]=t[19],Pl(t)):e[Il]=t}function Rl(e){return Bl(e[12])}function zl(e){return Bl(e[4])}function Bl(e){for(;e!==null&&!Ka(e);)e=e[4];return e}var Vl=void 0;function Hl(e){Vl=e}function Ul(){if(Vl!==void 0)return Vl;if(typeof document<`u`)return document;throw new T(210,!1)}var Wl=!1,Gl=new vi(``,{factory:()=>Wl}),Kl=new WeakMap;function ql(e,t){if(typeof e!=`object`||!e)return;let n=Kl.get(e);n||(n=new WeakSet,Kl.set(e,n)),n.add(t)}function Jl(e){return(e.flags&32)==32}var Yl=()=>null;function Xl(e,t,n=!1){return Yl(e,t,n)}function Zl(e,t){let n=e.contentQueries;if(n!==null){let r=w(null);try{for(let r=0;r-1){let e;for(;++ia?``:i[u+1].toLowerCase(),r&2&&l!==e){if(Eu(r))return!1;o=!0}}}}}return Eu(r)||o}function Eu(e){return!(e&1)}function Du(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let n=!1;for(;i-1)for(n++;n0?`="`+t+`"`:``)+`]`}else r&8?i+=`.`+o:r&4&&(i+=` `+o)}else i!==``&&!Eu(o)&&(t+=ju(a,i),i=``),r=o,a||=!Eu(r);n++}return i!==``&&(t+=ju(a,i)),t}function Nu(e){return e.map(Mu).join(`,`)}function Pu(e){let t=[],n=[],r=1,i=2;for(;r!1});function Bu(e){if(!e)return 0;let t=e.toLowerCase().indexOf(`ms`)>-1?1:1e3;return parseFloat(e)*t}function Vu(e,t){return e.getPropertyValue(t).split(`,`).map(e=>e.trim())}function Hu(e){let t=Vu(e,`transition-property`),n=Vu(e,`transition-duration`),r=Vu(e,`transition-delay`),i={propertyName:``,duration:0,animationName:void 0};for(let e=0;ei.duration&&(i.propertyName=t[e],i.duration=a)}return i}function Uu(e){let t=Vu(e,`animation-name`),n=Vu(e,`animation-delay`),r=Vu(e,`animation-duration`),i=Vu(e,`animation-iteration-count`),a={animationName:``,propertyName:void 0,duration:0};for(let e=0;ea.duration&&s!==`infinite`&&(a.animationName=t[e],a.duration=o)}return a}function Wu(e,t){return e!==void 0&&e.duration>t.duration}function Gu(e){return(e.animationName!=null||e.propertyName!=null)&&e.duration>0}function Ku(e){let t=e.effect?.getTiming();if(t===void 0)return;let n=typeof t.duration==`number`?t.duration:0,r=(t.delay??0)+n,i=e.playbackRate;return i!==void 0&&i!==0&&i!==1&&(r/=Math.abs(i)),r}function qu(e,t){let n=getComputedStyle(e),r=Uu(n),i=Hu(n),a=r.duration>i.duration?r:i;Wu(t.get(e),a)||Gu(a)&&t.set(e,a)}function Ju(e,t,n){if(!n)return;let r=e.getAnimations();return r.length===0?qu(e,t):Yu(e,t,r)}function Yu(e,t,n){let r={animationName:void 0,propertyName:void 0,duration:0};for(let e of n){if(e.effect?.getTiming()?.iterations===1/0)continue;let t=Ku(e)??0,n,i;e.animationName?i=e.animationName:n=e.transitionProperty,t>=r.duration&&(r={animationName:i,propertyName:n,duration:t})}Wu(t.get(e),r)||Gu(r)&&t.set(e,r)}var Xu=new Set,Zu=!1,Qu=1,$u=typeof document<`u`&&typeof document?.documentElement?.getAnimations==`function`;function ed(e){return e[9].get(zu,Zu)}function td(e,t,n){let r=rd.get(e);if(r){for(let e of t)r.classList.push(e);for(let e of n)r.cleanupFns.push(e)}else rd.set(e,{classList:t,cleanupFns:n})}function nd(e){let t=rd.get(e);if(t){for(let e of t.cleanupFns)e();rd.delete(e)}id.delete(e)}var rd=new WeakMap,id=new WeakMap,ad=new WeakMap;function od(e){return e?e[14]??e:null}var sd=new WeakSet;function cd(e,t,n){let r=ad.get(e);if(!r||r.length===0)return;let i=t.parentNode,a=t.previousSibling,o=od(n);for(let e=r.length-1;e>=0;e--){let{el:n,declarationView:s}=r[e],c=n.parentNode;n===t?(r.splice(e,1),sd.add(n),n.dispatchEvent(new CustomEvent(`animationend`,{detail:{cancel:!0}}))):(a&&n===a||c&&i&&c!==i&&(o===null||s===null||o===s))&&(r.splice(e,1),n.dispatchEvent(new CustomEvent(`animationend`,{detail:{cancel:!0}})),n.parentNode?.removeChild(n))}}function ld(e,t,n){let r=od(n),i=ad.get(e);i?i.some(e=>e.el===t)||i.push({el:t,declarationView:r}):ad.set(e,[{el:t,declarationView:r}])}function ud(e){let t=e[26]??={};return t.enter??=new Map}function dd(e){let t=typeof e==`function`?e():e,n=Array.isArray(t)?t:null;return typeof t==`string`&&(n=t.trim().split(/\s+/).filter(e=>e)),n}function fd(e){return e.composedPath?e.composedPath()[0]:e.target}function pd(e,t){let n=id.get(t);if(n===void 0)return!0;if(t!==fd(e))return!1;let r=e.animation;if(r){let e=Ku(r);if(e!==void 0&&e+Qu{class e{impl=null;execute(){this.impl?.execute()}static ɵprov=di({token:e,providedIn:`root`,factory:()=>new e})}return e})(),bd=[0,1,2,3],xd=(()=>{class e{ngZone=E(Is);scheduler=E(ac);errorHandler=E(Js,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){E(gd,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Oc(Cc.AfterRenderHooksStart),this.executing=!0;for(let e of bd)for(let t of this.sequences)if(!t.erroredOrDestroyed&&t.hooks[e])try{t.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let n=t.hooks[e];return n(t.pipelinedValue)},t.snapshot))}catch(e){t.erroredOrDestroyed=!0,this.errorHandler?.handleError(e)}this.executing=!1;for(let e of this.sequences)e.afterRun(),e.once&&(this.sequences.delete(e),e.destroy());for(let e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Oc(Cc.AfterRenderHooksEnd)}register(e){let{view:t}=e;t===void 0?this.executing?this.deferredRegistrations.add(e):this.addSequence(e):((t[25]??=[]).push(e),_o(t),t[2]|=8192)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,t){return t?t.run(hd.AFTER_NEXT_RENDER,e):e()}static ɵprov=di({token:e,providedIn:`root`,factory:()=>new e})}return e})(),Sd=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,t,n,r,i,a=null){this.impl=e,this.hooks=t,this.view=n,this.once=r,this.snapshot=a,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[25];e&&(this.view[25]=e.filter(e=>e!==this))}};function Cd(e,t){let n=t?.injector??E(Ss);return vd(`NgAfterNextRender`),Td(e,n,t,!0)}function wd(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Td(e,t,n,r){let i=t.get(yd);i.impl??=t.get(xd);let a=t.get(gd,null,{optional:!0}),o=n?.manualCleanup===!0?null:t.get(ws),s=t.get(rc,null,{optional:!0}),c=new Sd(i.impl,wd(e),s?.view,r,o,a?.snapshot(null));return i.impl.register(c),c}var Ed=new vi(``,{factory:()=>{let e=E(Aa),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function Dd(e,t,n){let r=e.get(Ed);if(Array.isArray(t))for(let e of t)r.queue.add(e),n?.detachedLeaveAnimationFns?.push(e);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function Od(e,t){let n=e.get(Ed);if(Array.isArray(t))for(let e of t)n.queue.delete(e);else n.queue.delete(t)}function kd(e,t){let n=e.get(Ed);if(t.detachedLeaveAnimationFns){for(let e of t.detachedLeaveAnimationFns)n.queue.delete(e);t.detachedLeaveAnimationFns=void 0}}function Ad(e){let t=e.get(Ed);t.isScheduled||=(Cd(()=>{t.isScheduled=!1;for(let e of t.queue)e();t.queue.clear()},{injector:t.injector}),!0)}function jd(e){let t=e.get(Ed);t.scheduler=Ad,t.scheduler(e)}function Md(e,t){for(let[n,r]of t)Dd(e,r.animateFns)}function Nd(e,t,n,r){let i=e?.[26]?.enter;t!==null&&i&&i.has(n.index)&&Md(r,i)}function Pd(e,t,n,r){try{n.get(fa)}catch{return r(!1)}let i=e?.[26];i?.enter?.has(t.index)&&Od(n,i.enter.get(t.index).animateFns);let a=Fd(e,t,i);if(a.size===0){let n=!1;if(e){let r=[];Ld(e,t,r),n=r.length>0}if(!n)return r(!1)}e&&Xu.add(e[19]),Dd(n,()=>Id(e,t,i||void 0,a,r),i||void 0)}function Fd(e,t,n){let r=new Map,i=n?.leave;if(i&&i.has(t.index)&&r.set(t.index,i.get(t.index)),e&&i)for(let[n,a]of i){if(r.has(n))continue;let i=e[1].data[n].parent;for(;i;){if(i===t){r.set(n,a);break}i=i.parent}}return r}function Id(e,t,n,r,i){let a=[];if(n&&n.leave)for(let[e]of r){if(!n.leave.has(e))continue;let t=n.leave.get(e);for(let e of t.animateFns){let{promise:t}=e();a.push(t)}n.detachedLeaveAnimationFns=void 0}if(e&&Ld(e,t,a),a.length>0){let t=n||e?.[26];if(t){let n=t.running;n&&a.push(n),t.running=Promise.allSettled(a),zd(e,t.running,i)}else Promise.allSettled(a).then(()=>{e&&Xu.delete(e[19]),i(!0)})}else e&&Xu.delete(e[19]),i(!1)}function Ld(e,t,n){if(t.type&12){let r=e[t.index];if(Ka(r))for(let e=10;e{e[26]?.running===t&&(e[26].running=void 0,Xu.delete(e[19])),n(!0)})}function Bd(e,t,n,r,i,a,o,s){if(i!=null){let c,l=!1;Ka(i)?c=i:Ga(i)&&(l=!0,i=i[0]);let u=to(i);e===0&&r!==null?(Nd(s,r,a,n),o==null?du(t,r,u):uu(t,r,u,o||null,!0)):e===1&&r!==null?(Nd(s,r,a,n),uu(t,r,u,o||null,!0),cd(a,u,s)):e===2?(s?.[26]?.leave?.has(a.index)&&ld(a,u,s),sd.delete(u),Pd(s,a,n,e=>{if(sd.has(u)){sd.delete(u);return}pu(t,u,l,e)})):e===3&&(sd.delete(u),Pd(s,a,n,()=>{t.destroyNode(u)})),c!=null&&uf(t,e,n,c,a,r,o)}}function Vd(e,t){Ud(e,t),t[0]=null,t[5]=null}function Hd(e,t,n,r,i,a){r[0]=i,r[5]=t,sf(e,r,n,1,i,a)}function Ud(e,t){t[10].changeDetectionScheduler?.notify(9),sf(e,t,t[11],2,null,null)}function Wd(e){let t=e[12];if(!t)return qd(e[1],e);for(;t;){let n=null;if(Ga(t))n=t[12];else{let e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Ga(t)&&qd(t[1],t),t=t[3];t===null&&(t=e),Ga(t)&&qd(t[1],t),n=t&&t[4]}t=n}}function Gd(e,t){let n=e[9],r=n.indexOf(t);n.splice(r,1)}function Kd(e,t){if(Qa(t))return;let n=t[11];n.destroyNode&&sf(e,t,n,3,null,null),Wd(t)}function qd(e,t){if(Qa(t))return;let n=w(null);try{t[2]&=-129,t[2]|=256,t[24]&&En(t[24]),Yd(e,t),Jd(e,t),t[1].type===1&&t[11].destroy();let n=t[16];if(n!==null&&Ka(t[3])){n!==t[3]&&Gd(n,t);let r=t[18];r!==null&&r.detachView(e)}Fl(t)}finally{w(n)}}function Jd(e,t){let n=e.cleanup,r=t[7];if(n!==null)for(let e=0;e=0?r[t]():r[-t].unsubscribe(),e+=2}else{let t=r[n[e+1]];n[e].call(t)}r!==null&&(t[7]=null);let i=t[21];if(i!==null){t[21]=null;for(let e=0;e27&&bf(e,t,27,!1),Oc(o?Cc.TemplateUpdateStart:Cc.TemplateCreateStart,i,n),n(r,i)}finally{ds(a),Oc(o?Cc.TemplateUpdateEnd:Cc.TemplateCreateEnd,i,n)}}function wf(e,t,n){jf(e,t,n),(n.flags&64)==64&&Mf(e,t,n)}function Tf(e,t,n=ro){let r=t.localNames;if(r!==null){let i=t.index+1;for(let a=0;a{_o(e.lView)},consumerOnSignalRead(){this.lView[24]=this}};function np(e){let t=e[24]??Object.create(rp);return t.lView=e,t}var rp={...pn,consumerIsAlwaysLive:!0,kind:`template`,consumerMarkedDirty:e=>{let t=bo(e.lView);for(;t&&!ip(t[1]);)t=bo(t);t&&po(t)},consumerOnSignalRead(){this.lView[24]=this}};function ip(e){return e.type!==2}function ap(e){if(e[23]===null)return;let t=!0;for(;t;){let n=!1;for(let t of e[23])if(t.dirty&&(n=!0,t.zone===null||Zone.current===t.zone?t.run():t.zone.run(()=>t.run()),e[23]===null))return;t=n&&!!(e[2]&8192)}}var op=100;function sp(e,t=0){let n=e[10].rendererFactory;n.begin?.();try{cp(e,t)}finally{n.end?.()}}function cp(e,t){let n=Vo();try{Ho(!0),mp(e,t);let n=0;for(;ho(e);){if(n===op)throw new T(103,!1);n++,mp(e,1)}}finally{Ho(n)}}function lp(e,t,n,r){if(Qa(t))return;let i=t[2];rs(t);let a=!0,o=null,s=null;ip(e)?(s=Qf(t),o=xn(s)):fn()===null?(a=!1,s=np(t),o=xn(s)):t[24]&&=(En(t[24]),null);try{fo(t),Go(e.bindingStartIndex),n!==null&&Cf(e,t,n,2,r);let a=(i&3)==3;if(a){let n=e.preOrderCheckHooks;n!==null&&jc(t,n,null)}else{let n=e.preOrderHooks;n!==null&&Mc(t,n,0,null),Nc(t,0)}if(dp(t),ap(t),up(t,0),e.contentQueries!==null&&Zl(e,t),a){let n=e.contentCheckHooks;n!==null&&jc(t,n)}else{let n=e.contentHooks;n!==null&&Mc(t,n,1),Nc(t,1)}gp(e,t);let o=e.components;o!==null&&hp(t,o,0);let s=e.viewQuery;if(s!==null&&Ql(2,s,r),a){let n=e.viewCheckHooks;n!==null&&jc(t,n)}else{let n=e.viewHooks;n!==null&&Mc(t,n,2),Nc(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[22]){for(let e of t[22])e();t[22]=null}Xf(t),t[2]&=-73}catch(e){throw _o(t),e}finally{s!==null&&(Cn(s,o),a&&ep(s)),cs()}}function up(e,t){for(let n=Rl(e);n!==null;n=zl(n))for(let e=10;e0&&(e[n-1][4]=r[4]);let a=ra(e,10+t);Vd(r[1],r);let o=a[18];o!==null&&o.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Cp(e,t,n,r){let i=10+r,a=n.length;r>0&&(n[i-1][4]=t),r-1&&(Sp(e,n),ra(t,n))}this._attachedToViewContainer=!1}Kd(this._lView[1],this._lView)}onDestroy(e){vo(this._lView,e)}markForCheck(){_p(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[2]&=-129}reattach(){go(this._lView),this._lView[2]|=128}detectChanges(){this._lView[2]|=1024,sp(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new T(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Za(this._lView),t=this._lView[16];t!==null&&!e&&Gd(t,this._lView),Ud(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new T(902,!1);this._appRef=e;let t=Za(this._lView),n=this._lView[16];n!==null&&!t&&wp(n,this._lView),go(this._lView)}},Ep=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Dp;constructor(e,t,n){this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,t){return this.createEmbeddedViewImpl(e,t)}createEmbeddedViewImpl(e,t,n){return new Tp(Kf(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:t,dehydratedView:n}))}}return e})();function Dp(){return Op(Po(),D())}function Op(e,t){return e.type&4?new Ep(t,e,wl(e,t)):null}function kp(e,t,n,r,i){let a=e.data[t];if(a===null)a=Ap(e,t,n,r,i),Jo()&&(a.flags|=32);else if(a.type&64){a.type=n,a.value=r,a.attrs=i;let e=Io();a.injectorIndex=e===null?-1:e.injectorIndex}return Lo(a,!0),a}function Ap(e,t,n,r,i){let a=Fo(),o=Ro(),s=o?a:a&&a.parent,c=e.data[t]=Mp(e,s,n,t,r,i);return jp(e,c,a,o),c}function jp(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 Mp(e,t,n,r,i,a){let o=t?t.injectorIndex:-1,s=0;return Ao()&&(s|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:i,namespace:gs(),attrs:a,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}}function Np(e){let t=e[6]??[],n=e[3][11],r=[];for(let e of t)e.data.di===void 0?Pp(e,n):r.push(e);e[6]=r}function Pp(e,t){let n=0,r=e.firstChild;if(r){let i=e.data.r;for(;nnull,Ip=()=>null;function Lp(e,t){return Fp(e,t)}function Rp(e,t,n){return Ip(e,t,n)}var zp=class{},Bp=class{},Vp=(()=>{class e{static ɵprov=di({token:e,providedIn:`root`,factory:()=>null})}return e})();function Hp(e){return e.debugInfo?.className||e.type.name||null}var Up={},Wp=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){let r=this.injector.get(e,Up,n);return r!==Up||t===Up?r:this.parentInjector.get(e,t,n)}};function Gp(e,t,n){return e[t]=n}function Kp(e,t){return e[t]}function qp(e,t,n){if(n===Fu)return!1;let r=e[t];return!Object.is(r,n)&&(e[t]=n,!0)}function Jp(e,t,n,r){let i=qp(e,t,n);return qp(e,t+1,r)||i}function Yp(e,t,n,r,i){let a=Jp(e,t,n,r);return qp(e,t+2,i)||a}function Xp(e,t,n,r,i,a){let o=Jp(e,t,n,r);return Jp(e,t+2,i,a)||o}function Zp(e,t,n){return function r(i){let a=r.__ngNativeEl__;a!==void 0&&ql(i,a),_p(Ja(e)?so(e.index,t):t,5);let o=t[8],s=Qp(t,o,n,i),c=r.__ngNextListenerFn__;for(;c;)s=Qp(t,o,c,i)&&s,c=c.__ngNextListenerFn__;return s}}function Qp(e,t,n,r){let i=w(null);try{return Oc(Cc.OutputStart,t,n),n(r)!==!1}catch(t){return Bf(e,t),!1}finally{Oc(Cc.OutputEnd,t,n),w(i)}}function $p(e,t,n,r,i,a,o,s){let c=Ya(e),l=!1,u=null;if(!r&&c&&(u=tm(t,n,a,e.index)),u!==null){let e=u.__ngLastListenerFn__||u;e.__ngNextListenerFn__=o,u.__ngLastListenerFn__=o,l=!0}else{let o=ro(e,n),c=r?r(o):o;r||(s.__ngNativeEl__=o);let l=i.listen(c,a,s);em(a)||nm(r?t=>r(to(t[e.index])):e.index,t,n,a,s,l,!1)}return l}function em(e){return e.startsWith(`animation`)||e.startsWith(`transition`)}function tm(e,t,n,r){let i=e.cleanup;if(i!=null)for(let e=0;er?n[r]:null}typeof a==`string`&&(e+=2)}return null}function nm(e,t,n,r,i,a,o){let s=t.firstCreatePass?So(t):null,c=xo(n),l=c.length;c.push(i,a),s&&s.push(r,e,l,(l+1)*(o?-1:1))}function rm(e,t,n,r,i,a){let o=t[n],s=t[1],c=o[s.data[n].outputs[r]].subscribe(a);nm(e.index,s,t,i,a,c,!0)}var im=Symbol(`BINDING`),am=new vi(``);function om(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,a=0;if(t!==null)for(let e=0;e0&&(n.directiveToIndex=new Map);for(let c=0;c0;){let n=e[--t];if(typeof n==`number`&&n<0)return n}return 0}function bm(e,t,n){if(n){if(t.exportAs)for(let r=0;r{let[n,r,i]=e[t],a={propName:n,templateName:t,isSignal:(r&xf.SignalBased)!==0};return i&&(a.transform=i),a})}function Om(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function km(e,t,n){let r=t instanceof Aa?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Wp(n,r):n}function Am(e){let t=e.get(Bp,null);if(t===null)throw new T(407,!1);return{rendererFactory:t,sanitizer:e.get(Vp,null),changeDetectionScheduler:e.get(ac,null),ngReflect:!1,tracingService:e.get(gd,null,{optional:!0})}}function jm(e,t,n){let r=Nm(e);return lu(t,r,r===`svg`?`svg`:r===`math`?eo:n)}function Mm(e){if((e&&`localName`in e&&typeof e.localName==`string`?e.localName:e?.tagName)?.toLowerCase()===`script`)throw new T(905,!1)}function Nm(e){return(e.selectors[0][0]||`div`).toLowerCase()}var Pm=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Dm(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Om(this.componentDef.outputs),this.cachedOutputs}constructor(e,t){this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=Nu(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r,i,a,o){Oc(Cc.DynamicComponentStart);let s=w(null);try{let s=this.componentDef,c=km(s,r||this.ngModule,e),l=Am(c),u=l.tracingService;return u&&u.componentCreate?u.componentCreate(Hp(s),()=>this.createComponentRef(l,c,t,n,i,a,o)):this.createComponentRef(l,c,t,n,i,a,o)}finally{w(s)}}createComponentRef(e,t,n,r,i,a,o){let s=this.componentDef,c=Fm(r,s,a,i),l=e.rendererFactory.createRenderer(null,s),u=r?Ef(l,r,s.encapsulation,t):jm(s,l,o??null);Mm(u);let d=t.get(am,null),f=Im(u,()=>t.get(Cs,null)??Ul());d&&d.addHost(f);let p=a?.some(Rm)||i?.some(e=>typeof e!=`function`&&e.bindings.some(Rm)),m=hf(null,c,null,512|_f(s),null,null,e,l,t,null,Xl(u,t,!0));d&&Tm&&f instanceof ShadowRoot&&vo(m,()=>{d.removeHost(f)}),m[27]=u,rs(m);let h=null;try{let e=Sm(27,m,2,`#host`,()=>c.directiveRegistry,!0,0);gu(l,u,e),Ll(u,m),wf(c,m,e),$l(c,e,m),Cm(c,e),n!==void 0&&Bm(e,this.ngContentSelectors,n),h=so(e.index,m),m[8]=h[8],Wf(c,m,null)}catch(e){throw h!==null&&Fl(h),Fl(m),e}finally{Oc(Cc.DynamicComponentEnd),cs()}return new zm(this.componentType,m,!!p)}};function Fm(e,t,n,r){let i=e?[`ng-version`,`22.1.7`]:Pu(t.selectors[0]),a=null,o=null,s=0;if(n)for(let e of n)s+=e[im].requiredVars,e.create&&(e.targetIdx=0,(a??=[]).push(e)),e.update&&(e.targetIdx=0,(o??=[]).push(e));if(r)for(let e=0;e{if(n&1&&e)for(let t of e)t.create();if(n&2&&t)for(let e of t)e.update()}}function Rm(e){let t=e[im].kind;return t===`input`||t===`twoWay`}var zm=class extends zp{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t,n){super(),this._rootLView=t,this._hasInputBindings=n,this._tNode=io(t[1],27),this.location=wl(this._tNode,t),this.instance=so(this._tNode.index,t)[8],this.hostView=this.changeDetectorRef=new Tp(t,void 0),this.componentType=e}setInput(e,t){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView;Vf(n,r[1],r,e,t),this.previousInputValues.set(e,t),_p(so(n.index,r),1)}get injector(){return new vl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function Bm(e,t,n){let r=e.projection=[];for(let e=0;e{class e{static __NG_ELEMENT_ID__=Hm}return e})();function Hm(){return Km(Po(),D())}var Um=class e extends Vm{_lContainer;_hostTNode;_hostLView;constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return wl(this._hostTNode,this._hostLView)}get injector(){return new vl(this._hostTNode,this._hostLView)}get parentInjector(){let e=ol(this._hostTNode,this._hostLView);if(Kc(e)){let t=Yc(e,this._hostLView),n=qc(e),r=t[1].data[n+8];return new vl(r,t)}return new vl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let t=Wm(this._lContainer);return t!==null&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){let r,i;typeof n==`number`?r=n:n!=null&&(r=n.index,i=n.injector);let a=Lp(this._lContainer,e.ssrId),o=e.createEmbeddedViewImpl(t||{},i,a);return this.insertImpl(o,r,qf(this._hostTNode,a)),o}createComponent(e,t,n,r,i,a,o){let s,c=t||{};s=c.index,n=c.injector,r=c.projectableNodes,i=c.environmentInjector||c.ngModuleRef,a=c.directives,o=c.bindings;let l=new Pm(Ei(e)),u=n||this.parentInjector;if(!i&&l.ngModule==null){let e=this.parentInjector.get(Aa,null);e&&(i=e)}let d=Ei(l.componentType??{}),f=Lp(this._lContainer,d?.id??null),p=f?.firstChild??null,m=l.create(u,r,p,i,a,o,this._getHostElementNamespace());return this.insertImpl(m.hostView,s,qf(this._hostTNode,f)),m}_getHostElementNamespace(){if(this._hostTNode.type&2){let e=this._hostTNode.parent??this._hostLView[5];return e!==null&&e.type&2&&typeof e.value==`string`&&e.value.toLowerCase()===`foreignobject`?null:e?.namespace??null}return this._hostTNode.namespace}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(t,n,r){let i=t._lView;if(lo(i)){let n=this.indexOf(t);if(n!==-1)this.detach(n);else{let n=i[3],r=new e(n,n[5],n[3]);r.detach(r.indexOf(t))}}let a=this._adjustIndex(n),o=this._lContainer;return bp(o,i,a,r),t.attachToViewContainerRef(),na(Gm(o),a,t),t}move(e,t){return this.insert(e,t)}indexOf(e){let t=Wm(this._lContainer);return t===null?-1:t.indexOf(e)}remove(e){let t=this._adjustIndex(e,-1),n=Sp(this._lContainer,t);n&&(ra(Gm(this._lContainer),t),Kd(n[1],n))}detach(e){let t=this._adjustIndex(e,-1),n=Sp(this._lContainer,t);return n&&ra(Gm(this._lContainer),t)!=null?new Tp(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function Wm(e){return e[8]}function Gm(e){return e[8]||=[]}function Km(e,t){let n,r=t[e.index];return Ka(r)?n=r:(n=vp(r,t,null,e),t[e.index]=n,yf(t,n)),Jm(n,t,e,r),new Um(n,e,t)}function qm(e,t){let n=e[11],r=n.createComment(``),i=ro(t,e);return uu(n,n.parentNode(i),r,n.nextSibling(i),!1),r}var Jm=Zm,Ym=()=>!1;function Xm(e,t,n){return Ym(e,t,n)}function Zm(e,t,n,r){if(e[7])return;let i;i=n.type&8?to(r):qm(t,n),e[7]=i}var Qm=class e{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},$m=class e{queries;constructor(e=[]){this.queries=e}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries===null?n.length:t.contentQueries[0],i=[];for(let e=0;e0)r.push(o[e/2]);else{let i=a[e+1],o=t[-n];for(let e=10;ee.trim())}function ph(e,t,n){e.queries===null&&(e.queries=new th),e.queries.track(new nh(t,n))}function mh(e,t){return e.queries.getByIndex(t)}function hh(e,t){let n=e[1],r=mh(n,t);return r.crossesNgTemplate?ch(n,e,t,[]):sh(n,e,r,t)}function gh(e,t,n){let r,i=Mn(()=>{r._dirtyCounter();let n=bh(r,e);if(t&&n===void 0)throw new T(-951,!1);return n});return r=i[dn],r._dirtyCounter=A(0),r._flatValue=void 0,i}function _h(e){return gh(!0,!1,e)}function vh(e){return gh(!0,!0,e)}function yh(e,t){let n=e[dn];n._lView=D(),n._queryIndex=t,n._queryList=lh(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(e=>e+1))}function bh(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[2]&4)return t?void 0:ua;let i=lh(n,r),a=hh(n,r);return i.reset(a,El),t?i.first:i._changesDetected||e._flatValue===void 0?e._flatValue=i.toArray():e._flatValue}function xh(e){return!!e&&typeof e.then==`function`}function Sh(e){return!!e&&typeof e.subscribe==`function`}var Ch=class{},wh=class extends Ch{injector;instance=null;constructor(e){super();let t=new ja([...e.providers,{provide:Ch,useValue:this}],e.parent||ka(),e.debugName,new Set([`environment`]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Th(e,t,n=null){return new wh({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Eh=(()=>{class e{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let t=ga(!1,e.type),n=t.length>0?Th([t],this._injector,``):null;this.cachedInjectors.set(e,n)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static ɵprov=di({token:e,providedIn:`environment`,factory:()=>new e(qi(Aa))})}return e})();function Dh(e){return Sc(()=>{let t=Mh(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==Al.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?e=>e.get(Eh).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||eu.Emulated,styles:e.styles||ua,_:null,schemas:e.schemas||null,tView:null,id:``};t.standalone&&vd(`NgStandalone`),Nh(n);let r=e.dependencies;return n.directiveDefs=Ph(r,Oh),n.pipeDefs=Ph(r,Oi),n.id=Fh(n),n})}function Oh(e){return Ei(e)||Di(e)}function kh(e,t){if(e==null)return la;let n={};for(let r in e)if(Object.hasOwn(e,r)){let i=e[r],a,o,s,c;Array.isArray(i)?(s=i[0],a=i[1],o=i[2]??a,c=i[3]||null):(a=i,o=i,s=xf.None,c=null),n[a]=[r,s,c],t[a]=o}return n}function Ah(e){if(e==null)return la;let t={};for(let n in e)Object.hasOwn(e,n)&&(t[e[n]]=n);return t}function jh(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 Mh(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||la,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||ua,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:kh(e.inputs,t),outputs:Ah(e.outputs),debugInfo:null}}function Nh(e){e.features?.forEach(t=>t(e))}function Ph(e,t){return e?()=>{let n=typeof e==`function`?e():e,r=[];for(let e of n){let n=t(e);n!==null&&r.push(n)}return r}:null}function Fh(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 e of r.join(`|`))t=Math.imul(31,t)+e.charCodeAt(0)<<0;return t+=2147483648,`c`+t}var Ih=new vi(``),Lh=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t});appInits=E(Ih,{optional:!0})??[];injector=E(Ss);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let t of this.appInits){let n=Ha(this.injector,t);if(xh(n))e.push(n);else if(Sh(n)){let t=new Promise((e,t)=>{n.subscribe({complete:e,error:t})});e.push(t)}}let t=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),e.length===0&&t(),this.initialized=!0}static ɵfac=function(t){return new(t||e)};static ɵprov=Sl({token:e,factory:e.ɵfac})}return e})();function Rh(e,t,n,r,i,a,o,s){if(n.firstCreatePass){e.mergedAttrs=Wc(e.mergedAttrs,e.attrs);let t=e.tView=ff(2,e,i,a,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),t.queries=n.queries.embeddedTView(e))}s&&(e.flags|=s),Lo(e,!1);let c=Bh(n,t,e,r);vs()&&tf(n,t,c,e),Ll(c,t);let l=vp(c,t,c,e);t[r+27]=l,yf(t,l),Xm(l,e,t)}function zh(e,t,n,r,i,a,o,s,c,l,u){let d=n+27,f;if(t.firstCreatePass){if(f=kp(t,d,4,o||null,s||null),l!=null){let e=uo(t.consts,l);f.localNames=[];for(let t=0;t{throw new T(600,``)})}var Gh=10,Kh=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=E(Ys);afterRenderManager=E(yd);zonelessEnabled=E(oc);rootEffectScheduler=E(cc);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Zr;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=E(Os);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ei(e=>!e))}constructor(){E(gd,{optional:!0})}whenStable(){let e;return new Promise(t=>{e=this.isStable.subscribe({next:e=>{e&&t()}})}).finally(()=>{e.unsubscribe()})}_injector=E(Aa);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,t){return this.bootstrapImpl(e,t)}bootstrapImpl(e,t,n=Ss.NULL){return this._injector.get(Is).run(()=>{if(Oc(Cc.BootstrapComponentStart),!this._injector.get(Lh).done)throw new T(405,``);let r=Ei(e),i=this._injector.get(Ch),a=new Pm(r,i);this.componentTypes.push(e);let{hostElement:o,directives:s,bindings:c}=qh(t),l=o||a.selector,u=a.create(n,[],l,i.injector,s,c),d=u.location.nativeElement,f=u.injector.get(Hh,null);return f?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Jh(this.components,u),f?.unregisterApplication(d)}),this._loadComponent(u),Oc(Cc.BootstrapComponentEnd,u),u})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Oc(Cc.ChangeDetectionStart),this.tracingSnapshot===null?this.tickImpl():this.tracingSnapshot.run(hd.CHANGE_DETECTION,this.tickImpl)}tickImpl=()=>{if(this._runningTick)throw Oc(Cc.ChangeDetectionEnd),new T(101,!1);let e=w(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,w(e),this.afterTick.next(),Oc(Cc.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Bp,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++ho(e))){this.dirtyFlags|=2;return}this.dirtyFlags&=-8}attachView(e){let t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){let t=e;Jh(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(e){this.internalErrorHandler(e)}this.components.push(e),this._injector.get(Uh,[]).forEach(t=>t(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Jh(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new T(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static ɵfac=function(t){return new(t||e)};static ɵprov=Sl({token:e,factory:e.ɵfac})}return e})();function qh(e){return e===void 0||typeof e==`string`||e instanceof Element?{hostElement:e}:e}function Jh(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function M(e,t,n,r){let i=D();return qp(i,Ko(),t)&&(No(),Ff(fs(),i,e,t,n,r)),M}function Yh(e){if(vd(`NgAnimateEnter`),!$u)return Yh;let t=D();if(ed(t))return Yh;let n=Po(),r=t[9].get(Is);return md(ud(t),n,()=>Xh(t,n,e,r)),jd(t[9]),Md(t[9],ud(t)),Yh}function Xh(e,t,n,r){let i=ro(t,e),a=e[11],o=dd(n),s=[],c=!1,l=e=>{if(fd(e)!==i)return;let t=e instanceof AnimationEvent?`animationend`:`transitionend`;r.runOutsideAngular(()=>{a.listen(i,t,u)})},u=e=>{fd(e)===i&&(pd(e,i)&&(c=!0),Zh(e,i,a))};if(o&&o.length>0){r.runOutsideAngular(()=>{s.push(a.listen(i,`animationstart`,l)),s.push(a.listen(i,`transitionstart`,l))}),td(i,o,s);for(let e of o)a.addClass(i,e);r.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(!c&&(Ju(i,id,$u),!id.has(i))){for(let e of o)a.removeClass(i,e);nd(i)}})})}}function Zh(e,t,n){let r=rd.get(t);if(fd(e)===t&&r&&pd(e,t)){e.stopPropagation();for(let e of r.classList)n.removeClass(t,e);nd(t)}}var Qh=class{destroy(e){}updateValue(e,t){}swap(e,t){let n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){let e=this.detach(n);this.attach(n,i),this.attach(r,e)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}};function $h(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function eg(e,t,n,r){let i,a,o=0,s=e.length-1;if(Array.isArray(t)){w(r);let c=t.length-1;for(w(null);o<=s&&o<=c;){let r=e.at(o),l=t[o],u=$h(o,r,o,l,n);if(u!==0){u<0&&e.updateValue(o,l),o++;continue}let d=e.at(s),f=t[c],p=$h(s,d,c,f,n);if(p!==0){p<0&&e.updateValue(s,f),s--,c--;continue}let m=n(o,r),h=n(s,d),g=n(o,l);if(Object.is(g,h)){let t=n(c,f);Object.is(t,m)?(e.swap(o,s),e.updateValue(s,f),c--,s--):e.move(s,o),e.updateValue(o,l),o++;continue}if(i??=new ig,a??=rg(e,o,s,n),tg(e,i,o,g))e.updateValue(o,l),o++,s++;else if(a.has(g))i.set(m,e.detach(o)),s--;else{let n=e.create(o,t[o]);e.attach(o,n),o++,s++}}for(;o<=c;)ng(e,i,n,o,t[o]),o++}else if(t!=null){w(r);let c=t[Symbol.iterator]();w(null);let l=c.next();for(;!l.done&&o<=s;){let t=e.at(o),r=l.value,u=$h(o,t,o,r,n);if(u!==0)u<0&&e.updateValue(o,r),o++,l=c.next();else{i??=new ig,a??=rg(e,o,s,n);let u=n(o,r);if(tg(e,i,o,u))e.updateValue(o,r),o++,s++,l=c.next();else if(!a.has(u))e.attach(o,e.create(o,r)),o++,s++,l=c.next();else{let r=n(o,t);i.set(r,e.detach(o)),s--}}}for(;!l.done;)ng(e,i,n,e.length,l.value),l=c.next()}for(;o<=s;)e.destroy(e.detach(s--));i?.forEach(t=>{e.destroy(t)})}function tg(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function ng(e,t,n,r,i){if(tg(e,t,r,n(r,i)))e.updateValue(r,i);else{let t=e.create(r,i);e.attach(r,t)}}function rg(e,t,n,r){let i=new Set;for(let a=t;a<=n;a++)i.add(r(a,e.at(a)));return i}var ig=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}};function N(e,t,n,r,i,a,o,s){vd(`NgControlFlow`);let c=D(),l=No();return zh(c,l,e,t,n,r,i,uo(l.consts,a),256,o,s),ag}function ag(e,t,n,r,i,a,o,s){vd(`NgControlFlow`);let c=D(),l=No();return zh(c,l,e,t,n,r,i,uo(l.consts,a),512,o,s),ag}function P(e,t){vd(`NgControlFlow`);let n=D(),r=Ko(),i=n[r]===Fu?-1:n[r],a=i===-1?void 0:dg(n,27+i);if(qp(n,r,e)){let r=w(null);try{if(a!==void 0&&xp(a,0),e!==-1){let r=27+e,i=dg(n,r),a=gg(n[1],r),o=Rp(i,a,n);bp(i,Kf(n,a,t,{dehydratedView:o}),0,qf(a,o))}}finally{w(r)}}else if(a!==void 0){let e=yp(a,0);e!==void 0&&(e[8]=t)}}var og=class{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-10}};function sg(e){return e}function cg(e,t){return t}var lg=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}};function F(e,t,n,r,i,a,o,s,c,l,u,d,f){vd(`NgControlFlow`);let p=D(),m=No(),h=c!==void 0,g=D(),_=new lg(h,s?o.bind(g[15][8]):o);g[27+e]=_,zh(p,m,e+1,t,n,r,i,uo(m.consts,a),256),h&&zh(p,m,e+2,c,l,u,d,uo(m.consts,f),512)}var ug=class extends Qh{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-10}at(e){return this.getLView(e)[8].$implicit}attach(e,t){let n=t[6];this.needsIndexUpdate||=e!==this.length,bp(this.lContainer,t,e,qf(this.templateTNode,n)),fg(this.lContainer,e)}detach(e){return this.needsIndexUpdate||=e!==this.length-1,pg(this.lContainer,e),mg(this.lContainer,e)}create(e,t){let n=Lp(this.lContainer,this.templateTNode.tView.ssrId);return Kf(this.hostLView,this.templateTNode,new og(this.lContainer,t,e),{dehydratedView:n})}destroy(e){Kd(e[1],e)}updateValue(e,t){this.getLView(e)[8].$implicit=t}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e0){let e=n[9];kd(e,r),Xu.delete(n[19]),r.detachedLeaveAnimationFns=void 0}}function pg(e,t){if(e.length<=10)return;let n=e[10+t],r=n?n[26]:void 0;r&&r.leave&&r.leave.size>0&&(r.detachedLeaveAnimationFns=[])}function mg(e,t){return Sp(e,t)}function hg(e,t){return yp(e,t)}function gg(e,t){return io(e,t)}function L(e,t,n){let r=D();return qp(r,Ko(),t)&&(No(),Of(fs(),r,e,t,r[11],n)),L}function _g(e,t,n,r,i){Vf(t,e,n,i?`class`:`style`,r)}function R(e,t,n,r){let i=D(),a=i[1],o=e+27,s=a.firstCreatePass?Sm(o,i,2,t,Pf,ko(),n,r):a.data[o];if(Ja(s)){let n=i[10].tracingService;if(n&&n.componentCreate){let o=a.data[s.directiveStart+s.componentOffset];return n.componentCreate(Hp(o),()=>(vg(e,t,i,s,r),R))}}return vg(e,t,i,s,r),R}function vg(e,t,n,r,i){if(Rf(r,n,e,t,yg),Ya(r)){let e=n[1];wf(e,n,r),$l(e,r,n)}i!=null&&Tf(n,r)}function z(){let e=No(),t=zf(Po());return e.firstCreatePass&&Cm(e,t),jo(t)&&Mo(),Oo(),t.classesWithoutHost!=null&&zc(t)&&_g(e,t,D(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Bc(t)&&_g(e,t,D(),t.stylesWithoutHost,!1),z}function B(e,t,n,r){return R(e,t,n,r),z(),B}function V(e,t,n,r){let i=D(),a=i[1],o=e+27,s=a.firstCreatePass?wm(o,a,2,t,n,r):a.data[o];return Rf(s,i,e,t,yg),r!=null&&Tf(i,s),V}function H(){return jo(zf(Po()))&&Mo(),Oo(),H}function U(e,t,n,r){return V(e,t,n,r),H(),U}var yg=(e,t,n,r,i)=>(ys(!0),lu(t[11],r,gs()));function W(){return D()}function bg(e,t,n){let r=D();return qp(r,Ko(),t)&&(No(),kf(fs(),r,e,t,r[11],n)),bg}var xg=void 0;function Sg(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,``).length;return t===1&&n===0?1:5}var Cg=[`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`]],xg,[[`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`]],xg,[[`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}`,xg,xg,xg],[`.`,`,`,`;`,`%`,`+`,`-`,`E`,`×`,`‰`,`∞`,`NaN`,`:`],[`#,##0.###`,`#,##0%`,`¤#,##0.00`,`#E0`],`USD`,`$`,`US Dollar`,{},`ltr`,Sg],wg=Object.create(null);function Tg(e){let t=Og(e),n=Eg(t);if(n)return n;let r=t.split(`-`)[0];if(n=Eg(r),n)return n;if(r===`en`)return Cg;throw new T(701,!1)}function Eg(e){if(!(e in wg)){let t=Hi.ng&&Hi.ng.common&&Hi.ng.common.locales&&Hi.ng.common.locales[e];return t!==void 0&&(wg[e]=t),t}return wg[e]}var Dg={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};function Og(e){return e.toLowerCase().replace(/_/g,`-`)}var kg=`en-US`;function Ag(e){typeof e==`string`&&e.toLowerCase().replace(/_/g,`-`)}function G(e,t,n){let r=D(),i=No(),a=Po();return jg(i,r,r[11],a,e,t,n),G}function K(e,t,n){let r=D(),i=No(),a=Po();return(a.type&3||n)&&$p(a,i,r,n,r[11],e,t,Zp(a,r,t)),K}function jg(e,t,n,r,i,a,o){let s=!0,c=null;if((r.type&3||o)&&(c??=Zp(r,t,a),$p(r,e,t,o,n,i,a,c)&&(s=!1)),s){let e=r.outputs?.[i],n=r.hostDirectiveOutputs?.[i];if(n&&n.length)for(let e=0;e>17&32767}function Lg(e){return(e&2)==2}function Rg(e,t){return e&131071|t<<17}function zg(e){return e|2}function Bg(e){return(e&131068)>>2}function Vg(e,t){return e&-131069|t<<2}function Hg(e){return(e&1)==1}function Ug(e){return e|1}function Wg(e,t,n,r,i,a){let o=a?t.classBindings:t.styleBindings,s=Ig(o),c=Bg(o);e[r]=n;let l=!1,u;if(Array.isArray(n)){let e=n;u=e[1],(u===null||sa(e,u)>0)&&(l=!0)}else u=n;if(i){if(c!==0){let t=Ig(e[s+1]);e[r+1]=Fg(t,s),t!==0&&(e[t+1]=Vg(e[t+1],r)),e[s+1]=Rg(e[s+1],r)}else e[r+1]=Fg(s,0),s!==0&&(e[s+1]=Vg(e[s+1],r)),s=r}else e[r+1]=Fg(c,0),s===0?s=r:e[c+1]=Vg(e[c+1],r),c=r;l&&(e[r+1]=zg(e[r+1])),Kg(e,u,r,!0),Kg(e,u,r,!1),Gg(t,u,e,r,a),o=Fg(s,c),a?t.classBindings=o:t.styleBindings=o}function Gg(e,t,n,r,i){let a=i?e.residualClasses:e.residualStyles;a!=null&&typeof t==`string`&&sa(a,t)>=0&&(n[r+1]=Ug(n[r+1]))}function Kg(e,t,n,r){let i=e[n+1],a=t===null,o=r?Ig(i):Bg(i),s=!1;for(;o!==0&&(s===!1||a);){let n=e[o],i=e[o+1];qg(n,t)&&(s=!0,e[o+1]=r?Ug(i):zg(i)),o=r?Ig(i):Bg(i)}s&&(e[n+1]=r?zg(i):Ug(i))}function qg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t==`string`?sa(e,t)>=0:!1}var Jg={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Yg(e){return e.substring(Jg.key,Jg.keyEnd)}function Xg(e){return Qg(e),Zg(e,$g(e,0,Jg.textEnd))}function Zg(e,t){let n=Jg.textEnd;return n===t?-1:(t=Jg.keyEnd=e_(e,Jg.key=t,n),$g(e,t,n))}function Qg(e){Jg.key=0,Jg.keyEnd=0,Jg.value=0,Jg.valueEnd=0,Jg.textEnd=e.length}function $g(e,t,n){for(;t32;)t++;return t}function t_(e,t,n){return i_(e,t,n,!1),t_}function J(e,t){return i_(e,t,null,!0),J}function n_(e){a_(h_,r_,e,!0)}function r_(e,t){for(let n=Xg(t);n>=0;n=Zg(t,n))aa(e,Yg(t),!0)}function i_(e,t,n,r){let i=D(),a=No(),o=qo(2);if(a.firstUpdatePass&&s_(a,e,o,r),t!==Fu&&qp(i,o,t)){let s=a.data[us()];__(a,s,i,i[11],e,i[o+1]=b_(t,n),r,o)}}function a_(e,t,n,r){let i=No(),a=qo(2);i.firstUpdatePass&&s_(i,null,a,r);let o=D();if(n!==Fu&&qp(o,a,n)){let s=i.data[us()];if(x_(s,r)&&!o_(i,a)){let e=r?s.classesWithoutHost:s.stylesWithoutHost;e!==null&&(n=oi(e,n||``)),_g(i,s,o,n,r)}else g_(i,s,o,o[11],o[a+1],o[a+1]=m_(e,t,n),r,a)}}function o_(e,t){return t>=e.expandoStartIndex}function s_(e,t,n,r){let i=e.data;if(i[n+1]===null){let a=i[us()],o=o_(e,n);x_(a,r)&&t===null&&!o&&(t=!1),t=c_(i,a,t,r),Wg(i,a,t,n,o,r)}}function c_(e,t,n,r){let i=Qo(e),a=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=f_(null,e,t,n,r),n=p_(n,t.attrs,r),a=null);else{let o=t.directiveStylingLast;if(o===-1||e[o]!==i){if(n=f_(i,e,t,n,r),a===null){let n=l_(e,t,r);n!==void 0&&Array.isArray(n)&&(n=f_(null,e,t,n[1],r),n=p_(n,t.attrs,r),u_(e,t,r,n))}else a=d_(e,t,r)}}return a!==void 0&&(r?t.residualClasses=a:t.residualStyles=a),n}function l_(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Bg(r)!==0)return e[Ig(r)]}function u_(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Ig(i)]=r}function d_(e,t,n){let r,i=t.directiveEnd;for(let a=1+t.directiveStylingLast;a0;){let t=e[i],a=Array.isArray(t),c=a?t[1]:t,l=c===null,u=n[i+1];u===Fu&&(u=l?ua:void 0);let d=l?oa(u,r):c===r?u:void 0;if(a&&!y_(d)&&(d=oa(t,r)),y_(d)&&(s=d,o))return s;let f=e[i+1];i=o?Ig(f):Bg(f)}if(t!==null){let e=a?t.residualClasses:t.residualStyles;e!=null&&(s=oa(e,r))}return s}function y_(e){return e!==void 0}function b_(e,t){return e==null||e===``||(typeof t==`string`?e=nu(e)+t:typeof e==`object`&&(e=ai(nu(e)))),e}function x_(e,t){return!!(e.flags&(t?8:16))}function Y(e,t=``){let n=D(),r=No(),i=e+27,a=r.firstCreatePass?kp(r,i,1,t,null):r.data[i],o=S_(r,n,a,t);n[i]=o,vs()&&tf(r,n,o,a),Lo(a,!1)}var S_=(e,t,n,r)=>(ys(!0),su(t[11],r));function C_(e,t,n,r=``){return qp(e,Ko(),n)?t+Ai(n)+r:Fu}function w_(e,t,n,r,i,a=``){let o=Jp(e,Wo(),n,i);return qo(2),o?t+Ai(n)+r+Ai(i)+a:Fu}function T_(e,t,n,r,i,a,o,s=``){let c=Yp(e,Wo(),n,i,o);return qo(3),c?t+Ai(n)+r+Ai(i)+a+Ai(o)+s:Fu}function E_(e,t,n,r,i,a,o,s,c,l=``){let u=Xp(e,Wo(),n,i,o,c);return qo(4),u?t+Ai(n)+r+Ai(i)+a+Ai(o)+s+Ai(c)+l:Fu}function X(e){return Z(``,e),X}function Z(e,t,n){let r=D(),i=C_(r,e,t,n);return i!==Fu&&A_(r,us(),i),Z}function D_(e,t,n,r,i){let a=D(),o=w_(a,e,t,n,r,i);return o!==Fu&&A_(a,us(),o),D_}function O_(e,t,n,r,i,a,o){let s=D(),c=T_(s,e,t,n,r,i,a,o);return c!==Fu&&A_(s,us(),c),O_}function k_(e,t,n,r,i,a,o,s,c){let l=D(),u=E_(l,e,t,n,r,i,a,o,s,c);return u!==Fu&&A_(l,us(),u),k_}function A_(e,t,n){let r=no(t,e);cu(e[11],r,n)}function j_(e,t,n){yc(t)&&(t=t());let r=D();return qp(r,Ko(),t)&&(No(),Of(fs(),r,e,t,r[11],n)),j_}function M_(e,t){let n=yc(e);return n&&e.set(t),n}function N_(e,t){let n=D(),r=No(),i=Po();return jg(r,n,n[11],i,e,t),N_}var P_={};function F_(e){vd(`NgLet`);let t=No(),n=D(),r=e+27;return Lo(kp(t,r,128,null,null),!1),oo(t,n,r,P_),F_}function I_(e){return oo(No(),D(),us(),e),e}function L_(e){let t=ao(Bo(),27+e);if(t===P_)throw new T(314,!1);return t}function R_(e,t){let n=Uo()+e,r=D();return r[n]===Fu?Gp(r,n,t()):Kp(r,n)}function z_(e,t){let n=e[t];return n===Fu?void 0:n}function B_(e,t,n,r,i,a){let o=t+n;return qp(e,o,i)?Gp(e,o+1,a?r.call(a,i):r(i)):z_(e,o+1)}function V_(e,t,n,r,i,a,o){let s=t+n;return Jp(e,s,i,a)?Gp(e,s+2,o?r.call(o,i,a):r(i,a)):z_(e,s+2)}function H_(e,t){let n=No(),r,i=e+27;n.firstCreatePass?(r=U_(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let a=r.factory||(r.factory=Qi(r.type,!0)),o=Bi(sm);try{let e=Zc(!1),t=a();return Zc(e),oo(n,D(),i,t),t}finally{Bi(o)}}function U_(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function W_(e,t,n){let r=e+27,i=D(),a=ao(i,r);return K_(i,r)?B_(i,Uo(),t,a.transform,n,a):a.transform(n)}function G_(e,t,n,r){let i=e+27,a=D(),o=ao(a,i);return K_(a,i)?V_(a,Uo(),t,o.transform,n,r,o):o.transform(n,r)}function K_(e,t){return e[1].data[t].pure}var q_=(()=>{class e{applicationErrorHandler=E(Ys);appRef=E(Kh);taskService=E(Os);ngZone=E(Is);zonelessEnabled=E(oc);tracing=E(gd,{optional:!0});zoneIsDefined=typeof Zone<`u`&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new hr;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ps):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(E(sc,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:case 2:this.appRef.dirtyFlags|=2;break;case 3:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:this.appRef.dirtyFlags|=2;break;case 12:this.appRef.dirtyFlags|=16;break;case 13:this.appRef.dirtyFlags|=2;break;case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let t=this.useMicrotaskScheduler?Ms:js;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>t(()=>this.tick())):this.ngZone.runOutsideAngular(()=>t(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(`isAngularZone_ID`+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 e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(e){this.applicationErrorHandler(e)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static ɵfac=function(t){return new(t||e)};static ɵprov=Sl({token:e,factory:e.ɵfac})}return e})();function J_(){return[{provide:ac,useExisting:q_},{provide:Is,useClass:Ws},{provide:oc,useValue:!0}]}function Y_(){return typeof $localize<`u`&&$localize.locale||`en-US`}var X_=new vi(``,{factory:()=>E(X_,{optional:!0,skipSelf:!0})||Y_()}),Z_=class{destroyed=!1;listeners=null;errorHandler=E(Js,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=E(ws);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new T(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let t=this.listeners?this.listeners.indexOf(e):-1;t>-1&&(this.isEmitting?(this.hasNullListeners=!0,this.listeners[t]=null):this.listeners.splice(t,1))}}}emit(e){if(this.destroyed){console.warn(ri(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let t=w(null);try{for(let t of this.listeners)try{t!==null&&t(e)}catch(e){this.errorHandler?.handleError(e)}}finally{this.hasNullListeners&&(this.hasNullListeners=!1,this.listeners&&Q_(this.listeners)),w(t),this.isEmitting=!1}}};function Q_(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--}function Q(e,t){return Mn(e,t?.equal)}function $_(e){return ar(e)}(class e extends Error{_brand;constructor(e){super(e)}static IDLE=new e(`IDLE`);static LOADING=new e(`LOADING`)});var ev=e=>e;function tv(e,t){return typeof e==`function`?nv(tr(e,ev,t?.equal),t?.debugName,t?.set):nv(tr(e.source,e.computation,e.equal),e.debugName,e.set)}function nv(e,t,n){let r=e[dn],i=e;if(n!==void 0){let t=e=>nr(r,e);i.set=e=>n(e,t),i.update=r=>n(r($_(e)),t)}else i.set=e=>nr(r,e),i.update=e=>rr(r,e);return i.asReadonly=Zs.bind(e),i}function rv(e,t){let n=Object.create(xc);n.value=e,n.transformFn=t?.transform;function r(){if(mn(n),n.value===bc)throw new T(-950,null);return n.value}return r[dn]=n,r}function iv(e){return new Z_}function av(e,t){return rv(e,t)}function ov(e){return rv(bc,e)}var $=(av.required=ov,av);function sv(e,t){let n=Object.create(xc),r=new Z_;n.value=e;function i(){return mn(n),cv(n.value),n.value}return i[dn]=n,i.asReadonly=Zs.bind(i),i.set=e=>{n.equal(n.value,e)||(Wn(n,e),r.emit(e))},i.update=e=>{cv(n.value),i.set(e(n.value))},i.subscribe=r.subscribe.bind(r),i.destroyRef=r.destroyRef,i}function cv(e){if(e===bc)throw new T(952,!1)}function lv(e,t){return sv(e,t)}function uv(e){return sv(bc,e)}var dv=(lv.required=uv,lv);function fv(e,t){return _h(t)}function pv(e,t){return vh(t)}var mv=(fv.required=pv,fv),hv=new vi(``),gv=new vi(``);function _v(e){return!e.moduleRef}function vv(e){let t=_v(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Is);return n.run(()=>{_v(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Ys),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),_v(e)){let n=()=>t.destroy(),r=e.platformInjector.get(hv);r.add(n),t.onDestroy(()=>{i.unsubscribe(),r.delete(n)})}else{let t=()=>e.moduleRef.destroy(),n=e.platformInjector.get(hv);n.add(t),e.moduleRef.onDestroy(()=>{Jh(e.allPlatformModules,e.moduleRef),i.unsubscribe(),n.delete(t)})}return bv(r,n,()=>{let n=t.get(Os),r=n.add(),i=t.get(Lh);return i.runInitializers(),i.donePromise.then(()=>{if(Ag(t.get(X_,kg)||`en-US`),!t.get(gv,!0))return _v(e)?t.get(Kh):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(_v(e)){let n=t.get(Kh);return e.rootComponent!==void 0&&n.bootstrap(e.rootComponent),n}return yv?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>void n.remove(r))})})}var yv;function bv(e,t,n){try{let r=n();return xh(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e(n)),n}):r}catch(n){throw t.runOutsideAngular(()=>e(n)),n}}var xv=null;function Sv(e=[],t){return Ss.create({name:t,providers:[{provide:Ta,useValue:`platform`},{provide:hv,useValue:new Set([()=>xv=null])},...e]})}function Cv(e=[]){if(xv)return xv;let t=Sv(e);return xv=t,Wh(),wv(t),t}function wv(e){let t=e.get(ec,null);Ha(e,()=>{t?.forEach(e=>e())})}function Tv(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;Oc(Cc.BootstrapApplicationStart);try{let e=i?.injector??Cv(r);return vv({r3Injector:new wh({providers:[J_(),Xs,...n||[]],parent:e,debugName:``,runEnvironmentInitializers:!1}).injector,platformInjector:e,rootComponent:t})}catch(e){return Promise.reject(e)}finally{Oc(Cc.BootstrapApplicationEnd)}}var Ev=Symbol(`NOT_SET`),Dv=new Set,Ov={...Kn,kind:`afterRenderEffectPhase`,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:Ev,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(mn(r),r.value),r.signal[dn]=r,r.registerCleanupFn=e=>(r.cleanup??=new Set).add(e),this.nodes[e]=r,this.hooks[e]=e=>r.phaseFn(e)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();super.destroy();for(let e of this.nodes)if(e)try{for(let t of e.cleanup??Dv)t()}finally{En(e)}}};function Av(e,t){let n=t?.injector??E(Ss),r=n.get(ac),i=n.get(yd),a=n.get(gd,null,{optional:!0});i.impl??=n.get(xd);let o=e;typeof o==`function`&&(o={mixedReadWrite:e});let s=n.get(rc,null,{optional:!0}),c=new kv(i.impl,[o.earlyRead,o.write,o.mixedReadWrite,o.read],s?.view,r,n,a?.snapshot(null));return i.impl.register(c),c}var jv=null;function Mv(){return jv}function Nv(e){jv??=e}var Pv=class{},Fv=(function(e){return e[e.Format=0]=`Format`,e[e.Standalone=1]=`Standalone`,e})(Fv||{}),Iv=(function(e){return e[e.Narrow=0]=`Narrow`,e[e.Abbreviated=1]=`Abbreviated`,e[e.Wide=2]=`Wide`,e[e.Short=3]=`Short`,e})(Iv||{}),Lv=(function(e){return e[e.Short=0]=`Short`,e[e.Medium=1]=`Medium`,e[e.Long=2]=`Long`,e[e.Full=3]=`Full`,e})(Lv||{}),Rv={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 zv(e){return Tg(e)[Dg.LocaleId]}function Bv(e,t,n){let r=Tg(e);return Zv(Zv([r[Dg.DayPeriodsFormat],r[Dg.DayPeriodsStandalone]],t),n)}function Vv(e,t,n){let r=Tg(e);return Zv(Zv([r[Dg.DaysFormat],r[Dg.DaysStandalone]],t),n)}function Hv(e,t,n){let r=Tg(e);return Zv(Zv([r[Dg.MonthsFormat],r[Dg.MonthsStandalone]],t),n)}function Uv(e,t){let n=Tg(e)[Dg.Eras];return Zv(n,t)}function Wv(e,t){return Zv(Tg(e)[Dg.DateFormat],t)}function Gv(e,t){return Zv(Tg(e)[Dg.TimeFormat],t)}function Kv(e,t){let n=Tg(e)[Dg.DateTimeFormat];return Zv(n,t)}function qv(e,t){let n=Tg(e),r=n[Dg.NumberSymbols][t];if(r===void 0){if(t===Rv.CurrencyDecimal)return n[Dg.NumberSymbols][Rv.Decimal];if(t===Rv.CurrencyGroup)return n[Dg.NumberSymbols][Rv.Group]}return r}function Jv(e){if(!e[Dg.ExtraData])throw new T(2303,!1)}function Yv(e){let t=Tg(e);return Jv(t),(t[Dg.ExtraData][2]||[]).map(e=>typeof e==`string`?Qv(e):[Qv(e[0]),Qv(e[1])])}function Xv(e,t,n){let r=Tg(e);return Jv(r),Zv(Zv([r[Dg.ExtraData][0],r[Dg.ExtraData][1]],t)||[],n)||[]}function Zv(e,t){for(let n=t;n>-1;n--)if(e[n]!==void 0)return e[n];throw new T(2304,!1)}function Qv(e){let[t,n]=e.split(`:`);return{hours:+t,minutes:+n}}var $v=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ey=Object.create(null),ty=/((?:[^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]*)/,ny=256;function ry(e,t,n,r){let i=Ey(e);iy(t),t=oy(n,t)||t;let a=[],o;for(;t;)if(o=ty.exec(t),o){a=a.concat(o.slice(1));let e=a.pop();if(!e)break;t=e}else{a.push(t);break}let s=i.getTimezoneOffset();r&&(s=Cy(r,s),i=Ty(i,r));let c=``;return a.forEach(e=>{let t=Sy(e);c+=t?t(i,n,s):e===`''`?`'`:e.replace(/(^'|'$)/g,``).replace(/''/g,`'`)}),c}function iy(e){if(e.length>ny)throw new T(2300,!1)}function ay(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function oy(e,t){let n=zv(e);if(ey[n]??=Object.create(null),ey[n][t])return ey[n][t];let r=``;switch(t){case`shortDate`:r=Wv(e,Lv.Short);break;case`mediumDate`:r=Wv(e,Lv.Medium);break;case`longDate`:r=Wv(e,Lv.Long);break;case`fullDate`:r=Wv(e,Lv.Full);break;case`shortTime`:r=Gv(e,Lv.Short);break;case`mediumTime`:r=Gv(e,Lv.Medium);break;case`longTime`:r=Gv(e,Lv.Long);break;case`fullTime`:r=Gv(e,Lv.Full);break;case`short`:let t=oy(e,`shortTime`),n=oy(e,`shortDate`);r=sy(Kv(e,Lv.Short),[t,n]);break;case`medium`:let i=oy(e,`mediumTime`),a=oy(e,`mediumDate`);r=sy(Kv(e,Lv.Medium),[i,a]);break;case`long`:let o=oy(e,`longTime`),s=oy(e,`longDate`);r=sy(Kv(e,Lv.Long),[o,s]);break;case`full`:let c=oy(e,`fullTime`),l=oy(e,`fullDate`);r=sy(Kv(e,Lv.Full),[c,l])}return r&&(ey[n][t]=r),r}function sy(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return Object.hasOwn(t,n)?t[n]:e})),e}function cy(e,t,n=`-`,r,i){let a=``;(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,a=n));let o=String(e);for(;o.length0||s>-n)&&(s+=n),e===3)s===0&&n===-12&&(s=12);else if(e===6)return ly(s,t);let c=qv(o,Rv.MinusSign);return cy(s,t,c,r,i)}}function dy(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 T(2301,!1)}}function fy(e,t,n=Fv.Format,r=!1){return function(i,a){return py(i,a,e,t,n,r)}}function py(e,t,n,r,i,a){switch(n){case 2:return Hv(t,i,r)[e.getMonth()];case 1:return Vv(t,i,r)[e.getDay()];case 0:let n=e.getHours(),o=e.getMinutes();if(a){let e=Yv(t),a=Xv(t,i,r),s=e.findIndex(e=>{if(Array.isArray(e)){let[t,r]=e,i=n>=t.hours&&o>=t.minutes,a=n0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?`+`:``)+cy(o,2,a)+cy(Math.abs(i%60),2,a);case 1:return`GMT`+(i>=0?`+`:``)+cy(o,1,a);case 2:return`GMT`+(i>=0?`+`:``)+cy(o,2,a)+`:`+cy(Math.abs(i%60),2,a);case 3:return r===0?`Z`:(i>=0?`+`:``)+cy(o,2,a)+`:`+cy(Math.abs(i%60),2,a);default:throw new T(2310,!1)}}}var hy=0,gy=4;function _y(e){let t=ay(e,hy,1).getDay();return ay(e,0,1+(t<=gy?gy:11)-t)}function vy(e){let t=e.getDay(),n=t===0?-3:gy-t;return ay(e.getFullYear(),e.getMonth(),e.getDate()+n)}function yy(e,t=!1){return function(n,r){let i;if(t){let e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();i=1+Math.floor((t+e)/7)}else{let e=vy(n),t=_y(e.getFullYear()),r=e.getTime()-t.getTime();i=1+Math.round(r/6048e5)}return cy(i,e,qv(r,Rv.MinusSign))}}function by(e,t=!1){return function(n,r){return cy(vy(n).getFullYear(),e,qv(r,Rv.MinusSign),t)}}var xy=Object.create(null);function Sy(e){if(xy[e])return xy[e];let t;switch(e){case`G`:case`GG`:case`GGG`:t=fy(3,Iv.Abbreviated);break;case`GGGG`:t=fy(3,Iv.Wide);break;case`GGGGG`:t=fy(3,Iv.Narrow);break;case`y`:t=uy(0,1,0,!1,!0);break;case`yy`:t=uy(0,2,0,!0,!0);break;case`yyy`:t=uy(0,3,0,!1,!0);break;case`yyyy`:t=uy(0,4,0,!1,!0);break;case`Y`:t=by(1);break;case`YY`:t=by(2,!0);break;case`YYY`:t=by(3);break;case`YYYY`:t=by(4);break;case`M`:case`L`:t=uy(1,1,1);break;case`MM`:case`LL`:t=uy(1,2,1);break;case`MMM`:t=fy(2,Iv.Abbreviated);break;case`MMMM`:t=fy(2,Iv.Wide);break;case`MMMMM`:t=fy(2,Iv.Narrow);break;case`LLL`:t=fy(2,Iv.Abbreviated,Fv.Standalone);break;case`LLLL`:t=fy(2,Iv.Wide,Fv.Standalone);break;case`LLLLL`:t=fy(2,Iv.Narrow,Fv.Standalone);break;case`w`:t=yy(1);break;case`ww`:t=yy(2);break;case`W`:t=yy(1,!0);break;case`d`:t=uy(2,1);break;case`dd`:t=uy(2,2);break;case`c`:case`cc`:t=uy(7,1);break;case`ccc`:t=fy(1,Iv.Abbreviated,Fv.Standalone);break;case`cccc`:t=fy(1,Iv.Wide,Fv.Standalone);break;case`ccccc`:t=fy(1,Iv.Narrow,Fv.Standalone);break;case`cccccc`:t=fy(1,Iv.Short,Fv.Standalone);break;case`E`:case`EE`:case`EEE`:t=fy(1,Iv.Abbreviated);break;case`EEEE`:t=fy(1,Iv.Wide);break;case`EEEEE`:t=fy(1,Iv.Narrow);break;case`EEEEEE`:t=fy(1,Iv.Short);break;case`a`:case`aa`:case`aaa`:t=fy(0,Iv.Abbreviated);break;case`aaaa`:t=fy(0,Iv.Wide);break;case`aaaaa`:t=fy(0,Iv.Narrow);break;case`b`:case`bb`:case`bbb`:t=fy(0,Iv.Abbreviated,Fv.Standalone,!0);break;case`bbbb`:t=fy(0,Iv.Wide,Fv.Standalone,!0);break;case`bbbbb`:t=fy(0,Iv.Narrow,Fv.Standalone,!0);break;case`B`:case`BB`:case`BBB`:t=fy(0,Iv.Abbreviated,Fv.Format,!0);break;case`BBBB`:t=fy(0,Iv.Wide,Fv.Format,!0);break;case`BBBBB`:t=fy(0,Iv.Narrow,Fv.Format,!0);break;case`h`:t=uy(3,1,-12);break;case`hh`:t=uy(3,2,-12);break;case`H`:t=uy(3,1);break;case`HH`:t=uy(3,2);break;case`m`:t=uy(4,1);break;case`mm`:t=uy(4,2);break;case`s`:t=uy(5,1);break;case`ss`:t=uy(5,2);break;case`S`:t=uy(6,1);break;case`SS`:t=uy(6,2);break;case`SSS`:t=uy(6,3);break;case`Z`:case`ZZ`:case`ZZZ`:t=my(0);break;case`ZZZZZ`:t=my(3);break;case`O`:case`OO`:case`OOO`:case`z`:case`zz`:case`zzz`:t=my(1);break;case`OOOO`:case`ZZZZ`:case`zzzz`:t=my(2);break;default:return null}return xy[e]=t,t}function Cy(e,t){e=e.replace(/:/g,``);let n=Date.parse(`Jan 01, 1970 00:00:00 `+e)/6e4;return isNaN(n)?t:n}function wy(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Ty(e,t,n){let r=e.getTimezoneOffset();return wy(e,-1*(Cy(t,r)-r))}function Ey(e){if(Oy(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[t,n=1,r=1]=e.split(`-`).map(e=>+e);return ay(t,n-1,r)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match($v))return Dy(n)}let t=new Date(e);if(!Oy(t))throw new T(2311,!1);return t}function Dy(e){let t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,a=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-n,s=Number(e[5]||0)-r,c=Number(e[6]||0),l=Math.floor(parseFloat(`0.`+(e[7]||0))*1e3);return a.call(t,o,s,c,l),t}function Oy(e){return e instanceof Date&&!isNaN(e.valueOf())}function ky(e,t){return new T(2100,!1)}var Ay=`mediumDate`,jy=new vi(``),My=new vi(``),Ny=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(e,t,n){this.locale=e,this.defaultTimezone=t,this.defaultOptions=n}transform(t,n,r,i){if(t==null||t===``||t!==t)return null;try{let e=n??this.defaultOptions?.dateFormat??Ay,a=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return ry(t,e,i||this.locale,a)}catch(t){throw ky(e,t.message)}}static ɵfac=function(t){return new(t||e)(sm(X_,16),sm(jy,24),sm(My,24))};static ɵpipe=jh({name:`date`,type:e,pure:!0})}return e})(),Py=(()=>{class e{transform(e){return JSON.stringify(e,null,2)}static ɵfac=function(t){return new(t||e)};static ɵpipe=jh({name:`json`,type:e,pure:!1})}return e})();function Fy(e,t){t=encodeURIComponent(t);for(let n of e.split(`;`)){let e=n.indexOf(`=`),[r,i]=e==-1?[n,``]:[n.slice(0,e),n.slice(e+1)];if(r.trim()!==t)continue;let a=i;try{a=decodeURIComponent(i)}catch{}return a.length>1&&a[0]===`"`&&a[a.length-1]===`"`&&(a=a.slice(1,-1)),a}return null}var Iy=`browser`,Ly=class{_doc;constructor(e){this._doc=e}manager},Ry=(()=>{class e extends Ly{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n,r){return e.addEventListener(t,n,r),()=>this.removeEventListener(e,t,n,r)}removeEventListener(e,t,n,r){return e.removeEventListener(t,n,r)}static ɵfac=function(t){return new(t||e)(qi(Cs))};static ɵprov=di({token:e,factory:e.ɵfac})}return e})(),zy=new vi(``),By=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(e=>{e.manager=this});let n=e.filter(e=>!(e instanceof Ry));this._plugins=n.slice().reverse();let r=e.find(e=>e instanceof Ry);r&&this._plugins.push(r)}addEventListener(e,t,n,r){return this._findPluginFor(t).addEventListener(e,t,n,r)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(t=>t.supports(e)),!t)throw new T(-5101,!1);return this._eventNameToPlugin.set(e,t),t}static ɵfac=function(t){return new(t||e)(qi(zy),qi(Is))};static ɵprov=di({token:e,factory:e.ɵfac})}return e})(),Vy=`ng-app-id`;function Hy(e){for(let t of e)t.remove()}function Uy(e,t){let n=t.createElement(`style`);return n.textContent=e,n}function Wy(e,t,n,r){let i=e.head?.querySelectorAll(`style[${Vy}="${t}"],link[${Vy}="${t}"]`);if(!i||i.length===0)return!1;for(let e of i)e.removeAttribute(Vy),e instanceof HTMLLinkElement?r.set(e.href.slice(e.href.lastIndexOf(`/`)+1),{usage:0,elements:[e]}):e.textContent&&n.set(e.textContent,{usage:0,elements:[e]});return!0}function Gy(e,t){let n=t.createElement(`link`);return n.setAttribute(`rel`,`stylesheet`),n.setAttribute(`href`,e),n}var Ky=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,n,r={}){this.doc=e,this.appId=t,this.nonce=n,Wy(e,t,this.inline,this.external)&&this.hosts.add(e.head)}addStyles(e,t){for(let t of e)this.addUsage(t,this.inline,Uy);t?.forEach(e=>this.addUsage(e,this.external,Gy))}removeStyles(e,t){for(let t of e)this.removeUsage(t,this.inline);t?.forEach(e=>this.removeUsage(e,this.external))}addUsage(e,t,n){let r=t.get(e);r?r.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(t=>this.addElement(t,n(e,this.doc)))})}removeUsage(e,t){let n=t.get(e);n&&(n.usage--,n.usage<=0&&(Hy(n.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Hy(e);this.hosts.clear()}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[t,{elements:n}]of this.inline)n.push(this.addElement(e,Uy(t,this.doc)));for(let[t,{elements:n}]of this.external)n.push(this.addElement(e,Gy(t,this.doc)))}}removeHost(e){this.hosts.delete(e);for(let t of[...this.inline.values(),...this.external.values()]){let n=[];for(let r of t.elements)r.parentNode===e?r.remove():n.push(r);t.elements=n}}addElement(e,t){return this.nonce&&t.setAttribute(`nonce`,this.nonce),e.appendChild(t)}static ɵfac=function(t){return new(t||e)(qi(Cs),qi(Qs),qi(nc,8),qi(tc))};static ɵprov=di({token:e,factory:e.ɵfac})}return e})(),qy={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`},Jy=/%COMP%/g,Yy=`%COMP%`,Xy=`_nghost-${Yy}`,Zy=`_ngcontent-${Yy}`,Qy=!0,$y=new vi(``,{factory:()=>Qy}),eb=new vi(``);function tb(e){return Zy.replace(Jy,e)}function nb(e){return Xy.replace(Jy,e)}function rb(e,t){return t.map(t=>t.replace(Jy,e))}var ib=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(e,t,n,r,i,a,o=null,s=null,c=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.removeStylesOnCompDestroy=r,this.doc=i,this.ngZone=a,this.nonce=o,this.tracingService=s,this.cssVarNamespace=c??``,this.defaultRenderer=new ab(e,i,a,this.tracingService,this.cssVarNamespace)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let n=this.getOrCreateRenderer(e,t);return n instanceof lb?n.applyToHost(e):n instanceof cb&&n.applyStyles(),n}getOrCreateRenderer(e,t){let n=this.rendererByCompId,r=n.get(t.id);if(!r){let i=this.doc,a=this.ngZone,o=this.eventManager,s=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,l=this.tracingService;switch(t.encapsulation){case eu.Emulated:r=new lb(o,s,t,this.appId,c,i,a,l,this.cssVarNamespace);break;case eu.ShadowDom:return new sb(o,e,t,i,a,this.nonce,l,this.cssVarNamespace,s);case eu.ExperimentalIsolatedShadowDom:return new sb(o,e,t,i,a,this.nonce,l,this.cssVarNamespace);default:r=new cb(o,s,t,c,i,a,l,this.cssVarNamespace)}n.set(t.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static ɵfac=function(t){return new(t||e)(qi(By),qi(am),qi(Qs),qi($y),qi(Cs),qi(Is),qi(nc),qi(gd,8),qi(eb,8))};static ɵprov=di({token:e,factory:e.ɵfac})}return e})(),ab=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i=``){this.eventManager=e,this.doc=t,this.ngZone=n,this.tracingService=r,this.cssVarNamespace=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(qy[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(ob(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){if(e){let r=ob(e)?e.content:e;if(n!=null&&n.parentNode!==r)throw new T(-5106,!1);r.insertBefore(t,n)}}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e==`string`?this.doc.querySelector(e):e;if(!n)throw new T(-5104,!1);return t||(n.textContent=``),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+`:`+t;let i=qy[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=qy[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){let i=t.startsWith(`--`);i&&(t=t.replace(`%NS%`,this.cssVarNamespace)),i||r&(Iu.DashCase|Iu.Important)?e.style.setProperty(t,n,r&Iu.Important?`important`:``):e.style[t]=n}removeStyle(e,t,n){let r=t.startsWith(`--`);r&&(t=t.replace(`%NS%`,this.cssVarNamespace)),r||n&Iu.DashCase?e.style.removeProperty(t):e.style[t]=``}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e==`string`&&(e=Mv().getGlobalEventTarget(this.doc,e),!e))throw new T(-5102,!1);let i=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t===`__ngUnwrap__`)return e;e(t)===!1&&t.preventDefault()}}};function ob(e){return e.tagName===`TEMPLATE`&&e.content!==void 0}var sb=class extends ab{hostEl;sharedStylesHost;shadowRoot;constructor(e,t,n,r,i,a,o,s,c){super(e,r,i,o,s),this.hostEl=t,this.sharedStylesHost=c,this.shadowRoot=t.attachShadow({mode:`open`}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=n.styles;l=rb(n.id,l).map(e=>e.replace(/%NS%/g,s));for(let e of l){let t=document.createElement(`style`);a&&t.setAttribute(`nonce`,a),t.textContent=e,this.shadowRoot.appendChild(t)}let u=n.getExternalStyles?.();if(u)for(let e of u){let t=Gy(e,r);a&&t.setAttribute(`nonce`,a),this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},cb=class extends ab{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,a,o,s,c){super(e,i,a,o,s),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let l=n.styles,u=c?rb(c,l):l;this.styles=u.map(e=>e.replace(/%NS%/g,s)),this.styleUrls=n.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Xu.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},lb=class extends cb{contentAttr;hostAttr;constructor(e,t,n,r,i,a,o,s,c){let l=r+`-`+n.id;super(e,t,n,i,a,o,s,c,l),this.contentAttr=tb(l),this.hostAttr=nb(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,``)}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,``),n}},ub=class e extends Pv{supportsDOMEvents=!0;static makeCurrent(){Nv(new e)}onAndCancel(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.remove()}createElement(e,t){return t||=this.getDefaultDocument(),t.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument(`fakeTitle`)}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return t===`window`?window:t===`document`?e:t===`body`?e.body:null}getBaseHref(e){let t=fb();return t==null?null:pb(t)}resetBaseElement(){db=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Fy(document.cookie,e)}},db=null;function fb(){return db||=document.head.querySelector(`base`),db?db.getAttribute(`href`):null}function pb(e){return new URL(e,document.baseURI).pathname}var mb=[`alt`,`control`,`meta`,`shift`],hb={"\b":`Backspace`," ":`Tab`,"":`Delete`,"\x1B":`Escape`,Del:`Delete`,Esc:`Escape`,Left:`ArrowLeft`,Right:`ArrowRight`,Up:`ArrowUp`,Down:`ArrowDown`,Menu:`ContextMenu`,Scroll:`ScrollLock`,Win:`OS`},gb={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},_b=(()=>{class e extends Ly{constructor(e){super(e)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,n,r,i){let a=e.parseEventName(n),o=e.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Mv().onAndCancel(t,a.domEventName,o,i))}static parseEventName(t){let n=t.toLowerCase().split(`.`),r=n.shift();if(n.length===0||r!==`keydown`&&r!==`keyup`)return null;let i=e._normalizeKey(n.pop()),a=``,o=n.indexOf(`code`);if(o>-1&&(n.splice(o,1),a=`code.`),mb.forEach(e=>{let t=n.indexOf(e);t>-1&&(n.splice(t,1),a+=e+`.`)}),a+=i,n.length!=0||i.length===0)return null;let s={};return s.domEventName=r,s.fullKey=a,s}static matchEventFullKeyCode(e,t){let n=hb[e.key]||e.key,r=``;return t.indexOf(`code.`)>-1&&(n=e.code,r=`code.`),n==null||!n?!1:(n=n.toLowerCase(),n===` `?n=`space`:n===`.`&&(n=`dot`),mb.forEach(t=>{if(t!==n){let n=gb[t];n(e)&&(r+=t+`.`)}}),r+=n,r===t)}static eventCallback(t,n,r){return i=>{e.matchEventFullKeyCode(i,t)&&r.runGuarded(()=>n(i))}}static _normalizeKey(e){return e===`esc`?`escape`:e}static ɵfac=function(t){return new(t||e)(qi(Cs))};static ɵprov=di({token:e,factory:e.ɵfac})}return e})();async function vb(e,t,n){return Tv({rootComponent:e,...yb(t,n)})}function yb(e,t){return{platformRef:t?.platformRef,appProviders:[...wb,...e?.providers??[]],platformProviders:Cb}}function bb(){ub.makeCurrent()}function xb(){return new Js}function Sb(){return Hl(document),document}var Cb=[{provide:tc,useValue:Iy},{provide:ec,useValue:bb,multi:!0},{provide:Cs,useFactory:Sb}],wb=[{provide:Ta,useValue:`root`},{provide:Js,useFactory:xb},{provide:zy,useClass:Ry,multi:!0},{provide:zy,useClass:_b,multi:!0},ib,{provide:am,useClass:Ky},{provide:Ky,useExisting:am},By,{provide:Bp,useExisting:ib},[]];function Tb(e,t){let n=`\x1B[${e}m`,r=`\x1B[${t}m`;return((e,...t)=>{if(Array.isArray(e)&&`raw`in e){let i=e,a=``;for(let e=0;e{let r=new kb({code:i,why:Db(a.why,e),fix:Db(a.fix,e),docs:o,cause:e.cause,sources:e.sources,data:Db(a.data,e)},s);for(let e of t)e(r,n);return r};n[i]=s}return n}function Mb(e){return t=>{let n=`${e.bold(e.red(`[${t.name}]`))} ${t.message}`,r=[];return t.fix&&r.push(`${e.dim(`fix:`)} ${t.fix}`),t.sources?.length&&r.push(`${e.dim(`sources:`)} ${t.sources.join(`, `)}`),t.docs&&r.push(`${e.dim(`see:`)} ${e.cyan(t.docs)}`),r.length===0?n:[n,...r.map((t,n)=>`${e.dim(n{e=n,t=r}),resolve:e,reject:t}}var Rb=Math.random.bind(Math),zb=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Bb(e=21){let t=``,n=e;for(;n--;)t+=zb[Rb()*64|0];return t}var Vb=6e4,Hb=e=>e,Ub=Hb,{clearTimeout:Wb,setTimeout:Gb}=globalThis;function Kb(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=Hb,deserialize:s=Ub,resolver:c,bind:l=`rpc`,timeout:u=Vb,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:`q`};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=Lb(),_=Bb();s.i=_;let ee;async function v(n=s){return u>=0&&(ee=Gb(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof ee==`object`&&(ee=ee.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:ee,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,v,d):await v()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{Wb(ee),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:v,get $closed(){return f},get $meta(){return t.meta},$close:ee,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.hasOwn(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function ee(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(te)}function v(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function te(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===`q`){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:`s`,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:`s`,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(Wb(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(te),h}function qb(e,t){return t.safety?t.safety:e===`static`||e===`query`||e==null?`read`:`action`}var Jb=Object.freeze({type:`object`,additionalProperties:!0});function Yb(e){let t=e[`~standard`];if(t.jsonSchema)try{return t.jsonSchema.input({target:`draft-2020-12`})}catch{return Jb}return Jb}function Xb(e){if(!e||e.length===0)return{type:`object`,properties:{}};let t={},n=[];for(let r=0;rn[`arg${t}`]);if(`arg0`in n){let e=[];for(;`arg${e.length}`in n;)e.push(n[`arg${e.length}`]);return e}return Object.keys(n).length===0?[]:void 0}function Qb(e,t){return Zb(e,t)??[e]}function $b(e){return typeof e==`string`?`'${e}'`:new rx().serialize(e)}var ex=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,tx=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[ex.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function nx(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;ia?-1:1)}return e.length===t.length?r:e.lengththis.compare(e[0],t[0])),r=`${e}{`;for(let e=0;ethis.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})(),ix=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],ax=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],ox=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,sx=[],cx=class{_data=new lx;_hash=new lx([...ix]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)sx[n]=e[t+n]|0;else{let e=sx[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=sx[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;sx[n]=t+sx[n-7]+i+sx[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+ax[n]+sx[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=lx.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function ux(e){return new cx().finalize(e).toBase64()}function dx(e){return ux($b(e))}function fx(e){return dx(e)}function px(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}var mx=/^[\w+.-]{2,}:\/\//;function hx(e){return e.endsWith(`/`)?e:`${e}/`}function gx(e){return(e.endsWith(`/`)?e.slice(0,-1):e)||`/`}function _x(e,...t){let n=e;for(let e of t)e&&e!==`/`&&(n=n?hx(n)+e.replace(/^\.?\//,``):e);return n}function vx(e,t){if(!t||t===`/`||mx.test(e))return e;let n=gx(t);return e.startsWith(n)?e:_x(n,e)}function yx(e,t){let n=e.match(mx);return t+(n?e.slice(n[0].length):e)}var bx=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function xx(e=21){let t=``,n=e;for(;n--;)t+=bx[Math.random()*64|0];return t}var Sx=Symbol.for(`immer-nothing`),Cx=Symbol.for(`immer-draftable`),wx=Symbol.for(`immer-state`),Tx=[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},`This object has been frozen and should not be mutated`,function(e){return`Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? `+e},`An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.`,`Immer forbids circular references`,"The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},`Object.defineProperty() cannot be used on an Immer draft`,`Object.setPrototypeOf() cannot be used on an Immer draft`,`Immer only supports deleting array indices`,`Immer only supports setting array indices and the 'length' property`,function(e){return`'original' expects a draft, got: ${e}`}];function Ex(e,...t){{let n=Tx[e],r=Xx(n)?n.apply(null,t):n;throw Error(`[Immer] ${r}`)}}var Dx=Object,Ox=Dx.getPrototypeOf,kx=`constructor`,Ax=`prototype`,jx=`configurable`,Mx=`enumerable`,Nx=`writable`,Px=`value`,Fx=e=>!!e&&!!e[wx];function Ix(e){return e?zx(e)||Kx(e)||!!e[Cx]||!!e[kx]?.[Cx]||qx(e)||Jx(e):!1}var Lx=Dx[Ax][kx].toString(),Rx=new WeakMap;function zx(e){if(!e||!Yx(e))return!1;let t=Ox(e);if(t===null||t===Dx[Ax])return!0;let n=Dx.hasOwnProperty.call(t,kx)&&t[kx];if(n===Object)return!0;if(!Xx(n))return!1;let r=Rx.get(n);return r===void 0&&(r=Function.toString.call(n),Rx.set(n,r)),r===Lx}function Bx(e,t,n=!0){Vx(e)===0?(n?Reflect.ownKeys(e):Dx.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Vx(e){let t=e[wx];return t?t.type_:Kx(e)?1:qx(e)?2:Jx(e)?3:0}var Hx=(e,t,n=Vx(e))=>n===2?e.has(t):Dx[Ax].hasOwnProperty.call(e,t),Ux=(e,t,n=Vx(e))=>n===2?e.get(t):e[t],Wx=(e,t,n,r=Vx(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Gx(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Kx=Array.isArray,qx=e=>e instanceof Map,Jx=e=>e instanceof Set,Yx=e=>typeof e==`object`,Xx=e=>typeof e==`function`,Zx=e=>typeof e==`boolean`;function Qx(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var $x=e=>Yx(e)?e?.[wx]:null,eS=e=>e.copy_||e.base_,tS=e=>e.modified_?e.copy_:e.base_;function nS(e,t){if(qx(e))return new Map(e);if(Jx(e))return new Set(e);if(Kx(e))return Array[Ax].slice.call(e);let n=zx(e);if(t===!0||t===`class_only`&&!n){let t=Dx.getOwnPropertyDescriptors(e);delete t[wx];let n=Reflect.ownKeys(t);for(let r=0;r1&&Dx.defineProperties(e,{set:aS,add:aS,clear:aS,delete:aS}),Dx.freeze(e),t&&Bx(e,(e,t)=>{rS(t,!0)},!1),e)}function iS(){Ex(2)}var aS={[Px]:iS};function oS(e){return e===null||!Yx(e)||Dx.isFrozen(e)}var sS=`MapSet`,cS=`Patches`,lS=`ArrayMethods`,uS={};function dS(e){let t=uS[e];return t||Ex(0,e),t}var fS=e=>!!uS[e];function pS(e,t){uS[e]||(uS[e]=t)}var mS,hS=()=>mS,gS=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:fS(sS)?dS(sS):void 0,arrayMethodsPlugin_:fS(lS)?dS(lS):void 0});function _S(e,t){t&&(e.patchPlugin_=dS(cS),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function vS(e){yS(e),e.drafts_.forEach(xS),e.drafts_=null}function yS(e){e===mS&&(mS=e.parent_)}var bS=e=>mS=gS(mS,e);function xS(e){let t=e[wx];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function SS(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[wx].modified_&&(vS(t),Ex(4)),Ix(e)&&(e=CS(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[wx].base_,e,t)}else e=CS(t,n);return wS(t,e,!0),vS(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Sx?void 0:e}function CS(e,t){if(oS(t))return t;let n=t[wx];if(!n)return MS(t,e.handledSet_,e);if(!ES(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);AS(n,e)}return n.copy_}function wS(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&rS(t,n)}function TS(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ES=(e,t)=>e.scope_===t,DS=[];function OS(e,t,n,r){let i=eS(e),a=e.type_;if(r!==void 0&&Ux(i,r,a)===t){Wx(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Bx(i,(e,n)=>{if(Fx(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??DS;for(let e of o)Wx(i,e,n,a)}function kS(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!ES(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=tS(i);OS(e,i.draft_??i,a,n),AS(i,r)})}function AS(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}TS(e)}}function jS(e,t,n){let{scope_:r}=e;if(Fx(n)){let i=n[wx];ES(i,r)&&i.callbacks_.push(function(){VS(e),OS(e,n,tS(i),t)})}else Ix(n)&&e.callbacks_.push(function(){let i=eS(e);e.type_===3?i.has(n)&&MS(n,r.handledSet_,r):Ux(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&MS(Ux(e.copy_,t,e.type_),r.handledSet_,r)})}function MS(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Fx(e)||t.has(e)||!Ix(e)||oS(e)?e:(t.add(e),Bx(e,(r,i)=>{if(Fx(i)){let t=i[wx];ES(t,n)&&(Wx(e,r,tS(t),e.type_),TS(t))}else Ix(i)&&MS(i,t,n)}),e)}function NS(e,t){let n=Kx(e),r={type_:+!!n,scope_:t?t.scope_:hS(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=PS;n&&(i=[r],a=FS);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var PS={get(e,t){if(t===wx)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=eS(e);if(!Hx(i,t,e.type_))return RS(e,i,t);let a=i[t];if(e.finalized_||!Ix(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Qx(t))return a;if(a===IS(e.base_,t)||LS(e,t,a)){VS(e);let n=e.type_===1?+t:t,r=US(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in eS(e)},ownKeys(e){return Reflect.ownKeys(eS(e))},set(e,t,n){let r=zS(eS(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=IS(eS(e),t),i=r?.[wx];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Gx(n,r)&&(n!==void 0||Hx(e.base_,t,e.type_)))return!0;VS(e),BS(e)}return e.copy_[t]===n&&(n!==void 0||Hx(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),jS(e,t,n),!0)},deleteProperty(e,t){return VS(e),IS(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),BS(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=eS(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Nx]:!0,[jx]:e.type_!==1||t!==`length`,[Mx]:r[Mx],[Px]:n[t]}},defineProperty(){Ex(11)},getPrototypeOf(e){return Ox(e.base_)},setPrototypeOf(){Ex(12)}},FS={};for(let e in PS){let t=PS[e];FS[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}FS.deleteProperty=function(e,t){return isNaN(parseInt(t))&&Ex(13),FS.set.call(this,e,t,void 0)},FS.set=function(e,t,n){return t!==`length`&&isNaN(parseInt(t))&&Ex(14),PS.set.call(this,e[0],t,n,e[0])};function IS(e,t){let n=e[wx];return(n?eS(n):e)[t]}function LS(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!Ix(n)||n[wx]?!1:e.baseRefs_.has(n)}function RS(e,t,n){let r=zS(t,n);return r?Px in r?r[Px]:r.get?.call(e.draft_):void 0}function zS(e,t){if(!(t in e))return;let n=Ox(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Ox(n)}}function BS(e){e.modified_||(e.modified_=!0,e.parent_&&BS(e.parent_))}function VS(e){e.copy_||=(e.assigned_=new Map,nS(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var HS=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Xx(e)&&!Xx(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Xx(t)||Ex(6),n!==void 0&&!Xx(n)&&Ex(7);let r;if(Ix(e)){let i=bS(this),a=US(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?vS(i):yS(i)}return _S(i,n),SS(r,i)}if(!e||!Yx(e)){if(r=t(e),r===void 0&&(r=e),r===Sx&&(r=void 0),this.autoFreeze_&&rS(r,!0),n){let t=[],i=[];dS(cS).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}Ex(1,e)},this.produceWithPatches=(e,t)=>{if(Xx(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Zx(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Zx(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Zx(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Ix(e)||Ex(8),Fx(e)&&(e=WS(e));let t=bS(this),n=US(t,e,void 0);return n[wx].isManual_=!0,yS(t),n}finishDraft(e,t){let n=e&&e[wx];(!n||!n.isManual_)&&Ex(9);let{scope_:r}=n;return _S(r,t),SS(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=dS(cS).applyPatches_;return Fx(e)?r(e,t):this.produce(e,e=>r(e,t))}};function US(e,t,n,r){let[i,a]=qx(t)?dS(sS).proxyMap_(t,n):Jx(t)?dS(sS).proxySet_(t,n):NS(t,n);return(n?.scope_??hS()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?kS(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function WS(e){return Fx(e)||Ex(10,e),GS(e)}function GS(e){if(!Ix(e)||oS(e))return e;let t=e[wx],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=nS(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=nS(e,!0);return Bx(n,(e,t)=>{Wx(n,e,GS(t))},r),t&&(t.finalized_=!1),n}function KS(){Tx.push(`Sets cannot have "replace" patches.`,function(e){return`Unsupported patch operation: `+e},function(e){return`Cannot apply patch, path doesn't resolve: `+e},`Patching reserved attributes like __proto__, prototype and constructor is not allowed`);function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=$x(Ux(e,n.key_)),i=Ux(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||Hx(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e{let u=Ux(o,e,c),f=Ux(s,e,c),p=l?Hx(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===Sx?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e[e,u(t)]));if(Jx(e))return new Set(Array.from(e).map(u));let t=Object.create(Ox(e));for(let n in e)t[n]=u(e[n]);return Hx(e,Cx)&&(t[Cx]=e[Cx]),t}function d(e){return Fx(e)?u(e):e}pS(cS,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}globalThis.Iterator?.from;var qS=new HS,JS=qS.produce,YS=qS.produceWithPatches.bind(qS),XS=qS.applyPatches.bind(qS),ZS=1e3;function QS(e,t){if(e.add(t),e.size>ZS){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function $S(e){let{enablePatches:t=!1}=e;t&&KS();let n=px(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=xx())=>{i.has(t)||(KS(),r=XS(r,e),QS(i,t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=xx())=>{if(!i.has(a)){if(QS(i,a),t){let[t,i]=YS(r,e);if(t===r)return;r=t,n.emit(`updated`,r,i,a)}else{let t=JS(r,e);if(t===r)return;r=t,n.emit(`updated`,r,void 0,a)}}},syncIds:i}}var eC=typeof self==`object`?self:globalThis,tC=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),nC=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function rC(e,t){let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o,r=tC.has(e)?eC[e]:void 0;return n(new(r??eC.Error)(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}if(typeof a==`string`&&nC.has(a))return n(new eC[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function iC(e){return rC(new Map,e)(0)}var aC=``,{toString:oC}={},{keys:sC}=Object;function cC(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=oC.call(e).slice(8,-1);switch(n){case`Array`:return[1,aC];case`Object`:return[2,aC];case`Date`:return[3,aC];case`RegExp`:return[4,aC];case`Map`:return[5,aC];case`Set`:return[6,aC];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function lC([e,t]){return e===0&&(t===`function`||t===`symbol`)}function uC(e,t,n,r){let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=cC(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize ${s}`);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of sC(r))(e||!lC(cC(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(lC(cC(n))||lC(cC(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!lC(cC(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function dC(e,t={}){let n=[];return uC(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:fC,stringify:pC}=JSON,mC={json:!0,lossy:!0};function hC(e){return iC(fC(e))}function gC(e){return pC(dC(e,mC))}function _C(e){return iC(e)}function vC(e){return gC(e)}function yC(e){return hC(e)}var bC=256,xC=class extends Error{name=`StreamClosedError`};function SC(e={}){let t=e.id??xx(),n=Math.max(0,e.replayWindow??0),r=px(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new xC(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&(a.length-n===1?a.shift():a.splice(0,a.length-n))),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=wC(e);i.abort(e),r.emit(`end`,t)}function u(){o||(o=!0,i.signal.aborted||i.abort(`stream closed`),r.emit(`end`,void 0))}function d(e){o||i.signal.aborted||i.abort(e??`aborted`)}let f=new WritableStream({write(e){c(e)},close(){u()},abort(e){l(e)}});return{id:t,signal:i.signal,get closed(){return o},get lastSeq(){return s},write:c,error:l,close:u,abort:d,writable:f,events:r,buffer:a}}function CC(e={}){let t=e.id??xx(),n=Math.max(1,e.highWaterMark??bC),r=[],i=0,a=!1,o=!1,s,c,l,u;function d(){if(c){if(r.length>0){let e=r.shift(),t=c;c=void 0,t.resolve({value:e,done:!1});return}if(a){let e=c;if(c=void 0,s){let t=Error(s.message);t.name=s.name,e.reject(t)}else e.resolve({value:void 0,done:!0})}}}function f(){if(l){for(;r.length>0;){let e=r.shift();try{l.enqueue(e)}catch{break}}if(a&&l){try{if(s){let e=Error(s.message);e.name=s.name,l.error(e)}else l.close()}catch{}l=void 0}}}function p(t,s){if(!(a||o)&&!(t<=i)){if(i=t,r.push(s),r.length>n){let t=r.length-n;r.splice(0,t),e.onOverflow?.(t)}d(),u&&f()}}function m(e){a||(a=!0,s=e,d(),u&&f())}function h(){o||a||(o=!0,e.onCancel?.(),m(void 0))}function g(){return u||(u=new ReadableStream({start(e){l=e,f()},cancel(){h()}}),u)}return{id:t,get cancelled(){return o},get done(){return a},get lastSeenSeq(){return i},get readable(){return g()},cancel:h,_push:p,_end:m,[Symbol.asyncIterator](){return{next(){if(r.length>0)return Promise.resolve({value:r.shift(),done:!1});if(a){if(s){let e=Error(s.message);return e.name=s.name,Promise.reject(e)}return Promise.resolve({value:void 0,done:!0})}return new Promise((e,t)=>{c={resolve:e,reject:t}})},return(){return h(),Promise.resolve({value:void 0,done:!0})}}}}}function wC(e){if(e instanceof Error)return{name:e.name||`Error`,message:e.message};if(typeof e==`string`)return{name:`Error`,message:e};try{return{name:`Error`,message:JSON.stringify(e)}}catch{return{name:`Error`,message:String(e)}}}var TC=128;function EC(e){return e.replace(/[^\w-]+/g,`_`).slice(0,TC)}var DC=`modulepreload`,OC=function(e,t){return new URL(e,t).href},kC={},AC=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=OC(t,n),t=s(t),t in kC)return;kC[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:DC,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},jC=`__connection.json`,MC=`__DEVFRAME_CONNECTION__`,NC=`x-birpc-session`,PC=`__rpc-dump/index.json`,FC=`devframe:services`,IC=`devframe_otp`,LC=`devframe_auth_token`;Nb.postMessage.remoteAssetsError;var RC=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>fx(e))}updateOptions(e){this.options={...this.options,...e}}cached(e,t){let n=this.cacheMap.get(e);if(n)return n.get(this.keySerializer(t))}has(e,t){return this.cacheMap.get(e)?.has(this.keySerializer(t))??!1}apply(e,t){let n=this.cacheMap.get(e.m)||new Map;n.set(this.keySerializer(e.a),t),this.cacheMap.set(e.m,n)}validate(e){return this.options.functions.includes(e)}clear(e){e?this.cacheMap.delete(e):this.cacheMap.clear()}},zC=Ib({docsBase:`https://devfra.me/errors`,codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is \`false\`; MCP requires JSON-serializable data.`,fix:"Remove `jsonSerializable: false`, or remove `agent` to keep it RPC-only."},DF0020:{why:e=>`RPC function "${e.name}" declares \`jsonSerializable: true\` but the value at "${e.path}" is a ${e.type}.`,fix:"Either drop `jsonSerializable: true` (falls back to structured-clone) or change the value to a JSON-safe shape."},DF0021:{why:e=>`RPC function "${e.name}" is already registered`,fix:"Use the `force` parameter to overwrite an existing registration."},DF0022:{why:e=>`RPC function "${e.name}" is not registered. Use register() to add new functions.`},DF0023:{why:e=>`RPC function "${e.name}" is not registered`},DF0024:{why:e=>`Either handler or setup function must be provided for RPC function "${e.name}"`},DF0025:{why:e=>`Function "${e.name}" not found in dump store`},DF0026:{why:e=>`No dump match for "${e.name}" with args: ${e.args}`},DF0027:{why:e=>`Function "${e.name}" with type "${e.type}" cannot have dump configuration. Only "static" and "query" types support dumps.`},DF0028:{why:e=>`Function "${e.name}" with type "${e.type}" cannot use \`snapshot: true\`. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.`,fix:"Remove `snapshot: true`, or change the function type to `query`."},DF0043:{why:e=>`RPC function "${e.name}" received an invalid argument at position ${e.index}: ${e.issues}`,fix:"Pass a value that satisfies the `args` schema declared for this function."},DF0044:{why:e=>`RPC function "${e.name}" returned a value that failed its \`returns\` schema: ${e.issues}`,fix:"Make the handler return a value that satisfies the `returns` schema, or relax the schema."}}});function BC(e){if(e.agent&&e.jsonSerializable===!1)throw zC.DF0019({name:e.name});e.agent&&!e.jsonSerializable&&(e.jsonSerializable=!0)}async function VC(e,t){let n=e[`~standard`].validate(t);return n instanceof Promise?await n:n}function HC(e){return e.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `)}async function UC(e,t,n){let r=n.slice();if(!t||t.length===0)return r;for(let r=0;r{n.get(t)===r&&n.delete(t)}),n.set(t,r)),await r}if(!e.__promise){let n=Promise.resolve(e.setup(t));n.catch(()=>{e.__promise===n&&(e.__promise=void 0)}),e.__promise=n}return await e.__promise}async function KC(e,t){let n=e.handler;if(!n){let r=await GC(e,t);if(!r.handler)throw zC.DF0024({name:e.name});n=r.handler}let r=e.args,i=e.returns;if(!r&&!i)return n;let a=n;return async(...t)=>{let n=await UC(e.name,r,t),o=await a(...n);return await WC(e.name,i,o)}}var qC=class{context;definitions=new Map;functions;_onChanged=[];constructor(e){this.context=e;let t=this.definitions,n=this;this.functions=new Proxy({},{get(e,r){let i=t.get(r);if(i)return KC(i,n.context)},has(e,n){return t.has(n)},getOwnPropertyDescriptor(e,n){return{value:t.get(n)?.handler,configurable:!0,enumerable:!0}},ownKeys(){return Array.from(t.keys())}})}register(e,t=!1){if(this.definitions.has(e.name)&&!t)throw zC.DF0021({name:e.name});BC(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}update(e,t=!1){if(!this.definitions.has(e.name)&&!t)throw zC.DF0022({name:e.name});BC(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}onChanged(e){return this._onChanged.push(e),()=>{let t=this._onChanged.indexOf(e);t!==-1&&this._onChanged.splice(t,1)}}async getHandler(e){return await KC(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw zC.DF0023({name:String(e)});return{args:t.args,returns:t.returns}}has(e){return this.definitions.has(e)}get(e){return this.definitions.get(e)}list(){return Array.from(this.definitions.keys())}};function JC(e,t=``){return JSON.stringify(e,function(e,n){let r=this,i=r==null?n:r[e];if(i===void 0){if(Array.isArray(r))throw XC(t,`undefined`,r,e);return n}return i!==null&&YC(i,r,e,t),n})}function YC(e,t,n,r){if(typeof e==`bigint`)throw XC(r,`BigInt`,t,n);if(typeof e!=`object`)return;if(e instanceof Map)throw XC(r,`Map`,t,n);if(e instanceof Set)throw XC(r,`Set`,t,n);if(e instanceof Date)throw XC(r,`Date`,t,n);if(Array.isArray(e))return;let i=Object.getPrototypeOf(e);if(i!==null&&i!==Object.prototype)throw XC(r,e.constructor?.name??`class instance`,t,n)}function XC(e,t,n,r){let i=ZC(n,r);return zC.DF0020({name:e||``,type:t,path:i})}function ZC(e,t){return Array.isArray(e)?`[${t}]`:t===``?``:t}var QC=`__DEVFRAME_CONNECTION_META__`,$C=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function ew(e){let t=[()=>window?.[e],()=>globalThis?.[e],()=>parent.window?.[e]];for(let e of t)try{let t=e();if(t)return t}catch{}}function tw(){return ew(MC)}function nw(){return ew(QC)}function rw(e){if(e)return e;try{let e=localStorage.getItem($C);if(e)return e}catch{}return ew($C)}function iw(e){globalThis[MC]=e,globalThis[QC]={...e.connectionMeta,baseUrl:e.metaBaseUrl},e.authToken&&aw(e.authToken)}function aw(e){try{localStorage.setItem($C,e)}catch{}globalThis[$C]=e;let t=tw();t&&(globalThis[MC]={...t,authToken:e})}function ow(e){let t=vx(jC,e);try{return new URL(t,globalThis.location?.href).href}catch{return t}}function sw(e,t){return t&&t!==e.authToken?{...e,authToken:t}:e}function cw(){let e=tw();if(e)return sw(e,rw()??e.authToken??e.connectionMeta.authToken);let t=nw();if(t)return{connectionMeta:t,metaBaseUrl:t.baseUrl??ow(`./`),authToken:rw(t.authToken)}}async function lw(e={}){if(e.connection){let t=sw(e.connection,rw(e.authToken??e.connection.authToken??e.connection.connectionMeta.authToken));return iw(t),t}let t=Array.isArray(e.baseURL)?e.baseURL:[e.baseURL??`./`];if(e.connectionMeta){let n={connectionMeta:e.connectionMeta,metaBaseUrl:ow(t[0]??`./`),authToken:rw(e.authToken??e.connectionMeta.authToken)};return iw(n),n}let n=cw();if(n){let t=sw(n,rw(e.authToken??n.authToken??n.connectionMeta.authToken));return iw(t),t}let r=[];for(let n of t){let t=vx(jC,n),i=ow(n);try{let n=await fetch(t);if(!n.ok)throw Error(`Failed to fetch connection meta from ${i}: ${n.status}`);let r=await n.json(),a=n.url||i,o={connectionMeta:r,metaBaseUrl:r.baseUrl?new URL(r.baseUrl,a).href:a,authToken:rw(e.authToken??r.authToken)};return iw(o),o}catch(e){r.push(e)}}throw Error(`Failed to get connection meta from ${t.join(`, `)}`,{cause:r})}var uw=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function dw(e=IC){try{let t=globalThis.location?.hash?.replace(/^#/,``)??``;return new URLSearchParams(t).get(e)||void 0}catch{return}}function fw(e){try{let t=new URL(globalThis.location.href),n=new URLSearchParams(t.hash.replace(/^#/,``));if(!n.has(e))return;n.delete(e),t.hash=n.toString(),globalThis.history?.replaceState(globalThis.history.state,``,t.href)}catch{}}function pw(e=IC){let t=dw(e);return t&&fw(e),t}async function mw(e,t={}){let n=pw(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function hw(e){let t={},n=new WeakMap,r,i=()=>(r??=e.sharedState.get(FC,{initialValue:{}}).then(e=>(t=e.value(),e.on(`updated`,e=>{t=e}),e)),r);return i(),{state:i,has:e=>e in t,keys:()=>Object.keys(t),get:r=>{let i=t[r];if(!i)return;let a=n.get(i);return a||(a={...i,rpc:e.scope(i.scope).rpc},n.set(i,a)),a}}}function gw(e){let t=new Map,n=new Map,r=new Map,i=new Set,a=e.connectionMeta.backend===`static`;function o(e,t){let n=r.get(e);return n&&typeof n==`object`&&!Array.isArray(n)&&typeof t==`object`&&!Array.isArray(t)?{...n,...t}:t}e.client.register({name:Nb.broadcast.clientStateUpdated,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.mutate(()=>o(e,n),r)}}),e.client.register({name:Nb.broadcast.clientStatePatch,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.patch(n,r)}});function s(t,n){let r=[];return r.push(n.on(`updated`,(n,r,i)=>{a||(r?e.callEvent(`devframe:rpc:server-state:patch`,t,r,i):e.callEvent(`devframe:rpc:server-state:set`,t,n,i))})),()=>{for(let e of r)e()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(e){return i.add(e),()=>{i.delete(e)}},delete(e){let i=n.get(e);n.delete(e);let a=t.delete(e);return r.delete(e),i?.(),a},get:async(c,l)=>{if(l?.initialValue!==void 0&&r.set(c,l.initialValue),t.has(c))return t.get(c);let u=$S({initialValue:l?.initialValue,enablePatches:!1});async function d(){if(a||e.callEvent(`devframe:rpc:server-state:subscribe`,c),l?.initialValue!==void 0){t.set(c,u);for(let e of i)e(c);return e.call(`devframe:rpc:server-state:get`,c).then(e=>{e!==void 0&&u.mutate(()=>o(c,e))}).catch(e=>{console.error(`Error getting server state`,e)}),n.set(c,s(c,u)),u}{let r=await e.call(`devframe:rpc:server-state:get`,c);u.mutate(()=>o(c,r)),t.set(c,u);for(let e of i)e(c);return n.set(c,s(c,u)),u}}return new Promise(t=>{if(e.isTrusted)d().then(t);else{t(u);let n=!1;e.events.on(Nb.client.isTrustedUpdated,e=>{e&&!n&&(n=!0,d())})}})}}}var _w=new Map;function vw(e=_w){let t=new Map;return{serialize:n=>{let r;return n.t===`q`?r=n.m:(r=t.get(n.i),t.delete(n.i)),!(n.t===`s`&&`e`in n)&&r&&e.get(r)?.jsonSerializable===!0?JC(n,r??``):`s:${vC(n)}`},deserialize:e=>{let n=e.startsWith(`s:`)?yC(e.slice(2)):JSON.parse(e);return n.t===`q`&&n.i&&n.m&&t.set(n.i,n.m),n}}}function yw(){}function bw(e){let t=e.search(/\n\n|\r\n\r\n/);if(!(t<0))return{frame:e.slice(0,t),rest:e.slice(t+(e[t]===`\r`?4:2))}}function xw(e){let t=`message`,n=[];for(let r of e.split(/\r?\n/))r.startsWith(`:`)||(r.startsWith(`event:`)?t=r.slice(6).trimStart():r.startsWith(`data:`)&&n.push(r.slice(5).replace(/^ /,``)));return{event:t,data:n}}function Sw(e){let{onConnected:t=yw,onError:n=yw,onDisconnected:r=yw,definitions:i,fetch:a=globalThis.fetch.bind(globalThis)}=e,o=e.url;e.authToken&&(o=`${o}${o.includes(`?`)?`&`:`?`}${LC}=${encodeURIComponent(e.authToken)}`);let s=vw(i),c=new AbortController,l=!1,u,d,f,p,m=new Promise((e,t)=>{f=e,p=t});m.catch(()=>{});function h(e){l||(l=!0,p(e),n(e),r())}function g(){l||(l=!0,p(Error(`Devframe SSE stream closed`)),r())}function _(e,n){if(e===`session`){f(n),t();return}u?.(n)}async function ee(e){let t=e.getReader();d=t;let n=new TextDecoder,r=``;for(;;){let{done:e,value:i}=await t.read();if(e)break;for(r+=n.decode(i,{stream:!0});;){let e=bw(r);if(!e)break;r=e.rest;let{event:t,data:n}=xw(e.frame);n.length>0&&_(t,n.join(` -`))}}g()}return(async()=>{try{let e=await a(o,{headers:{accept:`text/event-stream`},signal:c.signal});if(!e.ok||!e.body)throw Error(`Devframe SSE stream request failed: ${e.status}`);await ee(e.body)}catch(e){if(c.signal.aborted){g();return}h(e instanceof Error?e:Error(String(e)))}})(),{close:()=>{l=!0,c.abort(),d?.cancel().catch(()=>{})},on:e=>{u=e},post:async e=>{let t;try{t=await m}catch{return}if(l){n(Error(`Devframe SSE channel is closed; message dropped`));return}try{let n=await a(o,{method:`POST`,headers:{"content-type":`text/plain; charset=utf-8`,[NC]:t},body:e});if(n.status===200){let e=await n.text();e&&u?.(e);return}if(!n.ok)throw Error(`Devframe SSE POST failed: ${n.status}`)}catch(e){n(e instanceof Error?e:Error(String(e)))}},serialize:s.serialize,deserialize:s.deserialize}}function Cw(e,t){let{channel:n,rpcOptions:r={}}=t;return Kb(e,{...n,timeout:-1,...r,proxify:!1})}function ww(e){let{transport:t,authToken:n,connectionMeta:r,events:i,clientRpc:a,rpcOptions:o={},callTimeout:s=0}=e,c=!1,l=`connecting`,u=null,d=Promise.withResolvers();function f(e,t=null){if(t?u=t:e===`connected`&&(u=null),e===l)return;let n=l;l=e,i.emit(Nb.client.connectionStatus,e,n)}let p=new Set;function m(e){for(let t of[...p])t.reject(e)}function h(){return l===`disconnected`||l===`error`?new uw(`connection`,`[devframe] Not connected to the devframe server`,{cause:u??void 0}):l===`unauthorized`?new uw(`auth`,`[devframe] Not authorized by the devframe server`,{cause:u??void 0}):null}function g(e,t){return new Promise((n,r)=>{let a=!1,o,c={reject(e){a||(l(),i.emit(Nb.client.error,e,t),r(e))}};function l(){a=!0,p.delete(c),o&&clearTimeout(o)}p.add(c),s>0&&(o=setTimeout(()=>{c.reject(new uw(`timeout`,`[devframe] RPC call "${t}" timed out after ${s}ms`))},s)),e.then(e=>{a||(l(),n(e))},e=>{if(a)return;l();let n=e instanceof Error?e:Error(String(e));i.emit(Nb.client.error,n,t),r(n)})})}let _=new Map;for(let e of r.jsonSerializableMethods??[])_.set(e,{jsonSerializable:!0});let ee=e.createChannel({definitions:_,onError(e){f(`error`,e),i.emit(Nb.client.connectionError,e),m(new uw(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e}))},onDisconnected(){l!==`error`&&f(`disconnected`),m(new uw(`connection`,`[devframe] Disconnected from the devframe server`,{cause:u??void 0}))}}),v=Cw(a.functions,{channel:ee,rpcOptions:o});a.register({name:Nb.broadcast.authRevoked,type:`event`,handler:()=>{c=!1;let e=new uw(`auth`,`[devframe] The devframe server revoked this client's trust`);f(`unauthorized`,e),i.emit(Nb.client.connectionError,e),m(e),i.emit(Nb.client.isTrustedUpdated,!1)}});let te=n;async function ne(e){te=e;let t=await v.$call(`anonymous:devframe:auth`,{authToken:e,ua:navigator.userAgent,origin:location.origin});if(c=t.isTrusted,c)d.resolve(!0),f(`connected`);else{let e=new uw(`auth`,`[devframe] The devframe server refused this client's credentials`);f(`unauthorized`,e),i.emit(Nb.client.connectionError,e)}return i.emit(Nb.client.isTrustedUpdated,c),t.isTrusted}async function re(e){let t=(await v.$call(`anonymous:devframe:auth:exchange`,{code:e,ua:navigator.userAgent,origin:location.origin}))?.authToken??null;return t&&(te=t,c=!0,d.resolve(!0),f(`connected`),i.emit(Nb.client.isTrustedUpdated,!0)),t}async function ie(e={}){await v.$call(`anonymous:devframe:auth:request-code`,{ua:navigator.userAgent,origin:location.origin,...e.reissue?{reissue:!0}:{}})}async function ae(){return c?!0:ne(te??``)}async function oe(e=6e4){if(c&&d.resolve(!0),e<=0)return d.promise;let t;try{return await Promise.race([d.promise,new Promise((n,r)=>{t=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e)})]),c}finally{clearTimeout(t)}}return{transport:t,get isTrusted(){return c},get status(){return l},get connectionError(){return u},requestTrust:ae,requestTrustWithToken:ne,requestTrustWithCode:re,requestAuthCode:ie,ensureTrusted:oe,call:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(Nb.client.error,n,t),Promise.reject(n)):g(v.$call(...e),t)},callEvent:(...e)=>{let t=h();if(t){i.emit(Nb.client.error,t,String(e[0]));return}return v.$callEvent(...e)},callOptional:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(Nb.client.error,n,t),Promise.reject(n)):g(v.$callOptional(...e),t)},close:()=>{ee.close()}}}function Tw(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})();if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`;return new URL(e.path??`/`,`${r.protocol}//${t}`).href}return new URL(e.path??``,r).href}let i=e??``;return/^https?:\/\//i.test(i)?i:new URL(i,r).href}function Ew(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},sseOptions:s={},callTimeout:c=0}=e,l=Tw(n.sse,r??`./`,location);return ww({transport:`sse`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>Sw({url:l,authToken:t,definitions:e.definitions,...s,onConnected(){s.onConnected?.()},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(){e.onDisconnected(),s.onDisconnected?.()}})})}function Dw(e){let{name:t,message:n,cause:r,...i}=e,a=r instanceof Error?r:Ow(r)?Dw(r):r,o=a===void 0?Error(n):Error(n,{cause:a});return o.name=t,Object.assign(o,i),o}function Ow(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}function kw(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function Aw(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function jw(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function Mw(e){if(e.error)throw Dw(e.error);return e.output}function Nw(e){return e.some(e=>e!=null)}function Pw(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function Fw(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?_C(e):e}function a(e,t){return i(Pw(e),t)}async function o(e){n.has(e.path)||n.set(e.path,t(e.path).then(t=>a(t,e.serialization)));let r=await n.get(e.path);return jw(r)?Mw(r):r}async function s(e,n){return r.has(e)||r.set(e,t(e).then(e=>a(e,n))),await r.get(e)}async function c(t,n){if(!(t in e))throw Error(`[devframe-rpc] Function "${t}" not found in dump store`);let r=e[t];if(kw(r)){if(Nw(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(Aw(r)){let e=fx(n),i=r.records[e];if(i)return Mw(await s(i,r.serialization));if(r.fallback)return Mw(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!Nw(n))return r;throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}return{call:async(e,t)=>await c(e,t),callOptional:async(t,n)=>{if(t in e)return await c(t,n)},callEvent:async(e,t)=>{}}}async function Iw(e){let t=Fw(await e.fetchJsonFromBases(PC),e.fetchJsonFromBases);return{transport:`static`,isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,requestAuthCode:async()=>{},ensureTrusted:async()=>!0,call:(...e)=>t.call(e[0],e.slice(1)),callEvent:(...e)=>t.callEvent(e[0],e.slice(1)),callOptional:(...e)=>t.callOptional(e[0],e.slice(1)),close:()=>{}}}var Lw=``;function Rw(e,t){return`${e}${Lw}${t}`}function zw(e){let t=new Map,n=new Map;e.client.register({name:Nb.broadcast.streamingChunk,type:`event`,handler(e,n,r,i){t.get(Rw(e,n))?._push(r,i)}}),e.client.register({name:Nb.broadcast.streamingEnd,type:`event`,handler(e,n,r){let i=Rw(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:Nb.broadcast.streamingUploadCancel,type:`event`,handler(e,t){let r=Rw(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on(Nb.client.isTrustedUpdated,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(Lw);if(t<0)continue;let i=n.slice(0,t),a=n.slice(t+1);e.callEvent(`devframe:streaming:subscribe`,i,a,{afterSeq:r.lastSeenSeq})}});function r(n,r,i={}){let a=Rw(n,r),o=t.get(a);if(o)return o;let s=CC({id:r,highWaterMark:i.highWaterMark,onOverflow(e){console.warn(`[devframe] DF0029: Stream "${n}#${r}" dropped ${e} chunk(s) after exceeding the client high-water mark.`)},onCancel(){e.callEvent(`devframe:streaming:cancel`,n,r),t.delete(a)}});if(t.set(a,s),e.isTrusted)e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:0});else{let i=e.events.on(Nb.client.isTrustedUpdated,o=>{o&&(i(),t.has(a)&&!s.cancelled&&!s.done&&e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:s.lastSeenSeq}))})}return s}function i(t,r){let i=Rw(t,r),a=n.get(i);if(a)return a;let o=SC({id:r});return o.events.on(`chunk`,(n,i)=>{e.callEvent(`devframe:streaming:upload-chunk`,t,r,n,i)}),o.events.on(`end`,a=>{e.callEvent(`devframe:streaming:upload-end`,t,r,a),n.delete(i)}),n.set(i,o),o}return{subscribe:r,upload:i}}function Bw(){}var Vw=new Map;function Hw(e){let t=e.url;e.authToken&&(t=`${t}?${LC}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=Bw,onError:i=Bw,onDisconnected:a=Bw,definitions:o=Vw}=e;n.addEventListener(`open`,e=>{r(e)}),n.addEventListener(`error`,e=>{let t=e instanceof Error?e:Error(e.type);i(t)}),n.addEventListener(`close`,e=>{a(e)});let s=vw(o);return{close:()=>{n.close()},on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN){n.send(e);return}if(n.readyState===WebSocket.CONNECTING){let t=()=>{i(),n.readyState===WebSocket.OPEN&&n.send(e)},r=()=>i();function i(){n.removeEventListener(`open`,t),n.removeEventListener(`close`,r)}n.addEventListener(`open`,t),n.addEventListener(`close`,r);return}i(Error(`Devframe WebSocket is not open; message dropped`))},serialize:s.serialize,deserialize:s.deserialize}}function Uw(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})(),i=r.protocol===`https:`?`wss:`:`ws:`;if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`,n=new URL(e.path??`/`,`${i}//${t}`);return n.protocol=i,n.href}let t=new URL(e.path??``,r);return t.protocol=i,t.href}if(typeof e==`number`)return`${i}//${r.hostname}:${e}`;let a=e??``;if(/^wss?:\/\//i.test(a))return a;if(/^https?:\/\//i.test(a))return yx(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,r);return o.protocol=i,o.href}function Ww(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=Uw(n.websocket,r??`./`,location);return ww({transport:`websocket`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>Hw({url:l,authToken:t,definitions:e.definitions,...s,onConnected(e){s.onConnected?.(e)},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(t){e.onDisconnected(),s.onDisconnected?.(t)}})})}function Gw(e){return e.includes(`:`)}function Kw(e,t){return Gw(t)?t:`${e}:${t}`}function qw(e){return{async get(t){return(await e()).value()[t]},async set(t,n){(await e()).mutate(e=>{e[t]=n})},async delete(t){(await e()).mutate(e=>{delete e[t]})},async all(){return(await e()).value()},async onChange(t){return(await e()).on(`updated`,e=>t(e))}}}function Jw(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=e.sharedState.get(r,{initialValue:{}}),i}return qw(a)}function Yw(e,t){return{global:Jw(e,t,`global`),project:Jw(e,t,`project`)}}function Xw(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(Gw(n.name))throw Error(`[devframe] Scoped client RPC registration for namespace "${t}" received an already-namespaced function name "${n.name}". Pass a bare name without a ":" separator.`);e.client.register({...n,name:`${t}:${n.name}`})},call:((n,...r)=>e.call(Kw(t,n),...r)),callEvent:((n,...r)=>e.callEvent(Kw(t,n),...r)),callOptional:((n,...r)=>e.callOptional(Kw(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(Kw(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(Kw(t,n),r,i),upload:(n,r)=>e.streaming.upload(Kw(t,n),r)}},settings:Yw(e,t),scope:e.scope}}function Zw(){if(typeof document<`u`){let e=document.modelContext;if(e)return e}if(typeof navigator<`u`){let e=navigator.modelContext;if(e)return e}}function Qw(e,t={}){let n=t.modelContext??Zw();if(!n)return()=>{};let r=n,i=new Map,a=new Map;function o(t,n){let o=EC(t.name),s=a.get(o);if(s&&s!==t.name){console.warn(`[devframe] WebMCP tool name "${o}" (from "${t.name}") collides with "${s}"; keeping the first registration.`);return}let c=new AbortController,l=qb(t.type,n),u=r.registerTool({name:o,description:n.description,inputSchema:Xb(t.args),annotations:{title:n.title??t.name,readOnlyHint:l===`read`,destructiveHint:l===`destructive`},execute:n=>$w(t,e.context,n)},{signal:c.signal});u&&`then`in u&&u.then(()=>{},()=>{}),a.set(o,t.name),i.set(t.name,()=>{c.abort(),u&&`unregister`in u&&typeof u.unregister==`function`&&u.unregister(),a.delete(o)})}function s(t){let n=t?[t]:[...e.definitions.keys()];for(let t of n){i.get(t)?.(),i.delete(t);let n=e.definitions.get(t),r=n?.agent;n&&r&&o(n,r)}}s();let c=e.onChanged(e=>s(e));return()=>{c();for(let e of i.values())e();i.clear()}}async function $w(e,t,n){try{let r=Qb(n,e.args?.length);return{content:[{type:`text`,text:eT(await(await KC(e,t))(...r))}]}}catch(e){return{isError:!0,content:[{type:`text`,text:tT(e)}]}}}function eT(e){return e===void 0?`undefined`:typeof e==`string`?e:JSON.stringify(e,null,2)}function tT(e){if(!(e instanceof Error))return String(e);let t=e.cause instanceof Error?` (cause: ${e.cause.message})`:``;return`${e.name}: ${e.message}${t}`}function nT(e,t){if(t.backend===`static`)return`static`;let n=t.websocket!==void 0,r=t.sse!==void 0;if(e===`websocket`){if(!n)throw Error(`[devframe] transport: 'websocket' was requested, but this server does not advertise a WebSocket endpoint`);return`websocket`}if(e===`sse`){if(!r)throw Error(`[devframe] transport: 'sse' was requested, but this server does not advertise an SSE endpoint`);return`sse`}if(t.backend===`sse`&&r)return`sse`;if(n)return`websocket`;if(r)return`sse`;throw Error(`[devframe] This server advertises no RPC transport (backend "none"), so there is nothing to connect to. Enable the WebSocket or SSE endpoint on the server, or use its static/MCP surfaces instead.`)}async function rT(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=px(),a=Array.isArray(t)?t:[t],o=await lw(e),{connectionMeta:s,metaBaseUrl:c,authToken:l}=o,u=a[0]??`./`;try{u=new URL(`.`,c).href}catch{}let d=new RC({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),f={rpc:void 0},p=new qC(f),m=e.webmcp===!1?void 0:Qw(p),h,g=!1;async function _(e){let t=[u,...a.filter(e=>e!==u)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(vx(e,r)).then(t=>{if(!t.ok)throw Error(`Failed to fetch ${e} from ${r}: ${t.status}`);return t.json()})}catch(e){n.push(e)}throw Error(`Failed to load ${e} from ${t.join(`, `)}`,{cause:n})}let ee={authToken:l,connectionMeta:s,metaBaseUrl:c,events:i,clientRpc:p,callTimeout:e.callTimeout,rpcOptions:{...n,async onRequest(e,t,i){if(await n.onRequest?.call(this,e,t,i),r&&d?.validate(e.m)){if(d.has(e.m,e.a))return i(d.cached(e.m,e.a));let n=await t(e);d.apply(e,n)}else await t(e)}}},v=nT(e.transport??`auto`,s),te=v===`static`?await Iw({fetchJsonFromBases:_}):v===`sse`?Ew({...ee,sseOptions:e.sseOptions}):Ww({...ee,wsOptions:e.wsOptions}),ne;try{ne=new BroadcastChannel(`devframe-auth`)}catch{}let re,ie=!1;function ae(e){return((...t)=>ie||!re?e(...t):re.then(()=>e(...t)))}function oe(){g=!0;try{h?.(),m?.()}finally{try{ne?.close()}finally{te.close?.()}}}let se={events:i,get isTrusted(){return te.isTrusted},get status(){return te.status},get connectionError(){return te.connectionError},get transport(){return te.transport??v},get connection(){return o},connectionMeta:s,ensureTrusted:te.ensureTrusted,requestTrust:te.requestTrust,requestTrustWithToken:async e=>(aw(e),o={...o,authToken:e},te.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await te.requestTrustWithCode(e);if(!t)return!1;aw(t),o={...o,authToken:t};try{ne?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},requestAuthCode:e=>te.requestAuthCode(e),call:ae(te.call),callEvent:ae(te.callEvent),callOptional:ae(te.callOptional),client:p,sharedState:void 0,services:void 0,streaming:void 0,cacheManager:d,scope:void 0,close:oe};se.sharedState=gw(se),se.streaming=zw(se),se.services=hw(se);let ce=new Map;se.scope=(e=>{if(!e)return se;let t=ce.get(e);return t||(t=Xw(se,e),ce.set(e,t)),t}),f.rpc=se;function le(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function ue(){if(e.simpleAuth!==!1&&le()&&typeof globalThis.prompt==`function`)for(await se.requestAuthCode().catch(()=>{});!se.isTrusted;){let e=globalThis.prompt(`devframe: enter the authentication code shown in your terminal`);if(e==null)return;let t=e.trim();if(t&&await se.requestTrustWithCode(t))return}}async function de(){let t=await te.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await mw(se,{param:n}):!1;t||r||se.isTrusted||await ue()}return re=de().then(()=>{ie=!0},()=>{ie=!0}),s.mcp&&AC(async()=>{let{setupBrowserAgentRpcBridge:e}=await import(`./browser-agent-rpc-BXhoSh1z-CxaePWwp.js`);return{setupBrowserAgentRpcBridge:e}},[],import.meta.url).then(({setupBrowserAgentRpcBridge:e})=>{g||(h=e(se))}).catch(()=>{}),ne&&(ne.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&se.requestTrustWithToken(e.data.authToken)}),se}var iT=rT,aT=`ng-devtools-page-id`;function oT(){try{return new URLSearchParams(location.search).get(`pageId`)||(window.top===window?null:sessionStorage.getItem(aT)||null)}catch{return null}}function sT(e,t){e&1&&(ps(),U(0,`rect`,3)(1,`rect`,4)(2,`rect`,5)(3,`rect`,6))}function cT(e,t){e&1&&(ps(),U(0,`path`,7)(1,`path`,8)(2,`path`,9))}function lT(e,t){e&1&&(ps(),U(0,`circle`,10)(1,`path`,11)(2,`circle`,12))}function uT(e,t){e&1&&(ps(),U(0,`path`,1))}function dT(e,t){e&1&&(ps(),U(0,`path`,13)(1,`path`,14)(2,`path`,15)(3,`path`,16))}function fT(e,t){e&1&&(ps(),U(0,`ellipse`,17)(1,`path`,18)(2,`path`,19))}function pT(e,t){e&1&&(ps(),U(0,`rect`,20)(1,`path`,21)(2,`path`,22)(3,`path`,23))}function mT(e,t){e&1&&(ps(),U(0,`circle`,24)(1,`path`,25)(2,`path`,26))}function hT(e,t){e&1&&(ps(),U(0,`path`,27)(1,`path`,28)(2,`path`,29)(3,`path`,30)(4,`circle`,31))}function gT(e,t){e&1&&(ps(),U(0,`path`,2))}var _T=class e{name=$.required();static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-tab-icon`]],inputs:{name:[1,`name`]},decls:11,vars:1,consts:[[`viewBox`,`0 0 24 24`,`width`,`16`,`height`,`16`,`fill`,`none`,`stroke`,`currentColor`,`stroke-width`,`1.8`,`stroke-linecap`,`round`,`stroke-linejoin`,`round`,`aria-hidden`,`true`],[`d`,`M22 12h-4l-3 9L9 3l-3 9H2`],[`d`,`m8 3 4 8 5-5 5 15H2L8 3z`],[`x`,`3`,`y`,`3`,`width`,`7`,`height`,`9`,`rx`,`1.5`],[`x`,`14`,`y`,`3`,`width`,`7`,`height`,`5`,`rx`,`1.5`],[`x`,`14`,`y`,`12`,`width`,`7`,`height`,`9`,`rx`,`1.5`],[`x`,`3`,`y`,`16`,`width`,`7`,`height`,`5`,`rx`,`1.5`],[`d`,`M12 2 3 7l9 5 9-5-9-5Z`],[`d`,`m3 12 9 5 9-5`],[`d`,`m3 17 9 5 9-5`],[`cx`,`6`,`cy`,`19`,`r`,`3`],[`d`,`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`],[`cx`,`18`,`cy`,`5`,`r`,`3`],[`d`,`M12 22v-5`],[`d`,`M9 8V2`],[`d`,`M15 8V2`],[`d`,`M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z`],[`cx`,`12`,`cy`,`5`,`rx`,`9`,`ry`,`3`],[`d`,`M3 5v14a9 3 0 0 0 18 0V5`],[`d`,`M3 12a9 3 0 0 0 18 0`],[`x`,`3`,`y`,`4`,`width`,`18`,`height`,`16`,`rx`,`2`],[`d`,`M7 9h10`],[`d`,`M7 13h6`],[`d`,`M7 17h8`],[`cx`,`12`,`cy`,`12`,`r`,`9`],[`d`,`M3 12h18`],[`d`,`M12 3a14 14 0 0 1 0 18a14 14 0 0 1 0-18Z`],[`d`,`M4 7h10`],[`d`,`M4 17h6`],[`d`,`m14 13 4 4-4 4`],[`d`,`M10 17h8`],[`cx`,`18`,`cy`,`7`,`r`,`3`]],template:function(e,t){if(e&1&&(ps(),V(0,`svg`,0),N(1,sT,4,0)(2,cT,3,0)(3,lT,3,0)(4,uT,1,0,`:svg:path`,1)(5,dT,4,0)(6,fT,3,0)(7,pT,4,0)(8,mT,3,0)(9,hT,5,0)(10,gT,1,0,`:svg:path`,2),H()),e&2){let e;j(),P((e=t.name())===`dashboard`?1:e===`components`?2:e===`routes`?3:e===`signals`?4:e===`injectors`?5:e===`store`?6:e===`forms`?7:e===`network`?8:e===`pipes`?9:e===`analog`?10:-1)}},styles:[`[_nghost-%COMP%] { +`);return r>=0?n.slice(0,r):n}function oi(e,t){return e?t?`${e} ${t}`:e:t||``}var si=ii({__forward_ref__:ii});function ci(e){return e.__forward_ref__=ci,e}function li(e){return ui(e)?e():e}function ui(e){return typeof e==`function`&&Object.hasOwn(e,si)&&e.__forward_ref__===ci}function di(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function fi(e){return pi(e,gi)}function pi(e,t){return Object.hasOwn(e,t)&&e[t]||null}function mi(e){return(e?.[gi]??null)||null}function hi(e){return e&&Object.hasOwn(e,_i)?e[_i]:null}var gi=ii({ɵprov:ii}),_i=ii({ɵinj:ii}),vi=class{_desc;ngMetadataName=`InjectionToken`;ɵprov;constructor(e,t){this._desc=e,this.ɵprov=void 0,typeof t==`number`?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.ɵprov=di({token:this,providedIn:t.providedIn||`root`,factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function yi(e){return e&&!!e.ɵproviders}var bi=ii({ɵcmp:ii}),xi=ii({ɵdir:ii}),Si=ii({ɵpipe:ii}),Ci=ii({ɵfac:ii}),wi=ii({__NG_ELEMENT_ID__:ii}),Ti=ii({__NG_ENV_ID__:ii});function Ei(e){return ki(e,`@Component`),e[bi]||null}function Di(e){return ki(e,`@Directive`),e[xi]||null}function Oi(e){return ki(e,`@Pipe`),e[Si]||null}function ki(e,t){if(e==null)throw new T(-919,!1)}function Ai(e){return typeof e==`string`?e:e==null?``:String(e)}var ji=ii({ngErrorCode:ii}),Mi=ii({ngErrorMessage:ii}),Ni=ii({ngTokenPath:ii});function Pi(e,t){return Ii(``,-200,t)}function Fi(e,t){throw new T(-201,!1)}function Ii(e,t,n){let r=new T(t,e);return r[ji]=t,r[Mi]=e,n&&(r[Ni]=n),r}function Li(e){return e[ji]}var Ri;function zi(){return Ri}function Bi(e){let t=Ri;return Ri=e,t}function Vi(e,t,n){let r=fi(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;Fi(e,``)}var Hi=globalThis,Ui={},Wi=`__NG_DI_FLAG__`,Gi=class{injector;constructor(e){this.injector=e}retrieve(e,t){let n=Ji(t)||0;try{return this.injector.get(e,n&8?null:Ui,n)}catch(e){if(er(e))return e;throw e}}};function Ki(e,t=0){let n=Zn();if(n===void 0)throw new T(-203,!1);if(n===null)return Vi(e,void 0,t);{let r=Yi(t),i=n.retrieve(e,r);if(er(i)){if(r.optional)return null;throw i}return i}}function qi(e,t=0){return(zi()||Ki)(li(e),t)}function E(e,t){return qi(e,Ji(t))}function Ji(e){return e===void 0||typeof e==`number`?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Yi(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Xi(e){let t=[];for(let n=0;nArray.isArray(e)?ta(e,t):t(e))}function na(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ra(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ia(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let t=i-2;e[i]=e[t],i--}e[t]=n,e[t+1]=r}}function aa(e,t,n){let r=sa(e,t);return r>=0?e[r|1]=n:(r=~r,ia(e,r,t,n)),r}function oa(e,t){let n=sa(e,t);if(n>=0)return e[n|1]}function sa(e,t){return ca(e,t,1)}function ca(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let a=r+(i-r>>1),o=e[a<t?i=a:r=a+1}return~(i<{n.push(e)};return ta(t,e=>{let t=e;va(t,a,[],r)&&(i||=[],i.push(t))}),i!==void 0&&_a(i,a),n}function _a(e,t){for(let n=0;n{t(e,r)})}}function va(e,t,n,r){if(e=li(e),!e)return!1;let i=null,a=hi(e),o=!a&&Ei(e);if(!a&&!o){let t=e.ngModule;if(a=hi(t),a)i=t;else return!1}else if(o&&!o.standalone)return!1;else i=e;let s=r.has(i);if(o){if(s)return!1;if(r.add(i),o.dependencies){let e=typeof o.dependencies==`function`?o.dependencies():o.dependencies;for(let i of e)va(i,t,n,r)}}else if(a){if(a.imports!=null&&!s){r.add(i);let e;try{ta(a.imports,i=>{va(i,t,n,r)&&(e||=[],e.push(i))})}finally{}e!==void 0&&_a(e,t)}if(!s){let e=Qi(i)||(()=>new i);t({provide:i,useFactory:e,deps:ua},i),t({provide:pa,useValue:i,multi:!0},i),t({provide:da,useValue:()=>qi(i),multi:!0},i)}let o=a.providers;if(o!=null&&!s){let n=e;ya(o,e=>{t(e,n)})}}else return!1;return i!==e&&e.providers!==void 0}function ya(e,t){for(let n of e)yi(n)&&(n=n.ɵproviders),Array.isArray(n)?ya(n,t):t(n)}var ba=ii({provide:String,useValue:ii});function xa(e){return typeof e==`object`&&!!e&&ba in e}function Sa(e){return!!(e&&e.useExisting)}function Ca(e){return!!(e&&e.useFactory)}function wa(e){return typeof e==`function`}var Ta=new vi(``),Ea={},Da={},Oa=void 0;function ka(){return Oa===void 0&&(Oa=new ma),Oa}var Aa=class{},ja=class extends Aa{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,Va(e,e=>this.processProvider(e)),this.records.set(fa,La(void 0,this)),r.has(`environment`)&&this.records.set(Aa,La(void 0,this));let i=this.records.get(Ta);i!=null&&typeof i.value==`string`&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(pa,ua,{self:!0}))}retrieve(e,t){let n=Ji(t)||0;try{return this.get(e,Ui,n)}catch(e){if(er(e))return e;throw e}}destroy(){Ia(this),this._destroyed=!0;let e=w(null);try{for(let e of this._ngOnDestroyHooks)e.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let t of e)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),w(e)}}onDestroy(e){return Ia(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){Ia(this);let t=Qn(this),n=Bi(void 0);try{return e()}finally{Qn(t),Bi(n)}}get(e,t=Ui,n){if(Ia(this),Object.hasOwn(e,Ti))return e[Ti](this);let r=Ji(n),i=Qn(this),a=Bi(void 0);try{if(!(r&4)){let t=this.records.get(e);if(t===void 0){let n=Ba(e)&&fi(e);t=n&&this.injectableDefInScope(n)?La(Ma(e),Ea):null,this.records.set(e,t)}if(t!=null)return this.hydrate(e,t,r)}let n=r&2?ka():this.parent;return t=r&8&&t===Ui?null:t,n.get(e,t)}catch(e){let t=Li(e);throw t===-200||t===-201?new T(t,null):e}finally{Bi(a),Qn(i)}}resolveInjectorInitializers(){let e=w(null),t=Qn(this),n=Bi(void 0);try{let e=this.get(da,ua,{self:!0});for(let t of e)t()}finally{Qn(t),Bi(n),w(e)}}toString(){return`R3Injector[...]`}processProvider(e){e=li(e);let t=wa(e)?e:li(e&&e.provide),n=Pa(e);if(!wa(e)&&e.multi===!0){let n=this.records.get(t);n||(n=La(void 0,Ea,!0),n.factory=()=>Xi(n.multi),this.records.set(t,n)),t=e,n.multi.push(e)}this.records.set(t,n)}hydrate(e,t,n){let r=w(null);try{if(t.value===Da)throw Pi(``);return t.value===Ea&&(t.value=Da,t.value=t.factory(void 0,n)),typeof t.value==`object`&&t.value&&za(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{w(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=li(e.providedIn);return typeof t==`string`?t===`any`||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function Ma(e){let t=fi(e),n=t===null?Qi(e):t.factory;if(n!==null)return n;if(e instanceof vi)throw new T(-204,!1);if(e instanceof Function)return Na(e);throw new T(-204,!1)}function Na(e){if(e.length>0)throw new T(-204,!1);let t=mi(e);return t===null?()=>new e:()=>t.factory(e)}function Pa(e){return xa(e)?La(void 0,e.useValue):La(Fa(e),Ea)}function Fa(e,t,n){let r;if(wa(e)){let t=li(e);return Qi(t)||Ma(t)}if(xa(e))r=()=>li(e.useValue);else if(Ca(e))r=()=>e.useFactory(...Xi(e.deps||[]));else if(Sa(e))r=(t,n)=>qi(li(e.useExisting),n!==void 0&&n&8?8:void 0);else{let t=li(e&&(e.useClass||e.provide));if(Ra(e))r=()=>new t(...Xi(e.deps));else return Qi(t)||Ma(t)}return r}function Ia(e){if(e.destroyed)throw new T(-205,!1)}function La(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ra(e){return!!e.deps}function za(e){return typeof e==`object`&&!!e&&typeof e.ngOnDestroy==`function`}function Ba(e){return typeof e==`function`||typeof e==`object`&&e.ngMetadataName===`InjectionToken`}function Va(e,t){for(let n of e)Array.isArray(n)?Va(n,t):n&&yi(n)?Va(n.ɵproviders,t):t(n)}function Ha(e,t){let n;e instanceof ja?(Ia(e),n=e):n=new Gi(e);let r=Qn(n),i=Bi(void 0);try{return t()}finally{Qn(r),Bi(i)}}function Ua(){return zi()!==void 0||Zn()!=null}var Wa=1;function Ga(e){return Array.isArray(e)&&typeof e[Wa]==`object`}function Ka(e){return Array.isArray(e)&&e[Wa]===!0}function qa(e){return!!(e.flags&4)}function Ja(e){return e.componentOffset>-1}function Ya(e){return(e.flags&1)==1}function Xa(e){return!!e.template}function Za(e){return!!(e[2]&512)}function Qa(e){return(e[2]&256)==256}var $a=(function(e){return e[e.NONE=0]=`NONE`,e[e.HTML=1]=`HTML`,e[e.STYLE=2]=`STYLE`,e[e.SCRIPT=3]=`SCRIPT`,e[e.URL=4]=`URL`,e[e.RESOURCE_URL=5]=`RESOURCE_URL`,e[e.ATTRIBUTE_NO_BINDING=6]=`ATTRIBUTE_NO_BINDING`,e})($a||{}),eo=`math`;function to(e){for(;Array.isArray(e);)e=e[0];return e}function no(e,t){return to(t[e])}function ro(e,t){return to(t[e.index])}function io(e,t){return e.data[t]}function ao(e,t){return e[t]}function oo(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function so(e,t){let n=t[e];return Ga(n)?n:n[0]}function co(e){return(e[2]&128)==128}function lo(e){return Ka(e[3])}function uo(e,t){return t==null?null:e[t]}function fo(e){e[17]=0}function po(e){e[2]&1024||(e[2]|=1024,co(e)&&_o(e))}function mo(e,t){for(;e>0;)t=t[14],e--;return t}function ho(e){return!!(e[2]&9216||e[24]?.dirty)}function go(e){e[10].changeDetectionScheduler?.notify(8),e[2]&64&&(e[2]|=1024),ho(e)&&_o(e)}function _o(e){e[10].changeDetectionScheduler?.notify(0);let t=bo(e);for(;t!==null&&!(t[2]&8192||(t[2]|=8192,!co(t)));)t=bo(t)}function vo(e,t){if(Qa(e))throw new T(911,!1);e[21]===null&&(e[21]=[]),e[21].push(t)}function yo(e,t){if(e[21]===null)return;let n=e[21].indexOf(t);n!==-1&&e[21].splice(n,1)}function bo(e){let t=e[3];return Ka(t)?t[3]:t}function xo(e){return e[7]??=[]}function So(e){return e.cleanup??=[]}function Co(e,t,n,r){let i=xo(t);i.push(n),e.firstCreatePass&&So(e).push(r,i.length-1)}var wo={lFrame:as(null),bindingsEnabled:!0,skipHydrationRootTNode:null},To=!1;function Eo(){return wo.lFrame.elementDepthCount}function Do(){wo.lFrame.elementDepthCount++}function Oo(){wo.lFrame.elementDepthCount--}function ko(){return wo.bindingsEnabled}function Ao(){return wo.skipHydrationRootTNode!==null}function jo(e){return wo.skipHydrationRootTNode===e}function Mo(){wo.skipHydrationRootTNode=null}function D(){return wo.lFrame.lView}function No(){return wo.lFrame.tView}function O(e){return wo.lFrame.contextLView=e,e[8]}function k(e){return wo.lFrame.contextLView=null,e}function Po(){let e=Fo();for(;e!==null&&e.type===64;)e=e.parent;return e}function Fo(){return wo.lFrame.currentTNode}function Io(){let e=wo.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Lo(e,t){let n=wo.lFrame;n.currentTNode=e,n.isParent=t}function Ro(){return wo.lFrame.isParent}function zo(){wo.lFrame.isParent=!1}function Bo(){return wo.lFrame.contextLView}function Vo(){return To}function Ho(e){let t=To;return To=e,t}function Uo(){let e=wo.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Wo(){return wo.lFrame.bindingIndex}function Go(e){return wo.lFrame.bindingIndex=e}function Ko(){return wo.lFrame.bindingIndex++}function qo(e){let t=wo.lFrame,n=t.bindingIndex;return t.bindingIndex+=e,n}function Jo(){return wo.lFrame.inI18n}function Yo(e,t){let n=wo.lFrame;n.bindingIndex=n.bindingRootIndex=e,Zo(t)}function Xo(){return wo.lFrame.currentDirectiveIndex}function Zo(e){wo.lFrame.currentDirectiveIndex=e}function Qo(e){let t=wo.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function $o(){return wo.lFrame.currentQueryIndex}function es(e){wo.lFrame.currentQueryIndex=e}function ts(e){let t=e[1];return t.type===2?t.declTNode:t.type===1?e[5]:null}function ns(e,t,n){if(n&4){let r=t,i=e;for(;r=r.parent,r===null&&!(n&1)&&(r=ts(i),!(r===null||(i=i[14],r.type&10))););if(r===null)return!1;t=r,e=i}let r=wo.lFrame=is();return r.currentTNode=t,r.lView=e,!0}function rs(e){let t=is(),n=e[1];wo.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function is(){let e=wo.lFrame,t=e===null?null:e.child;return t===null?as(e):t}function as(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 os(){let e=wo.lFrame;return wo.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ss=os;function cs(){let e=os();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 ls(e){return(wo.lFrame.contextLView=mo(e,wo.lFrame.contextLView))[8]}function us(){return wo.lFrame.selectedIndex}function ds(e){wo.lFrame.selectedIndex=e}function fs(){let e=wo.lFrame;return io(e.tView,e.selectedIndex)}function ps(){wo.lFrame.currentNamespace=`svg`}function ms(){hs()}function hs(){wo.lFrame.currentNamespace=null}function gs(){return wo.lFrame.currentNamespace}var _s=!0;function vs(){return _s}function ys(e){_s=e}function bs(e,t=null,n=null,r){let i=xs(e,t,n,r);return i.resolveInjectorInitializers(),i}function xs(e,t=null,n=null,r,i=new Set){return new ja([n||ua,ha(e)],t||ka(),null,i)}var Ss=class e{static THROW_IF_NOT_FOUND=Ui;static NULL=new ma;static create(e,t){if(Array.isArray(e))return bs({name:``},t,e,``);{let t=e.name??``;return bs({name:t},e.parent,e.providers,t)}}static ɵprov=di({token:e,providedIn:`any`,factory:()=>qi(fa)});static __NG_ELEMENT_ID__=-1},Cs=new vi(``),ws=class{static __NG_ELEMENT_ID__=Es;static __NG_ENV_ID__=e=>e},Ts=class extends ws{_lView;constructor(e){super(),this._lView=e}get destroyed(){return Qa(this._lView)}onDestroy(e){let t=this._lView;return vo(t,e),()=>yo(t,e)}};function Es(){return new Ts(D())}var Ds=new vi(``),Os=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new $r(!1);debugTaskTracker=E(Ds,{optional:!0});get hasPendingTasks(){return!this.destroyed&&this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Hr(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),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 ɵprov=di({token:e,providedIn:`root`,factory:()=>new e})}return e})(),ks=class extends Zr{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Ua()&&(this.destroyRef=E(ws,{optional:!0})??void 0,this.pendingTasks=E(Os,{optional:!0})??void 0)}emit(e){let t=w(null);try{super.next(e)}finally{w(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),a=n;if(e&&typeof e==`object`){let t=e;r=t.next?.bind(t),i=t.error?.bind(t),a=t.complete?.bind(t)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&=this.wrapInTimeout(r),a&&=this.wrapInTimeout(a));let o=super.subscribe({next:r,error:i,complete:a});return e instanceof hr&&e.add(o),o}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{e(t)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}};function As(...e){}function js(e){let t,n;function r(){e=As;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 Ms(e){return queueMicrotask(()=>e()),()=>{e=As}}var Ns=`isAngularZone`,Ps=`isAngularZone_ID`,Fs=0,Is=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ks(!1);onMicrotaskEmpty=new ks(!1);onStable=new ks(!1);onError=new ks(!1);constructor(e){let{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:i=!1}=e;if(typeof Zone>`u`)throw new T(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&n,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=i,Bs(a)}static isInAngularZone(){return typeof Zone<`u`&&Zone.current.get(Ns)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new T(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new T(909,!1)}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){let i=this._inner,a=i.scheduleEventTask(`NgZoneEvent: `+r,e,Ls,As,As);try{return i.runTask(a,t,n)}finally{i.cancelTask(a)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}},Ls={};function Rs(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 zs(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){js(()=>{e.callbackScheduled=!1,Vs(e),e.isCheckStableRunning=!0,Rs(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Vs(e)}function Bs(e){let t=()=>{zs(e)},n=Fs++;e._inner=e._inner.fork({name:`angular`,properties:{[Ns]:!0,[Ps]:n,[Ps+n]:!0},onInvokeTask:(n,r,i,a,o,s)=>{if(Gs(s))return n.invokeTask(i,a,o,s);try{return Hs(e),n.invokeTask(i,a,o,s)}finally{(e.shouldCoalesceEventChangeDetection&&a.type===`eventTask`||e.shouldCoalesceRunChangeDetection)&&t(),Us(e)}},onInvoke:(n,r,i,a,o,s,c)=>{try{return Hs(e),n.invoke(i,a,o,s,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Ks(s)&&t(),Us(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&(i.change==`microTask`?(e._hasPendingMicrotasks=i.microTask,Vs(e),Rs(e)):i.change==`macroTask`&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function Vs(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0)}function Hs(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Us(e){e._nesting--,Rs(e)}var Ws=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ks;onMicrotaskEmpty=new ks;onStable=new ks;onError=new ks;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function Gs(e){return qs(e,`__ignore_ng_zone__`)}function Ks(e){return qs(e,`__scheduler_tick__`)}function qs(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Js=class{_console=console;handleError(e){this._console.error(`ERROR`,e)}},Ys=new vi(``,{factory:()=>{let e=E(Is),t=E(Aa),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Js),n.handleError(r))})}}}),Xs={provide:da,useValue:()=>{E(Js,{optional:!0})},multi:!0};function A(e,t){let[n,r,i]=Hn(e,t?.equal),a=n;return a[dn],a.set=r,a.update=i,a.asReadonly=Zs.bind(a),a}function Zs(){let e=this[dn];if(e.readonlyFn===void 0){let t=()=>this();t[dn]=e,e.readonlyFn=t}return e.readonlyFn}var Qs=new vi(``,{factory:()=>$s}),$s=`ng`,ec=new vi(``),tc=new vi(``,{providedIn:`platform`,factory:()=>`unknown`}),nc=new vi(``,{factory:()=>E(Cs).body?.querySelector(`[ngCspNonce]`)?.getAttribute(`ngCspNonce`)||null}),rc=(()=>{class e{view;node;constructor(e,t){this.view=e,this.node=t}static __NG_ELEMENT_ID__=ic}return e})();function ic(){return new rc(D(),Po())}var ac=class{},oc=new vi(``,{factory:()=>!0}),sc=new vi(``),cc=(()=>{class e{static ɵprov=di({token:e,providedIn:`root`,factory:()=>new lc})}return e})(),lc=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||n.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[t,n]of this.queues)e||=t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n));e||(this.dirtyEffectCount=0)}}flushQueue(e){let t=!1;for(let n of e)n.dirty&&(this.dirtyEffectCount--,t=!0,n.run());return t}},uc=class{[dn];constructor(e){this[dn]=e}destroy(){this[dn].destroy()}};function dc(e,t){let n=t?.injector??E(Ss),r=t?.manualCleanup===!0?null:n.get(ws),i,a=n.get(rc,null,{optional:!0}),o=n.get(ac);return a===null?i=gc(e,n.get(cc),o):(i=hc(a.view,o,e),r instanceof Ts&&r._lView===a.view&&(r=null)),i.injector=n,r!==null&&(i.onDestroyFns=[r.onDestroy(()=>i.destroy())]),new uc(i)}var fc={...Jn,cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Ho(!1);try{Yn(this)}finally{Ho(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=w(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],w(e)}}},pc={...fc,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(En(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}},mc={...fc,consumerMarkedDirty(){this.view[2]|=8192,_o(this.view),this.notifier.notify(13)},destroy(){if(En(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[23]?.delete(this)}};function hc(e,t,n){let r=Object.create(mc);return r.view=e,r.zone=typeof Zone<`u`?Zone.current:null,r.notifier=t,r.fn=_c(r,n),e[23]??=new Set,e[23].add(r),r.consumerMarkedDirty(r),r}function gc(e,t,n){let r=Object.create(pc);return r.fn=_c(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 _c(e,t){return()=>{t(t=>(e.cleanupFns??=[]).push(t))}}function vc(e){return typeof e==`function`&&e[dn]!==void 0}function yc(e){return vc(e)&&typeof e.set==`function`}var bc=Symbol(`InputSignalNode#UNSET`),xc={...Kn,transformFn:void 0,applyValueToInputSignal(e,t){Wn(e,t)}};function Sc(e){return{toString:e}.toString()}var Cc=(function(e){return e[e.TemplateCreateStart=0]=`TemplateCreateStart`,e[e.TemplateCreateEnd=1]=`TemplateCreateEnd`,e[e.TemplateUpdateStart=2]=`TemplateUpdateStart`,e[e.TemplateUpdateEnd=3]=`TemplateUpdateEnd`,e[e.LifecycleHookStart=4]=`LifecycleHookStart`,e[e.LifecycleHookEnd=5]=`LifecycleHookEnd`,e[e.OutputStart=6]=`OutputStart`,e[e.OutputEnd=7]=`OutputEnd`,e[e.BootstrapApplicationStart=8]=`BootstrapApplicationStart`,e[e.BootstrapApplicationEnd=9]=`BootstrapApplicationEnd`,e[e.BootstrapComponentStart=10]=`BootstrapComponentStart`,e[e.BootstrapComponentEnd=11]=`BootstrapComponentEnd`,e[e.ChangeDetectionStart=12]=`ChangeDetectionStart`,e[e.ChangeDetectionEnd=13]=`ChangeDetectionEnd`,e[e.ChangeDetectionSyncStart=14]=`ChangeDetectionSyncStart`,e[e.ChangeDetectionSyncEnd=15]=`ChangeDetectionSyncEnd`,e[e.AfterRenderHooksStart=16]=`AfterRenderHooksStart`,e[e.AfterRenderHooksEnd=17]=`AfterRenderHooksEnd`,e[e.ComponentStart=18]=`ComponentStart`,e[e.ComponentEnd=19]=`ComponentEnd`,e[e.DeferBlockStateStart=20]=`DeferBlockStateStart`,e[e.DeferBlockStateEnd=21]=`DeferBlockStateEnd`,e[e.DynamicComponentStart=22]=`DynamicComponentStart`,e[e.DynamicComponentEnd=23]=`DynamicComponentEnd`,e[e.HostBindingsUpdateStart=24]=`HostBindingsUpdateStart`,e[e.HostBindingsUpdateEnd=25]=`HostBindingsUpdateEnd`,e})(Cc||{});function wc(e,t,n,r){t===null?e[n]=r:t.applyValueToInputSignal(t,r)}var Tc=null;function Ec(){return Tc}var Dc=[],Oc=function(e,t=null,n){for(let r=0;r=r)break}else t[c]<0&&(e[17]+=65536),(s>14>16&&(e[2]&3)===t&&(e[2]+=16384,Fc(o,a)):Fc(o,a)}var Lc=-1,Rc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n,r){this.factory=e,this.name=r,this.canSeeViewProviders=t,this.injectImpl=n}};function zc(e){return!!(e.flags&8)}function Bc(e){return!!(e.flags&16)}function Vc(e,t,n){let r=0;for(;rt){o=a-1;break}}}for(;a>16}function Yc(e,t){let n=Jc(e),r=t;for(;n>0;)r=r[14],n--;return r}var Xc=!0;function Zc(e){let t=Xc;return Xc=e,t}var Qc=255,$c=5,el=0,tl={};function nl(e,t,n){let r;typeof n==`string`?r=n.charCodeAt(0)||0:Object.hasOwn(n,wi)&&(r=n[wi]),r??=n[wi]=el++;let i=r&Qc,a=1<>$c)]|=a}function rl(e,t){let n=al(e,t);if(n!==-1)return n;let r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,il(r.data,e),il(t,null),il(r.blueprint,null));let i=ol(e,t),a=e.injectorIndex;if(Kc(i)){let e=qc(i),n=Yc(i,t),r=n[1].data;for(let i=0;i<8;i++)t[a+i]=n[e+i]|r[e+i]}return t[a+8]=i,a}function il(e,t){e.push(0,0,0,0,0,0,0,0,t)}function al(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ol(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=xl(i),r===null)return Lc;if(n++,i=i[14],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Lc}function sl(e,t,n){nl(e,t,n)}function cl(e,t,n){if(n&8||e!==void 0)return e;Fi(t,`NodeInjector`)}function ll(e,t,n,r){if(n&8&&r===void 0&&(r=null),!(n&3)){let i=e[9],a=Bi(void 0);try{return i?i.get(t,r,n&8):Vi(t,r,n&8)}finally{Bi(a)}}return cl(r,t,n)}function ul(e,t,n,r=0,i){if(e!==null){if(t[2]&2048&&!(r&2)){let i=bl(e,t,n,r,tl);if(i!==tl)return i}let i=dl(e,t,n,r,tl);if(i!==tl)return i}return ll(t,n,r,i)}function dl(e,t,n,r,i){let a=hl(n);if(typeof a==`function`){if(!ns(t,e,r))return r&1?cl(i,n,r):ll(t,n,r,i);try{let e;if(e=a(r),e==null&&!(r&8))Fi(n);else return e}finally{ss()}}else if(typeof a==`number`){let i=null,o=al(e,t),s=Lc,c=r&1?t[15][5]:null;for((o===-1||r&4)&&(s=o===-1?ol(e,t):t[o+8],s===Lc||!_l(r,!1)?o=-1:(i=t[1],o=qc(s),t=Yc(s,t)));o!==-1;){let e=t[1];if(gl(a,o,e.data)){let e=fl(o,t,n,i,r,c);if(e!==tl)return e}s=t[o+8],s!==Lc&&_l(r,t[1].data[o+8]===c)&&gl(a,o,t)?(i=e,o=qc(s),t=Yc(s,t)):o=-1}}return i}function fl(e,t,n,r,i,a){let o=t[1],s=o.data[e+8],c=pl(s,o,n,r==null?Ja(s)&&Xc:r!=o&&!!(s.type&3),i&1&&a===s);return c===null?tl:ml(t,o,c,s,i)}function pl(e,t,n,r,i){let a=e.providerIndexes,o=t.data,s=a&1048575,c=e.directiveStart,l=e.directiveEnd,u=a>>20,d=r?s:s+u,f=i?s+u:l;for(let e=d;e=c&&t.type===n)return e}if(i){let e=o[c];if(e&&Xa(e)&&e.type===n)return c}return null}function ml(e,t,n,r,i){let a=e[n],o=t.data;if(a instanceof Rc){let s=a;if(s.resolving)throw Pi(``);let c=Zc(s.canSeeViewProviders);s.resolving=!0,o[n].type||o[n];let l=s.injectImpl?Bi(s.injectImpl):null;ns(e,r,0);try{a=e[n]=s.factory(void 0,i,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&kc(n,o[n],t)}finally{l!==null&&Bi(l),Zc(c),s.resolving=!1,ss()}}return a}function hl(e){if(typeof e==`string`)return e.charCodeAt(0)||0;let t=Object.hasOwn(e,wi)?e[wi]:void 0;return typeof t==`number`?t>=0?t&Qc:yl:t}function gl(e,t,n){let r=1<>$c)]&r)}function _l(e,t){return!(e&2)&&!(e&1&&t)}var vl=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return ul(this._tNode,this._lView,e,Ji(n),t)}};function yl(){return new vl(Po(),D())}function bl(e,t,n,r,i){let a=e,o=t;for(;a!==null&&o!==null&&o[2]&2048&&!Za(o);){let e=dl(a,o,n,r|2,tl);if(e!==tl)return e;r&=-5;let t=a.parent;if(!t){let e=o[20];if(e){let t=e.get(n,tl,r);if(t!==tl)return t}t=xl(o),o=o[14]}a=t}return i}function xl(e){let t=e[1],n=t.type;return n===2?t.declTNode:n===1?e[5]:null}function Sl(e){return{token:e.token,providedIn:e.autoProvided===!1?null:`root`,factory:e.factory,value:void 0}}function Cl(){return wl(Po(),D())}function wl(e,t){return new Tl(ro(e,t))}var Tl=(()=>{class e{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=Cl}return e})();function El(e){return e instanceof Tl?e.nativeElement:e}function Dl(){return this._results[Symbol.iterator]()}var Ol=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 Zr}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;let n=ea(e);(this._changesDetected=!$i(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Dl};function kl(e){return(e.flags&128)==128}var Al=(function(e){return e[e.OnPush=0]=`OnPush`,e[e.Eager=1]=`Eager`,e[e.Default=1]=`Default`,e})(Al||{}),jl=new Map,Ml=0;function Nl(){return Ml++}function Pl(e){jl.set(e[19],e)}function Fl(e){jl.delete(e[19])}var Il=`__ngContext__`;function Ll(e,t){Ga(t)?(e[Il]=t[19],Pl(t)):e[Il]=t}function Rl(e){return Bl(e[12])}function zl(e){return Bl(e[4])}function Bl(e){for(;e!==null&&!Ka(e);)e=e[4];return e}var Vl=void 0;function Hl(e){Vl=e}function Ul(){if(Vl!==void 0)return Vl;if(typeof document<`u`)return document;throw new T(210,!1)}var Wl=!1,Gl=new vi(``,{factory:()=>Wl}),Kl=new WeakMap;function ql(e,t){if(typeof e!=`object`||!e)return;let n=Kl.get(e);n||(n=new WeakSet,Kl.set(e,n)),n.add(t)}function Jl(e){return(e.flags&32)==32}var Yl=()=>null;function Xl(e,t,n=!1){return Yl(e,t,n)}function Zl(e,t){let n=e.contentQueries;if(n!==null){let r=w(null);try{for(let r=0;r-1){let e;for(;++ia?``:i[u+1].toLowerCase(),r&2&&l!==e){if(Du(r))return!1;o=!0}}}}}return Du(r)||o}function Du(e){return!(e&1)}function Ou(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let n=!1;for(;i-1)for(n++;n0?`="`+t+`"`:``)+`]`}else r&8?i+=`.`+o:r&4&&(i+=` `+o)}else i!==``&&!Du(o)&&(t+=Mu(a,i),i=``),r=o,a||=!Du(r);n++}return i!==``&&(t+=Mu(a,i)),t}function Pu(e){return e.map(Nu).join(`,`)}function Fu(e){let t=[],n=[],r=1,i=2;for(;r!1});function Vu(e){if(!e)return 0;let t=e.toLowerCase().indexOf(`ms`)>-1?1:1e3;return parseFloat(e)*t}function Hu(e,t){return e.getPropertyValue(t).split(`,`).map(e=>e.trim())}function Uu(e){let t=Hu(e,`transition-property`),n=Hu(e,`transition-duration`),r=Hu(e,`transition-delay`),i={propertyName:``,duration:0,animationName:void 0};for(let e=0;ei.duration&&(i.propertyName=t[e],i.duration=a)}return i}function Wu(e){let t=Hu(e,`animation-name`),n=Hu(e,`animation-delay`),r=Hu(e,`animation-duration`),i=Hu(e,`animation-iteration-count`),a={animationName:``,propertyName:void 0,duration:0};for(let e=0;ea.duration&&s!==`infinite`&&(a.animationName=t[e],a.duration=o)}return a}function Gu(e,t){return e!==void 0&&e.duration>t.duration}function Ku(e){return(e.animationName!=null||e.propertyName!=null)&&e.duration>0}function qu(e){let t=e.effect?.getTiming();if(t===void 0)return;let n=typeof t.duration==`number`?t.duration:0,r=(t.delay??0)+n,i=e.playbackRate;return i!==void 0&&i!==0&&i!==1&&(r/=Math.abs(i)),r}function Ju(e,t){let n=getComputedStyle(e),r=Wu(n),i=Uu(n),a=r.duration>i.duration?r:i;Gu(t.get(e),a)||Ku(a)&&t.set(e,a)}function Yu(e,t,n){if(!n)return;let r=e.getAnimations();return r.length===0?Ju(e,t):Xu(e,t,r)}function Xu(e,t,n){let r={animationName:void 0,propertyName:void 0,duration:0};for(let e of n){if(e.effect?.getTiming()?.iterations===1/0)continue;let t=qu(e)??0,n,i;e.animationName?i=e.animationName:n=e.transitionProperty,t>=r.duration&&(r={animationName:i,propertyName:n,duration:t})}Gu(t.get(e),r)||Ku(r)&&t.set(e,r)}var Zu=new Set,Qu=!1,$u=1,ed=typeof document<`u`&&typeof document?.documentElement?.getAnimations==`function`;function td(e){return e[9].get(Bu,Qu)}function nd(e,t,n){let r=id.get(e);if(r){for(let e of t)r.classList.push(e);for(let e of n)r.cleanupFns.push(e)}else id.set(e,{classList:t,cleanupFns:n})}function rd(e){let t=id.get(e);if(t){for(let e of t.cleanupFns)e();id.delete(e)}ad.delete(e)}var id=new WeakMap,ad=new WeakMap,od=new WeakMap;function sd(e){return e?e[14]??e:null}var cd=new WeakSet;function ld(e,t,n){let r=od.get(e);if(!r||r.length===0)return;let i=t.parentNode,a=t.previousSibling,o=sd(n);for(let e=r.length-1;e>=0;e--){let{el:n,declarationView:s}=r[e],c=n.parentNode;n===t?(r.splice(e,1),cd.add(n),n.dispatchEvent(new CustomEvent(`animationend`,{detail:{cancel:!0}}))):(a&&n===a||c&&i&&c!==i&&(o===null||s===null||o===s))&&(r.splice(e,1),n.dispatchEvent(new CustomEvent(`animationend`,{detail:{cancel:!0}})),n.parentNode?.removeChild(n))}}function ud(e,t,n){let r=sd(n),i=od.get(e);i?i.some(e=>e.el===t)||i.push({el:t,declarationView:r}):od.set(e,[{el:t,declarationView:r}])}function dd(e){let t=e[26]??={};return t.enter??=new Map}function fd(e){let t=typeof e==`function`?e():e,n=Array.isArray(t)?t:null;return typeof t==`string`&&(n=t.trim().split(/\s+/).filter(e=>e)),n}function pd(e){return e.composedPath?e.composedPath()[0]:e.target}function md(e,t){let n=ad.get(t);if(n===void 0)return!0;if(t!==pd(e))return!1;let r=e.animation;if(r){let e=qu(r);if(e!==void 0&&e+$u{class e{impl=null;execute(){this.impl?.execute()}static ɵprov=di({token:e,providedIn:`root`,factory:()=>new e})}return e})(),xd=[0,1,2,3],Sd=(()=>{class e{ngZone=E(Is);scheduler=E(ac);errorHandler=E(Js,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){E(_d,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Oc(Cc.AfterRenderHooksStart),this.executing=!0;for(let e of xd)for(let t of this.sequences)if(!t.erroredOrDestroyed&&t.hooks[e])try{t.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let n=t.hooks[e];return n(t.pipelinedValue)},t.snapshot))}catch(e){t.erroredOrDestroyed=!0,this.errorHandler?.handleError(e)}this.executing=!1;for(let e of this.sequences)e.afterRun(),e.once&&(this.sequences.delete(e),e.destroy());for(let e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Oc(Cc.AfterRenderHooksEnd)}register(e){let{view:t}=e;t===void 0?this.executing?this.deferredRegistrations.add(e):this.addSequence(e):((t[25]??=[]).push(e),_o(t),t[2]|=8192)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,t){return t?t.run(gd.AFTER_NEXT_RENDER,e):e()}static ɵprov=di({token:e,providedIn:`root`,factory:()=>new e})}return e})(),Cd=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,t,n,r,i,a=null){this.impl=e,this.hooks=t,this.view=n,this.once=r,this.snapshot=a,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[25];e&&(this.view[25]=e.filter(e=>e!==this))}};function wd(e,t){let n=t?.injector??E(Ss);return yd(`NgAfterNextRender`),Ed(e,n,t,!0)}function Td(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Ed(e,t,n,r){let i=t.get(bd);i.impl??=t.get(Sd);let a=t.get(_d,null,{optional:!0}),o=n?.manualCleanup===!0?null:t.get(ws),s=t.get(rc,null,{optional:!0}),c=new Cd(i.impl,Td(e),s?.view,r,o,a?.snapshot(null));return i.impl.register(c),c}var Dd=new vi(``,{factory:()=>{let e=E(Aa),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function Od(e,t,n){let r=e.get(Dd);if(Array.isArray(t))for(let e of t)r.queue.add(e),n?.detachedLeaveAnimationFns?.push(e);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function kd(e,t){let n=e.get(Dd);if(Array.isArray(t))for(let e of t)n.queue.delete(e);else n.queue.delete(t)}function Ad(e,t){let n=e.get(Dd);if(t.detachedLeaveAnimationFns){for(let e of t.detachedLeaveAnimationFns)n.queue.delete(e);t.detachedLeaveAnimationFns=void 0}}function jd(e){let t=e.get(Dd);t.isScheduled||=(wd(()=>{t.isScheduled=!1;for(let e of t.queue)e();t.queue.clear()},{injector:t.injector}),!0)}function Md(e){let t=e.get(Dd);t.scheduler=jd,t.scheduler(e)}function Nd(e,t){for(let[n,r]of t)Od(e,r.animateFns)}function Pd(e,t,n,r){let i=e?.[26]?.enter;t!==null&&i&&i.has(n.index)&&Nd(r,i)}function Fd(e,t,n,r){try{n.get(fa)}catch{return r(!1)}let i=e?.[26];i?.enter?.has(t.index)&&kd(n,i.enter.get(t.index).animateFns);let a=Id(e,t,i);if(a.size===0){let n=!1;if(e){let r=[];Rd(e,t,r),n=r.length>0}if(!n)return r(!1)}e&&Zu.add(e[19]),Od(n,()=>Ld(e,t,i||void 0,a,r),i||void 0)}function Id(e,t,n){let r=new Map,i=n?.leave;if(i&&i.has(t.index)&&r.set(t.index,i.get(t.index)),e&&i)for(let[n,a]of i){if(r.has(n))continue;let i=e[1].data[n].parent;for(;i;){if(i===t){r.set(n,a);break}i=i.parent}}return r}function Ld(e,t,n,r,i){let a=[];if(n&&n.leave)for(let[e]of r){if(!n.leave.has(e))continue;let t=n.leave.get(e);for(let e of t.animateFns){let{promise:t}=e();a.push(t)}n.detachedLeaveAnimationFns=void 0}if(e&&Rd(e,t,a),a.length>0){let t=n||e?.[26];if(t){let n=t.running;n&&a.push(n),t.running=Promise.allSettled(a),Bd(e,t.running,i)}else Promise.allSettled(a).then(()=>{e&&Zu.delete(e[19]),i(!0)})}else e&&Zu.delete(e[19]),i(!1)}function Rd(e,t,n){if(t.type&12){let r=e[t.index];if(Ka(r))for(let e=10;e{e[26]?.running===t&&(e[26].running=void 0,Zu.delete(e[19])),n(!0)})}function Vd(e,t,n,r,i,a,o,s){if(i!=null){let c,l=!1;Ka(i)?c=i:Ga(i)&&(l=!0,i=i[0]);let u=to(i);e===0&&r!==null?(Pd(s,r,a,n),o==null?du(t,r,u):uu(t,r,u,o||null,!0)):e===1&&r!==null?(Pd(s,r,a,n),uu(t,r,u,o||null,!0),ld(a,u,s)):e===2?(s?.[26]?.leave?.has(a.index)&&ud(a,u,s),cd.delete(u),Fd(s,a,n,e=>{if(cd.has(u)){cd.delete(u);return}pu(t,u,l,e)})):e===3&&(cd.delete(u),Fd(s,a,n,()=>{t.destroyNode(u)})),c!=null&&df(t,e,n,c,a,r,o)}}function Hd(e,t){Wd(e,t),t[0]=null,t[5]=null}function Ud(e,t,n,r,i,a){r[0]=i,r[5]=t,cf(e,r,n,1,i,a)}function Wd(e,t){t[10].changeDetectionScheduler?.notify(9),cf(e,t,t[11],2,null,null)}function Gd(e){let t=e[12];if(!t)return Jd(e[1],e);for(;t;){let n=null;if(Ga(t))n=t[12];else{let e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Ga(t)&&Jd(t[1],t),t=t[3];t===null&&(t=e),Ga(t)&&Jd(t[1],t),n=t&&t[4]}t=n}}function Kd(e,t){let n=e[9],r=n.indexOf(t);n.splice(r,1)}function qd(e,t){if(Qa(t))return;let n=t[11];n.destroyNode&&cf(e,t,n,3,null,null),Gd(t)}function Jd(e,t){if(Qa(t))return;let n=w(null);try{t[2]&=-129,t[2]|=256,t[24]&&En(t[24]),Xd(e,t),Yd(e,t),t[1].type===1&&t[11].destroy();let n=t[16];if(n!==null&&Ka(t[3])){n!==t[3]&&Kd(n,t);let r=t[18];r!==null&&r.detachView(e)}Fl(t)}finally{w(n)}}function Yd(e,t){let n=e.cleanup,r=t[7];if(n!==null)for(let e=0;e=0?r[t]():r[-t].unsubscribe(),e+=2}else{let t=r[n[e+1]];n[e].call(t)}r!==null&&(t[7]=null);let i=t[21];if(i!==null){t[21]=null;for(let e=0;e27&&xf(e,t,27,!1),Oc(o?Cc.TemplateUpdateStart:Cc.TemplateCreateStart,i,n),n(r,i)}finally{ds(a),Oc(o?Cc.TemplateUpdateEnd:Cc.TemplateCreateEnd,i,n)}}function Tf(e,t,n){Mf(e,t,n),(n.flags&64)==64&&Nf(e,t,n)}function Ef(e,t,n=ro){let r=t.localNames;if(r!==null){let i=t.index+1;for(let a=0;a{_o(e.lView)},consumerOnSignalRead(){this.lView[24]=this}};function rp(e){let t=e[24]??Object.create(ip);return t.lView=e,t}var ip={...pn,consumerIsAlwaysLive:!0,kind:`template`,consumerMarkedDirty:e=>{let t=bo(e.lView);for(;t&&!ap(t[1]);)t=bo(t);t&&po(t)},consumerOnSignalRead(){this.lView[24]=this}};function ap(e){return e.type!==2}function op(e){if(e[23]===null)return;let t=!0;for(;t;){let n=!1;for(let t of e[23])if(t.dirty&&(n=!0,t.zone===null||Zone.current===t.zone?t.run():t.zone.run(()=>t.run()),e[23]===null))return;t=n&&!!(e[2]&8192)}}var sp=100;function cp(e,t=0){let n=e[10].rendererFactory;n.begin?.();try{lp(e,t)}finally{n.end?.()}}function lp(e,t){let n=Vo();try{Ho(!0),hp(e,t);let n=0;for(;ho(e);){if(n===sp)throw new T(103,!1);n++,hp(e,1)}}finally{Ho(n)}}function up(e,t,n,r){if(Qa(t))return;let i=t[2];rs(t);let a=!0,o=null,s=null;ap(e)?(s=$f(t),o=xn(s)):fn()===null?(a=!1,s=rp(t),o=xn(s)):t[24]&&=(En(t[24]),null);try{fo(t),Go(e.bindingStartIndex),n!==null&&wf(e,t,n,2,r);let a=(i&3)==3;if(a){let n=e.preOrderCheckHooks;n!==null&&jc(t,n,null)}else{let n=e.preOrderHooks;n!==null&&Mc(t,n,0,null),Nc(t,0)}if(fp(t),op(t),dp(t,0),e.contentQueries!==null&&Zl(e,t),a){let n=e.contentCheckHooks;n!==null&&jc(t,n)}else{let n=e.contentHooks;n!==null&&Mc(t,n,1),Nc(t,1)}_p(e,t);let o=e.components;o!==null&&gp(t,o,0);let s=e.viewQuery;if(s!==null&&Ql(2,s,r),a){let n=e.viewCheckHooks;n!==null&&jc(t,n)}else{let n=e.viewHooks;n!==null&&Mc(t,n,2),Nc(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[22]){for(let e of t[22])e();t[22]=null}Zf(t),t[2]&=-73}catch(e){throw _o(t),e}finally{s!==null&&(Cn(s,o),a&&tp(s)),cs()}}function dp(e,t){for(let n=Rl(e);n!==null;n=zl(n))for(let e=10;e0&&(e[n-1][4]=r[4]);let a=ra(e,10+t);Hd(r[1],r);let o=a[18];o!==null&&o.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function wp(e,t,n,r){let i=10+r,a=n.length;r>0&&(n[i-1][4]=t),r-1&&(Cp(e,n),ra(t,n))}this._attachedToViewContainer=!1}qd(this._lView[1],this._lView)}onDestroy(e){vo(this._lView,e)}markForCheck(){vp(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[2]&=-129}reattach(){go(this._lView),this._lView[2]|=128}detectChanges(){this._lView[2]|=1024,cp(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new T(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Za(this._lView),t=this._lView[16];t!==null&&!e&&Kd(t,this._lView),Wd(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new T(902,!1);this._appRef=e;let t=Za(this._lView),n=this._lView[16];n!==null&&!t&&Tp(n,this._lView),go(this._lView)}},Dp=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Op;constructor(e,t,n){this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,t){return this.createEmbeddedViewImpl(e,t)}createEmbeddedViewImpl(e,t,n){return new Ep(qf(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:t,dehydratedView:n}))}}return e})();function Op(){return kp(Po(),D())}function kp(e,t){return e.type&4?new Dp(t,e,wl(e,t)):null}function Ap(e,t,n,r,i){let a=e.data[t];if(a===null)a=jp(e,t,n,r,i),Jo()&&(a.flags|=32);else if(a.type&64){a.type=n,a.value=r,a.attrs=i;let e=Io();a.injectorIndex=e===null?-1:e.injectorIndex}return Lo(a,!0),a}function jp(e,t,n,r,i){let a=Fo(),o=Ro(),s=o?a:a&&a.parent,c=e.data[t]=Np(e,s,n,t,r,i);return Mp(e,c,a,o),c}function Mp(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 Np(e,t,n,r,i,a){let o=t?t.injectorIndex:-1,s=0;return Ao()&&(s|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:i,namespace:gs(),attrs:a,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}}function Pp(e){let t=e[6]??[],n=e[3][11],r=[];for(let e of t)e.data.di===void 0?Fp(e,n):r.push(e);e[6]=r}function Fp(e,t){let n=0,r=e.firstChild;if(r){let i=e.data.r;for(;nnull,Lp=()=>null;function Rp(e,t){return Ip(e,t)}function zp(e,t,n){return Lp(e,t,n)}var Bp=class{},Vp=class{},Hp=(()=>{class e{static ɵprov=di({token:e,providedIn:`root`,factory:()=>null})}return e})();function Up(e){return e.debugInfo?.className||e.type.name||null}var Wp={},Gp=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){let r=this.injector.get(e,Wp,n);return r!==Wp||t===Wp?r:this.parentInjector.get(e,t,n)}};function Kp(e,t,n){return e[t]=n}function qp(e,t){return e[t]}function Jp(e,t,n){if(n===Iu)return!1;let r=e[t];return!Object.is(r,n)&&(e[t]=n,!0)}function Yp(e,t,n,r){let i=Jp(e,t,n);return Jp(e,t+1,r)||i}function Xp(e,t,n,r,i){let a=Yp(e,t,n,r);return Jp(e,t+2,i)||a}function Zp(e,t,n,r,i,a){let o=Yp(e,t,n,r);return Yp(e,t+2,i,a)||o}function Qp(e,t,n){return function r(i){let a=r.__ngNativeEl__;a!==void 0&&ql(i,a),vp(Ja(e)?so(e.index,t):t,5);let o=t[8],s=$p(t,o,n,i),c=r.__ngNextListenerFn__;for(;c;)s=$p(t,o,c,i)&&s,c=c.__ngNextListenerFn__;return s}}function $p(e,t,n,r){let i=w(null);try{return Oc(Cc.OutputStart,t,n),n(r)!==!1}catch(t){return Vf(e,t),!1}finally{Oc(Cc.OutputEnd,t,n),w(i)}}function em(e,t,n,r,i,a,o,s){let c=Ya(e),l=!1,u=null;if(!r&&c&&(u=nm(t,n,a,e.index)),u!==null){let e=u.__ngLastListenerFn__||u;e.__ngNextListenerFn__=o,u.__ngLastListenerFn__=o,l=!0}else{let o=ro(e,n),c=r?r(o):o;r||(s.__ngNativeEl__=o);let l=i.listen(c,a,s);tm(a)||rm(r?t=>r(to(t[e.index])):e.index,t,n,a,s,l,!1)}return l}function tm(e){return e.startsWith(`animation`)||e.startsWith(`transition`)}function nm(e,t,n,r){let i=e.cleanup;if(i!=null)for(let e=0;er?n[r]:null}typeof a==`string`&&(e+=2)}return null}function rm(e,t,n,r,i,a,o){let s=t.firstCreatePass?So(t):null,c=xo(n),l=c.length;c.push(i,a),s&&s.push(r,e,l,(l+1)*(o?-1:1))}function im(e,t,n,r,i,a){let o=t[n],s=t[1],c=o[s.data[n].outputs[r]].subscribe(a);rm(e.index,s,t,i,a,c,!0)}var am=Symbol(`BINDING`),om=new vi(``);function sm(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,a=0;if(t!==null)for(let e=0;e0&&(n.directiveToIndex=new Map);for(let c=0;c0;){let n=e[--t];if(typeof n==`number`&&n<0)return n}return 0}function xm(e,t,n){if(n){if(t.exportAs)for(let r=0;r{let[n,r,i]=e[t],a={propName:n,templateName:t,isSignal:(r&Sf.SignalBased)!==0};return i&&(a.transform=i),a})}function km(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Am(e,t,n){let r=t instanceof Aa?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Gp(n,r):n}function jm(e){let t=e.get(Vp,null);if(t===null)throw new T(407,!1);return{rendererFactory:t,sanitizer:e.get(Hp,null),changeDetectionScheduler:e.get(ac,null),ngReflect:!1,tracingService:e.get(_d,null,{optional:!0})}}function Mm(e,t,n){let r=Pm(e);return lu(t,r,r===`svg`?`svg`:r===`math`?eo:n)}function Nm(e){if((e&&`localName`in e&&typeof e.localName==`string`?e.localName:e?.tagName)?.toLowerCase()===`script`)throw new T(905,!1)}function Pm(e){return(e.selectors[0][0]||`div`).toLowerCase()}var Fm=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Om(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=km(this.componentDef.outputs),this.cachedOutputs}constructor(e,t){this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=Pu(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r,i,a,o){Oc(Cc.DynamicComponentStart);let s=w(null);try{let s=this.componentDef,c=Am(s,r||this.ngModule,e),l=jm(c),u=l.tracingService;return u&&u.componentCreate?u.componentCreate(Up(s),()=>this.createComponentRef(l,c,t,n,i,a,o)):this.createComponentRef(l,c,t,n,i,a,o)}finally{w(s)}}createComponentRef(e,t,n,r,i,a,o){let s=this.componentDef,c=Im(r,s,a,i),l=e.rendererFactory.createRenderer(null,s),u=r?Df(l,r,s.encapsulation,t):Mm(s,l,o??null);Nm(u);let d=t.get(om,null),f=Lm(u,()=>t.get(Cs,null)??Ul());d&&d.addHost(f);let p=a?.some(zm)||i?.some(e=>typeof e!=`function`&&e.bindings.some(zm)),m=gf(null,c,null,512|vf(s),null,null,e,l,t,null,Xl(u,t,!0));d&&Em&&f instanceof ShadowRoot&&vo(m,()=>{d.removeHost(f)}),m[27]=u,rs(m);let h=null;try{let e=Cm(27,m,2,`#host`,()=>c.directiveRegistry,!0,0);gu(l,u,e),Ll(u,m),Tf(c,m,e),$l(c,e,m),wm(c,e),n!==void 0&&Vm(e,this.ngContentSelectors,n),h=so(e.index,m),m[8]=h[8],Gf(c,m,null)}catch(e){throw h!==null&&Fl(h),Fl(m),e}finally{Oc(Cc.DynamicComponentEnd),cs()}return new Bm(this.componentType,m,!!p)}};function Im(e,t,n,r){let i=e?[`ng-version`,`22.1.7`]:Fu(t.selectors[0]),a=null,o=null,s=0;if(n)for(let e of n)s+=e[am].requiredVars,e.create&&(e.targetIdx=0,(a??=[]).push(e)),e.update&&(e.targetIdx=0,(o??=[]).push(e));if(r)for(let e=0;e{if(n&1&&e)for(let t of e)t.create();if(n&2&&t)for(let e of t)e.update()}}function zm(e){let t=e[am].kind;return t===`input`||t===`twoWay`}var Bm=class extends Bp{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t,n){super(),this._rootLView=t,this._hasInputBindings=n,this._tNode=io(t[1],27),this.location=wl(this._tNode,t),this.instance=so(this._tNode.index,t)[8],this.hostView=this.changeDetectorRef=new Ep(t,void 0),this.componentType=e}setInput(e,t){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView;Hf(n,r[1],r,e,t),this.previousInputValues.set(e,t),vp(so(n.index,r),1)}get injector(){return new vl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function Vm(e,t,n){let r=e.projection=[];for(let e=0;e{class e{static __NG_ELEMENT_ID__=Um}return e})();function Um(){return qm(Po(),D())}var Wm=class e extends Hm{_lContainer;_hostTNode;_hostLView;constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return wl(this._hostTNode,this._hostLView)}get injector(){return new vl(this._hostTNode,this._hostLView)}get parentInjector(){let e=ol(this._hostTNode,this._hostLView);if(Kc(e)){let t=Yc(e,this._hostLView),n=qc(e),r=t[1].data[n+8];return new vl(r,t)}return new vl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let t=Gm(this._lContainer);return t!==null&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){let r,i;typeof n==`number`?r=n:n!=null&&(r=n.index,i=n.injector);let a=Rp(this._lContainer,e.ssrId),o=e.createEmbeddedViewImpl(t||{},i,a);return this.insertImpl(o,r,Jf(this._hostTNode,a)),o}createComponent(e,t,n,r,i,a,o){let s,c=t||{};s=c.index,n=c.injector,r=c.projectableNodes,i=c.environmentInjector||c.ngModuleRef,a=c.directives,o=c.bindings;let l=new Fm(Ei(e)),u=n||this.parentInjector;if(!i&&l.ngModule==null){let e=this.parentInjector.get(Aa,null);e&&(i=e)}let d=Ei(l.componentType??{}),f=Rp(this._lContainer,d?.id??null),p=f?.firstChild??null,m=l.create(u,r,p,i,a,o,this._getHostElementNamespace());return this.insertImpl(m.hostView,s,Jf(this._hostTNode,f)),m}_getHostElementNamespace(){if(this._hostTNode.type&2){let e=this._hostTNode.parent??this._hostLView[5];return e!==null&&e.type&2&&typeof e.value==`string`&&e.value.toLowerCase()===`foreignobject`?null:e?.namespace??null}return this._hostTNode.namespace}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(t,n,r){let i=t._lView;if(lo(i)){let n=this.indexOf(t);if(n!==-1)this.detach(n);else{let n=i[3],r=new e(n,n[5],n[3]);r.detach(r.indexOf(t))}}let a=this._adjustIndex(n),o=this._lContainer;return xp(o,i,a,r),t.attachToViewContainerRef(),na(Km(o),a,t),t}move(e,t){return this.insert(e,t)}indexOf(e){let t=Gm(this._lContainer);return t===null?-1:t.indexOf(e)}remove(e){let t=this._adjustIndex(e,-1),n=Cp(this._lContainer,t);n&&(ra(Km(this._lContainer),t),qd(n[1],n))}detach(e){let t=this._adjustIndex(e,-1),n=Cp(this._lContainer,t);return n&&ra(Km(this._lContainer),t)!=null?new Ep(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function Gm(e){return e[8]}function Km(e){return e[8]||=[]}function qm(e,t){let n,r=t[e.index];return Ka(r)?n=r:(n=yp(r,t,null,e),t[e.index]=n,bf(t,n)),Ym(n,t,e,r),new Wm(n,e,t)}function Jm(e,t){let n=e[11],r=n.createComment(``),i=ro(t,e);return uu(n,n.parentNode(i),r,n.nextSibling(i),!1),r}var Ym=Qm,Xm=()=>!1;function Zm(e,t,n){return Xm(e,t,n)}function Qm(e,t,n,r){if(e[7])return;let i;i=n.type&8?to(r):Jm(t,n),e[7]=i}var $m=class e{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},eh=class e{queries;constructor(e=[]){this.queries=e}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries===null?n.length:t.contentQueries[0],i=[];for(let e=0;e0)r.push(o[e/2]);else{let i=a[e+1],o=t[-n];for(let e=10;ee.trim())}function mh(e,t,n){e.queries===null&&(e.queries=new nh),e.queries.track(new rh(t,n))}function hh(e,t){return e.queries.getByIndex(t)}function gh(e,t){let n=e[1],r=hh(n,t);return r.crossesNgTemplate?lh(n,e,t,[]):ch(n,e,r,t)}function _h(e,t,n){let r,i=Mn(()=>{r._dirtyCounter();let n=xh(r,e);if(t&&n===void 0)throw new T(-951,!1);return n});return r=i[dn],r._dirtyCounter=A(0),r._flatValue=void 0,i}function vh(e){return _h(!0,!1,e)}function yh(e){return _h(!0,!0,e)}function bh(e,t){let n=e[dn];n._lView=D(),n._queryIndex=t,n._queryList=uh(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(e=>e+1))}function xh(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[2]&4)return t?void 0:ua;let i=uh(n,r),a=gh(n,r);return i.reset(a,El),t?i.first:i._changesDetected||e._flatValue===void 0?e._flatValue=i.toArray():e._flatValue}function Sh(e){return!!e&&typeof e.then==`function`}function Ch(e){return!!e&&typeof e.subscribe==`function`}var wh=class{},Th=class extends wh{injector;instance=null;constructor(e){super();let t=new ja([...e.providers,{provide:wh,useValue:this}],e.parent||ka(),e.debugName,new Set([`environment`]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Eh(e,t,n=null){return new Th({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Dh=(()=>{class e{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let t=ga(!1,e.type),n=t.length>0?Eh([t],this._injector,``):null;this.cachedInjectors.set(e,n)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static ɵprov=di({token:e,providedIn:`environment`,factory:()=>new e(qi(Aa))})}return e})();function Oh(e){return Sc(()=>{let t=Nh(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==Al.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?e=>e.get(Dh).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||eu.Emulated,styles:e.styles||ua,_:null,schemas:e.schemas||null,tView:null,id:``};t.standalone&&yd(`NgStandalone`),Ph(n);let r=e.dependencies;return n.directiveDefs=Fh(r,kh),n.pipeDefs=Fh(r,Oi),n.id=Ih(n),n})}function kh(e){return Ei(e)||Di(e)}function Ah(e,t){if(e==null)return la;let n={};for(let r in e)if(Object.hasOwn(e,r)){let i=e[r],a,o,s,c;Array.isArray(i)?(s=i[0],a=i[1],o=i[2]??a,c=i[3]||null):(a=i,o=i,s=Sf.None,c=null),n[a]=[r,s,c],t[a]=o}return n}function jh(e){if(e==null)return la;let t={};for(let n in e)Object.hasOwn(e,n)&&(t[e[n]]=n);return t}function Mh(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 Nh(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||la,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||ua,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:Ah(e.inputs,t),outputs:jh(e.outputs),debugInfo:null}}function Ph(e){e.features?.forEach(t=>t(e))}function Fh(e,t){return e?()=>{let n=typeof e==`function`?e():e,r=[];for(let e of n){let n=t(e);n!==null&&r.push(n)}return r}:null}function Ih(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 e of r.join(`|`))t=Math.imul(31,t)+e.charCodeAt(0)<<0;return t+=2147483648,`c`+t}var Lh=new vi(``),Rh=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t});appInits=E(Lh,{optional:!0})??[];injector=E(Ss);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let t of this.appInits){let n=Ha(this.injector,t);if(Sh(n))e.push(n);else if(Ch(n)){let t=new Promise((e,t)=>{n.subscribe({complete:e,error:t})});e.push(t)}}let t=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),e.length===0&&t(),this.initialized=!0}static ɵfac=function(t){return new(t||e)};static ɵprov=Sl({token:e,factory:e.ɵfac})}return e})();function zh(e,t,n,r,i,a,o,s){if(n.firstCreatePass){e.mergedAttrs=Wc(e.mergedAttrs,e.attrs);let t=e.tView=pf(2,e,i,a,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),t.queries=n.queries.embeddedTView(e))}s&&(e.flags|=s),Lo(e,!1);let c=Vh(n,t,e,r);vs()&&nf(n,t,c,e),Ll(c,t);let l=yp(c,t,c,e);t[r+27]=l,bf(t,l),Zm(l,e,t)}function Bh(e,t,n,r,i,a,o,s,c,l,u){let d=n+27,f;if(t.firstCreatePass){if(f=Ap(t,d,4,o||null,s||null),l!=null){let e=uo(t.consts,l);f.localNames=[];for(let t=0;t{throw new T(600,``)})}var Kh=10,qh=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=E(Ys);afterRenderManager=E(bd);zonelessEnabled=E(oc);rootEffectScheduler=E(cc);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Zr;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=E(Os);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ei(e=>!e))}constructor(){E(_d,{optional:!0})}whenStable(){let e;return new Promise(t=>{e=this.isStable.subscribe({next:e=>{e&&t()}})}).finally(()=>{e.unsubscribe()})}_injector=E(Aa);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,t){return this.bootstrapImpl(e,t)}bootstrapImpl(e,t,n=Ss.NULL){return this._injector.get(Is).run(()=>{if(Oc(Cc.BootstrapComponentStart),!this._injector.get(Rh).done)throw new T(405,``);let r=Ei(e),i=this._injector.get(wh),a=new Fm(r,i);this.componentTypes.push(e);let{hostElement:o,directives:s,bindings:c}=Jh(t),l=o||a.selector,u=a.create(n,[],l,i.injector,s,c),d=u.location.nativeElement,f=u.injector.get(Uh,null);return f?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Yh(this.components,u),f?.unregisterApplication(d)}),this._loadComponent(u),Oc(Cc.BootstrapComponentEnd,u),u})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Oc(Cc.ChangeDetectionStart),this.tracingSnapshot===null?this.tickImpl():this.tracingSnapshot.run(gd.CHANGE_DETECTION,this.tickImpl)}tickImpl=()=>{if(this._runningTick)throw Oc(Cc.ChangeDetectionEnd),new T(101,!1);let e=w(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,w(e),this.afterTick.next(),Oc(Cc.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Vp,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++ho(e))){this.dirtyFlags|=2;return}this.dirtyFlags&=-8}attachView(e){let t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){let t=e;Yh(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(e){this.internalErrorHandler(e)}this.components.push(e),this._injector.get(Wh,[]).forEach(t=>t(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Yh(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new T(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static ɵfac=function(t){return new(t||e)};static ɵprov=Sl({token:e,factory:e.ɵfac})}return e})();function Jh(e){return e===void 0||typeof e==`string`||e instanceof Element?{hostElement:e}:e}function Yh(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function M(e,t,n,r){let i=D();return Jp(i,Ko(),t)&&(No(),If(fs(),i,e,t,n,r)),M}function Xh(e){if(yd(`NgAnimateEnter`),!ed)return Xh;let t=D();if(td(t))return Xh;let n=Po(),r=t[9].get(Is);return hd(dd(t),n,()=>Zh(t,n,e,r)),Md(t[9]),Nd(t[9],dd(t)),Xh}function Zh(e,t,n,r){let i=ro(t,e),a=e[11],o=fd(n),s=[],c=!1,l=e=>{if(pd(e)!==i)return;let t=e instanceof AnimationEvent?`animationend`:`transitionend`;r.runOutsideAngular(()=>{a.listen(i,t,u)})},u=e=>{pd(e)===i&&(md(e,i)&&(c=!0),Qh(e,i,a))};if(o&&o.length>0){r.runOutsideAngular(()=>{s.push(a.listen(i,`animationstart`,l)),s.push(a.listen(i,`transitionstart`,l))}),nd(i,o,s);for(let e of o)a.addClass(i,e);r.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(!c&&(Yu(i,ad,ed),!ad.has(i))){for(let e of o)a.removeClass(i,e);rd(i)}})})}}function Qh(e,t,n){let r=id.get(t);if(pd(e)===t&&r&&md(e,t)){e.stopPropagation();for(let e of r.classList)n.removeClass(t,e);rd(t)}}var $h=class{destroy(e){}updateValue(e,t){}swap(e,t){let n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){let e=this.detach(n);this.attach(n,i),this.attach(r,e)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}};function eg(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function tg(e,t,n,r){let i,a,o=0,s=e.length-1;if(Array.isArray(t)){w(r);let c=t.length-1;for(w(null);o<=s&&o<=c;){let r=e.at(o),l=t[o],u=eg(o,r,o,l,n);if(u!==0){u<0&&e.updateValue(o,l),o++;continue}let d=e.at(s),f=t[c],p=eg(s,d,c,f,n);if(p!==0){p<0&&e.updateValue(s,f),s--,c--;continue}let m=n(o,r),h=n(s,d),g=n(o,l);if(Object.is(g,h)){let t=n(c,f);Object.is(t,m)?(e.swap(o,s),e.updateValue(s,f),c--,s--):e.move(s,o),e.updateValue(o,l),o++;continue}if(i??=new ag,a??=ig(e,o,s,n),ng(e,i,o,g))e.updateValue(o,l),o++,s++;else if(a.has(g))i.set(m,e.detach(o)),s--;else{let n=e.create(o,t[o]);e.attach(o,n),o++,s++}}for(;o<=c;)rg(e,i,n,o,t[o]),o++}else if(t!=null){w(r);let c=t[Symbol.iterator]();w(null);let l=c.next();for(;!l.done&&o<=s;){let t=e.at(o),r=l.value,u=eg(o,t,o,r,n);if(u!==0)u<0&&e.updateValue(o,r),o++,l=c.next();else{i??=new ag,a??=ig(e,o,s,n);let u=n(o,r);if(ng(e,i,o,u))e.updateValue(o,r),o++,s++,l=c.next();else if(!a.has(u))e.attach(o,e.create(o,r)),o++,s++,l=c.next();else{let r=n(o,t);i.set(r,e.detach(o)),s--}}}for(;!l.done;)rg(e,i,n,e.length,l.value),l=c.next()}for(;o<=s;)e.destroy(e.detach(s--));i?.forEach(t=>{e.destroy(t)})}function ng(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function rg(e,t,n,r,i){if(ng(e,t,r,n(r,i)))e.updateValue(r,i);else{let t=e.create(r,i);e.attach(r,t)}}function ig(e,t,n,r){let i=new Set;for(let a=t;a<=n;a++)i.add(r(a,e.at(a)));return i}var ag=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}};function N(e,t,n,r,i,a,o,s){yd(`NgControlFlow`);let c=D(),l=No();return Bh(c,l,e,t,n,r,i,uo(l.consts,a),256,o,s),og}function og(e,t,n,r,i,a,o,s){yd(`NgControlFlow`);let c=D(),l=No();return Bh(c,l,e,t,n,r,i,uo(l.consts,a),512,o,s),og}function P(e,t){yd(`NgControlFlow`);let n=D(),r=Ko(),i=n[r]===Iu?-1:n[r],a=i===-1?void 0:fg(n,27+i);if(Jp(n,r,e)){let r=w(null);try{if(a!==void 0&&Sp(a,0),e!==-1){let r=27+e,i=fg(n,r),a=_g(n[1],r),o=zp(i,a,n);xp(i,qf(n,a,t,{dehydratedView:o}),0,Jf(a,o))}}finally{w(r)}}else if(a!==void 0){let e=bp(a,0);e!==void 0&&(e[8]=t)}}var sg=class{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-10}};function cg(e){return e}function lg(e,t){return t}var ug=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}};function F(e,t,n,r,i,a,o,s,c,l,u,d,f){yd(`NgControlFlow`);let p=D(),m=No(),h=c!==void 0,g=D(),_=new ug(h,s?o.bind(g[15][8]):o);g[27+e]=_,Bh(p,m,e+1,t,n,r,i,uo(m.consts,a),256),h&&Bh(p,m,e+2,c,l,u,d,uo(m.consts,f),512)}var dg=class extends $h{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-10}at(e){return this.getLView(e)[8].$implicit}attach(e,t){let n=t[6];this.needsIndexUpdate||=e!==this.length,xp(this.lContainer,t,e,Jf(this.templateTNode,n)),pg(this.lContainer,e)}detach(e){return this.needsIndexUpdate||=e!==this.length-1,mg(this.lContainer,e),hg(this.lContainer,e)}create(e,t){let n=Rp(this.lContainer,this.templateTNode.tView.ssrId);return qf(this.hostLView,this.templateTNode,new sg(this.lContainer,t,e),{dehydratedView:n})}destroy(e){qd(e[1],e)}updateValue(e,t){this.getLView(e)[8].$implicit=t}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e0){let e=n[9];Ad(e,r),Zu.delete(n[19]),r.detachedLeaveAnimationFns=void 0}}function mg(e,t){if(e.length<=10)return;let n=e[10+t],r=n?n[26]:void 0;r&&r.leave&&r.leave.size>0&&(r.detachedLeaveAnimationFns=[])}function hg(e,t){return Cp(e,t)}function gg(e,t){return bp(e,t)}function _g(e,t){return io(e,t)}function L(e,t,n){let r=D();return Jp(r,Ko(),t)&&(No(),kf(fs(),r,e,t,r[11],n)),L}function vg(e,t,n,r,i){Hf(t,e,n,i?`class`:`style`,r)}function R(e,t,n,r){let i=D(),a=i[1],o=e+27,s=a.firstCreatePass?Cm(o,i,2,t,Ff,ko(),n,r):a.data[o];if(Ja(s)){let n=i[10].tracingService;if(n&&n.componentCreate){let o=a.data[s.directiveStart+s.componentOffset];return n.componentCreate(Up(o),()=>(yg(e,t,i,s,r),R))}}return yg(e,t,i,s,r),R}function yg(e,t,n,r,i){if(zf(r,n,e,t,bg),Ya(r)){let e=n[1];Tf(e,n,r),$l(e,r,n)}i!=null&&Ef(n,r)}function z(){let e=No(),t=Bf(Po());return e.firstCreatePass&&wm(e,t),jo(t)&&Mo(),Oo(),t.classesWithoutHost!=null&&zc(t)&&vg(e,t,D(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Bc(t)&&vg(e,t,D(),t.stylesWithoutHost,!1),z}function B(e,t,n,r){return R(e,t,n,r),z(),B}function V(e,t,n,r){let i=D(),a=i[1],o=e+27,s=a.firstCreatePass?Tm(o,a,2,t,n,r):a.data[o];return zf(s,i,e,t,bg),r!=null&&Ef(i,s),V}function H(){return jo(Bf(Po()))&&Mo(),Oo(),H}function U(e,t,n,r){return V(e,t,n,r),H(),U}var bg=(e,t,n,r,i)=>(ys(!0),lu(t[11],r,gs()));function W(){return D()}function xg(e,t,n){let r=D();return Jp(r,Ko(),t)&&(No(),Af(fs(),r,e,t,r[11],n)),xg}var Sg=void 0;function Cg(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,``).length;return t===1&&n===0?1:5}var wg=[`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`]],Sg,[[`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`]],Sg,[[`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}`,Sg,Sg,Sg],[`.`,`,`,`;`,`%`,`+`,`-`,`E`,`×`,`‰`,`∞`,`NaN`,`:`],[`#,##0.###`,`#,##0%`,`¤#,##0.00`,`#E0`],`USD`,`$`,`US Dollar`,{},`ltr`,Cg],Tg=Object.create(null);function Eg(e){let t=kg(e),n=Dg(t);if(n)return n;let r=t.split(`-`)[0];if(n=Dg(r),n)return n;if(r===`en`)return wg;throw new T(701,!1)}function Dg(e){if(!(e in Tg)){let t=Hi.ng&&Hi.ng.common&&Hi.ng.common.locales&&Hi.ng.common.locales[e];return t!==void 0&&(Tg[e]=t),t}return Tg[e]}var Og={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};function kg(e){return e.toLowerCase().replace(/_/g,`-`)}var Ag=`en-US`;function jg(e){typeof e==`string`&&e.toLowerCase().replace(/_/g,`-`)}function G(e,t,n){let r=D(),i=No(),a=Po();return Mg(i,r,r[11],a,e,t,n),G}function K(e,t,n){let r=D(),i=No(),a=Po();return(a.type&3||n)&&em(a,i,r,n,r[11],e,t,Qp(a,r,t)),K}function Mg(e,t,n,r,i,a,o){let s=!0,c=null;if((r.type&3||o)&&(c??=Qp(r,t,a),em(r,e,t,o,n,i,a,c)&&(s=!1)),s){let e=r.outputs?.[i],n=r.hostDirectiveOutputs?.[i];if(n&&n.length)for(let e=0;e>17&32767}function Rg(e){return(e&2)==2}function zg(e,t){return e&131071|t<<17}function Bg(e){return e|2}function Vg(e){return(e&131068)>>2}function Hg(e,t){return e&-131069|t<<2}function Ug(e){return(e&1)==1}function Wg(e){return e|1}function Gg(e,t,n,r,i,a){let o=a?t.classBindings:t.styleBindings,s=Lg(o),c=Vg(o);e[r]=n;let l=!1,u;if(Array.isArray(n)){let e=n;u=e[1],(u===null||sa(e,u)>0)&&(l=!0)}else u=n;if(i){if(c!==0){let t=Lg(e[s+1]);e[r+1]=Ig(t,s),t!==0&&(e[t+1]=Hg(e[t+1],r)),e[s+1]=zg(e[s+1],r)}else e[r+1]=Ig(s,0),s!==0&&(e[s+1]=Hg(e[s+1],r)),s=r}else e[r+1]=Ig(c,0),s===0?s=r:e[c+1]=Hg(e[c+1],r),c=r;l&&(e[r+1]=Bg(e[r+1])),qg(e,u,r,!0),qg(e,u,r,!1),Kg(t,u,e,r,a),o=Ig(s,c),a?t.classBindings=o:t.styleBindings=o}function Kg(e,t,n,r,i){let a=i?e.residualClasses:e.residualStyles;a!=null&&typeof t==`string`&&sa(a,t)>=0&&(n[r+1]=Wg(n[r+1]))}function qg(e,t,n,r){let i=e[n+1],a=t===null,o=r?Lg(i):Vg(i),s=!1;for(;o!==0&&(s===!1||a);){let n=e[o],i=e[o+1];Jg(n,t)&&(s=!0,e[o+1]=r?Wg(i):Bg(i)),o=r?Lg(i):Vg(i)}s&&(e[n+1]=r?Bg(i):Wg(i))}function Jg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t==`string`?sa(e,t)>=0:!1}var Yg={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Xg(e){return e.substring(Yg.key,Yg.keyEnd)}function Zg(e){return $g(e),Qg(e,e_(e,0,Yg.textEnd))}function Qg(e,t){let n=Yg.textEnd;return n===t?-1:(t=Yg.keyEnd=t_(e,Yg.key=t,n),e_(e,t,n))}function $g(e){Yg.key=0,Yg.keyEnd=0,Yg.value=0,Yg.valueEnd=0,Yg.textEnd=e.length}function e_(e,t,n){for(;t32;)t++;return t}function n_(e,t,n){return a_(e,t,n,!1),n_}function J(e,t){return a_(e,t,null,!0),J}function r_(e){o_(g_,i_,e,!0)}function i_(e,t){for(let n=Zg(t);n>=0;n=Qg(t,n))aa(e,Xg(t),!0)}function a_(e,t,n,r){let i=D(),a=No(),o=qo(2);if(a.firstUpdatePass&&c_(a,e,o,r),t!==Iu&&Jp(i,o,t)){let s=a.data[us()];v_(a,s,i,i[11],e,i[o+1]=x_(t,n),r,o)}}function o_(e,t,n,r){let i=No(),a=qo(2);i.firstUpdatePass&&c_(i,null,a,r);let o=D();if(n!==Iu&&Jp(o,a,n)){let s=i.data[us()];if(S_(s,r)&&!s_(i,a)){let e=r?s.classesWithoutHost:s.stylesWithoutHost;e!==null&&(n=oi(e,n||``)),vg(i,s,o,n,r)}else __(i,s,o,o[11],o[a+1],o[a+1]=h_(e,t,n),r,a)}}function s_(e,t){return t>=e.expandoStartIndex}function c_(e,t,n,r){let i=e.data;if(i[n+1]===null){let a=i[us()],o=s_(e,n);S_(a,r)&&t===null&&!o&&(t=!1),t=l_(i,a,t,r),Gg(i,a,t,n,o,r)}}function l_(e,t,n,r){let i=Qo(e),a=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=p_(null,e,t,n,r),n=m_(n,t.attrs,r),a=null);else{let o=t.directiveStylingLast;if(o===-1||e[o]!==i){if(n=p_(i,e,t,n,r),a===null){let n=u_(e,t,r);n!==void 0&&Array.isArray(n)&&(n=p_(null,e,t,n[1],r),n=m_(n,t.attrs,r),d_(e,t,r,n))}else a=f_(e,t,r)}}return a!==void 0&&(r?t.residualClasses=a:t.residualStyles=a),n}function u_(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Vg(r)!==0)return e[Lg(r)]}function d_(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Lg(i)]=r}function f_(e,t,n){let r,i=t.directiveEnd;for(let a=1+t.directiveStylingLast;a0;){let t=e[i],a=Array.isArray(t),c=a?t[1]:t,l=c===null,u=n[i+1];u===Iu&&(u=l?ua:void 0);let d=l?oa(u,r):c===r?u:void 0;if(a&&!b_(d)&&(d=oa(t,r)),b_(d)&&(s=d,o))return s;let f=e[i+1];i=o?Lg(f):Vg(f)}if(t!==null){let e=a?t.residualClasses:t.residualStyles;e!=null&&(s=oa(e,r))}return s}function b_(e){return e!==void 0}function x_(e,t){return e==null||e===``||(typeof t==`string`?e=nu(e)+t:typeof e==`object`&&(e=ai(nu(e)))),e}function S_(e,t){return!!(e.flags&(t?8:16))}function Y(e,t=``){let n=D(),r=No(),i=e+27,a=r.firstCreatePass?Ap(r,i,1,t,null):r.data[i],o=C_(r,n,a,t);n[i]=o,vs()&&nf(r,n,o,a),Lo(a,!1)}var C_=(e,t,n,r)=>(ys(!0),su(t[11],r));function w_(e,t,n,r=``){return Jp(e,Ko(),n)?t+Ai(n)+r:Iu}function T_(e,t,n,r,i,a=``){let o=Yp(e,Wo(),n,i);return qo(2),o?t+Ai(n)+r+Ai(i)+a:Iu}function E_(e,t,n,r,i,a,o,s=``){let c=Xp(e,Wo(),n,i,o);return qo(3),c?t+Ai(n)+r+Ai(i)+a+Ai(o)+s:Iu}function D_(e,t,n,r,i,a,o,s,c,l=``){let u=Zp(e,Wo(),n,i,o,c);return qo(4),u?t+Ai(n)+r+Ai(i)+a+Ai(o)+s+Ai(c)+l:Iu}function X(e){return Z(``,e),X}function Z(e,t,n){let r=D(),i=w_(r,e,t,n);return i!==Iu&&j_(r,us(),i),Z}function O_(e,t,n,r,i){let a=D(),o=T_(a,e,t,n,r,i);return o!==Iu&&j_(a,us(),o),O_}function k_(e,t,n,r,i,a,o){let s=D(),c=E_(s,e,t,n,r,i,a,o);return c!==Iu&&j_(s,us(),c),k_}function A_(e,t,n,r,i,a,o,s,c){let l=D(),u=D_(l,e,t,n,r,i,a,o,s,c);return u!==Iu&&j_(l,us(),u),A_}function j_(e,t,n){let r=no(t,e);cu(e[11],r,n)}function M_(e,t,n){yc(t)&&(t=t());let r=D();return Jp(r,Ko(),t)&&(No(),kf(fs(),r,e,t,r[11],n)),M_}function N_(e,t){let n=yc(e);return n&&e.set(t),n}function P_(e,t){let n=D(),r=No(),i=Po();return Mg(r,n,n[11],i,e,t),P_}var F_={};function I_(e){yd(`NgLet`);let t=No(),n=D(),r=e+27;return Lo(Ap(t,r,128,null,null),!1),oo(t,n,r,F_),I_}function L_(e){return oo(No(),D(),us(),e),e}function R_(e){let t=ao(Bo(),27+e);if(t===F_)throw new T(314,!1);return t}function z_(e,t){let n=Uo()+e,r=D();return r[n]===Iu?Kp(r,n,t()):qp(r,n)}function B_(e,t){let n=e[t];return n===Iu?void 0:n}function V_(e,t,n,r,i,a){let o=t+n;return Jp(e,o,i)?Kp(e,o+1,a?r.call(a,i):r(i)):B_(e,o+1)}function H_(e,t,n,r,i,a,o){let s=t+n;return Yp(e,s,i,a)?Kp(e,s+2,o?r.call(o,i,a):r(i,a)):B_(e,s+2)}function U_(e,t){let n=No(),r,i=e+27;n.firstCreatePass?(r=W_(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let a=r.factory||(r.factory=Qi(r.type,!0)),o=Bi(cm);try{let e=Zc(!1),t=a();return Zc(e),oo(n,D(),i,t),t}finally{Bi(o)}}function W_(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function G_(e,t,n){let r=e+27,i=D(),a=ao(i,r);return q_(i,r)?V_(i,Uo(),t,a.transform,n,a):a.transform(n)}function K_(e,t,n,r){let i=e+27,a=D(),o=ao(a,i);return q_(a,i)?H_(a,Uo(),t,o.transform,n,r,o):o.transform(n,r)}function q_(e,t){return e[1].data[t].pure}var J_=(()=>{class e{applicationErrorHandler=E(Ys);appRef=E(qh);taskService=E(Os);ngZone=E(Is);zonelessEnabled=E(oc);tracing=E(_d,{optional:!0});zoneIsDefined=typeof Zone<`u`&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new hr;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ps):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(E(sc,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:case 2:this.appRef.dirtyFlags|=2;break;case 3:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:this.appRef.dirtyFlags|=2;break;case 12:this.appRef.dirtyFlags|=16;break;case 13:this.appRef.dirtyFlags|=2;break;case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let t=this.useMicrotaskScheduler?Ms:js;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>t(()=>this.tick())):this.ngZone.runOutsideAngular(()=>t(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(`isAngularZone_ID`+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 e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(e){this.applicationErrorHandler(e)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static ɵfac=function(t){return new(t||e)};static ɵprov=Sl({token:e,factory:e.ɵfac})}return e})();function Y_(){return[{provide:ac,useExisting:J_},{provide:Is,useClass:Ws},{provide:oc,useValue:!0}]}function X_(){return typeof $localize<`u`&&$localize.locale||`en-US`}var Z_=new vi(``,{factory:()=>E(Z_,{optional:!0,skipSelf:!0})||X_()}),Q_=class{destroyed=!1;listeners=null;errorHandler=E(Js,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=E(ws);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new T(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let t=this.listeners?this.listeners.indexOf(e):-1;t>-1&&(this.isEmitting?(this.hasNullListeners=!0,this.listeners[t]=null):this.listeners.splice(t,1))}}}emit(e){if(this.destroyed){console.warn(ri(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let t=w(null);try{for(let t of this.listeners)try{t!==null&&t(e)}catch(e){this.errorHandler?.handleError(e)}}finally{this.hasNullListeners&&(this.hasNullListeners=!1,this.listeners&&$_(this.listeners)),w(t),this.isEmitting=!1}}};function $_(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--}function Q(e,t){return Mn(e,t?.equal)}function ev(e){return ar(e)}(class e extends Error{_brand;constructor(e){super(e)}static IDLE=new e(`IDLE`);static LOADING=new e(`LOADING`)});var tv=e=>e;function nv(e,t){return typeof e==`function`?rv(tr(e,tv,t?.equal),t?.debugName,t?.set):rv(tr(e.source,e.computation,e.equal),e.debugName,e.set)}function rv(e,t,n){let r=e[dn],i=e;if(n!==void 0){let t=e=>nr(r,e);i.set=e=>n(e,t),i.update=r=>n(r(ev(e)),t)}else i.set=e=>nr(r,e),i.update=e=>rr(r,e);return i.asReadonly=Zs.bind(e),i}function iv(e,t){let n=Object.create(xc);n.value=e,n.transformFn=t?.transform;function r(){if(mn(n),n.value===bc)throw new T(-950,null);return n.value}return r[dn]=n,r}function av(e){return new Q_}function ov(e,t){return iv(e,t)}function sv(e){return iv(bc,e)}var $=(ov.required=sv,ov);function cv(e,t){let n=Object.create(xc),r=new Q_;n.value=e;function i(){return mn(n),lv(n.value),n.value}return i[dn]=n,i.asReadonly=Zs.bind(i),i.set=e=>{n.equal(n.value,e)||(Wn(n,e),r.emit(e))},i.update=e=>{lv(n.value),i.set(e(n.value))},i.subscribe=r.subscribe.bind(r),i.destroyRef=r.destroyRef,i}function lv(e){if(e===bc)throw new T(952,!1)}function uv(e,t){return cv(e,t)}function dv(e){return cv(bc,e)}var fv=(uv.required=dv,uv);function pv(e,t){return vh(t)}function mv(e,t){return yh(t)}var hv=(pv.required=mv,pv),gv=new vi(``),_v=new vi(``);function vv(e){return!e.moduleRef}function yv(e){let t=vv(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Is);return n.run(()=>{vv(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Ys),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),vv(e)){let n=()=>t.destroy(),r=e.platformInjector.get(gv);r.add(n),t.onDestroy(()=>{i.unsubscribe(),r.delete(n)})}else{let t=()=>e.moduleRef.destroy(),n=e.platformInjector.get(gv);n.add(t),e.moduleRef.onDestroy(()=>{Yh(e.allPlatformModules,e.moduleRef),i.unsubscribe(),n.delete(t)})}return xv(r,n,()=>{let n=t.get(Os),r=n.add(),i=t.get(Rh);return i.runInitializers(),i.donePromise.then(()=>{if(jg(t.get(Z_,Ag)||`en-US`),!t.get(_v,!0))return vv(e)?t.get(qh):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(vv(e)){let n=t.get(qh);return e.rootComponent!==void 0&&n.bootstrap(e.rootComponent),n}return bv?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>void n.remove(r))})})}var bv;function xv(e,t,n){try{let r=n();return Sh(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e(n)),n}):r}catch(n){throw t.runOutsideAngular(()=>e(n)),n}}var Sv=null;function Cv(e=[],t){return Ss.create({name:t,providers:[{provide:Ta,useValue:`platform`},{provide:gv,useValue:new Set([()=>Sv=null])},...e]})}function wv(e=[]){if(Sv)return Sv;let t=Cv(e);return Sv=t,Gh(),Tv(t),t}function Tv(e){let t=e.get(ec,null);Ha(e,()=>{t?.forEach(e=>e())})}function Ev(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;Oc(Cc.BootstrapApplicationStart);try{let e=i?.injector??wv(r);return yv({r3Injector:new Th({providers:[Y_(),Xs,...n||[]],parent:e,debugName:``,runEnvironmentInitializers:!1}).injector,platformInjector:e,rootComponent:t})}catch(e){return Promise.reject(e)}finally{Oc(Cc.BootstrapApplicationEnd)}}var Dv=Symbol(`NOT_SET`),Ov=new Set,kv={...Kn,kind:`afterRenderEffectPhase`,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:Dv,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(mn(r),r.value),r.signal[dn]=r,r.registerCleanupFn=e=>(r.cleanup??=new Set).add(e),this.nodes[e]=r,this.hooks[e]=e=>r.phaseFn(e)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();super.destroy();for(let e of this.nodes)if(e)try{for(let t of e.cleanup??Ov)t()}finally{En(e)}}};function jv(e,t){let n=t?.injector??E(Ss),r=n.get(ac),i=n.get(bd),a=n.get(_d,null,{optional:!0});i.impl??=n.get(Sd);let o=e;typeof o==`function`&&(o={mixedReadWrite:e});let s=n.get(rc,null,{optional:!0}),c=new Av(i.impl,[o.earlyRead,o.write,o.mixedReadWrite,o.read],s?.view,r,n,a?.snapshot(null));return i.impl.register(c),c}var Mv=null;function Nv(){return Mv}function Pv(e){Mv??=e}var Fv=class{},Iv=(function(e){return e[e.Format=0]=`Format`,e[e.Standalone=1]=`Standalone`,e})(Iv||{}),Lv=(function(e){return e[e.Narrow=0]=`Narrow`,e[e.Abbreviated=1]=`Abbreviated`,e[e.Wide=2]=`Wide`,e[e.Short=3]=`Short`,e})(Lv||{}),Rv=(function(e){return e[e.Short=0]=`Short`,e[e.Medium=1]=`Medium`,e[e.Long=2]=`Long`,e[e.Full=3]=`Full`,e})(Rv||{}),zv={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 Bv(e){return Eg(e)[Og.LocaleId]}function Vv(e,t,n){let r=Eg(e);return Qv(Qv([r[Og.DayPeriodsFormat],r[Og.DayPeriodsStandalone]],t),n)}function Hv(e,t,n){let r=Eg(e);return Qv(Qv([r[Og.DaysFormat],r[Og.DaysStandalone]],t),n)}function Uv(e,t,n){let r=Eg(e);return Qv(Qv([r[Og.MonthsFormat],r[Og.MonthsStandalone]],t),n)}function Wv(e,t){let n=Eg(e)[Og.Eras];return Qv(n,t)}function Gv(e,t){return Qv(Eg(e)[Og.DateFormat],t)}function Kv(e,t){return Qv(Eg(e)[Og.TimeFormat],t)}function qv(e,t){let n=Eg(e)[Og.DateTimeFormat];return Qv(n,t)}function Jv(e,t){let n=Eg(e),r=n[Og.NumberSymbols][t];if(r===void 0){if(t===zv.CurrencyDecimal)return n[Og.NumberSymbols][zv.Decimal];if(t===zv.CurrencyGroup)return n[Og.NumberSymbols][zv.Group]}return r}function Yv(e){if(!e[Og.ExtraData])throw new T(2303,!1)}function Xv(e){let t=Eg(e);return Yv(t),(t[Og.ExtraData][2]||[]).map(e=>typeof e==`string`?$v(e):[$v(e[0]),$v(e[1])])}function Zv(e,t,n){let r=Eg(e);return Yv(r),Qv(Qv([r[Og.ExtraData][0],r[Og.ExtraData][1]],t)||[],n)||[]}function Qv(e,t){for(let n=t;n>-1;n--)if(e[n]!==void 0)return e[n];throw new T(2304,!1)}function $v(e){let[t,n]=e.split(`:`);return{hours:+t,minutes:+n}}var ey=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ty=Object.create(null),ny=/((?:[^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]*)/,ry=256;function iy(e,t,n,r){let i=Dy(e);ay(t),t=sy(n,t)||t;let a=[],o;for(;t;)if(o=ny.exec(t),o){a=a.concat(o.slice(1));let e=a.pop();if(!e)break;t=e}else{a.push(t);break}let s=i.getTimezoneOffset();r&&(s=wy(r,s),i=Ey(i,r));let c=``;return a.forEach(e=>{let t=Cy(e);c+=t?t(i,n,s):e===`''`?`'`:e.replace(/(^'|'$)/g,``).replace(/''/g,`'`)}),c}function ay(e){if(e.length>ry)throw new T(2300,!1)}function oy(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function sy(e,t){let n=Bv(e);if(ty[n]??=Object.create(null),ty[n][t])return ty[n][t];let r=``;switch(t){case`shortDate`:r=Gv(e,Rv.Short);break;case`mediumDate`:r=Gv(e,Rv.Medium);break;case`longDate`:r=Gv(e,Rv.Long);break;case`fullDate`:r=Gv(e,Rv.Full);break;case`shortTime`:r=Kv(e,Rv.Short);break;case`mediumTime`:r=Kv(e,Rv.Medium);break;case`longTime`:r=Kv(e,Rv.Long);break;case`fullTime`:r=Kv(e,Rv.Full);break;case`short`:let t=sy(e,`shortTime`),n=sy(e,`shortDate`);r=cy(qv(e,Rv.Short),[t,n]);break;case`medium`:let i=sy(e,`mediumTime`),a=sy(e,`mediumDate`);r=cy(qv(e,Rv.Medium),[i,a]);break;case`long`:let o=sy(e,`longTime`),s=sy(e,`longDate`);r=cy(qv(e,Rv.Long),[o,s]);break;case`full`:let c=sy(e,`fullTime`),l=sy(e,`fullDate`);r=cy(qv(e,Rv.Full),[c,l])}return r&&(ty[n][t]=r),r}function cy(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return Object.hasOwn(t,n)?t[n]:e})),e}function ly(e,t,n=`-`,r,i){let a=``;(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,a=n));let o=String(e);for(;o.length0||s>-n)&&(s+=n),e===3)s===0&&n===-12&&(s=12);else if(e===6)return uy(s,t);let c=Jv(o,zv.MinusSign);return ly(s,t,c,r,i)}}function fy(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 T(2301,!1)}}function py(e,t,n=Iv.Format,r=!1){return function(i,a){return my(i,a,e,t,n,r)}}function my(e,t,n,r,i,a){switch(n){case 2:return Uv(t,i,r)[e.getMonth()];case 1:return Hv(t,i,r)[e.getDay()];case 0:let n=e.getHours(),o=e.getMinutes();if(a){let e=Xv(t),a=Zv(t,i,r),s=e.findIndex(e=>{if(Array.isArray(e)){let[t,r]=e,i=n>=t.hours&&o>=t.minutes,a=n0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?`+`:``)+ly(o,2,a)+ly(Math.abs(i%60),2,a);case 1:return`GMT`+(i>=0?`+`:``)+ly(o,1,a);case 2:return`GMT`+(i>=0?`+`:``)+ly(o,2,a)+`:`+ly(Math.abs(i%60),2,a);case 3:return r===0?`Z`:(i>=0?`+`:``)+ly(o,2,a)+`:`+ly(Math.abs(i%60),2,a);default:throw new T(2310,!1)}}}var gy=0,_y=4;function vy(e){let t=oy(e,gy,1).getDay();return oy(e,0,1+(t<=_y?_y:11)-t)}function yy(e){let t=e.getDay(),n=t===0?-3:_y-t;return oy(e.getFullYear(),e.getMonth(),e.getDate()+n)}function by(e,t=!1){return function(n,r){let i;if(t){let e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();i=1+Math.floor((t+e)/7)}else{let e=yy(n),t=vy(e.getFullYear()),r=e.getTime()-t.getTime();i=1+Math.round(r/6048e5)}return ly(i,e,Jv(r,zv.MinusSign))}}function xy(e,t=!1){return function(n,r){return ly(yy(n).getFullYear(),e,Jv(r,zv.MinusSign),t)}}var Sy=Object.create(null);function Cy(e){if(Sy[e])return Sy[e];let t;switch(e){case`G`:case`GG`:case`GGG`:t=py(3,Lv.Abbreviated);break;case`GGGG`:t=py(3,Lv.Wide);break;case`GGGGG`:t=py(3,Lv.Narrow);break;case`y`:t=dy(0,1,0,!1,!0);break;case`yy`:t=dy(0,2,0,!0,!0);break;case`yyy`:t=dy(0,3,0,!1,!0);break;case`yyyy`:t=dy(0,4,0,!1,!0);break;case`Y`:t=xy(1);break;case`YY`:t=xy(2,!0);break;case`YYY`:t=xy(3);break;case`YYYY`:t=xy(4);break;case`M`:case`L`:t=dy(1,1,1);break;case`MM`:case`LL`:t=dy(1,2,1);break;case`MMM`:t=py(2,Lv.Abbreviated);break;case`MMMM`:t=py(2,Lv.Wide);break;case`MMMMM`:t=py(2,Lv.Narrow);break;case`LLL`:t=py(2,Lv.Abbreviated,Iv.Standalone);break;case`LLLL`:t=py(2,Lv.Wide,Iv.Standalone);break;case`LLLLL`:t=py(2,Lv.Narrow,Iv.Standalone);break;case`w`:t=by(1);break;case`ww`:t=by(2);break;case`W`:t=by(1,!0);break;case`d`:t=dy(2,1);break;case`dd`:t=dy(2,2);break;case`c`:case`cc`:t=dy(7,1);break;case`ccc`:t=py(1,Lv.Abbreviated,Iv.Standalone);break;case`cccc`:t=py(1,Lv.Wide,Iv.Standalone);break;case`ccccc`:t=py(1,Lv.Narrow,Iv.Standalone);break;case`cccccc`:t=py(1,Lv.Short,Iv.Standalone);break;case`E`:case`EE`:case`EEE`:t=py(1,Lv.Abbreviated);break;case`EEEE`:t=py(1,Lv.Wide);break;case`EEEEE`:t=py(1,Lv.Narrow);break;case`EEEEEE`:t=py(1,Lv.Short);break;case`a`:case`aa`:case`aaa`:t=py(0,Lv.Abbreviated);break;case`aaaa`:t=py(0,Lv.Wide);break;case`aaaaa`:t=py(0,Lv.Narrow);break;case`b`:case`bb`:case`bbb`:t=py(0,Lv.Abbreviated,Iv.Standalone,!0);break;case`bbbb`:t=py(0,Lv.Wide,Iv.Standalone,!0);break;case`bbbbb`:t=py(0,Lv.Narrow,Iv.Standalone,!0);break;case`B`:case`BB`:case`BBB`:t=py(0,Lv.Abbreviated,Iv.Format,!0);break;case`BBBB`:t=py(0,Lv.Wide,Iv.Format,!0);break;case`BBBBB`:t=py(0,Lv.Narrow,Iv.Format,!0);break;case`h`:t=dy(3,1,-12);break;case`hh`:t=dy(3,2,-12);break;case`H`:t=dy(3,1);break;case`HH`:t=dy(3,2);break;case`m`:t=dy(4,1);break;case`mm`:t=dy(4,2);break;case`s`:t=dy(5,1);break;case`ss`:t=dy(5,2);break;case`S`:t=dy(6,1);break;case`SS`:t=dy(6,2);break;case`SSS`:t=dy(6,3);break;case`Z`:case`ZZ`:case`ZZZ`:t=hy(0);break;case`ZZZZZ`:t=hy(3);break;case`O`:case`OO`:case`OOO`:case`z`:case`zz`:case`zzz`:t=hy(1);break;case`OOOO`:case`ZZZZ`:case`zzzz`:t=hy(2);break;default:return null}return Sy[e]=t,t}function wy(e,t){e=e.replace(/:/g,``);let n=Date.parse(`Jan 01, 1970 00:00:00 `+e)/6e4;return isNaN(n)?t:n}function Ty(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Ey(e,t,n){let r=e.getTimezoneOffset();return Ty(e,-1*(wy(t,r)-r))}function Dy(e){if(ky(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[t,n=1,r=1]=e.split(`-`).map(e=>+e);return oy(t,n-1,r)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(ey))return Oy(n)}let t=new Date(e);if(!ky(t))throw new T(2311,!1);return t}function Oy(e){let t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,a=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-n,s=Number(e[5]||0)-r,c=Number(e[6]||0),l=Math.floor(parseFloat(`0.`+(e[7]||0))*1e3);return a.call(t,o,s,c,l),t}function ky(e){return e instanceof Date&&!isNaN(e.valueOf())}function Ay(e,t){return new T(2100,!1)}var jy=`mediumDate`,My=new vi(``),Ny=new vi(``),Py=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(e,t,n){this.locale=e,this.defaultTimezone=t,this.defaultOptions=n}transform(t,n,r,i){if(t==null||t===``||t!==t)return null;try{let e=n??this.defaultOptions?.dateFormat??jy,a=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return iy(t,e,i||this.locale,a)}catch(t){throw Ay(e,t.message)}}static ɵfac=function(t){return new(t||e)(cm(Z_,16),cm(My,24),cm(Ny,24))};static ɵpipe=Mh({name:`date`,type:e,pure:!0})}return e})(),Fy=(()=>{class e{transform(e){return JSON.stringify(e,null,2)}static ɵfac=function(t){return new(t||e)};static ɵpipe=Mh({name:`json`,type:e,pure:!1})}return e})();function Iy(e,t){t=encodeURIComponent(t);for(let n of e.split(`;`)){let e=n.indexOf(`=`),[r,i]=e==-1?[n,``]:[n.slice(0,e),n.slice(e+1)];if(r.trim()!==t)continue;let a=i;try{a=decodeURIComponent(i)}catch{}return a.length>1&&a[0]===`"`&&a[a.length-1]===`"`&&(a=a.slice(1,-1)),a}return null}var Ly=`browser`,Ry=class{_doc;constructor(e){this._doc=e}manager},zy=(()=>{class e extends Ry{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n,r){return e.addEventListener(t,n,r),()=>this.removeEventListener(e,t,n,r)}removeEventListener(e,t,n,r){return e.removeEventListener(t,n,r)}static ɵfac=function(t){return new(t||e)(qi(Cs))};static ɵprov=di({token:e,factory:e.ɵfac})}return e})(),By=new vi(``),Vy=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(e=>{e.manager=this});let n=e.filter(e=>!(e instanceof zy));this._plugins=n.slice().reverse();let r=e.find(e=>e instanceof zy);r&&this._plugins.push(r)}addEventListener(e,t,n,r){return this._findPluginFor(t).addEventListener(e,t,n,r)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(t=>t.supports(e)),!t)throw new T(-5101,!1);return this._eventNameToPlugin.set(e,t),t}static ɵfac=function(t){return new(t||e)(qi(By),qi(Is))};static ɵprov=di({token:e,factory:e.ɵfac})}return e})(),Hy=`ng-app-id`;function Uy(e){for(let t of e)t.remove()}function Wy(e,t){let n=t.createElement(`style`);return n.textContent=e,n}function Gy(e,t,n,r){let i=e.head?.querySelectorAll(`style[${Hy}="${t}"],link[${Hy}="${t}"]`);if(!i||i.length===0)return!1;for(let e of i)e.removeAttribute(Hy),e instanceof HTMLLinkElement?r.set(e.href.slice(e.href.lastIndexOf(`/`)+1),{usage:0,elements:[e]}):e.textContent&&n.set(e.textContent,{usage:0,elements:[e]});return!0}function Ky(e,t){let n=t.createElement(`link`);return n.setAttribute(`rel`,`stylesheet`),n.setAttribute(`href`,e),n}var qy=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,n,r={}){this.doc=e,this.appId=t,this.nonce=n,Gy(e,t,this.inline,this.external)&&this.hosts.add(e.head)}addStyles(e,t){for(let t of e)this.addUsage(t,this.inline,Wy);t?.forEach(e=>this.addUsage(e,this.external,Ky))}removeStyles(e,t){for(let t of e)this.removeUsage(t,this.inline);t?.forEach(e=>this.removeUsage(e,this.external))}addUsage(e,t,n){let r=t.get(e);r?r.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(t=>this.addElement(t,n(e,this.doc)))})}removeUsage(e,t){let n=t.get(e);n&&(n.usage--,n.usage<=0&&(Uy(n.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Uy(e);this.hosts.clear()}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[t,{elements:n}]of this.inline)n.push(this.addElement(e,Wy(t,this.doc)));for(let[t,{elements:n}]of this.external)n.push(this.addElement(e,Ky(t,this.doc)))}}removeHost(e){this.hosts.delete(e);for(let t of[...this.inline.values(),...this.external.values()]){let n=[];for(let r of t.elements)r.parentNode===e?r.remove():n.push(r);t.elements=n}}addElement(e,t){return this.nonce&&t.setAttribute(`nonce`,this.nonce),e.appendChild(t)}static ɵfac=function(t){return new(t||e)(qi(Cs),qi(Qs),qi(nc,8),qi(tc))};static ɵprov=di({token:e,factory:e.ɵfac})}return e})(),Jy={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`},Yy=/%COMP%/g,Xy=`%COMP%`,Zy=`_nghost-${Xy}`,Qy=`_ngcontent-${Xy}`,$y=!0,eb=new vi(``,{factory:()=>$y}),tb=new vi(``);function nb(e){return Qy.replace(Yy,e)}function rb(e){return Zy.replace(Yy,e)}function ib(e,t){return t.map(t=>t.replace(Yy,e))}var ab=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(e,t,n,r,i,a,o=null,s=null,c=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.removeStylesOnCompDestroy=r,this.doc=i,this.ngZone=a,this.nonce=o,this.tracingService=s,this.cssVarNamespace=c??``,this.defaultRenderer=new ob(e,i,a,this.tracingService,this.cssVarNamespace)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let n=this.getOrCreateRenderer(e,t);return n instanceof ub?n.applyToHost(e):n instanceof lb&&n.applyStyles(),n}getOrCreateRenderer(e,t){let n=this.rendererByCompId,r=n.get(t.id);if(!r){let i=this.doc,a=this.ngZone,o=this.eventManager,s=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,l=this.tracingService;switch(t.encapsulation){case eu.Emulated:r=new ub(o,s,t,this.appId,c,i,a,l,this.cssVarNamespace);break;case eu.ShadowDom:return new cb(o,e,t,i,a,this.nonce,l,this.cssVarNamespace,s);case eu.ExperimentalIsolatedShadowDom:return new cb(o,e,t,i,a,this.nonce,l,this.cssVarNamespace);default:r=new lb(o,s,t,c,i,a,l,this.cssVarNamespace)}n.set(t.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static ɵfac=function(t){return new(t||e)(qi(Vy),qi(om),qi(Qs),qi(eb),qi(Cs),qi(Is),qi(nc),qi(_d,8),qi(tb,8))};static ɵprov=di({token:e,factory:e.ɵfac})}return e})(),ob=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i=``){this.eventManager=e,this.doc=t,this.ngZone=n,this.tracingService=r,this.cssVarNamespace=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(Jy[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(sb(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){if(e){let r=sb(e)?e.content:e;if(n!=null&&n.parentNode!==r)throw new T(-5106,!1);r.insertBefore(t,n)}}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e==`string`?this.doc.querySelector(e):e;if(!n)throw new T(-5104,!1);return t||(n.textContent=``),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+`:`+t;let i=Jy[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=Jy[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){let i=t.startsWith(`--`);i&&(t=t.replace(`%NS%`,this.cssVarNamespace)),i||r&(Lu.DashCase|Lu.Important)?e.style.setProperty(t,n,r&Lu.Important?`important`:``):e.style[t]=n}removeStyle(e,t,n){let r=t.startsWith(`--`);r&&(t=t.replace(`%NS%`,this.cssVarNamespace)),r||n&Lu.DashCase?e.style.removeProperty(t):e.style[t]=``}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e==`string`&&(e=Nv().getGlobalEventTarget(this.doc,e),!e))throw new T(-5102,!1);let i=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t===`__ngUnwrap__`)return e;e(t)===!1&&t.preventDefault()}}};function sb(e){return e.tagName===`TEMPLATE`&&e.content!==void 0}var cb=class extends ob{hostEl;sharedStylesHost;shadowRoot;constructor(e,t,n,r,i,a,o,s,c){super(e,r,i,o,s),this.hostEl=t,this.sharedStylesHost=c,this.shadowRoot=t.attachShadow({mode:`open`}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=n.styles;l=ib(n.id,l).map(e=>e.replace(/%NS%/g,s));for(let e of l){let t=document.createElement(`style`);a&&t.setAttribute(`nonce`,a),t.textContent=e,this.shadowRoot.appendChild(t)}let u=n.getExternalStyles?.();if(u)for(let e of u){let t=Ky(e,r);a&&t.setAttribute(`nonce`,a),this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},lb=class extends ob{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,a,o,s,c){super(e,i,a,o,s),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let l=n.styles,u=c?ib(c,l):l;this.styles=u.map(e=>e.replace(/%NS%/g,s)),this.styleUrls=n.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Zu.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ub=class extends lb{contentAttr;hostAttr;constructor(e,t,n,r,i,a,o,s,c){let l=r+`-`+n.id;super(e,t,n,i,a,o,s,c,l),this.contentAttr=nb(l),this.hostAttr=rb(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,``)}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,``),n}},db=class e extends Fv{supportsDOMEvents=!0;static makeCurrent(){Pv(new e)}onAndCancel(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.remove()}createElement(e,t){return t||=this.getDefaultDocument(),t.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument(`fakeTitle`)}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return t===`window`?window:t===`document`?e:t===`body`?e.body:null}getBaseHref(e){let t=pb();return t==null?null:mb(t)}resetBaseElement(){fb=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Iy(document.cookie,e)}},fb=null;function pb(){return fb||=document.head.querySelector(`base`),fb?fb.getAttribute(`href`):null}function mb(e){return new URL(e,document.baseURI).pathname}var hb=[`alt`,`control`,`meta`,`shift`],gb={"\b":`Backspace`," ":`Tab`,"":`Delete`,"\x1B":`Escape`,Del:`Delete`,Esc:`Escape`,Left:`ArrowLeft`,Right:`ArrowRight`,Up:`ArrowUp`,Down:`ArrowDown`,Menu:`ContextMenu`,Scroll:`ScrollLock`,Win:`OS`},_b={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},vb=(()=>{class e extends Ry{constructor(e){super(e)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,n,r,i){let a=e.parseEventName(n),o=e.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nv().onAndCancel(t,a.domEventName,o,i))}static parseEventName(t){let n=t.toLowerCase().split(`.`),r=n.shift();if(n.length===0||r!==`keydown`&&r!==`keyup`)return null;let i=e._normalizeKey(n.pop()),a=``,o=n.indexOf(`code`);if(o>-1&&(n.splice(o,1),a=`code.`),hb.forEach(e=>{let t=n.indexOf(e);t>-1&&(n.splice(t,1),a+=e+`.`)}),a+=i,n.length!=0||i.length===0)return null;let s={};return s.domEventName=r,s.fullKey=a,s}static matchEventFullKeyCode(e,t){let n=gb[e.key]||e.key,r=``;return t.indexOf(`code.`)>-1&&(n=e.code,r=`code.`),n==null||!n?!1:(n=n.toLowerCase(),n===` `?n=`space`:n===`.`&&(n=`dot`),hb.forEach(t=>{if(t!==n){let n=_b[t];n(e)&&(r+=t+`.`)}}),r+=n,r===t)}static eventCallback(t,n,r){return i=>{e.matchEventFullKeyCode(i,t)&&r.runGuarded(()=>n(i))}}static _normalizeKey(e){return e===`esc`?`escape`:e}static ɵfac=function(t){return new(t||e)(qi(Cs))};static ɵprov=di({token:e,factory:e.ɵfac})}return e})();async function yb(e,t,n){return Ev({rootComponent:e,...bb(t,n)})}function bb(e,t){return{platformRef:t?.platformRef,appProviders:[...Tb,...e?.providers??[]],platformProviders:wb}}function xb(){db.makeCurrent()}function Sb(){return new Js}function Cb(){return Hl(document),document}var wb=[{provide:tc,useValue:Ly},{provide:ec,useValue:xb,multi:!0},{provide:Cs,useFactory:Cb}],Tb=[{provide:Ta,useValue:`root`},{provide:Js,useFactory:Sb},{provide:By,useClass:zy,multi:!0},{provide:By,useClass:vb,multi:!0},ab,{provide:om,useClass:qy},{provide:qy,useExisting:om},Vy,{provide:Vp,useExisting:ab},[]];function Eb(e,t){let n=`\x1B[${e}m`,r=`\x1B[${t}m`;return((e,...t)=>{if(Array.isArray(e)&&`raw`in e){let i=e,a=``;for(let e=0;e{let r=new Ab({code:i,why:Ob(a.why,e),fix:Ob(a.fix,e),docs:o,cause:e.cause,sources:e.sources,data:Ob(a.data,e)},s);for(let e of t)e(r,n);return r};n[i]=s}return n}function Nb(e){return t=>{let n=`${e.bold(e.red(`[${t.name}]`))} ${t.message}`,r=[];return t.fix&&r.push(`${e.dim(`fix:`)} ${t.fix}`),t.sources?.length&&r.push(`${e.dim(`sources:`)} ${t.sources.join(`, `)}`),t.docs&&r.push(`${e.dim(`see:`)} ${e.cyan(t.docs)}`),r.length===0?n:[n,...r.map((t,n)=>`${e.dim(n{e=n,t=r}),resolve:e,reject:t}}var zb=Math.random.bind(Math),Bb=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Vb(e=21){let t=``,n=e;for(;n--;)t+=Bb[zb()*64|0];return t}var Hb=6e4,Ub=e=>e,Wb=Ub,{clearTimeout:Gb,setTimeout:Kb}=globalThis;function qb(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=Ub,deserialize:s=Wb,resolver:c,bind:l=`rpc`,timeout:u=Hb,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:`q`};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=Rb(),_=Vb();s.i=_;let ee;async function v(n=s){return u>=0&&(ee=Kb(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof ee==`object`&&(ee=ee.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:ee,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,v,d):await v()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{Gb(ee),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:v,get $closed(){return f},get $meta(){return t.meta},$close:ee,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.hasOwn(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function ee(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(te)}function v(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function te(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===`q`){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:`s`,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:`s`,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(Gb(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(te),h}function Jb(e,t){return t.safety?t.safety:e===`static`||e===`query`||e==null?`read`:`action`}var Yb=Object.freeze({type:`object`,additionalProperties:!0});function Xb(e){let t=e[`~standard`];if(t.jsonSchema)try{return t.jsonSchema.input({target:`draft-2020-12`})}catch{return Yb}return Yb}function Zb(e){if(!e||e.length===0)return{type:`object`,properties:{}};let t={},n=[];for(let r=0;rn[`arg${t}`]);if(`arg0`in n){let e=[];for(;`arg${e.length}`in n;)e.push(n[`arg${e.length}`]);return e}return Object.keys(n).length===0?[]:void 0}function $b(e,t){return Qb(e,t)??[e]}function ex(e){return typeof e==`string`?`'${e}'`:new ix().serialize(e)}var tx=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,nx=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[tx.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function rx(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;ia?-1:1)}return e.length===t.length?r:e.lengththis.compare(e[0],t[0])),r=`${e}{`;for(let e=0;ethis.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})(),ax=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],ox=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],sx=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,cx=[],lx=class{_data=new ux;_hash=new ux([...ax]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)cx[n]=e[t+n]|0;else{let e=cx[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=cx[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;cx[n]=t+cx[n-7]+i+cx[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+ox[n]+cx[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=ux.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function dx(e){return new lx().finalize(e).toBase64()}function fx(e){return dx(ex(e))}function px(e){return fx(e)}function mx(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}var hx=/^[\w+.-]{2,}:\/\//;function gx(e){return e.endsWith(`/`)?e:`${e}/`}function _x(e){return(e.endsWith(`/`)?e.slice(0,-1):e)||`/`}function vx(e,...t){let n=e;for(let e of t)e&&e!==`/`&&(n=n?gx(n)+e.replace(/^\.?\//,``):e);return n}function yx(e,t){if(!t||t===`/`||hx.test(e))return e;let n=_x(t);return e.startsWith(n)?e:vx(n,e)}function bx(e,t){let n=e.match(hx);return t+(n?e.slice(n[0].length):e)}var xx=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Sx(e=21){let t=``,n=e;for(;n--;)t+=xx[Math.random()*64|0];return t}var Cx=Symbol.for(`immer-nothing`),wx=Symbol.for(`immer-draftable`),Tx=Symbol.for(`immer-state`),Ex=[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},`This object has been frozen and should not be mutated`,function(e){return`Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? `+e},`An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.`,`Immer forbids circular references`,"The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},`Object.defineProperty() cannot be used on an Immer draft`,`Object.setPrototypeOf() cannot be used on an Immer draft`,`Immer only supports deleting array indices`,`Immer only supports setting array indices and the 'length' property`,function(e){return`'original' expects a draft, got: ${e}`}];function Dx(e,...t){{let n=Ex[e],r=Zx(n)?n.apply(null,t):n;throw Error(`[Immer] ${r}`)}}var Ox=Object,kx=Ox.getPrototypeOf,Ax=`constructor`,jx=`prototype`,Mx=`configurable`,Nx=`enumerable`,Px=`writable`,Fx=`value`,Ix=e=>!!e&&!!e[Tx];function Lx(e){return e?Bx(e)||qx(e)||!!e[wx]||!!e[Ax]?.[wx]||Jx(e)||Yx(e):!1}var Rx=Ox[jx][Ax].toString(),zx=new WeakMap;function Bx(e){if(!e||!Xx(e))return!1;let t=kx(e);if(t===null||t===Ox[jx])return!0;let n=Ox.hasOwnProperty.call(t,Ax)&&t[Ax];if(n===Object)return!0;if(!Zx(n))return!1;let r=zx.get(n);return r===void 0&&(r=Function.toString.call(n),zx.set(n,r)),r===Rx}function Vx(e,t,n=!0){Hx(e)===0?(n?Reflect.ownKeys(e):Ox.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Hx(e){let t=e[Tx];return t?t.type_:qx(e)?1:Jx(e)?2:Yx(e)?3:0}var Ux=(e,t,n=Hx(e))=>n===2?e.has(t):Ox[jx].hasOwnProperty.call(e,t),Wx=(e,t,n=Hx(e))=>n===2?e.get(t):e[t],Gx=(e,t,n,r=Hx(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Kx(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var qx=Array.isArray,Jx=e=>e instanceof Map,Yx=e=>e instanceof Set,Xx=e=>typeof e==`object`,Zx=e=>typeof e==`function`,Qx=e=>typeof e==`boolean`;function $x(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var eS=e=>Xx(e)?e?.[Tx]:null,tS=e=>e.copy_||e.base_,nS=e=>e.modified_?e.copy_:e.base_;function rS(e,t){if(Jx(e))return new Map(e);if(Yx(e))return new Set(e);if(qx(e))return Array[jx].slice.call(e);let n=Bx(e);if(t===!0||t===`class_only`&&!n){let t=Ox.getOwnPropertyDescriptors(e);delete t[Tx];let n=Reflect.ownKeys(t);for(let r=0;r1&&Ox.defineProperties(e,{set:oS,add:oS,clear:oS,delete:oS}),Ox.freeze(e),t&&Vx(e,(e,t)=>{iS(t,!0)},!1),e)}function aS(){Dx(2)}var oS={[Fx]:aS};function sS(e){return e===null||!Xx(e)||Ox.isFrozen(e)}var cS=`MapSet`,lS=`Patches`,uS=`ArrayMethods`,dS={};function fS(e){let t=dS[e];return t||Dx(0,e),t}var pS=e=>!!dS[e];function mS(e,t){dS[e]||(dS[e]=t)}var hS,gS=()=>hS,_S=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:pS(cS)?fS(cS):void 0,arrayMethodsPlugin_:pS(uS)?fS(uS):void 0});function vS(e,t){t&&(e.patchPlugin_=fS(lS),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function yS(e){bS(e),e.drafts_.forEach(SS),e.drafts_=null}function bS(e){e===hS&&(hS=e.parent_)}var xS=e=>hS=_S(hS,e);function SS(e){let t=e[Tx];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function CS(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Tx].modified_&&(yS(t),Dx(4)),Lx(e)&&(e=wS(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Tx].base_,e,t)}else e=wS(t,n);return TS(t,e,!0),yS(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Cx?void 0:e}function wS(e,t){if(sS(t))return t;let n=t[Tx];if(!n)return NS(t,e.handledSet_,e);if(!DS(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);jS(n,e)}return n.copy_}function TS(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&iS(t,n)}function ES(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var DS=(e,t)=>e.scope_===t,OS=[];function kS(e,t,n,r){let i=tS(e),a=e.type_;if(r!==void 0&&Wx(i,r,a)===t){Gx(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Vx(i,(e,n)=>{if(Ix(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??OS;for(let e of o)Gx(i,e,n,a)}function AS(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!DS(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=nS(i);kS(e,i.draft_??i,a,n),jS(i,r)})}function jS(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}ES(e)}}function MS(e,t,n){let{scope_:r}=e;if(Ix(n)){let i=n[Tx];DS(i,r)&&i.callbacks_.push(function(){HS(e),kS(e,n,nS(i),t)})}else Lx(n)&&e.callbacks_.push(function(){let i=tS(e);e.type_===3?i.has(n)&&NS(n,r.handledSet_,r):Wx(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&NS(Wx(e.copy_,t,e.type_),r.handledSet_,r)})}function NS(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Ix(e)||t.has(e)||!Lx(e)||sS(e)?e:(t.add(e),Vx(e,(r,i)=>{if(Ix(i)){let t=i[Tx];DS(t,n)&&(Gx(e,r,nS(t),e.type_),ES(t))}else Lx(i)&&NS(i,t,n)}),e)}function PS(e,t){let n=qx(e),r={type_:+!!n,scope_:t?t.scope_:gS(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=FS;n&&(i=[r],a=IS);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var FS={get(e,t){if(t===Tx)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=tS(e);if(!Ux(i,t,e.type_))return zS(e,i,t);let a=i[t];if(e.finalized_||!Lx(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&$x(t))return a;if(a===LS(e.base_,t)||RS(e,t,a)){HS(e);let n=e.type_===1?+t:t,r=WS(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in tS(e)},ownKeys(e){return Reflect.ownKeys(tS(e))},set(e,t,n){let r=BS(tS(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=LS(tS(e),t),i=r?.[Tx];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Kx(n,r)&&(n!==void 0||Ux(e.base_,t,e.type_)))return!0;HS(e),VS(e)}return e.copy_[t]===n&&(n!==void 0||Ux(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),MS(e,t,n),!0)},deleteProperty(e,t){return HS(e),LS(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),VS(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=tS(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Px]:!0,[Mx]:e.type_!==1||t!==`length`,[Nx]:r[Nx],[Fx]:n[t]}},defineProperty(){Dx(11)},getPrototypeOf(e){return kx(e.base_)},setPrototypeOf(){Dx(12)}},IS={};for(let e in FS){let t=FS[e];IS[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}IS.deleteProperty=function(e,t){return isNaN(parseInt(t))&&Dx(13),IS.set.call(this,e,t,void 0)},IS.set=function(e,t,n){return t!==`length`&&isNaN(parseInt(t))&&Dx(14),FS.set.call(this,e[0],t,n,e[0])};function LS(e,t){let n=e[Tx];return(n?tS(n):e)[t]}function RS(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!Lx(n)||n[Tx]?!1:e.baseRefs_.has(n)}function zS(e,t,n){let r=BS(t,n);return r?Fx in r?r[Fx]:r.get?.call(e.draft_):void 0}function BS(e,t){if(!(t in e))return;let n=kx(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=kx(n)}}function VS(e){e.modified_||(e.modified_=!0,e.parent_&&VS(e.parent_))}function HS(e){e.copy_||=(e.assigned_=new Map,rS(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var US=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Zx(e)&&!Zx(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Zx(t)||Dx(6),n!==void 0&&!Zx(n)&&Dx(7);let r;if(Lx(e)){let i=xS(this),a=WS(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?yS(i):bS(i)}return vS(i,n),CS(r,i)}if(!e||!Xx(e)){if(r=t(e),r===void 0&&(r=e),r===Cx&&(r=void 0),this.autoFreeze_&&iS(r,!0),n){let t=[],i=[];fS(lS).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}Dx(1,e)},this.produceWithPatches=(e,t)=>{if(Zx(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Qx(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Qx(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Qx(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Lx(e)||Dx(8),Ix(e)&&(e=GS(e));let t=xS(this),n=WS(t,e,void 0);return n[Tx].isManual_=!0,bS(t),n}finishDraft(e,t){let n=e&&e[Tx];(!n||!n.isManual_)&&Dx(9);let{scope_:r}=n;return vS(r,t),CS(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=fS(lS).applyPatches_;return Ix(e)?r(e,t):this.produce(e,e=>r(e,t))}};function WS(e,t,n,r){let[i,a]=Jx(t)?fS(cS).proxyMap_(t,n):Yx(t)?fS(cS).proxySet_(t,n):PS(t,n);return(n?.scope_??gS()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?AS(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function GS(e){return Ix(e)||Dx(10,e),KS(e)}function KS(e){if(!Lx(e)||sS(e))return e;let t=e[Tx],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=rS(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=rS(e,!0);return Vx(n,(e,t)=>{Gx(n,e,KS(t))},r),t&&(t.finalized_=!1),n}function qS(){Ex.push(`Sets cannot have "replace" patches.`,function(e){return`Unsupported patch operation: `+e},function(e){return`Cannot apply patch, path doesn't resolve: `+e},`Patching reserved attributes like __proto__, prototype and constructor is not allowed`);function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=eS(Wx(e,n.key_)),i=Wx(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||Ux(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e{let u=Wx(o,e,c),f=Wx(s,e,c),p=l?Ux(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===Cx?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e[e,u(t)]));if(Yx(e))return new Set(Array.from(e).map(u));let t=Object.create(kx(e));for(let n in e)t[n]=u(e[n]);return Ux(e,wx)&&(t[wx]=e[wx]),t}function d(e){return Ix(e)?u(e):e}mS(lS,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}globalThis.Iterator?.from;var JS=new US,YS=JS.produce,XS=JS.produceWithPatches.bind(JS),ZS=JS.applyPatches.bind(JS),QS=1e3;function $S(e,t){if(e.add(t),e.size>QS){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function eC(e){let{enablePatches:t=!1}=e;t&&qS();let n=mx(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=Sx())=>{i.has(t)||(qS(),r=ZS(r,e),$S(i,t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=Sx())=>{if(!i.has(a)){if($S(i,a),t){let[t,i]=XS(r,e);if(t===r)return;r=t,n.emit(`updated`,r,i,a)}else{let t=YS(r,e);if(t===r)return;r=t,n.emit(`updated`,r,void 0,a)}}},syncIds:i}}var tC=typeof self==`object`?self:globalThis,nC=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),rC=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function iC(e,t){let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o,r=nC.has(e)?tC[e]:void 0;return n(new(r??tC.Error)(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}if(typeof a==`string`&&rC.has(a))return n(new tC[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function aC(e){return iC(new Map,e)(0)}var oC=``,{toString:sC}={},{keys:cC}=Object;function lC(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=sC.call(e).slice(8,-1);switch(n){case`Array`:return[1,oC];case`Object`:return[2,oC];case`Date`:return[3,oC];case`RegExp`:return[4,oC];case`Map`:return[5,oC];case`Set`:return[6,oC];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function uC([e,t]){return e===0&&(t===`function`||t===`symbol`)}function dC(e,t,n,r){let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=lC(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize ${s}`);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of cC(r))(e||!uC(lC(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(uC(lC(n))||uC(lC(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!uC(lC(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function fC(e,t={}){let n=[];return dC(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:pC,stringify:mC}=JSON,hC={json:!0,lossy:!0};function gC(e){return aC(pC(e))}function _C(e){return mC(fC(e,hC))}function vC(e){return aC(e)}function yC(e){return _C(e)}function bC(e){return gC(e)}var xC=256,SC=class extends Error{name=`StreamClosedError`};function CC(e={}){let t=e.id??Sx(),n=Math.max(0,e.replayWindow??0),r=mx(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new SC(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&(a.length-n===1?a.shift():a.splice(0,a.length-n))),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=TC(e);i.abort(e),r.emit(`end`,t)}function u(){o||(o=!0,i.signal.aborted||i.abort(`stream closed`),r.emit(`end`,void 0))}function d(e){o||i.signal.aborted||i.abort(e??`aborted`)}let f=new WritableStream({write(e){c(e)},close(){u()},abort(e){l(e)}});return{id:t,signal:i.signal,get closed(){return o},get lastSeq(){return s},write:c,error:l,close:u,abort:d,writable:f,events:r,buffer:a}}function wC(e={}){let t=e.id??Sx(),n=Math.max(1,e.highWaterMark??xC),r=[],i=0,a=!1,o=!1,s,c,l,u;function d(){if(c){if(r.length>0){let e=r.shift(),t=c;c=void 0,t.resolve({value:e,done:!1});return}if(a){let e=c;if(c=void 0,s){let t=Error(s.message);t.name=s.name,e.reject(t)}else e.resolve({value:void 0,done:!0})}}}function f(){if(l){for(;r.length>0;){let e=r.shift();try{l.enqueue(e)}catch{break}}if(a&&l){try{if(s){let e=Error(s.message);e.name=s.name,l.error(e)}else l.close()}catch{}l=void 0}}}function p(t,s){if(!(a||o)&&!(t<=i)){if(i=t,r.push(s),r.length>n){let t=r.length-n;r.splice(0,t),e.onOverflow?.(t)}d(),u&&f()}}function m(e){a||(a=!0,s=e,d(),u&&f())}function h(){o||a||(o=!0,e.onCancel?.(),m(void 0))}function g(){return u||(u=new ReadableStream({start(e){l=e,f()},cancel(){h()}}),u)}return{id:t,get cancelled(){return o},get done(){return a},get lastSeenSeq(){return i},get readable(){return g()},cancel:h,_push:p,_end:m,[Symbol.asyncIterator](){return{next(){if(r.length>0)return Promise.resolve({value:r.shift(),done:!1});if(a){if(s){let e=Error(s.message);return e.name=s.name,Promise.reject(e)}return Promise.resolve({value:void 0,done:!0})}return new Promise((e,t)=>{c={resolve:e,reject:t}})},return(){return h(),Promise.resolve({value:void 0,done:!0})}}}}}function TC(e){if(e instanceof Error)return{name:e.name||`Error`,message:e.message};if(typeof e==`string`)return{name:`Error`,message:e};try{return{name:`Error`,message:JSON.stringify(e)}}catch{return{name:`Error`,message:String(e)}}}var EC=128;function DC(e){return e.replace(/[^\w-]+/g,`_`).slice(0,EC)}var OC=`modulepreload`,kC=function(e,t){return new URL(e,t).href},AC={},jC=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=kC(t,n),t=s(t),t in AC)return;AC[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:OC,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},MC=`__connection.json`,NC=`__DEVFRAME_CONNECTION__`,PC=`x-birpc-session`,FC=`__rpc-dump/index.json`,IC=`devframe:services`,LC=`devframe_otp`,RC=`devframe_auth_token`;Pb.postMessage.remoteAssetsError;var zC=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>px(e))}updateOptions(e){this.options={...this.options,...e}}cached(e,t){let n=this.cacheMap.get(e);if(n)return n.get(this.keySerializer(t))}has(e,t){return this.cacheMap.get(e)?.has(this.keySerializer(t))??!1}apply(e,t){let n=this.cacheMap.get(e.m)||new Map;n.set(this.keySerializer(e.a),t),this.cacheMap.set(e.m,n)}validate(e){return this.options.functions.includes(e)}clear(e){e?this.cacheMap.delete(e):this.cacheMap.clear()}},BC=Lb({docsBase:`https://devfra.me/errors`,codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is \`false\`; MCP requires JSON-serializable data.`,fix:"Remove `jsonSerializable: false`, or remove `agent` to keep it RPC-only."},DF0020:{why:e=>`RPC function "${e.name}" declares \`jsonSerializable: true\` but the value at "${e.path}" is a ${e.type}.`,fix:"Either drop `jsonSerializable: true` (falls back to structured-clone) or change the value to a JSON-safe shape."},DF0021:{why:e=>`RPC function "${e.name}" is already registered`,fix:"Use the `force` parameter to overwrite an existing registration."},DF0022:{why:e=>`RPC function "${e.name}" is not registered. Use register() to add new functions.`},DF0023:{why:e=>`RPC function "${e.name}" is not registered`},DF0024:{why:e=>`Either handler or setup function must be provided for RPC function "${e.name}"`},DF0025:{why:e=>`Function "${e.name}" not found in dump store`},DF0026:{why:e=>`No dump match for "${e.name}" with args: ${e.args}`},DF0027:{why:e=>`Function "${e.name}" with type "${e.type}" cannot have dump configuration. Only "static" and "query" types support dumps.`},DF0028:{why:e=>`Function "${e.name}" with type "${e.type}" cannot use \`snapshot: true\`. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.`,fix:"Remove `snapshot: true`, or change the function type to `query`."},DF0043:{why:e=>`RPC function "${e.name}" received an invalid argument at position ${e.index}: ${e.issues}`,fix:"Pass a value that satisfies the `args` schema declared for this function."},DF0044:{why:e=>`RPC function "${e.name}" returned a value that failed its \`returns\` schema: ${e.issues}`,fix:"Make the handler return a value that satisfies the `returns` schema, or relax the schema."}}});function VC(e){if(e.agent&&e.jsonSerializable===!1)throw BC.DF0019({name:e.name});e.agent&&!e.jsonSerializable&&(e.jsonSerializable=!0)}async function HC(e,t){let n=e[`~standard`].validate(t);return n instanceof Promise?await n:n}function UC(e){return e.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `)}async function WC(e,t,n){let r=n.slice();if(!t||t.length===0)return r;for(let r=0;r{n.get(t)===r&&n.delete(t)}),n.set(t,r)),await r}if(!e.__promise){let n=Promise.resolve(e.setup(t));n.catch(()=>{e.__promise===n&&(e.__promise=void 0)}),e.__promise=n}return await e.__promise}async function qC(e,t){let n=e.handler;if(!n){let r=await KC(e,t);if(!r.handler)throw BC.DF0024({name:e.name});n=r.handler}let r=e.args,i=e.returns;if(!r&&!i)return n;let a=n;return async(...t)=>{let n=await WC(e.name,r,t),o=await a(...n);return await GC(e.name,i,o)}}var JC=class{context;definitions=new Map;functions;_onChanged=[];constructor(e){this.context=e;let t=this.definitions,n=this;this.functions=new Proxy({},{get(e,r){let i=t.get(r);if(i)return qC(i,n.context)},has(e,n){return t.has(n)},getOwnPropertyDescriptor(e,n){return{value:t.get(n)?.handler,configurable:!0,enumerable:!0}},ownKeys(){return Array.from(t.keys())}})}register(e,t=!1){if(this.definitions.has(e.name)&&!t)throw BC.DF0021({name:e.name});VC(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}update(e,t=!1){if(!this.definitions.has(e.name)&&!t)throw BC.DF0022({name:e.name});VC(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}onChanged(e){return this._onChanged.push(e),()=>{let t=this._onChanged.indexOf(e);t!==-1&&this._onChanged.splice(t,1)}}async getHandler(e){return await qC(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw BC.DF0023({name:String(e)});return{args:t.args,returns:t.returns}}has(e){return this.definitions.has(e)}get(e){return this.definitions.get(e)}list(){return Array.from(this.definitions.keys())}};function YC(e,t=``){return JSON.stringify(e,function(e,n){let r=this,i=r==null?n:r[e];if(i===void 0){if(Array.isArray(r))throw ZC(t,`undefined`,r,e);return n}return i!==null&&XC(i,r,e,t),n})}function XC(e,t,n,r){if(typeof e==`bigint`)throw ZC(r,`BigInt`,t,n);if(typeof e!=`object`)return;if(e instanceof Map)throw ZC(r,`Map`,t,n);if(e instanceof Set)throw ZC(r,`Set`,t,n);if(e instanceof Date)throw ZC(r,`Date`,t,n);if(Array.isArray(e))return;let i=Object.getPrototypeOf(e);if(i!==null&&i!==Object.prototype)throw ZC(r,e.constructor?.name??`class instance`,t,n)}function ZC(e,t,n,r){let i=QC(n,r);return BC.DF0020({name:e||``,type:t,path:i})}function QC(e,t){return Array.isArray(e)?`[${t}]`:t===``?``:t}var $C=`__DEVFRAME_CONNECTION_META__`,ew=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function tw(e){let t=[()=>window?.[e],()=>globalThis?.[e],()=>parent.window?.[e]];for(let e of t)try{let t=e();if(t)return t}catch{}}function nw(){return tw(NC)}function rw(){return tw($C)}function iw(e){if(e)return e;try{let e=localStorage.getItem(ew);if(e)return e}catch{}return tw(ew)}function aw(e){globalThis[NC]=e,globalThis[$C]={...e.connectionMeta,baseUrl:e.metaBaseUrl},e.authToken&&ow(e.authToken)}function ow(e){try{localStorage.setItem(ew,e)}catch{}globalThis[ew]=e;let t=nw();t&&(globalThis[NC]={...t,authToken:e})}function sw(e){let t=yx(MC,e);try{return new URL(t,globalThis.location?.href).href}catch{return t}}function cw(e,t){return t&&t!==e.authToken?{...e,authToken:t}:e}function lw(){let e=nw();if(e)return cw(e,iw()??e.authToken??e.connectionMeta.authToken);let t=rw();if(t)return{connectionMeta:t,metaBaseUrl:t.baseUrl??sw(`./`),authToken:iw(t.authToken)}}async function uw(e={}){if(e.connection){let t=cw(e.connection,iw(e.authToken??e.connection.authToken??e.connection.connectionMeta.authToken));return aw(t),t}let t=Array.isArray(e.baseURL)?e.baseURL:[e.baseURL??`./`];if(e.connectionMeta){let n={connectionMeta:e.connectionMeta,metaBaseUrl:sw(t[0]??`./`),authToken:iw(e.authToken??e.connectionMeta.authToken)};return aw(n),n}let n=lw();if(n){let t=cw(n,iw(e.authToken??n.authToken??n.connectionMeta.authToken));return aw(t),t}let r=[];for(let n of t){let t=yx(MC,n),i=sw(n);try{let n=await fetch(t);if(!n.ok)throw Error(`Failed to fetch connection meta from ${i}: ${n.status}`);let r=await n.json(),a=n.url||i,o={connectionMeta:r,metaBaseUrl:r.baseUrl?new URL(r.baseUrl,a).href:a,authToken:iw(e.authToken??r.authToken)};return aw(o),o}catch(e){r.push(e)}}throw Error(`Failed to get connection meta from ${t.join(`, `)}`,{cause:r})}var dw=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function fw(e=LC){try{let t=globalThis.location?.hash?.replace(/^#/,``)??``;return new URLSearchParams(t).get(e)||void 0}catch{return}}function pw(e){try{let t=new URL(globalThis.location.href),n=new URLSearchParams(t.hash.replace(/^#/,``));if(!n.has(e))return;n.delete(e),t.hash=n.toString(),globalThis.history?.replaceState(globalThis.history.state,``,t.href)}catch{}}function mw(e=LC){let t=fw(e);return t&&pw(e),t}async function hw(e,t={}){let n=mw(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function gw(e){let t={},n=new WeakMap,r,i=()=>(r??=e.sharedState.get(IC,{initialValue:{}}).then(e=>(t=e.value(),e.on(`updated`,e=>{t=e}),e)),r);return i(),{state:i,has:e=>e in t,keys:()=>Object.keys(t),get:r=>{let i=t[r];if(!i)return;let a=n.get(i);return a||(a={...i,rpc:e.scope(i.scope).rpc},n.set(i,a)),a}}}function _w(e){let t=new Map,n=new Map,r=new Map,i=new Set,a=e.connectionMeta.backend===`static`;function o(e,t){let n=r.get(e);return n&&typeof n==`object`&&!Array.isArray(n)&&typeof t==`object`&&!Array.isArray(t)?{...n,...t}:t}e.client.register({name:Pb.broadcast.clientStateUpdated,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.mutate(()=>o(e,n),r)}}),e.client.register({name:Pb.broadcast.clientStatePatch,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.patch(n,r)}});function s(t,n){let r=[];return r.push(n.on(`updated`,(n,r,i)=>{a||(r?e.callEvent(`devframe:rpc:server-state:patch`,t,r,i):e.callEvent(`devframe:rpc:server-state:set`,t,n,i))})),()=>{for(let e of r)e()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(e){return i.add(e),()=>{i.delete(e)}},delete(e){let i=n.get(e);n.delete(e);let a=t.delete(e);return r.delete(e),i?.(),a},get:async(c,l)=>{if(l?.initialValue!==void 0&&r.set(c,l.initialValue),t.has(c))return t.get(c);let u=eC({initialValue:l?.initialValue,enablePatches:!1});async function d(){if(a||e.callEvent(`devframe:rpc:server-state:subscribe`,c),l?.initialValue!==void 0){t.set(c,u);for(let e of i)e(c);return e.call(`devframe:rpc:server-state:get`,c).then(e=>{e!==void 0&&u.mutate(()=>o(c,e))}).catch(e=>{console.error(`Error getting server state`,e)}),n.set(c,s(c,u)),u}{let r=await e.call(`devframe:rpc:server-state:get`,c);u.mutate(()=>o(c,r)),t.set(c,u);for(let e of i)e(c);return n.set(c,s(c,u)),u}}return new Promise(t=>{if(e.isTrusted)d().then(t);else{t(u);let n=!1;e.events.on(Pb.client.isTrustedUpdated,e=>{e&&!n&&(n=!0,d())})}})}}}var vw=new Map;function yw(e=vw){let t=new Map;return{serialize:n=>{let r;return n.t===`q`?r=n.m:(r=t.get(n.i),t.delete(n.i)),!(n.t===`s`&&`e`in n)&&r&&e.get(r)?.jsonSerializable===!0?YC(n,r??``):`s:${yC(n)}`},deserialize:e=>{let n=e.startsWith(`s:`)?bC(e.slice(2)):JSON.parse(e);return n.t===`q`&&n.i&&n.m&&t.set(n.i,n.m),n}}}function bw(){}function xw(e){let t=e.search(/\n\n|\r\n\r\n/);if(!(t<0))return{frame:e.slice(0,t),rest:e.slice(t+(e[t]===`\r`?4:2))}}function Sw(e){let t=`message`,n=[];for(let r of e.split(/\r?\n/))r.startsWith(`:`)||(r.startsWith(`event:`)?t=r.slice(6).trimStart():r.startsWith(`data:`)&&n.push(r.slice(5).replace(/^ /,``)));return{event:t,data:n}}function Cw(e){let{onConnected:t=bw,onError:n=bw,onDisconnected:r=bw,definitions:i,fetch:a=globalThis.fetch.bind(globalThis)}=e,o=e.url;e.authToken&&(o=`${o}${o.includes(`?`)?`&`:`?`}${RC}=${encodeURIComponent(e.authToken)}`);let s=yw(i),c=new AbortController,l=!1,u,d,f,p,m=new Promise((e,t)=>{f=e,p=t});m.catch(()=>{});function h(e){l||(l=!0,p(e),n(e),r())}function g(){l||(l=!0,p(Error(`Devframe SSE stream closed`)),r())}function _(e,n){if(e===`session`){f(n),t();return}u?.(n)}async function ee(e){let t=e.getReader();d=t;let n=new TextDecoder,r=``;for(;;){let{done:e,value:i}=await t.read();if(e)break;for(r+=n.decode(i,{stream:!0});;){let e=xw(r);if(!e)break;r=e.rest;let{event:t,data:n}=Sw(e.frame);n.length>0&&_(t,n.join(` +`))}}g()}return(async()=>{try{let e=await a(o,{headers:{accept:`text/event-stream`},signal:c.signal});if(!e.ok||!e.body)throw Error(`Devframe SSE stream request failed: ${e.status}`);await ee(e.body)}catch(e){if(c.signal.aborted){g();return}h(e instanceof Error?e:Error(String(e)))}})(),{close:()=>{l=!0,c.abort(),d?.cancel().catch(()=>{})},on:e=>{u=e},post:async e=>{let t;try{t=await m}catch{return}if(l){n(Error(`Devframe SSE channel is closed; message dropped`));return}try{let n=await a(o,{method:`POST`,headers:{"content-type":`text/plain; charset=utf-8`,[PC]:t},body:e});if(n.status===200){let e=await n.text();e&&u?.(e);return}if(!n.ok)throw Error(`Devframe SSE POST failed: ${n.status}`)}catch(e){n(e instanceof Error?e:Error(String(e)))}},serialize:s.serialize,deserialize:s.deserialize}}function ww(e,t){let{channel:n,rpcOptions:r={}}=t;return qb(e,{...n,timeout:-1,...r,proxify:!1})}function Tw(e){let{transport:t,authToken:n,connectionMeta:r,events:i,clientRpc:a,rpcOptions:o={},callTimeout:s=0}=e,c=!1,l=`connecting`,u=null,d=Promise.withResolvers();function f(e,t=null){if(t?u=t:e===`connected`&&(u=null),e===l)return;let n=l;l=e,i.emit(Pb.client.connectionStatus,e,n)}let p=new Set;function m(e){for(let t of[...p])t.reject(e)}function h(){return l===`disconnected`||l===`error`?new dw(`connection`,`[devframe] Not connected to the devframe server`,{cause:u??void 0}):l===`unauthorized`?new dw(`auth`,`[devframe] Not authorized by the devframe server`,{cause:u??void 0}):null}function g(e,t){return new Promise((n,r)=>{let a=!1,o,c={reject(e){a||(l(),i.emit(Pb.client.error,e,t),r(e))}};function l(){a=!0,p.delete(c),o&&clearTimeout(o)}p.add(c),s>0&&(o=setTimeout(()=>{c.reject(new dw(`timeout`,`[devframe] RPC call "${t}" timed out after ${s}ms`))},s)),e.then(e=>{a||(l(),n(e))},e=>{if(a)return;l();let n=e instanceof Error?e:Error(String(e));i.emit(Pb.client.error,n,t),r(n)})})}let _=new Map;for(let e of r.jsonSerializableMethods??[])_.set(e,{jsonSerializable:!0});let ee=e.createChannel({definitions:_,onError(e){f(`error`,e),i.emit(Pb.client.connectionError,e),m(new dw(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e}))},onDisconnected(){l!==`error`&&f(`disconnected`),m(new dw(`connection`,`[devframe] Disconnected from the devframe server`,{cause:u??void 0}))}}),v=ww(a.functions,{channel:ee,rpcOptions:o});a.register({name:Pb.broadcast.authRevoked,type:`event`,handler:()=>{c=!1;let e=new dw(`auth`,`[devframe] The devframe server revoked this client's trust`);f(`unauthorized`,e),i.emit(Pb.client.connectionError,e),m(e),i.emit(Pb.client.isTrustedUpdated,!1)}});let te=n;async function ne(e){te=e;let t=await v.$call(`anonymous:devframe:auth`,{authToken:e,ua:navigator.userAgent,origin:location.origin});if(c=t.isTrusted,c)d.resolve(!0),f(`connected`);else{let e=new dw(`auth`,`[devframe] The devframe server refused this client's credentials`);f(`unauthorized`,e),i.emit(Pb.client.connectionError,e)}return i.emit(Pb.client.isTrustedUpdated,c),t.isTrusted}async function re(e){let t=(await v.$call(`anonymous:devframe:auth:exchange`,{code:e,ua:navigator.userAgent,origin:location.origin}))?.authToken??null;return t&&(te=t,c=!0,d.resolve(!0),f(`connected`),i.emit(Pb.client.isTrustedUpdated,!0)),t}async function ie(e={}){await v.$call(`anonymous:devframe:auth:request-code`,{ua:navigator.userAgent,origin:location.origin,...e.reissue?{reissue:!0}:{}})}async function ae(){return c?!0:ne(te??``)}async function oe(e=6e4){if(c&&d.resolve(!0),e<=0)return d.promise;let t;try{return await Promise.race([d.promise,new Promise((n,r)=>{t=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e)})]),c}finally{clearTimeout(t)}}return{transport:t,get isTrusted(){return c},get status(){return l},get connectionError(){return u},requestTrust:ae,requestTrustWithToken:ne,requestTrustWithCode:re,requestAuthCode:ie,ensureTrusted:oe,call:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(Pb.client.error,n,t),Promise.reject(n)):g(v.$call(...e),t)},callEvent:(...e)=>{let t=h();if(t){i.emit(Pb.client.error,t,String(e[0]));return}return v.$callEvent(...e)},callOptional:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(Pb.client.error,n,t),Promise.reject(n)):g(v.$callOptional(...e),t)},close:()=>{ee.close()}}}function Ew(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})();if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`;return new URL(e.path??`/`,`${r.protocol}//${t}`).href}return new URL(e.path??``,r).href}let i=e??``;return/^https?:\/\//i.test(i)?i:new URL(i,r).href}function Dw(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},sseOptions:s={},callTimeout:c=0}=e,l=Ew(n.sse,r??`./`,location);return Tw({transport:`sse`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>Cw({url:l,authToken:t,definitions:e.definitions,...s,onConnected(){s.onConnected?.()},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(){e.onDisconnected(),s.onDisconnected?.()}})})}function Ow(e){let{name:t,message:n,cause:r,...i}=e,a=r instanceof Error?r:kw(r)?Ow(r):r,o=a===void 0?Error(n):Error(n,{cause:a});return o.name=t,Object.assign(o,i),o}function kw(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}function Aw(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function jw(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function Mw(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function Nw(e){if(e.error)throw Ow(e.error);return e.output}function Pw(e){return e.some(e=>e!=null)}function Fw(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function Iw(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?vC(e):e}function a(e,t){return i(Fw(e),t)}async function o(e){n.has(e.path)||n.set(e.path,t(e.path).then(t=>a(t,e.serialization)));let r=await n.get(e.path);return Mw(r)?Nw(r):r}async function s(e,n){return r.has(e)||r.set(e,t(e).then(e=>a(e,n))),await r.get(e)}async function c(t,n){if(!(t in e))throw Error(`[devframe-rpc] Function "${t}" not found in dump store`);let r=e[t];if(Aw(r)){if(Pw(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(jw(r)){let e=px(n),i=r.records[e];if(i)return Nw(await s(i,r.serialization));if(r.fallback)return Nw(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!Pw(n))return r;throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}return{call:async(e,t)=>await c(e,t),callOptional:async(t,n)=>{if(t in e)return await c(t,n)},callEvent:async(e,t)=>{}}}async function Lw(e){let t=Iw(await e.fetchJsonFromBases(FC),e.fetchJsonFromBases);return{transport:`static`,isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,requestAuthCode:async()=>{},ensureTrusted:async()=>!0,call:(...e)=>t.call(e[0],e.slice(1)),callEvent:(...e)=>t.callEvent(e[0],e.slice(1)),callOptional:(...e)=>t.callOptional(e[0],e.slice(1)),close:()=>{}}}var Rw=``;function zw(e,t){return`${e}${Rw}${t}`}function Bw(e){let t=new Map,n=new Map;e.client.register({name:Pb.broadcast.streamingChunk,type:`event`,handler(e,n,r,i){t.get(zw(e,n))?._push(r,i)}}),e.client.register({name:Pb.broadcast.streamingEnd,type:`event`,handler(e,n,r){let i=zw(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:Pb.broadcast.streamingUploadCancel,type:`event`,handler(e,t){let r=zw(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on(Pb.client.isTrustedUpdated,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(Rw);if(t<0)continue;let i=n.slice(0,t),a=n.slice(t+1);e.callEvent(`devframe:streaming:subscribe`,i,a,{afterSeq:r.lastSeenSeq})}});function r(n,r,i={}){let a=zw(n,r),o=t.get(a);if(o)return o;let s=wC({id:r,highWaterMark:i.highWaterMark,onOverflow(e){console.warn(`[devframe] DF0029: Stream "${n}#${r}" dropped ${e} chunk(s) after exceeding the client high-water mark.`)},onCancel(){e.callEvent(`devframe:streaming:cancel`,n,r),t.delete(a)}});if(t.set(a,s),e.isTrusted)e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:0});else{let i=e.events.on(Pb.client.isTrustedUpdated,o=>{o&&(i(),t.has(a)&&!s.cancelled&&!s.done&&e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:s.lastSeenSeq}))})}return s}function i(t,r){let i=zw(t,r),a=n.get(i);if(a)return a;let o=CC({id:r});return o.events.on(`chunk`,(n,i)=>{e.callEvent(`devframe:streaming:upload-chunk`,t,r,n,i)}),o.events.on(`end`,a=>{e.callEvent(`devframe:streaming:upload-end`,t,r,a),n.delete(i)}),n.set(i,o),o}return{subscribe:r,upload:i}}function Vw(){}var Hw=new Map;function Uw(e){let t=e.url;e.authToken&&(t=`${t}?${RC}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=Vw,onError:i=Vw,onDisconnected:a=Vw,definitions:o=Hw}=e;n.addEventListener(`open`,e=>{r(e)}),n.addEventListener(`error`,e=>{let t=e instanceof Error?e:Error(e.type);i(t)}),n.addEventListener(`close`,e=>{a(e)});let s=yw(o);return{close:()=>{n.close()},on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN){n.send(e);return}if(n.readyState===WebSocket.CONNECTING){let t=()=>{i(),n.readyState===WebSocket.OPEN&&n.send(e)},r=()=>i();function i(){n.removeEventListener(`open`,t),n.removeEventListener(`close`,r)}n.addEventListener(`open`,t),n.addEventListener(`close`,r);return}i(Error(`Devframe WebSocket is not open; message dropped`))},serialize:s.serialize,deserialize:s.deserialize}}function Ww(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})(),i=r.protocol===`https:`?`wss:`:`ws:`;if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`,n=new URL(e.path??`/`,`${i}//${t}`);return n.protocol=i,n.href}let t=new URL(e.path??``,r);return t.protocol=i,t.href}if(typeof e==`number`)return`${i}//${r.hostname}:${e}`;let a=e??``;if(/^wss?:\/\//i.test(a))return a;if(/^https?:\/\//i.test(a))return bx(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,r);return o.protocol=i,o.href}function Gw(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=Ww(n.websocket,r??`./`,location);return Tw({transport:`websocket`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>Uw({url:l,authToken:t,definitions:e.definitions,...s,onConnected(e){s.onConnected?.(e)},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(t){e.onDisconnected(),s.onDisconnected?.(t)}})})}function Kw(e){return e.includes(`:`)}function qw(e,t){return Kw(t)?t:`${e}:${t}`}function Jw(e){return{async get(t){return(await e()).value()[t]},async set(t,n){(await e()).mutate(e=>{e[t]=n})},async delete(t){(await e()).mutate(e=>{delete e[t]})},async all(){return(await e()).value()},async onChange(t){return(await e()).on(`updated`,e=>t(e))}}}function Yw(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=e.sharedState.get(r,{initialValue:{}}),i}return Jw(a)}function Xw(e,t){return{global:Yw(e,t,`global`),project:Yw(e,t,`project`)}}function Zw(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(Kw(n.name))throw Error(`[devframe] Scoped client RPC registration for namespace "${t}" received an already-namespaced function name "${n.name}". Pass a bare name without a ":" separator.`);e.client.register({...n,name:`${t}:${n.name}`})},call:((n,...r)=>e.call(qw(t,n),...r)),callEvent:((n,...r)=>e.callEvent(qw(t,n),...r)),callOptional:((n,...r)=>e.callOptional(qw(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(qw(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(qw(t,n),r,i),upload:(n,r)=>e.streaming.upload(qw(t,n),r)}},settings:Xw(e,t),scope:e.scope}}function Qw(){if(typeof document<`u`){let e=document.modelContext;if(e)return e}if(typeof navigator<`u`){let e=navigator.modelContext;if(e)return e}}function $w(e,t={}){let n=t.modelContext??Qw();if(!n)return()=>{};let r=n,i=new Map,a=new Map;function o(t,n){let o=DC(t.name),s=a.get(o);if(s&&s!==t.name){console.warn(`[devframe] WebMCP tool name "${o}" (from "${t.name}") collides with "${s}"; keeping the first registration.`);return}let c=new AbortController,l=Jb(t.type,n),u=r.registerTool({name:o,description:n.description,inputSchema:Zb(t.args),annotations:{title:n.title??t.name,readOnlyHint:l===`read`,destructiveHint:l===`destructive`},execute:n=>eT(t,e.context,n)},{signal:c.signal});u&&`then`in u&&u.then(()=>{},()=>{}),a.set(o,t.name),i.set(t.name,()=>{c.abort(),u&&`unregister`in u&&typeof u.unregister==`function`&&u.unregister(),a.delete(o)})}function s(t){let n=t?[t]:[...e.definitions.keys()];for(let t of n){i.get(t)?.(),i.delete(t);let n=e.definitions.get(t),r=n?.agent;n&&r&&o(n,r)}}s();let c=e.onChanged(e=>s(e));return()=>{c();for(let e of i.values())e();i.clear()}}async function eT(e,t,n){try{let r=$b(n,e.args?.length);return{content:[{type:`text`,text:tT(await(await qC(e,t))(...r))}]}}catch(e){return{isError:!0,content:[{type:`text`,text:nT(e)}]}}}function tT(e){return e===void 0?`undefined`:typeof e==`string`?e:JSON.stringify(e,null,2)}function nT(e){if(!(e instanceof Error))return String(e);let t=e.cause instanceof Error?` (cause: ${e.cause.message})`:``;return`${e.name}: ${e.message}${t}`}function rT(e,t){if(t.backend===`static`)return`static`;let n=t.websocket!==void 0,r=t.sse!==void 0;if(e===`websocket`){if(!n)throw Error(`[devframe] transport: 'websocket' was requested, but this server does not advertise a WebSocket endpoint`);return`websocket`}if(e===`sse`){if(!r)throw Error(`[devframe] transport: 'sse' was requested, but this server does not advertise an SSE endpoint`);return`sse`}if(t.backend===`sse`&&r)return`sse`;if(n)return`websocket`;if(r)return`sse`;throw Error(`[devframe] This server advertises no RPC transport (backend "none"), so there is nothing to connect to. Enable the WebSocket or SSE endpoint on the server, or use its static/MCP surfaces instead.`)}async function iT(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=mx(),a=Array.isArray(t)?t:[t],o=await uw(e),{connectionMeta:s,metaBaseUrl:c,authToken:l}=o,u=a[0]??`./`;try{u=new URL(`.`,c).href}catch{}let d=new zC({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),f={rpc:void 0},p=new JC(f),m=e.webmcp===!1?void 0:$w(p),h,g=!1;async function _(e){let t=[u,...a.filter(e=>e!==u)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(yx(e,r)).then(t=>{if(!t.ok)throw Error(`Failed to fetch ${e} from ${r}: ${t.status}`);return t.json()})}catch(e){n.push(e)}throw Error(`Failed to load ${e} from ${t.join(`, `)}`,{cause:n})}let ee={authToken:l,connectionMeta:s,metaBaseUrl:c,events:i,clientRpc:p,callTimeout:e.callTimeout,rpcOptions:{...n,async onRequest(e,t,i){if(await n.onRequest?.call(this,e,t,i),r&&d?.validate(e.m)){if(d.has(e.m,e.a))return i(d.cached(e.m,e.a));let n=await t(e);d.apply(e,n)}else await t(e)}}},v=rT(e.transport??`auto`,s),te=v===`static`?await Lw({fetchJsonFromBases:_}):v===`sse`?Dw({...ee,sseOptions:e.sseOptions}):Gw({...ee,wsOptions:e.wsOptions}),ne;try{ne=new BroadcastChannel(`devframe-auth`)}catch{}let re,ie=!1;function ae(e){return((...t)=>ie||!re?e(...t):re.then(()=>e(...t)))}function oe(){g=!0;try{h?.(),m?.()}finally{try{ne?.close()}finally{te.close?.()}}}let se={events:i,get isTrusted(){return te.isTrusted},get status(){return te.status},get connectionError(){return te.connectionError},get transport(){return te.transport??v},get connection(){return o},connectionMeta:s,ensureTrusted:te.ensureTrusted,requestTrust:te.requestTrust,requestTrustWithToken:async e=>(ow(e),o={...o,authToken:e},te.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await te.requestTrustWithCode(e);if(!t)return!1;ow(t),o={...o,authToken:t};try{ne?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},requestAuthCode:e=>te.requestAuthCode(e),call:ae(te.call),callEvent:ae(te.callEvent),callOptional:ae(te.callOptional),client:p,sharedState:void 0,services:void 0,streaming:void 0,cacheManager:d,scope:void 0,close:oe};se.sharedState=_w(se),se.streaming=Bw(se),se.services=gw(se);let ce=new Map;se.scope=(e=>{if(!e)return se;let t=ce.get(e);return t||(t=Zw(se,e),ce.set(e,t)),t}),f.rpc=se;function le(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function ue(){if(e.simpleAuth!==!1&&le()&&typeof globalThis.prompt==`function`)for(await se.requestAuthCode().catch(()=>{});!se.isTrusted;){let e=globalThis.prompt(`devframe: enter the authentication code shown in your terminal`);if(e==null)return;let t=e.trim();if(t&&await se.requestTrustWithCode(t))return}}async function de(){let t=await te.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await hw(se,{param:n}):!1;t||r||se.isTrusted||await ue()}return re=de().then(()=>{ie=!0},()=>{ie=!0}),s.mcp&&jC(async()=>{let{setupBrowserAgentRpcBridge:e}=await import(`./browser-agent-rpc-BXhoSh1z-yplN1jlS.js`);return{setupBrowserAgentRpcBridge:e}},[],import.meta.url).then(({setupBrowserAgentRpcBridge:e})=>{g||(h=e(se))}).catch(()=>{}),ne&&(ne.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&se.requestTrustWithToken(e.data.authToken)}),se}var aT=iT,oT=`ng-devtools-page-id`;function sT(){try{return new URLSearchParams(location.search).get(`pageId`)||(window.top===window?null:sessionStorage.getItem(oT)||null)}catch{return null}}function cT(e,t){e&1&&(ps(),U(0,`rect`,3)(1,`rect`,4)(2,`rect`,5)(3,`rect`,6))}function lT(e,t){e&1&&(ps(),U(0,`path`,7)(1,`path`,8)(2,`path`,9))}function uT(e,t){e&1&&(ps(),U(0,`circle`,10)(1,`path`,11)(2,`circle`,12))}function dT(e,t){e&1&&(ps(),U(0,`path`,1))}function fT(e,t){e&1&&(ps(),U(0,`path`,13)(1,`path`,14)(2,`path`,15)(3,`path`,16))}function pT(e,t){e&1&&(ps(),U(0,`ellipse`,17)(1,`path`,18)(2,`path`,19))}function mT(e,t){e&1&&(ps(),U(0,`rect`,20)(1,`path`,21)(2,`path`,22)(3,`path`,23))}function hT(e,t){e&1&&(ps(),U(0,`circle`,24)(1,`path`,25)(2,`path`,26))}function gT(e,t){e&1&&(ps(),U(0,`path`,27)(1,`path`,28)(2,`path`,29)(3,`path`,30)(4,`circle`,31))}function _T(e,t){e&1&&(ps(),U(0,`path`,2))}var vT=class e{name=$.required();static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-tab-icon`]],inputs:{name:[1,`name`]},decls:11,vars:1,consts:[[`viewBox`,`0 0 24 24`,`width`,`16`,`height`,`16`,`fill`,`none`,`stroke`,`currentColor`,`stroke-width`,`1.8`,`stroke-linecap`,`round`,`stroke-linejoin`,`round`,`aria-hidden`,`true`],[`d`,`M22 12h-4l-3 9L9 3l-3 9H2`],[`d`,`m8 3 4 8 5-5 5 15H2L8 3z`],[`x`,`3`,`y`,`3`,`width`,`7`,`height`,`9`,`rx`,`1.5`],[`x`,`14`,`y`,`3`,`width`,`7`,`height`,`5`,`rx`,`1.5`],[`x`,`14`,`y`,`12`,`width`,`7`,`height`,`9`,`rx`,`1.5`],[`x`,`3`,`y`,`16`,`width`,`7`,`height`,`5`,`rx`,`1.5`],[`d`,`M12 2 3 7l9 5 9-5-9-5Z`],[`d`,`m3 12 9 5 9-5`],[`d`,`m3 17 9 5 9-5`],[`cx`,`6`,`cy`,`19`,`r`,`3`],[`d`,`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`],[`cx`,`18`,`cy`,`5`,`r`,`3`],[`d`,`M12 22v-5`],[`d`,`M9 8V2`],[`d`,`M15 8V2`],[`d`,`M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z`],[`cx`,`12`,`cy`,`5`,`rx`,`9`,`ry`,`3`],[`d`,`M3 5v14a9 3 0 0 0 18 0V5`],[`d`,`M3 12a9 3 0 0 0 18 0`],[`x`,`3`,`y`,`4`,`width`,`18`,`height`,`16`,`rx`,`2`],[`d`,`M7 9h10`],[`d`,`M7 13h6`],[`d`,`M7 17h8`],[`cx`,`12`,`cy`,`12`,`r`,`9`],[`d`,`M3 12h18`],[`d`,`M12 3a14 14 0 0 1 0 18a14 14 0 0 1 0-18Z`],[`d`,`M4 7h10`],[`d`,`M4 17h6`],[`d`,`m14 13 4 4-4 4`],[`d`,`M10 17h8`],[`cx`,`18`,`cy`,`7`,`r`,`3`]],template:function(e,t){if(e&1&&(ps(),V(0,`svg`,0),N(1,cT,4,0)(2,lT,3,0)(3,uT,3,0)(4,dT,1,0,`:svg:path`,1)(5,fT,4,0)(6,pT,3,0)(7,mT,4,0)(8,hT,3,0)(9,gT,5,0)(10,_T,1,0,`:svg:path`,2),H()),e&2){let e;j(),P((e=t.name())===`dashboard`?1:e===`components`?2:e===`routes`?3:e===`signals`?4:e===`injectors`?5:e===`store`?6:e===`forms`?7:e===`network`?8:e===`pipes`?9:e===`analog`?10:-1)}},styles:[`[_nghost-%COMP%] { display: inline-flex; flex-shrink: 0; -}`]})},vT=(e,t)=>t.tab;function yT(e,t){e&1&&Y(0),e&2&&Z(` `,q().meta()?.projectName,` `)}function bT(e,t){e&1&&Y(0,` Project details unavailable `)}function xT(e,t){e&1&&Y(0,` Loading… `)}function ST(e,t){e&1&&(R(0,`p`,4),Y(1,`Check that the dev server is running, then reload the panel.`),z())}function CT(e,t){e&1&&(R(0,`li`,6)(1,`span`),Y(2,`Analog`),z(),Y(3),z()),e&2&&(j(3),X(t))}function wT(e,t){if(e&1&&(R(0,`span`,15),Y(1),z(),R(2,`span`,16),Y(3),z()),e&2){let e=q().$implicit,t=q();j(),X(t.cards()[e.tab]?.value),j(2),X(t.cards()[e.tab]?.sub)}}function TT(e,t){e&1&&(R(0,`span`,17),Y(1,`–`),z(),R(2,`span`,16),Y(3,`Count unavailable`),z())}function ET(e,t){e&1&&(B(0,`span`,18),R(1,`span`,16),Y(2,`Counting…`),z())}function DT(e,t){if(e&1){let e=W();R(0,`button`,9),G(`click`,function(){let t=O(e).$implicit;return k(q().navigate.emit(t.tab))}),R(1,`span`,10)(2,`span`,11),B(3,`app-tab-icon`,12),z(),R(4,`span`,13),Y(5,`→`),z()(),R(6,`span`,14),Y(7),z(),N(8,wT,4,2)(9,TT,4,0)(10,ET,3,0),z()}if(e&2){let e,n=t.$implicit,r=t.$index,i=q().stateOf(n.tab);t_(`animation-delay`,60*r,`ms`),M(`aria-busy`,i===`loading`),j(3),L(`name`,n.tab),j(4),X(n.label),j(),P((e=i)===`ready`?8:e===`error`?9:10)}}var OT=[{tab:`components`,label:`Components`},{tab:`routes`,label:`Routes`},{tab:`signals`,label:`Signals`},{tab:`injectors`,label:`Injectors`},{tab:`store`,label:`NgRx declarations`},{tab:`pipes`,label:`Pipes`}],kT=new Set([`signal`,`computed`,`linkedSignal`,`effect`]),AT={action:[`action`,`actions`],reducer:[`reducer`,`reducers`],effect:[`effect`,`effects`],selector:[`selector`,`selectors`],feature:[`feature`,`features`],"store-setup":[`setup call`,`setup calls`],"signal-store":[`signal store`,`signal stores`],"signal-state":[`signal state`,`signal states`],"signal-method":[`signal method`,`signal methods`]};function jT(e,t,n){return`${e} ${e===1?t:n}`}function MT(e,t){for(let n of e??[])t(n),MT(n.children,t)}function NT(e){if(!e.some(e=>e.kind))return{value:e.length,sub:`discovered in source`};let t=e.filter(e=>e.kind===`directive`).length;return{value:e.length-t,sub:`components · ${jT(t,`directive`,`directives`)}`}}function PT(e){if(!e.some(e=>e.kind))return{value:e.length,sub:`route entries in source`};let t=e.filter(e=>e.kind===`redirect`).length;return{value:new Set(e.filter(e=>e.kind===`page`).map(e=>e.fullPath??e.path??``)).size,sub:`navigable paths · ${jT(t,`redirect`,`redirects`)}`}}function FT(e){let t=new Map;for(let n of e)n.kind&&t.set(n.kind,(t.get(n.kind)??0)+1);if(!t.size)return{value:e.length,sub:`declarations in source`};let n=[...t].sort((e,t)=>t[1]-e[1]).map(([e,t])=>{let[n,r]=AT[e]??[e,e];return jT(t,n,r)});return{value:e.length,sub:n.join(` · `)}}var IT=class e{rpc=$(null);navigate=iv();meta=A(null);stats=OT;metaState=A(`loading`);states=A({});rows=A({});injectorTree=A(null);signalGraph=A(null);pageId=oT();destroyRef=E(ws);stopLive=[];liveInjectors=Q(()=>{let e=this.injectorTree();if(!e?.roots?.length)return null;let t=0,n=0,r=e=>{t++,n+=e.providers?.length??0};return MT(e.roots,r),MT(e.environment,r),{injectors:t,providers:n}});liveSignals=Q(()=>{let e=this.signalGraph(),t=this.pageId&&e?.pages?.[this.pageId]||e?.graph;return t?.nodes?.length?t.nodes.filter(e=>kT.has(e.kind??``)).length:null});cards=Q(()=>{let e=this.rows(),t={};if(e.components&&(t.components=NT(e.components)),e.routes&&(t.routes=PT(e.routes)),e.store&&(t.store=FT(e.store)),e.pipes){let n=e.pipes.filter(e=>e.builtin).length;t.pipes={value:e.pipes.length-n,sub:n?`custom pipes · ${n} built-in in use`:`custom pipes in source`}}let n=this.liveSignals();n===null?e.signals&&(t.signals={value:e.signals.length,sub:`signal declarations in source`}):t.signals={value:n,sub:e.signals?`live on the page · ${e.signals.length} declared in source`:`live on the page`};let r=this.liveInjectors();return r?t.injectors={value:r.injectors,sub:`live injectors · ${jT(r.providers,`provider`,`providers`)}`}:e.injectors&&(t.injectors={value:e.injectors.filter(e=>e.type!==`injection`).length,sub:`provider declarations in source`}),t});constructor(){dc(()=>{let e=this.rpc();if(!e)return;let t=e.scope(`ng-devtools`);this.metaState.set(`loading`),this.states.set({}),this.rows.set({}),t.rpc.call(`build-meta`).then(e=>{this.meta.set(e),this.metaState.set(`ready`)}).catch(()=>this.metaState.set(`error`)),this.load(t.rpc.call(`get-components`),`components`),this.load(t.rpc.call(`get-routes`),`routes`),this.load(t.rpc.call(`get-signals`),`signals`),this.load(t.rpc.call(`get-providers`),`injectors`),this.load(t.rpc.call(`get-ngrx-store`),`store`),this.load(t.rpc.call(`get-pipes`),`pipes`),this.watchLive(e)}),this.destroyRef.onDestroy(()=>this.unwatch())}stateOf(e){return(e===`signals`?this.liveSignals():e===`injectors`?this.liveInjectors():null)===null?this.states()[e]??`loading`:`ready`}load(e,t){let n=e=>this.states.update(n=>({...n,[t]:e}));e.then(e=>{this.rows.update(n=>({...n,[t]:Array.isArray(e)?e:[]})),n(`ready`)}).catch(()=>n(`error`))}async watchLive(e){this.unwatch();let t=e.scope(`ng-devtools`).rpc,n=async(n,r)=>{try{let i=await t.sharedState(n);if(this.destroyRef.destroyed||this.rpc()!==e)return;r(i.value()),this.stopLive.push(i.on(`updated`,e=>r(e)))}catch{r(null)}};await Promise.all([n(`injector-tree`,e=>this.injectorTree.set(e)),n(`signal-graph`,e=>this.signalGraph.set(e))])}unwatch(){for(let e of this.stopLive.splice(0))e()}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-dashboard`]],inputs:{rpc:[1,`rpc`]},outputs:{navigate:`navigate`},decls:26,vars:11,consts:[[`aria-labelledby`,`project-title`,1,`project`],[1,`project-head`],[1,`eyebrow`],[`id`,`project-title`],[1,`hint`],[1,`chips`],[1,`analog`],[1,`grid`],[`type`,`button`,1,`stat`,3,`animation-delay`],[`type`,`button`,1,`stat`,3,`click`],[1,`top`],[1,`icon`],[3,`name`],[`aria-hidden`,`true`,1,`go`],[1,`label`],[1,`big`],[1,`sub`],[1,`big`,`muted`],[`aria-hidden`,`true`,1,`big`,`skeleton`]],template:function(e,t){if(e&1&&(R(0,`section`,0)(1,`div`,1)(2,`p`,2),Y(3,`Project`),z(),R(4,`h2`,3),N(5,yT,1,1)(6,bT,1,0)(7,xT,1,0),z(),N(8,ST,2,0,`p`,4),z(),R(9,`ul`,5)(10,`li`)(11,`span`),Y(12,`Angular`),z(),Y(13),z(),R(14,`li`)(15,`span`),Y(16,`TypeScript`),z(),Y(17),z(),R(18,`li`)(19,`span`),Y(20,`SSR`),z(),Y(21),z(),N(22,CT,4,1,`li`,6),z()(),R(23,`div`,7),F(24,DT,11,6,`button`,8,vT),z()),e&2){let e,n;M(`aria-busy`,t.metaState()===`loading`),j(4),J(`muted`,t.metaState()!==`ready`),j(),P((e=t.metaState())===`ready`?5:e===`error`?6:7),j(3),P(t.metaState()===`error`?8:-1),j(),J(`pending`,t.metaState()===`loading`),j(4),X(t.meta()?.angularVersion??`…`),j(4),X(t.meta()?.typescript??`…`),j(4),X(t.meta()?t.meta()?.ssr?`On`:`Off`:`…`),j(),P((n=t.meta()?.analog)?22:-1,n),j(2),I(t.stats)}},dependencies:[_T],styles:[`[_nghost-%COMP%] { +}`]})},yT=(e,t)=>t.tab;function bT(e,t){e&1&&Y(0),e&2&&Z(` `,q().meta()?.projectName,` `)}function xT(e,t){e&1&&Y(0,` Project details unavailable `)}function ST(e,t){e&1&&Y(0,` Loading… `)}function CT(e,t){e&1&&(R(0,`p`,4),Y(1,`Check that the dev server is running, then reload the panel.`),z())}function wT(e,t){e&1&&(R(0,`li`,6)(1,`span`),Y(2,`Analog`),z(),Y(3),z()),e&2&&(j(3),X(t))}function TT(e,t){if(e&1&&(R(0,`span`,15),Y(1),z(),R(2,`span`,16),Y(3),z()),e&2){let e=q().$implicit,t=q();j(),X(t.cards()[e.tab]?.value),j(2),X(t.cards()[e.tab]?.sub)}}function ET(e,t){e&1&&(R(0,`span`,17),Y(1,`–`),z(),R(2,`span`,16),Y(3,`Count unavailable`),z())}function DT(e,t){e&1&&(B(0,`span`,18),R(1,`span`,16),Y(2,`Counting…`),z())}function OT(e,t){if(e&1){let e=W();R(0,`button`,9),G(`click`,function(){let t=O(e).$implicit;return k(q().navigate.emit(t.tab))}),R(1,`span`,10)(2,`span`,11),B(3,`app-tab-icon`,12),z(),R(4,`span`,13),Y(5,`→`),z()(),R(6,`span`,14),Y(7),z(),N(8,TT,4,2)(9,ET,4,0)(10,DT,3,0),z()}if(e&2){let e,n=t.$implicit,r=t.$index,i=q().stateOf(n.tab);n_(`animation-delay`,60*r,`ms`),M(`aria-busy`,i===`loading`),j(3),L(`name`,n.tab),j(4),X(n.label),j(),P((e=i)===`ready`?8:e===`error`?9:10)}}var kT=[{tab:`components`,label:`Components`},{tab:`routes`,label:`Routes`},{tab:`signals`,label:`Signals`},{tab:`injectors`,label:`Injectors`},{tab:`store`,label:`NgRx declarations`},{tab:`pipes`,label:`Pipes`}],AT=new Set([`signal`,`computed`,`linkedSignal`,`effect`]),jT={action:[`action`,`actions`],reducer:[`reducer`,`reducers`],effect:[`effect`,`effects`],selector:[`selector`,`selectors`],feature:[`feature`,`features`],"store-setup":[`setup call`,`setup calls`],"signal-store":[`signal store`,`signal stores`],"signal-state":[`signal state`,`signal states`],"signal-method":[`signal method`,`signal methods`]};function MT(e,t,n){return`${e} ${e===1?t:n}`}function NT(e,t){for(let n of e??[])t(n),NT(n.children,t)}function PT(e){if(!e.some(e=>e.kind))return{value:e.length,sub:`discovered in source`};let t=e.filter(e=>e.kind===`directive`).length;return{value:e.length-t,sub:`components · ${MT(t,`directive`,`directives`)}`}}function FT(e){if(!e.some(e=>e.kind))return{value:e.length,sub:`route entries in source`};let t=e.filter(e=>e.kind===`redirect`).length;return{value:new Set(e.filter(e=>e.kind===`page`).map(e=>e.fullPath??e.path??``)).size,sub:`navigable paths · ${MT(t,`redirect`,`redirects`)}`}}function IT(e){let t=new Map;for(let n of e)n.kind&&t.set(n.kind,(t.get(n.kind)??0)+1);if(!t.size)return{value:e.length,sub:`declarations in source`};let n=[...t].sort((e,t)=>t[1]-e[1]).map(([e,t])=>{let[n,r]=jT[e]??[e,e];return MT(t,n,r)});return{value:e.length,sub:n.join(` · `)}}var LT=class e{rpc=$(null);navigate=av();meta=A(null);stats=kT;metaState=A(`loading`);states=A({});rows=A({});injectorTree=A(null);signalGraph=A(null);pageId=sT();destroyRef=E(ws);stopLive=[];liveInjectors=Q(()=>{let e=this.injectorTree();if(!e?.roots?.length)return null;let t=0,n=0,r=e=>{t++,n+=e.providers?.length??0};return NT(e.roots,r),NT(e.environment,r),{injectors:t,providers:n}});liveSignals=Q(()=>{let e=this.signalGraph(),t=this.pageId&&e?.pages?.[this.pageId]||e?.graph;return t?.nodes?.length?t.nodes.filter(e=>AT.has(e.kind??``)).length:null});cards=Q(()=>{let e=this.rows(),t={};if(e.components&&(t.components=PT(e.components)),e.routes&&(t.routes=FT(e.routes)),e.store&&(t.store=IT(e.store)),e.pipes){let n=e.pipes.filter(e=>e.builtin).length;t.pipes={value:e.pipes.length-n,sub:n?`custom pipes · ${n} built-in in use`:`custom pipes in source`}}let n=this.liveSignals();n===null?e.signals&&(t.signals={value:e.signals.length,sub:`signal declarations in source`}):t.signals={value:n,sub:e.signals?`live on the page · ${e.signals.length} declared in source`:`live on the page`};let r=this.liveInjectors();return r?t.injectors={value:r.injectors,sub:`live injectors · ${MT(r.providers,`provider`,`providers`)}`}:e.injectors&&(t.injectors={value:e.injectors.filter(e=>e.type!==`injection`).length,sub:`provider declarations in source`}),t});constructor(){dc(()=>{let e=this.rpc();if(!e)return;let t=e.scope(`ng-devtools`);this.metaState.set(`loading`),this.states.set({}),this.rows.set({}),t.rpc.call(`build-meta`).then(e=>{this.meta.set(e),this.metaState.set(`ready`)}).catch(()=>this.metaState.set(`error`)),this.load(t.rpc.call(`get-components`),`components`),this.load(t.rpc.call(`get-routes`),`routes`),this.load(t.rpc.call(`get-signals`),`signals`),this.load(t.rpc.call(`get-providers`),`injectors`),this.load(t.rpc.call(`get-ngrx-store`),`store`),this.load(t.rpc.call(`get-pipes`),`pipes`),this.watchLive(e)}),this.destroyRef.onDestroy(()=>this.unwatch())}stateOf(e){return(e===`signals`?this.liveSignals():e===`injectors`?this.liveInjectors():null)===null?this.states()[e]??`loading`:`ready`}load(e,t){let n=e=>this.states.update(n=>({...n,[t]:e}));e.then(e=>{this.rows.update(n=>({...n,[t]:Array.isArray(e)?e:[]})),n(`ready`)}).catch(()=>n(`error`))}async watchLive(e){this.unwatch();let t=e.scope(`ng-devtools`).rpc,n=async(n,r)=>{try{let i=await t.sharedState(n);if(this.destroyRef.destroyed||this.rpc()!==e)return;r(i.value()),this.stopLive.push(i.on(`updated`,e=>r(e)))}catch{r(null)}};await Promise.all([n(`injector-tree`,e=>this.injectorTree.set(e)),n(`signal-graph`,e=>this.signalGraph.set(e))])}unwatch(){for(let e of this.stopLive.splice(0))e()}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-dashboard`]],inputs:{rpc:[1,`rpc`]},outputs:{navigate:`navigate`},decls:26,vars:11,consts:[[`aria-labelledby`,`project-title`,1,`project`],[1,`project-head`],[1,`eyebrow`],[`id`,`project-title`],[1,`hint`],[1,`chips`],[1,`analog`],[1,`grid`],[`type`,`button`,1,`stat`,3,`animation-delay`],[`type`,`button`,1,`stat`,3,`click`],[1,`top`],[1,`icon`],[3,`name`],[`aria-hidden`,`true`,1,`go`],[1,`label`],[1,`big`],[1,`sub`],[1,`big`,`muted`],[`aria-hidden`,`true`,1,`big`,`skeleton`]],template:function(e,t){if(e&1&&(R(0,`section`,0)(1,`div`,1)(2,`p`,2),Y(3,`Project`),z(),R(4,`h2`,3),N(5,bT,1,1)(6,xT,1,0)(7,ST,1,0),z(),N(8,CT,2,0,`p`,4),z(),R(9,`ul`,5)(10,`li`)(11,`span`),Y(12,`Angular`),z(),Y(13),z(),R(14,`li`)(15,`span`),Y(16,`TypeScript`),z(),Y(17),z(),R(18,`li`)(19,`span`),Y(20,`SSR`),z(),Y(21),z(),N(22,wT,4,1,`li`,6),z()(),R(23,`div`,7),F(24,OT,11,6,`button`,8,yT),z()),e&2){let e,n;M(`aria-busy`,t.metaState()===`loading`),j(4),J(`muted`,t.metaState()!==`ready`),j(),P((e=t.metaState())===`ready`?5:e===`error`?6:7),j(3),P(t.metaState()===`error`?8:-1),j(),J(`pending`,t.metaState()===`loading`),j(4),X(t.meta()?.angularVersion??`…`),j(4),X(t.meta()?.typescript??`…`),j(4),X(t.meta()?t.meta()?.ssr?`On`:`Off`:`…`),j(),P((n=t.meta()?.analog)?22:-1,n),j(2),I(t.stats)}},dependencies:[vT],styles:[`[_nghost-%COMP%] { display: block; max-width: 1200px; } @@ -251,7 +251,7 @@ h2.muted[_ngcontent-%COMP%] { .skeleton[_ngcontent-%COMP%] { animation: none; } -}`]})},LT=()=>[],RT=(e,t)=>t.node.id,zT=(e,t)=>t.outlet+t.route,BT=(e,t)=>t.formId,VT=(e,t)=>t.name+e,HT=(e,t)=>t.name,UT=(e,t)=>t.token+e;function WT(e,t){return this.sourceKey(t)}function GT(e,t){e&1&&(V(0,`p`,8),Y(1,`The page has more components than the tree shows.`),H())}function KT(e,t){if(e&1){let e=W();V(0,`div`,11)(1,`p`,16),Y(2),H(),V(3,`button`,17),K(`click`,function(){return O(e),k(q(2).filter.set(``))}),Y(4,`Clear filter`),H()()}if(e&2){let e=q(2);j(2),Z(`No components match “`,e.filter().trim(),`”`)}}function qT(e,t){if(e&1){let e=W();V(0,`span`,25),K(`click`,function(t){O(e);let n=q().$implicit;return k(q(2).toggle(n.node.id,t))}),ps(),V(1,`svg`,26),U(2,`path`,27),H()()}if(e&2){let e=q().$implicit;J(`open`,e.expanded)}}function JT(e,t){e&1&&U(0,`span`,20)}function YT(e,t){if(e&1&&(V(0,`span`,23),Y(1),H()),e&2){let e=t.$implicit;j(),X(e.route||`/`)}}function XT(e,t){if(e&1&&(V(0,`span`,24),Y(1),V(2,`span`,10),Y(3),H()()),e&2){let e=q().$implicit;M(`title`,e.node.directives.join(`, `)),j(),Z(` +`,e.node.directives.length,` `),j(2),Z(` `,e.node.directives.length===1?`directive`:`directives`,` `)}}function ZT(e,t){if(e&1){let e=W();V(0,`div`,18),K(`click`,function(){let t=O(e).$implicit;return k(q(2).select(t.node.id))})(`focus`,function(){let t=O(e).$implicit,n=q(2);return n.focusId.set(t.node.id),k(n.highlight(t.node.id))})(`blur`,function(){return O(e),k(q(2).highlight(null))})(`mouseenter`,function(){let t=O(e).$implicit;return k(q(2).highlight(t.node.id))})(`mouseleave`,function(){return O(e),k(q(2).highlight(null))}),N(1,qT,3,2,`span`,19)(2,JT,1,0,`span`,20),V(3,`span`,21),Y(4),H(),V(5,`span`,22),Y(6),H(),F(7,YT,2,1,`span`,23,zT),N(9,XT,4,3,`span`,24),H()}if(e&2){let e=t.$implicit,n=q(2);t_(`--%NS%depth`,e.depth),J(`selected`,n.selectedId()===e.node.id),M(`aria-level`,e.depth+1)(`aria-expanded`,e.hasChildren?e.expanded:null)(`aria-selected`,n.selectedId()===e.node.id)(`tabindex`,n.rovingId()===e.node.id?0:-1)(`data-id`,e.node.id),j(),P(e.hasChildren?1:2),j(3),X(e.node.name),j(2),Z(`<`,e.node.tag,`>`),j(),I(n.routedById().get(e.node.id)??R_(13,LT)),j(2),P(e.node.directives?.length?9:-1)}}function QT(e,t){if(e&1){let e=W();V(0,`button`,36),K(`click`,function(){let t=O(e).$implicit;return k(q(5).showForm.emit(t.formId))}),Y(1),H()}if(e&2){let e=t.$implicit;j(),Z(` Show `,e.label,` in Forms `)}}function $T(e,t){if(e&1&&(V(0,`div`,34),F(1,QT,2,1,`button`,35,BT),H()),e&2){let e=q(),t=q(3);j(),I(t.formsIn(e.file))}}function eE(e,t){if(e&1&&(V(0,`p`,33),Y(1),H(),N(2,$T,3,0,`div`,34)),e&2){let e=t,n=q(3);j(),D_(``,e.file,`:`,e.line),j(),P(n.formsIn(e.file).length?2:-1)}}function tE(e,t){if(e&1&&(V(0,`dt`),Y(1,`Routed`),H(),V(2,`dd`,38),Y(3),H()),e&2){let e=t.$implicit;j(3),D_(``,e.route||`/`,` in outlet `,e.outlet)}}function nE(e,t){if(e&1&&(V(0,`span`,47),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`(`,e.prop,`)`)}}function rE(e,t){if(e&1&&(V(0,`li`,45)(1,`span`,46),Y(2),N(3,nE,2,1,`span`,47),H(),V(4,`pre`),Y(5),H_(6,`json`),H()()),e&2){let e=t.$implicit;j(2),Z(` `,e.name,` `),j(),P(e.prop===e.name?-1:3),j(2),X(W_(6,3,e.value))}}function iE(e,t){if(e&1&&(V(0,`ul`,41),F(1,rE,7,5,`li`,45,HT),H()),e&2){let e=q();j(),I(e.inputs)}}function aE(e,t){e&1&&(V(0,`p`,42),Y(1,`No inputs.`),H())}function oE(e,t){if(e&1&&(V(0,`li`,49)(1,`span`,38),Y(2),H(),V(3,`span`,50),Y(4),H()()),e&2){let e=t.$implicit;J(`on`,e.listened),j(2),X(e.name),j(2),X(e.listened?`listened`:`no listener`)}}function sE(e,t){if(e&1&&(V(0,`ul`,43),F(1,oE,5,4,`li`,48,HT),H()),e&2){let e=q();j(),I(e.outputs)}}function cE(e,t){e&1&&(V(0,`p`,42),Y(1,`No outputs.`),H())}function lE(e,t){if(e&1&&(V(0,`li`,51),Y(1),H()),e&2){let e=t.$implicit;j(),X(e)}}function uE(e,t){if(e&1&&(V(0,`div`,39)(1,`h3`),Y(2,` DOM listeners `),V(3,`span`,40),Y(4),H()(),V(5,`ul`,43),F(6,lE,2,1,`li`,51,cg),H()()),e&2){let e=q();j(4),X(e.listeners.length),j(2),I(e.listeners)}}function dE(e,t){if(e&1&&(V(0,`li`,45)(1,`span`,46),Y(2),H(),V(3,`pre`),Y(4),H_(5,`json`),H()()),e&2){let e=t.$implicit;j(2),X(e.name),j(2),X(W_(5,2,e.value))}}function fE(e,t){if(e&1&&(V(0,`ul`,41),F(1,dE,6,4,`li`,45,HT),H()),e&2){let e=q().$implicit;j(),I(e.inputs)}}function pE(e,t){if(e&1&&(V(0,`li`,49)(1,`span`,38),Y(2),H(),V(3,`span`,50),Y(4),H()()),e&2){let e=t.$implicit;J(`on`,e.listened),j(2),X(e.name),j(2),X(e.listened?`listened`:`no listener`)}}function mE(e,t){if(e&1&&(V(0,`ul`,43),F(1,pE,5,4,`li`,48,HT),H()),e&2){let e=q().$implicit;j(),I(e.outputs)}}function hE(e,t){e&1&&(V(0,`p`,42),Y(1,`No inputs or outputs.`),H())}function gE(e,t){if(e&1&&(V(0,`div`,39)(1,`h3`)(2,`span`,38),Y(3),H(),V(4,`span`,52),Y(5,`directive on host`),H()(),N(6,fE,3,0,`ul`,41),N(7,mE,3,0,`ul`,43),N(8,hE,2,0,`p`,42),H()),e&2){let e=t.$implicit;j(3),X(e.name),j(3),P(e.inputs.length?6:-1),j(),P(e.outputs.length?7:-1),j(),P(!e.inputs.length&&!e.outputs.length?8:-1)}}function _E(e,t){if(e&1&&(V(0,`span`,52),Y(1),H()),e&2){let e=t.$implicit;j(),X(e)}}function vE(e,t){if(e&1&&(V(0,`span`,55),Y(1,`from `),V(2,`span`,38),Y(3),H()()),e&2){let e=q().$implicit;j(3),X(e.providedByName??`an injector`)}}function yE(e,t){e&1&&(V(0,`span`,56),Y(1,`not provided`),H())}function bE(e,t){if(e&1&&(V(0,`li`,53)(1,`span`,54),Y(2),H(),F(3,_E,2,1,`span`,52,cg),N(5,vE,4,1,`span`,55)(6,yE,2,0,`span`,56),H()),e&2){let e=t.$implicit;j(2),X(e.token),j(),I(e.flags),j(2),P(e.providedBy?5:6)}}function xE(e,t){if(e&1&&(V(0,`ul`,44),F(1,bE,7,2,`li`,53,UT),H()),e&2){let e=q();j(),I(e.dependencies)}}function SE(e,t){e&1&&(V(0,`p`,42),Y(1,`Nothing is injected through the constructor or inject().`),H())}function CE(e,t){if(e&1&&(V(0,`dl`,37)(1,`dt`),Y(2,`Change detection`),H(),V(3,`dd`),Y(4),H(),V(5,`dt`),Y(6,`Encapsulation`),H(),V(7,`dd`),Y(8),H(),V(9,`dt`),Y(10,`Host path`),H(),V(11,`dd`,38),Y(12),H(),F(13,tE,4,2,null,null,zT),H(),V(15,`div`,39)(16,`h3`),Y(17,` Inputs `),V(18,`span`,40),Y(19),H()(),N(20,iE,3,0,`ul`,41)(21,aE,2,0,`p`,42),H(),V(22,`div`,39)(23,`h3`),Y(24,` Outputs `),V(25,`span`,40),Y(26),H()(),N(27,sE,3,0,`ul`,43)(28,cE,2,0,`p`,42),H(),N(29,uE,8,1,`div`,39),F(30,gE,9,4,`div`,39,VT),V(32,`div`,39)(33,`h3`),Y(34,` Injected `),V(35,`span`,40),Y(36),H()(),N(37,xE,3,0,`ul`,44)(38,SE,2,0,`p`,42),H()),e&2){let e=t,n=q(),r=q(2);j(4),X(e.changeDetection??`Unknown`),j(4),X(e.encapsulation??`Unknown`),j(4),X(e.path),j(),I(r.routedById().get(n.id)??R_(10,LT)),j(6),X(e.inputs.length),j(),P(e.inputs.length?20:21),j(6),X(e.outputs.length),j(),P(e.outputs.length?27:28),j(2),P(e.listeners.length?29:-1),j(),I(e.directives),j(6),X(e.dependencies.length),j(),P(e.dependencies.length?37:38)}}function wE(e,t){e&1&&(V(0,`div`,32),U(1,`span`,57),V(2,`p`,58),Y(3,`Reading live values from the page…`),H()())}function TE(e,t){if(e&1&&(V(0,`section`,14)(1,`header`,28)(2,`span`,29),Y(3,`component`),H(),V(4,`h2`,30),Y(5),H(),V(6,`span`,31),Y(7),H(),N(8,eE,3,3),H(),N(9,CE,39,11)(10,wE,4,0,`div`,32),H()),e&2){let e,n,r=t,i=q(2);j(5),X(r.name),j(2),Z(`<`,r.tag,`>`),j(),P((e=i.sourceFor(r))?8:-1,e),j(),P((n=i.detail())?9:10,n)}}function EE(e,t){e&1&&(V(0,`div`,15)(1,`p`,58),Y(2,` Select a component to see its live inputs, outputs, change detection and injected services. `),H()())}function DE(e,t){if(e&1){let e=W();V(0,`p`,0),Y(1,` Every component instance on the page, in the order Angular rendered them. Hover a row to highlight its host in the page, and select it to read its live inputs, outputs and injected services. `),H(),V(2,`div`,1)(3,`div`,2),ps(),V(4,`svg`,3),U(5,`circle`,4)(6,`path`,5),H(),ms(),V(7,`input`,6),K(`input`,function(t){return O(e),k(q().filter.set(t.target.value))})(`keydown.escape`,function(){return O(e),k(q().filter.set(``))}),H()(),V(8,`span`,7),Y(9),H()(),N(10,GT,2,0,`p`,8),V(11,`div`,9)(12,`div`)(13,`h2`,10),Y(14,`Component tree`),H(),N(15,KT,5,1,`div`,11),V(16,`div`,12),K(`keydown`,function(t){return O(e),k(q().onTreeKey(t))}),F(17,ZT,10,14,`div`,13,RT),H()(),N(19,TE,11,4,`section`,14)(20,EE,3,0,`div`,15),H()}if(e&2){let e,t=q();j(7),bg(`value`,t.filter()),j(2),D_(` `,t.page().count,` `,t.page().count===1?`instance`:`instances`,` `),j(),P(t.page().truncated?10:-1),j(5),P(t.rows().length?-1:15),j(),bg(`hidden`,!t.rows().length),j(),I(t.rows()),j(2),P((e=t.selectedNode())?19:20,e)}}function OE(e,t){e&1&&(V(0,`p`,59),Y(1,` The page reported no component instances. The live tree needs a development build with Angular's debug API. Showing what the source declares instead. `),H())}function kE(e,t){e&1&&(V(0,`p`,8),Y(1,` No page is connected, so this lists what the source declares. Open the app in a browser with the devtools connected to see each rendered instance. `),H())}function AE(e,t){if(e&1&&Y(0),e&2){let e=q(3);D_(` `,e.filteredSource().length,` of `,e.source().length,` `)}}function jE(e,t){if(e&1&&Y(0),e&2){let e=q(3);k_(` `,e.sourceCounts().components,` `,e.sourceCounts().components===1?`component`:`components`,` · `,e.sourceCounts().directives,` `,e.sourceCounts().directives===1?`directive`:`directives`,` `)}}function ME(e,t){if(e&1&&(V(0,`span`,7),N(1,AE,1,2)(2,jE,1,4),H()),e&2){let e=q(2);j(),P(e.filter().trim()?1:2)}}function NE(e,t){e&1&&(V(0,`div`,65),U(1,`span`,57),V(2,`p`,16),Y(3,`Scanning components…`),H()())}function PE(e,t){if(e&1){let e=W();V(0,`div`,66)(1,`p`,16),Y(2,`Could not load components`),H(),V(3,`p`,58),Y(4,`Check that the dev server is running, then try again.`),H(),V(5,`button`,17),K(`click`,function(){return O(e),k(q(2).refresh())}),Y(6,`Retry`),H()()}}function FE(e,t){e&1&&(V(0,`div`,67)(1,`p`,16),Y(2,`No components found`),H(),V(3,`p`,58),Y(4,`No @Component or @Directive was found in the source.`),H()())}function IE(e,t){if(e&1){let e=W();V(0,`div`,67)(1,`p`,16),Y(2),H(),V(3,`button`,17),K(`click`,function(){return O(e),k(q(2).filter.set(``))}),Y(4,`Clear filter`),H()()}if(e&2){let e=q(2);j(2),Z(`No components match “`,e.filter().trim(),`”`)}}function LE(e,t){if(e&1&&Y(0),e&2){let e=q().$implicit;Z(` `,q(3).bareName(e.className),` · `)}}function RE(e,t){if(e&1&&(V(0,`dt`),Y(1,`Change detection`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q(2).$implicit;j(3),X(e.changeDetection??`Unknown`)}}function zE(e,t){if(e&1){let e=W();V(0,`button`,36),K(`click`,function(){let t=O(e).$implicit;return k(q(5).showForm.emit(t.formId))}),Y(1),H()}if(e&2){let e=t.$implicit;j(),Z(` Show `,e.label,` in Forms `)}}function BE(e,t){if(e&1&&(V(0,`div`,77)(1,`dl`,37)(2,`dt`),Y(3,`Class`),H(),V(4,`dd`,38),Y(5),H(),V(6,`dt`),Y(7,`File`),H(),V(8,`dd`,38),Y(9),H(),V(10,`dt`),Y(11,`Standalone`),H(),V(12,`dd`),Y(13),H(),N(14,RE,4,1),V(15,`dt`),Y(16,`Inputs`),H(),V(17,`dd`,38),Y(18),H(),V(19,`dt`),Y(20,`Outputs`),H(),V(21,`dd`,38),Y(22),H()(),F(23,zE,2,1,`button`,35,BT),H()),e&2){let e=q(),t=e.$implicit,n=e.$index,r=q(3);bg(`id`,`ct-source-`+n),j(5),X(r.bareName(t.className)),j(4),D_(``,t.file,`:`,t.line),j(4),X(t.isStandalone?`Yes`:`No`),j(),P(t.kind===`component`?14:-1),j(4),X(t.inputs.join(`, `)||`None`),j(4),X(t.outputs.join(`, `)||`None`),j(),I(r.formsIn(t.file))}}function VE(e,t){if(e&1){let e=W();V(0,`li`,70)(1,`button`,71),K(`click`,function(){let t=O(e).$implicit,n=q(3);return k(n.openKey.set(n.openKey()===n.sourceKey(t)?null:n.sourceKey(t)))}),V(2,`span`,72),Y(3),H(),V(4,`span`,73)(5,`span`,74),Y(6),H(),V(7,`span`,75),N(8,LE,1,1),Y(9),H()(),ps(),V(10,`svg`,76),U(11,`path`,27),H()(),N(12,BE,25,8,`div`,77),H()}if(e&2){let e=t.$implicit,n=t.$index,r=q(3);J(`expanded`,r.openKey()===r.sourceKey(e)),j(),M(`aria-expanded`,r.openKey()===r.sourceKey(e))(`aria-controls`,r.openKey()===r.sourceKey(e)?`ct-source-`+n:null),j(),J(`directive`,e.kind===`directive`),j(),X(e.kind),j(3),X(r.sourceLabel(e)),j(2),P(e.selector?8:-1),j(),D_(` `,e.file,`:`,e.line,` `),j(3),P(r.openKey()===r.sourceKey(e)?12:-1)}}function HE(e,t){if(e&1&&(V(0,`ul`,68),F(1,VE,13,12,`li`,69,WT,!0),H()),e&2){let e=q(2);j(),I(e.filteredSource())}}function UE(e,t){if(e&1){let e=W();N(0,OE,2,0,`p`,59)(1,kE,2,0,`p`,8),V(2,`div`,1)(3,`div`,2),ps(),V(4,`svg`,3),U(5,`circle`,4)(6,`path`,5),H(),ms(),V(7,`input`,60),K(`input`,function(t){return O(e),k(q().filter.set(t.target.value))})(`keydown.escape`,function(){return O(e),k(q().filter.set(``))}),H()(),N(8,ME,3,1,`span`,7),V(9,`button`,61),K(`click`,function(){return O(e),k(q().refresh())}),ps(),V(10,`svg`,62),U(11,`path`,63)(12,`path`,64),H(),Y(13,` Refresh `),H()(),N(14,NE,4,0,`div`,65)(15,PE,7,0,`div`,66)(16,FE,5,0,`div`,67)(17,IE,5,1,`div`,67)(18,HE,3,0,`ul`,68)}if(e&2){let e=q();P(+!e.page()),j(7),bg(`value`,e.filter()),j(),P(e.source().length?8:-1),j(),J(`spinning`,e.loading()),M(`aria-busy`,e.loading()),j(5),P(e.loading()&&!e.source().length?14:e.error()&&!e.source().length?15:e.source().length?e.filteredSource().length?18:17:16)}}function WE(e){return e.replace(/^_(?=[A-Z])/,``)}var GE=class e{rpc=$(null);showForm=iv();filter=A(``);loading=A(!1);error=A(!1);source=A([]);formOwners=A([]);pages=A({});selectedId=A(null);focusId=A(null);collapsed=A(new Set);openKey=A(null);outlets=A([]);pageId=oT();destroyRef=E(ws);cleanups=[];page=Q(()=>{let e=this.pages();if(this.pageId)return e[this.pageId]??null;let t=null;for(let n of Object.values(e))(!t||n.reportedAt>t.reportedAt)&&(t=n);return t});live=Q(()=>(this.page()?.roots.length??0)>0);index=Q(()=>{let e=new Map,t=new Map,n=(r,i)=>{for(let a of r)e.set(a.id,a),i&&t.set(a.id,i),n(a.children,a.id)};return n(this.page()?.roots??[],null),{map:e,parents:t}});query=Q(()=>this.filter().trim().toLowerCase());visible=Q(()=>{let e=this.page()?.roots??[],t=this.query();if(!t)return e;let n=e=>e.name.toLowerCase().includes(t)||e.tag.toLowerCase().includes(t)||!!e.directives?.some(e=>e.toLowerCase().includes(t)),r=e=>e.flatMap(e=>{let t=r(e.children);return n(e)||t.length?[{...e,children:t}]:[]});return r(e)});rows=Q(()=>{let e=[],t=this.collapsed(),n=!!this.query(),r=(i,a)=>{for(let o of i){let i=n||!t.has(o.id);e.push({node:o,depth:a,hasChildren:o.children.length>0,expanded:i}),i&&r(o.children,a+1)}};return r(this.visible(),0),e});selectedNode=Q(()=>{let e=this.selectedId();return e?this.index().map.get(e)??null:null});detail=Q(()=>{let e=this.page()?.detail;return e&&e.id===this.selectedId()?e:null});rovingId=Q(()=>{let e=this.rows(),t=new Set(e.map(e=>e.node.id)),n=this.focusId();if(n&&t.has(n))return n;let r=this.selectedId();return r&&t.has(r)?r:e[0]?.node.id??null});routedById=Q(()=>{let e=new Map,t=n=>{for(let r of n){if(r.activated&&r.devtoolsId){let t=e.get(r.devtoolsId)??[];t.push({route:r.route??``,outlet:r.outlet}),e.set(r.devtoolsId,t)}r.children&&t(r.children)}};return t(this.outlets()),e});sourceByClass=Q(()=>{let e=new Map;for(let t of this.source()){let n=WE(t.className);e.set(n,[...e.get(n)??[],t])}return e});filteredSource=Q(()=>{let e=this.query(),t=this.source();return e?t.filter(t=>t.selector.toLowerCase().includes(e)||t.className.toLowerCase().includes(e)||t.file.toLowerCase().includes(e)):t});sourceCounts=Q(()=>{let e=this.source().filter(e=>e.kind===`component`).length;return{components:e,directives:this.source().length-e}});constructor(){dc(()=>{let e=this.rpc();e&&(this.refresh(),this.watch(e))}),this.destroyRef.onDestroy(()=>{this.highlight(null);for(let e of this.cleanups.splice(0))e()})}async watch(e){for(let e of this.cleanups.splice(0))e();let t=e.scope(`ng-devtools`);try{let e=await t.rpc.sharedState(`component-tree`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e?.pages;this.pages.set(t&&typeof t==`object`?t:{})};n(e.value()),this.cleanups.push(e.on(`updated`,n))}catch{this.pages.set({})}try{let e=await t.rpc.sharedState(`router`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e?.pages??[],n=this.pageId?t.find(e=>e.pageId===this.pageId):t.find(e=>e.snapshot)??t[0];this.outlets.set(n?.outlets??[])};n(e.value()),this.cleanups.push(e.on(`updated`,n))}catch{this.outlets.set([])}}async refresh(){let e=this.rpc();if(!e)return;this.loading.set(!0);let t=e.scope(`ng-devtools`);try{this.source.set(await t.rpc.call(`get-components`)),this.error.set(!1)}catch{this.error.set(!0)}finally{this.loading.set(!1)}let n=await t.rpc.call(`forms-owners`).catch(()=>[]);this.formOwners.set(n??[])}formsIn(e){return this.formOwners().filter(t=>t.file===e)}sourceFor(e){let t=(this.sourceByClass().get(WE(e.name))??[]).filter(e=>e.kind===`component`);return t.find(t=>t.selector===e.tag)??t[0]??null}sourceKey(e){return`${e.file}#${e.className}`}sourceLabel(e){return e.selector?e.kind===`component`&&/^[a-z][\w-]*$/i.test(e.selector)?`<${e.selector}>`:e.selector:WE(e.className)}bareName(e){return WE(e)}select(e){let t=this.selectedId()===e?null:e;this.selectedId.set(t),this.focusId.set(e);let n=this.rpc();n&&n.scope(`ng-devtools`).rpc.call(`select-component`,{pageId:this.page()?.pageId,id:t}).catch(()=>{})}toggle(e,t){t?.stopPropagation(),!this.query()&&this.collapsed.update(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})}highlight(e){let t=this.rpc();if(!t)return;let n=e?{pageId:this.page()?.pageId,id:e}:null;t.scope(`ng-devtools`).rpc.call(`request-page-highlight`,n).catch(()=>{})}onTreeKey(e){let t=this.rows();if(!t.length)return;let n=t.findIndex(e=>e.node.id===this.rovingId()),r=Math.max(n,0),i=t[r],a=-1;switch(e.key){case`ArrowDown`:a=Math.min(r+1,t.length-1);break;case`ArrowUp`:a=Math.max(r-1,0);break;case`Home`:a=0;break;case`End`:a=t.length-1;break;case`ArrowRight`:i.hasChildren&&!i.expanded?this.toggle(i.node.id):i.hasChildren&&(a=r+1);break;case`ArrowLeft`:if(i.hasChildren&&i.expanded&&!this.query())this.toggle(i.node.id);else{let e=this.index().parents.get(i.node.id);a=t.findIndex(t=>t.node.id===e)}break;case`Enter`:case` `:this.select(i.node.id);break;default:return}if(e.preventDefault(),a>=0){let e=t[a].node.id;this.focusId.set(e),queueMicrotask(()=>{let t=document.querySelector(`.row[data-id="${CSS.escape(e)}"]`);t?.focus(),t?.scrollIntoView({block:`nearest`})})}}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-component-tree`]],inputs:{rpc:[1,`rpc`]},outputs:{showForm:`showForm`},decls:2,vars:1,consts:[[1,`intro`],[1,`toolbar`],[1,`search`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,1,`search-icon`],[`cx`,`11`,`cy`,`11`,`r`,`7`],[`d`,`m20 20-3.5-3.5`],[`type`,`search`,`placeholder`,`Filter by class, tag or directive…`,`aria-label`,`Filter components by class, tag or directive`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`keydown.escape`,`value`],[`aria-live`,`polite`,1,`count`],[1,`notice`],[1,`layout`],[1,`sr-only`],[1,`state`,`compact`,`tree`],[`role`,`tree`,`aria-label`,`Component instances`,1,`tree`,3,`keydown`,`hidden`],[`role`,`treeitem`,1,`row`,3,`selected`,`--%NS%depth`],[`aria-labelledby`,`ct-detail-title`,1,`detail`],[1,`detail`,`placeholder`],[1,`state-title`],[`type`,`button`,3,`click`],[`role`,`treeitem`,1,`row`,3,`click`,`focus`,`blur`,`mouseenter`,`mouseleave`],[`aria-hidden`,`true`,1,`twisty`,3,`open`],[`aria-hidden`,`true`,1,`twisty-space`],[1,`name`,`mono`],[1,`tag`,`mono`],[1,`routed`],[1,`dirs`],[`aria-hidden`,`true`,1,`twisty`,3,`click`],[`viewBox`,`0 0 24 24`],[`d`,`m9 6 6 6-6 6`],[1,`detail-head`],[1,`badge`],[`id`,`ct-detail-title`,1,`mono`],[1,`mono`,`muted`],[`role`,`status`,1,`state`,`compact`],[1,`where`,`mono`],[1,`actions`],[`type`,`button`,1,`show-form`],[`type`,`button`,1,`show-form`,3,`click`],[1,`facts`],[1,`mono`],[1,`block`],[1,`pill`],[1,`props`],[1,`empty-line`],[1,`chips`],[1,`deps`],[1,`prop`],[1,`prop-name`,`mono`],[1,`muted`],[1,`chip`,3,`on`],[1,`chip`],[1,`chip-note`],[1,`chip`,`mono`],[1,`flag`],[1,`dep`],[1,`token`,`mono`],[1,`from`],[1,`from`,`missing`],[`aria-hidden`,`true`,1,`spinner`],[1,`state-hint`],[`role`,`status`,1,`notice`],[`type`,`search`,`placeholder`,`Filter by selector, class or file…`,`aria-label`,`Filter components by selector, class or file`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`keydown.escape`,`value`],[`type`,`button`,1,`refresh`,3,`click`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`],[`d`,`M20 12a8 8 0 1 1-2.34-5.66`],[`d`,`M20 4v5h-5`],[`role`,`status`,1,`state`],[`role`,`alert`,1,`state`],[1,`state`],[`role`,`list`,1,`source-list`],[1,`source-item`,3,`expanded`],[1,`source-item`],[`type`,`button`,1,`source-toggle`,3,`click`],[1,`kind-flag`],[1,`row-main`],[1,`selector`,`mono`],[1,`file`,`mono`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,1,`chevron`],[1,`inline-detail`,3,`id`]],template:function(e,t){e&1&&N(0,DE,21,7)(1,UE,19,7),e&2&&P(+!t.live())},dependencies:[Py],styles:[`[_nghost-%COMP%] { +}`]})},RT=()=>[],zT=(e,t)=>t.node.id,BT=(e,t)=>t.outlet+t.route,VT=(e,t)=>t.formId,HT=(e,t)=>t.name+e,UT=(e,t)=>t.name,WT=(e,t)=>t.token+e;function GT(e,t){return this.sourceKey(t)}function KT(e,t){e&1&&(V(0,`p`,8),Y(1,`The page has more components than the tree shows.`),H())}function qT(e,t){if(e&1){let e=W();V(0,`div`,11)(1,`p`,16),Y(2),H(),V(3,`button`,17),K(`click`,function(){return O(e),k(q(2).filter.set(``))}),Y(4,`Clear filter`),H()()}if(e&2){let e=q(2);j(2),Z(`No components match “`,e.filter().trim(),`”`)}}function JT(e,t){if(e&1){let e=W();V(0,`span`,25),K(`click`,function(t){O(e);let n=q().$implicit;return k(q(2).toggle(n.node.id,t))}),ps(),V(1,`svg`,26),U(2,`path`,27),H()()}if(e&2){let e=q().$implicit;J(`open`,e.expanded)}}function YT(e,t){e&1&&U(0,`span`,20)}function XT(e,t){if(e&1&&(V(0,`span`,23),Y(1),H()),e&2){let e=t.$implicit;j(),X(e.route||`/`)}}function ZT(e,t){if(e&1&&(V(0,`span`,24),Y(1),V(2,`span`,10),Y(3),H()()),e&2){let e=q().$implicit;M(`title`,e.node.directives.join(`, `)),j(),Z(` +`,e.node.directives.length,` `),j(2),Z(` `,e.node.directives.length===1?`directive`:`directives`,` `)}}function QT(e,t){if(e&1){let e=W();V(0,`div`,18),K(`click`,function(){let t=O(e).$implicit;return k(q(2).select(t.node.id))})(`focus`,function(){let t=O(e).$implicit,n=q(2);return n.focusId.set(t.node.id),k(n.highlight(t.node.id))})(`blur`,function(){return O(e),k(q(2).highlight(null))})(`mouseenter`,function(){let t=O(e).$implicit;return k(q(2).highlight(t.node.id))})(`mouseleave`,function(){return O(e),k(q(2).highlight(null))}),N(1,JT,3,2,`span`,19)(2,YT,1,0,`span`,20),V(3,`span`,21),Y(4),H(),V(5,`span`,22),Y(6),H(),F(7,XT,2,1,`span`,23,BT),N(9,ZT,4,3,`span`,24),H()}if(e&2){let e=t.$implicit,n=q(2);n_(`--%NS%depth`,e.depth),J(`selected`,n.selectedId()===e.node.id),M(`aria-level`,e.depth+1)(`aria-expanded`,e.hasChildren?e.expanded:null)(`aria-selected`,n.selectedId()===e.node.id)(`tabindex`,n.rovingId()===e.node.id?0:-1)(`data-id`,e.node.id),j(),P(e.hasChildren?1:2),j(3),X(e.node.name),j(2),Z(`<`,e.node.tag,`>`),j(),I(n.routedById().get(e.node.id)??z_(13,RT)),j(2),P(e.node.directives?.length?9:-1)}}function $T(e,t){if(e&1){let e=W();V(0,`button`,36),K(`click`,function(){let t=O(e).$implicit;return k(q(5).showForm.emit(t.formId))}),Y(1),H()}if(e&2){let e=t.$implicit;j(),Z(` Show `,e.label,` in Forms `)}}function eE(e,t){if(e&1&&(V(0,`div`,34),F(1,$T,2,1,`button`,35,VT),H()),e&2){let e=q(),t=q(3);j(),I(t.formsIn(e.file))}}function tE(e,t){if(e&1&&(V(0,`p`,33),Y(1),H(),N(2,eE,3,0,`div`,34)),e&2){let e=t,n=q(3);j(),O_(``,e.file,`:`,e.line),j(),P(n.formsIn(e.file).length?2:-1)}}function nE(e,t){if(e&1&&(V(0,`dt`),Y(1,`Routed`),H(),V(2,`dd`,38),Y(3),H()),e&2){let e=t.$implicit;j(3),O_(``,e.route||`/`,` in outlet `,e.outlet)}}function rE(e,t){if(e&1&&(V(0,`span`,47),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`(`,e.prop,`)`)}}function iE(e,t){if(e&1&&(V(0,`li`,45)(1,`span`,46),Y(2),N(3,rE,2,1,`span`,47),H(),V(4,`pre`),Y(5),U_(6,`json`),H()()),e&2){let e=t.$implicit;j(2),Z(` `,e.name,` `),j(),P(e.prop===e.name?-1:3),j(2),X(G_(6,3,e.value))}}function aE(e,t){if(e&1&&(V(0,`ul`,41),F(1,iE,7,5,`li`,45,UT),H()),e&2){let e=q();j(),I(e.inputs)}}function oE(e,t){e&1&&(V(0,`p`,42),Y(1,`No inputs.`),H())}function sE(e,t){if(e&1&&(V(0,`li`,49)(1,`span`,38),Y(2),H(),V(3,`span`,50),Y(4),H()()),e&2){let e=t.$implicit;J(`on`,e.listened),j(2),X(e.name),j(2),X(e.listened?`listened`:`no listener`)}}function cE(e,t){if(e&1&&(V(0,`ul`,43),F(1,sE,5,4,`li`,48,UT),H()),e&2){let e=q();j(),I(e.outputs)}}function lE(e,t){e&1&&(V(0,`p`,42),Y(1,`No outputs.`),H())}function uE(e,t){if(e&1&&(V(0,`li`,51),Y(1),H()),e&2){let e=t.$implicit;j(),X(e)}}function dE(e,t){if(e&1&&(V(0,`div`,39)(1,`h3`),Y(2,` DOM listeners `),V(3,`span`,40),Y(4),H()(),V(5,`ul`,43),F(6,uE,2,1,`li`,51,lg),H()()),e&2){let e=q();j(4),X(e.listeners.length),j(2),I(e.listeners)}}function fE(e,t){if(e&1&&(V(0,`li`,45)(1,`span`,46),Y(2),H(),V(3,`pre`),Y(4),U_(5,`json`),H()()),e&2){let e=t.$implicit;j(2),X(e.name),j(2),X(G_(5,2,e.value))}}function pE(e,t){if(e&1&&(V(0,`ul`,41),F(1,fE,6,4,`li`,45,UT),H()),e&2){let e=q().$implicit;j(),I(e.inputs)}}function mE(e,t){if(e&1&&(V(0,`li`,49)(1,`span`,38),Y(2),H(),V(3,`span`,50),Y(4),H()()),e&2){let e=t.$implicit;J(`on`,e.listened),j(2),X(e.name),j(2),X(e.listened?`listened`:`no listener`)}}function hE(e,t){if(e&1&&(V(0,`ul`,43),F(1,mE,5,4,`li`,48,UT),H()),e&2){let e=q().$implicit;j(),I(e.outputs)}}function gE(e,t){e&1&&(V(0,`p`,42),Y(1,`No inputs or outputs.`),H())}function _E(e,t){if(e&1&&(V(0,`div`,39)(1,`h3`)(2,`span`,38),Y(3),H(),V(4,`span`,52),Y(5,`directive on host`),H()(),N(6,pE,3,0,`ul`,41),N(7,hE,3,0,`ul`,43),N(8,gE,2,0,`p`,42),H()),e&2){let e=t.$implicit;j(3),X(e.name),j(3),P(e.inputs.length?6:-1),j(),P(e.outputs.length?7:-1),j(),P(!e.inputs.length&&!e.outputs.length?8:-1)}}function vE(e,t){if(e&1&&(V(0,`span`,52),Y(1),H()),e&2){let e=t.$implicit;j(),X(e)}}function yE(e,t){if(e&1&&(V(0,`span`,55),Y(1,`from `),V(2,`span`,38),Y(3),H()()),e&2){let e=q().$implicit;j(3),X(e.providedByName??`an injector`)}}function bE(e,t){e&1&&(V(0,`span`,56),Y(1,`not provided`),H())}function xE(e,t){if(e&1&&(V(0,`li`,53)(1,`span`,54),Y(2),H(),F(3,vE,2,1,`span`,52,lg),N(5,yE,4,1,`span`,55)(6,bE,2,0,`span`,56),H()),e&2){let e=t.$implicit;j(2),X(e.token),j(),I(e.flags),j(2),P(e.providedBy?5:6)}}function SE(e,t){if(e&1&&(V(0,`ul`,44),F(1,xE,7,2,`li`,53,WT),H()),e&2){let e=q();j(),I(e.dependencies)}}function CE(e,t){e&1&&(V(0,`p`,42),Y(1,`Nothing is injected through the constructor or inject().`),H())}function wE(e,t){if(e&1&&(V(0,`dl`,37)(1,`dt`),Y(2,`Change detection`),H(),V(3,`dd`),Y(4),H(),V(5,`dt`),Y(6,`Encapsulation`),H(),V(7,`dd`),Y(8),H(),V(9,`dt`),Y(10,`Host path`),H(),V(11,`dd`,38),Y(12),H(),F(13,nE,4,2,null,null,BT),H(),V(15,`div`,39)(16,`h3`),Y(17,` Inputs `),V(18,`span`,40),Y(19),H()(),N(20,aE,3,0,`ul`,41)(21,oE,2,0,`p`,42),H(),V(22,`div`,39)(23,`h3`),Y(24,` Outputs `),V(25,`span`,40),Y(26),H()(),N(27,cE,3,0,`ul`,43)(28,lE,2,0,`p`,42),H(),N(29,dE,8,1,`div`,39),F(30,_E,9,4,`div`,39,HT),V(32,`div`,39)(33,`h3`),Y(34,` Injected `),V(35,`span`,40),Y(36),H()(),N(37,SE,3,0,`ul`,44)(38,CE,2,0,`p`,42),H()),e&2){let e=t,n=q(),r=q(2);j(4),X(e.changeDetection??`Unknown`),j(4),X(e.encapsulation??`Unknown`),j(4),X(e.path),j(),I(r.routedById().get(n.id)??z_(10,RT)),j(6),X(e.inputs.length),j(),P(e.inputs.length?20:21),j(6),X(e.outputs.length),j(),P(e.outputs.length?27:28),j(2),P(e.listeners.length?29:-1),j(),I(e.directives),j(6),X(e.dependencies.length),j(),P(e.dependencies.length?37:38)}}function TE(e,t){e&1&&(V(0,`div`,32),U(1,`span`,57),V(2,`p`,58),Y(3,`Reading live values from the page…`),H()())}function EE(e,t){if(e&1&&(V(0,`section`,14)(1,`header`,28)(2,`span`,29),Y(3,`component`),H(),V(4,`h2`,30),Y(5),H(),V(6,`span`,31),Y(7),H(),N(8,tE,3,3),H(),N(9,wE,39,11)(10,TE,4,0,`div`,32),H()),e&2){let e,n,r=t,i=q(2);j(5),X(r.name),j(2),Z(`<`,r.tag,`>`),j(),P((e=i.sourceFor(r))?8:-1,e),j(),P((n=i.detail())?9:10,n)}}function DE(e,t){e&1&&(V(0,`div`,15)(1,`p`,58),Y(2,` Select a component to see its live inputs, outputs, change detection and injected services. `),H()())}function OE(e,t){if(e&1){let e=W();V(0,`p`,0),Y(1,` Every component instance on the page, in the order Angular rendered them. Hover a row to highlight its host in the page, and select it to read its live inputs, outputs and injected services. `),H(),V(2,`div`,1)(3,`div`,2),ps(),V(4,`svg`,3),U(5,`circle`,4)(6,`path`,5),H(),ms(),V(7,`input`,6),K(`input`,function(t){return O(e),k(q().filter.set(t.target.value))})(`keydown.escape`,function(){return O(e),k(q().filter.set(``))}),H()(),V(8,`span`,7),Y(9),H()(),N(10,KT,2,0,`p`,8),V(11,`div`,9)(12,`div`)(13,`h2`,10),Y(14,`Component tree`),H(),N(15,qT,5,1,`div`,11),V(16,`div`,12),K(`keydown`,function(t){return O(e),k(q().onTreeKey(t))}),F(17,QT,10,14,`div`,13,zT),H()(),N(19,EE,11,4,`section`,14)(20,DE,3,0,`div`,15),H()}if(e&2){let e,t=q();j(7),xg(`value`,t.filter()),j(2),O_(` `,t.page().count,` `,t.page().count===1?`instance`:`instances`,` `),j(),P(t.page().truncated?10:-1),j(5),P(t.rows().length?-1:15),j(),xg(`hidden`,!t.rows().length),j(),I(t.rows()),j(2),P((e=t.selectedNode())?19:20,e)}}function kE(e,t){e&1&&(V(0,`p`,59),Y(1,` The page reported no component instances. The live tree needs a development build with Angular's debug API. Showing what the source declares instead. `),H())}function AE(e,t){e&1&&(V(0,`p`,8),Y(1,` No page is connected, so this lists what the source declares. Open the app in a browser with the devtools connected to see each rendered instance. `),H())}function jE(e,t){if(e&1&&Y(0),e&2){let e=q(3);O_(` `,e.filteredSource().length,` of `,e.source().length,` `)}}function ME(e,t){if(e&1&&Y(0),e&2){let e=q(3);A_(` `,e.sourceCounts().components,` `,e.sourceCounts().components===1?`component`:`components`,` · `,e.sourceCounts().directives,` `,e.sourceCounts().directives===1?`directive`:`directives`,` `)}}function NE(e,t){if(e&1&&(V(0,`span`,7),N(1,jE,1,2)(2,ME,1,4),H()),e&2){let e=q(2);j(),P(e.filter().trim()?1:2)}}function PE(e,t){e&1&&(V(0,`div`,65),U(1,`span`,57),V(2,`p`,16),Y(3,`Scanning components…`),H()())}function FE(e,t){if(e&1){let e=W();V(0,`div`,66)(1,`p`,16),Y(2,`Could not load components`),H(),V(3,`p`,58),Y(4,`Check that the dev server is running, then try again.`),H(),V(5,`button`,17),K(`click`,function(){return O(e),k(q(2).refresh())}),Y(6,`Retry`),H()()}}function IE(e,t){e&1&&(V(0,`div`,67)(1,`p`,16),Y(2,`No components found`),H(),V(3,`p`,58),Y(4,`No @Component or @Directive was found in the source.`),H()())}function LE(e,t){if(e&1){let e=W();V(0,`div`,67)(1,`p`,16),Y(2),H(),V(3,`button`,17),K(`click`,function(){return O(e),k(q(2).filter.set(``))}),Y(4,`Clear filter`),H()()}if(e&2){let e=q(2);j(2),Z(`No components match “`,e.filter().trim(),`”`)}}function RE(e,t){if(e&1&&Y(0),e&2){let e=q().$implicit;Z(` `,q(3).bareName(e.className),` · `)}}function zE(e,t){if(e&1&&(V(0,`dt`),Y(1,`Change detection`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q(2).$implicit;j(3),X(e.changeDetection??`Unknown`)}}function BE(e,t){if(e&1){let e=W();V(0,`button`,36),K(`click`,function(){let t=O(e).$implicit;return k(q(5).showForm.emit(t.formId))}),Y(1),H()}if(e&2){let e=t.$implicit;j(),Z(` Show `,e.label,` in Forms `)}}function VE(e,t){if(e&1&&(V(0,`div`,77)(1,`dl`,37)(2,`dt`),Y(3,`Class`),H(),V(4,`dd`,38),Y(5),H(),V(6,`dt`),Y(7,`File`),H(),V(8,`dd`,38),Y(9),H(),V(10,`dt`),Y(11,`Standalone`),H(),V(12,`dd`),Y(13),H(),N(14,zE,4,1),V(15,`dt`),Y(16,`Inputs`),H(),V(17,`dd`,38),Y(18),H(),V(19,`dt`),Y(20,`Outputs`),H(),V(21,`dd`,38),Y(22),H()(),F(23,BE,2,1,`button`,35,VT),H()),e&2){let e=q(),t=e.$implicit,n=e.$index,r=q(3);xg(`id`,`ct-source-`+n),j(5),X(r.bareName(t.className)),j(4),O_(``,t.file,`:`,t.line),j(4),X(t.isStandalone?`Yes`:`No`),j(),P(t.kind===`component`?14:-1),j(4),X(t.inputs.join(`, `)||`None`),j(4),X(t.outputs.join(`, `)||`None`),j(),I(r.formsIn(t.file))}}function HE(e,t){if(e&1){let e=W();V(0,`li`,70)(1,`button`,71),K(`click`,function(){let t=O(e).$implicit,n=q(3);return k(n.openKey.set(n.openKey()===n.sourceKey(t)?null:n.sourceKey(t)))}),V(2,`span`,72),Y(3),H(),V(4,`span`,73)(5,`span`,74),Y(6),H(),V(7,`span`,75),N(8,RE,1,1),Y(9),H()(),ps(),V(10,`svg`,76),U(11,`path`,27),H()(),N(12,VE,25,8,`div`,77),H()}if(e&2){let e=t.$implicit,n=t.$index,r=q(3);J(`expanded`,r.openKey()===r.sourceKey(e)),j(),M(`aria-expanded`,r.openKey()===r.sourceKey(e))(`aria-controls`,r.openKey()===r.sourceKey(e)?`ct-source-`+n:null),j(),J(`directive`,e.kind===`directive`),j(),X(e.kind),j(3),X(r.sourceLabel(e)),j(2),P(e.selector?8:-1),j(),O_(` `,e.file,`:`,e.line,` `),j(3),P(r.openKey()===r.sourceKey(e)?12:-1)}}function UE(e,t){if(e&1&&(V(0,`ul`,68),F(1,HE,13,12,`li`,69,GT,!0),H()),e&2){let e=q(2);j(),I(e.filteredSource())}}function WE(e,t){if(e&1){let e=W();N(0,kE,2,0,`p`,59)(1,AE,2,0,`p`,8),V(2,`div`,1)(3,`div`,2),ps(),V(4,`svg`,3),U(5,`circle`,4)(6,`path`,5),H(),ms(),V(7,`input`,60),K(`input`,function(t){return O(e),k(q().filter.set(t.target.value))})(`keydown.escape`,function(){return O(e),k(q().filter.set(``))}),H()(),N(8,NE,3,1,`span`,7),V(9,`button`,61),K(`click`,function(){return O(e),k(q().refresh())}),ps(),V(10,`svg`,62),U(11,`path`,63)(12,`path`,64),H(),Y(13,` Refresh `),H()(),N(14,PE,4,0,`div`,65)(15,FE,7,0,`div`,66)(16,IE,5,0,`div`,67)(17,LE,5,1,`div`,67)(18,UE,3,0,`ul`,68)}if(e&2){let e=q();P(+!e.page()),j(7),xg(`value`,e.filter()),j(),P(e.source().length?8:-1),j(),J(`spinning`,e.loading()),M(`aria-busy`,e.loading()),j(5),P(e.loading()&&!e.source().length?14:e.error()&&!e.source().length?15:e.source().length?e.filteredSource().length?18:17:16)}}function GE(e){return e.replace(/^_(?=[A-Z])/,``)}var KE=class e{rpc=$(null);focus=$(null);showForm=av();focusHandled=av();filter=A(``);loading=A(!1);error=A(!1);source=A([]);formOwners=A([]);pages=A({});selectedId=A(null);focusId=A(null);collapsed=A(new Set);openKey=A(null);outlets=A([]);pageId=sT();destroyRef=E(ws);injector=E(Ss);cleanups=[];page=Q(()=>{let e=this.pages();if(this.pageId)return e[this.pageId]??null;let t=null;for(let n of Object.values(e))(!t||n.reportedAt>t.reportedAt)&&(t=n);return t});live=Q(()=>(this.page()?.roots.length??0)>0);index=Q(()=>{let e=new Map,t=new Map,n=(r,i)=>{for(let a of r)e.set(a.id,a),i&&t.set(a.id,i),n(a.children,a.id)};return n(this.page()?.roots??[],null),{map:e,parents:t}});query=Q(()=>this.filter().trim().toLowerCase());visible=Q(()=>{let e=this.page()?.roots??[],t=this.query();if(!t)return e;let n=e=>e.name.toLowerCase().includes(t)||e.tag.toLowerCase().includes(t)||!!e.directives?.some(e=>e.toLowerCase().includes(t)),r=e=>e.flatMap(e=>{let t=r(e.children);return n(e)||t.length?[{...e,children:t}]:[]});return r(e)});rows=Q(()=>{let e=[],t=this.collapsed(),n=!!this.query(),r=(i,a)=>{for(let o of i){let i=n||!t.has(o.id);e.push({node:o,depth:a,hasChildren:o.children.length>0,expanded:i}),i&&r(o.children,a+1)}};return r(this.visible(),0),e});selectedNode=Q(()=>{let e=this.selectedId();return e?this.index().map.get(e)??null:null});detail=Q(()=>{let e=this.page()?.detail;return e&&e.id===this.selectedId()?e:null});rovingId=Q(()=>{let e=this.rows(),t=new Set(e.map(e=>e.node.id)),n=this.focusId();if(n&&t.has(n))return n;let r=this.selectedId();return r&&t.has(r)?r:e[0]?.node.id??null});routedById=Q(()=>{let e=new Map,t=n=>{for(let r of n){if(r.activated&&r.devtoolsId){let t=e.get(r.devtoolsId)??[];t.push({route:r.route??``,outlet:r.outlet}),e.set(r.devtoolsId,t)}r.children&&t(r.children)}};return t(this.outlets()),e});sourceByClass=Q(()=>{let e=new Map;for(let t of this.source()){let n=GE(t.className);e.set(n,[...e.get(n)??[],t])}return e});filteredSource=Q(()=>{let e=this.query(),t=this.source();return e?t.filter(t=>t.selector.toLowerCase().includes(e)||t.className.toLowerCase().includes(e)||t.file.toLowerCase().includes(e)):t});sourceCounts=Q(()=>{let e=this.source().filter(e=>e.kind===`component`).length;return{components:e,directives:this.source().length-e}});constructor(){dc(()=>{let e=this.rpc();e&&(this.refresh(),this.watch(e))}),dc(()=>{let e=this.focus();e&&this.live()&&ev(()=>{this.index().map.has(e.id)&&this.reveal(e.id),this.focusHandled.emit()})}),this.destroyRef.onDestroy(()=>{this.highlight(null);for(let e of this.cleanups.splice(0))e()})}async watch(e){for(let e of this.cleanups.splice(0))e();let t=e.scope(`ng-devtools`);try{let e=await t.rpc.sharedState(`component-tree`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e?.pages;this.pages.set(t&&typeof t==`object`?t:{})};n(e.value()),this.cleanups.push(e.on(`updated`,n))}catch{this.pages.set({})}try{let e=await t.rpc.sharedState(`router`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e?.pages??[],n=this.pageId?t.find(e=>e.pageId===this.pageId):t.find(e=>e.snapshot)??t[0];this.outlets.set(n?.outlets??[])};n(e.value()),this.cleanups.push(e.on(`updated`,n))}catch{this.outlets.set([])}}async refresh(){let e=this.rpc();if(!e)return;this.loading.set(!0);let t=e.scope(`ng-devtools`);try{this.source.set(await t.rpc.call(`get-components`)),this.error.set(!1)}catch{this.error.set(!0)}finally{this.loading.set(!1)}let n=await t.rpc.call(`forms-owners`).catch(()=>[]);this.formOwners.set(n??[])}formsIn(e){return this.formOwners().filter(t=>t.file===e)}sourceFor(e){let t=(this.sourceByClass().get(GE(e.name))??[]).filter(e=>e.kind===`component`);return t.find(t=>t.selector===e.tag)??t[0]??null}sourceKey(e){return`${e.file}#${e.className}`}sourceLabel(e){return e.selector?e.kind===`component`&&/^[a-z][\w-]*$/i.test(e.selector)?`<${e.selector}>`:e.selector:GE(e.className)}bareName(e){return GE(e)}select(e){let t=this.selectedId()===e?null:e;this.selectedId.set(t),this.focusId.set(e);let n=this.rpc();n&&n.scope(`ng-devtools`).rpc.call(`select-component`,{pageId:this.page()?.pageId,id:t}).catch(()=>{})}reveal(e){let{parents:t}=this.index();this.collapsed.update(n=>{let r=new Set(n);for(let n=t.get(e);n;n=t.get(n))r.delete(n);return r}),this.rows().some(t=>t.node.id===e)||this.filter.set(``),this.selectedId()!==e&&this.select(e),wd(()=>document.querySelector(`.row[data-id="${CSS.escape(e)}"]`)?.scrollIntoView({block:`nearest`}),{injector:this.injector})}toggle(e,t){t?.stopPropagation(),!this.query()&&this.collapsed.update(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})}highlight(e){let t=this.rpc();if(!t)return;let n=e?{pageId:this.page()?.pageId,id:e}:null;t.scope(`ng-devtools`).rpc.call(`request-page-highlight`,n).catch(()=>{})}onTreeKey(e){let t=this.rows();if(!t.length)return;let n=t.findIndex(e=>e.node.id===this.rovingId()),r=Math.max(n,0),i=t[r],a=-1;switch(e.key){case`ArrowDown`:a=Math.min(r+1,t.length-1);break;case`ArrowUp`:a=Math.max(r-1,0);break;case`Home`:a=0;break;case`End`:a=t.length-1;break;case`ArrowRight`:i.hasChildren&&!i.expanded?this.toggle(i.node.id):i.hasChildren&&(a=r+1);break;case`ArrowLeft`:if(i.hasChildren&&i.expanded&&!this.query())this.toggle(i.node.id);else{let e=this.index().parents.get(i.node.id);a=t.findIndex(t=>t.node.id===e)}break;case`Enter`:case` `:this.select(i.node.id);break;default:return}if(e.preventDefault(),a>=0){let e=t[a].node.id;this.focusId.set(e),queueMicrotask(()=>{let t=document.querySelector(`.row[data-id="${CSS.escape(e)}"]`);t?.focus(),t?.scrollIntoView({block:`nearest`})})}}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-component-tree`]],inputs:{rpc:[1,`rpc`],focus:[1,`focus`]},outputs:{showForm:`showForm`,focusHandled:`focusHandled`},decls:2,vars:1,consts:[[1,`intro`],[1,`toolbar`],[1,`search`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,1,`search-icon`],[`cx`,`11`,`cy`,`11`,`r`,`7`],[`d`,`m20 20-3.5-3.5`],[`type`,`search`,`placeholder`,`Filter by class, tag or directive…`,`aria-label`,`Filter components by class, tag or directive`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`keydown.escape`,`value`],[`aria-live`,`polite`,1,`count`],[1,`notice`],[1,`layout`],[1,`sr-only`],[1,`state`,`compact`,`tree`],[`role`,`tree`,`aria-label`,`Component instances`,1,`tree`,3,`keydown`,`hidden`],[`role`,`treeitem`,1,`row`,3,`selected`,`--%NS%depth`],[`aria-labelledby`,`ct-detail-title`,1,`detail`],[1,`detail`,`placeholder`],[1,`state-title`],[`type`,`button`,3,`click`],[`role`,`treeitem`,1,`row`,3,`click`,`focus`,`blur`,`mouseenter`,`mouseleave`],[`aria-hidden`,`true`,1,`twisty`,3,`open`],[`aria-hidden`,`true`,1,`twisty-space`],[1,`name`,`mono`],[1,`tag`,`mono`],[1,`routed`],[1,`dirs`],[`aria-hidden`,`true`,1,`twisty`,3,`click`],[`viewBox`,`0 0 24 24`],[`d`,`m9 6 6 6-6 6`],[1,`detail-head`],[1,`badge`],[`id`,`ct-detail-title`,1,`mono`],[1,`mono`,`muted`],[`role`,`status`,1,`state`,`compact`],[1,`where`,`mono`],[1,`actions`],[`type`,`button`,1,`show-form`],[`type`,`button`,1,`show-form`,3,`click`],[1,`facts`],[1,`mono`],[1,`block`],[1,`pill`],[1,`props`],[1,`empty-line`],[1,`chips`],[1,`deps`],[1,`prop`],[1,`prop-name`,`mono`],[1,`muted`],[1,`chip`,3,`on`],[1,`chip`],[1,`chip-note`],[1,`chip`,`mono`],[1,`flag`],[1,`dep`],[1,`token`,`mono`],[1,`from`],[1,`from`,`missing`],[`aria-hidden`,`true`,1,`spinner`],[1,`state-hint`],[`role`,`status`,1,`notice`],[`type`,`search`,`placeholder`,`Filter by selector, class or file…`,`aria-label`,`Filter components by selector, class or file`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`keydown.escape`,`value`],[`type`,`button`,1,`refresh`,3,`click`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`],[`d`,`M20 12a8 8 0 1 1-2.34-5.66`],[`d`,`M20 4v5h-5`],[`role`,`status`,1,`state`],[`role`,`alert`,1,`state`],[1,`state`],[`role`,`list`,1,`source-list`],[1,`source-item`,3,`expanded`],[1,`source-item`],[`type`,`button`,1,`source-toggle`,3,`click`],[1,`kind-flag`],[1,`row-main`],[1,`selector`,`mono`],[1,`file`,`mono`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,1,`chevron`],[1,`inline-detail`,3,`id`]],template:function(e,t){e&1&&N(0,OE,21,7)(1,WE,19,7),e&2&&P(+!t.live())},dependencies:[Fy],styles:[`[_nghost-%COMP%] { display: block; color: var(--%NS%text); font-size: 13px; @@ -953,7 +953,7 @@ pre[_ngcontent-%COMP%] { .inline-detail[_ngcontent-%COMP%] .show-form[_ngcontent-%COMP%] { margin: 0 16px; -}`]})};function KE(e,t,n){return e?e.scope(`ng-devtools`).rpc.call(t,...n===void 0?[]:[n]):Promise.resolve(null)}function qE(e,t,n){return KE(e,t,n).then(e=>e,()=>null)}function JE(e){return e.line?`${e.file}:${e.line}`:e.file}function YE(e,t){let n=t.filter(t=>t.fullPath===e.fullPath&&t.redirectTo!==void 0==(e.redirectTo!==void 0));return n.find(t=>!!e.component&&t.component===e.component)??n.find(t=>!t.component||!e.component)}var XE=qE;function ZE(e,t,n){return XE(e,`request-router-action`,{pageId:t,request:n})}function QE(e){return e===`succeeded`?`good`:e===`redirected`||e===`pending`||e===`skipped`?`warn`:e===`cancelled`||e===`failed`?`bad`:``}var $E=()=>[],eD=(e,t)=>t[0],tD=(e,t)=>t.input;function nD(e,t){if(e&1&&(V(0,`p`,3),Y(1,` The browser shows `),V(2,`code`),Y(3),H(),Y(4,`, not the router URL (skipLocationChange, browserUrl, a failed navigation or code that changed history). `),H()),e&2){let e=q();j(3),X(e.browserUrl)}}function rD(e,t){if(e&1){let e=W();V(0,`div`,4),U(1,`span`,9),V(2,`span`,10),Y(3,`Navigating to `),V(4,`code`),Y(5),H(),Y(6),H(),V(7,`button`,11),K(`click`,function(){return O(e),k(q(2).abort())}),Y(8,`Abort`),H()()}if(e&2){let e=t;j(5),X(e.url),j(),Z(` (#`,e.id,`)`)}}function iD(e,t){if(e&1&&(V(0,`p`,5),Y(1),H()),e&2){let e=q(2);j(),X(e.message())}}function aD(e,t){if(e&1&&(V(0,`dt`),Y(1,`Document title`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q();j(3),X(e.title)}}function oD(e,t){if(e&1&&(V(0,`dt`),Y(1,`Query params`),H(),V(2,`dd`)(3,`code`),Y(4),H_(5,`json`),H()()),e&2){let e=q();j(4),X(W_(5,1,e.queryParams))}}function sD(e,t){if(e&1&&(V(0,`dt`),Y(1,`Fragment`),H(),V(2,`dd`)(3,`code`),Y(4),H()()),e&2){let e=q();j(4),X(e.fragment)}}function cD(e,t){if(e&1&&(V(0,`span`,13),Y(1),H()),e&2){let e=q().$implicit;j(),X(e.route.outlet)}}function lD(e,t){e&1&&(V(0,`span`,13),Y(1,`lazy`),H())}function uD(e,t){if(e&1&&(V(0,`div`,14),Y(1),H()),e&2){let e=q().$implicit;j(),D_(` title `,e.route.title,``,e.route.ownTitle===!1?` (inherited)`:``,` `)}}function dD(e,t){if(e&1&&(V(0,`code`,15),Y(1),H()),e&2){let e=q().$implicit;j(),X(e.route.component)}}function fD(e,t){e&1&&(V(0,`span`,18),Y(1,`–`),H(),V(2,`span`,19),Y(3,`none`),H())}function pD(e,t){e&1&&(V(0,`span`,13),Y(1,`inherited`),H())}function mD(e,t){if(e&1&&(V(0,`div`,16)(1,`code`),Y(2),H_(3,`json`),H(),N(4,pD,2,0,`span`,13),H()),e&2){let e=t.$implicit,n=q().$implicit;j(2),D_(``,e[0],`: `,W_(3,3,e[1])),j(2),P(n.route.paramSources?.[e[0]]===`inherited`?4:-1)}}function hD(e,t){e&1&&(V(0,`span`,18),Y(1,`–`),H(),V(2,`span`,19),Y(3,`none`),H())}function gD(e,t){e&1&&(V(0,`span`,13),Y(1),H()),e&2&&(j(),X(t))}function _D(e,t){if(e&1&&(V(0,`div`,17)(1,`code`),Y(2),H_(3,`json`),H(),N(4,gD,2,1,`span`,13),H()),e&2){let e,n=t.$implicit,r=q().$implicit;j(2),D_(``,n[0],`: `,W_(3,3,n[1])),j(2),P((e=r.route.dataSources?.[n[0]])?4:-1,e)}}function vD(e,t){e&1&&(V(0,`span`,18),Y(1,`–`),H(),V(2,`span`,19),Y(3,`none`),H())}function yD(e,t){if(e&1&&(V(0,`span`,13),Y(1),H()),e&2){let e=t.$implicit;j(),X(e)}}function bD(e,t){if(e&1&&(V(0,`span`,13),Y(1),H()),e&2){let e=t.$implicit;j(),Z(`resolve `,e)}}function xD(e,t){e&1&&(V(0,`span`,18),Y(1,`–`),H(),V(2,`span`,19),Y(3,`none`),H())}function SD(e,t){if(e&1&&(V(0,`tr`)(1,`td`,12),Y(2),N(3,cD,2,1,`span`,13),N(4,lD,2,0,`span`,13),N(5,uD,2,2,`div`,14),H(),V(6,`td`),N(7,dD,2,1,`code`,15)(8,fD,4,0),H(),V(9,`td`),F(10,mD,5,5,`div`,16,eD,!1,hD,4,0),H(),V(13,`td`),F(14,_D,5,5,`div`,17,eD,!1,vD,4,0),H(),V(17,`td`),F(18,yD,2,1,`span`,13,cg),F(20,bD,2,1,`span`,13,cg),N(22,xD,4,0),H()()),e&2){let e=t.$implicit,n=q(2);j(),t_(`padding-left`,14+e.depth*16,`px`),j(),Z(` `,e.depth===0&&!e.route.path?`(root)`:`/`+e.route.path,` `),j(),P(e.route.outlet===`primary`?-1:3),j(),P(e.route.lazy?4:-1),j(),P(e.route.title?5:-1),j(2),P(e.route.component?7:8),j(3),I(n.entries(e.route.params)),j(4),I(n.entries(e.route.data)),j(4),I(n.guardList(e.route)),j(2),I(e.route.resolvers??R_(10,$E)),j(2),P(!n.guardList(e.route).length&&!e.route.resolvers?.length?22:-1)}}function CD(e,t){if(e&1&&(V(0,`code`),Y(1),H(),Y(2,` for `),V(3,`code`),Y(4),H()),e&2){let e=q().$implicit;j(),X(e.outlet.component??`?`),j(3),X(e.outlet.route??`?`)}}function wD(e,t){e&1&&(V(0,`span`,22),Y(1,`not activated`),H())}function TD(e,t){e&1&&(V(0,`span`,13),Y(1,`detached by reuse strategy`),H())}function ED(e,t){if(e&1&&(V(0,`span`,13),Y(1),H()),e&2){let e=t.$implicit;j(),D_(`input `,e.input,` ← `,e.source)}}function DD(e,t){if(e&1&&(V(0,`li`)(1,`span`,13),Y(2),H(),N(3,CD,5,2)(4,wD,2,0,`span`,22),N(5,TD,2,0,`span`,13),F(6,ED,2,2,`span`,13,tD),H()),e&2){let e=t.$implicit,n=q(3);t_(`padding-left`,10+e.depth*16,`px`),j(2),X(e.outlet.outlet),j(),P(e.outlet.activated?3:4),j(2),P(e.outlet.detached?5:-1),j(),I(n.boundInputs(e.outlet))}}function OD(e,t){if(e&1&&(V(0,`h3`),Y(1,`Outlets`),H(),V(2,`ul`,20),F(3,DD,8,5,`li`,21,sg),H()),e&2){let e=q(2);j(3),I(e.outletRows())}}function kD(e,t){if(e&1&&(V(0,`p`,1)(1,`span`,2),Y(2,`URL`),H(),V(3,`code`),Y(4),H()(),N(5,nD,5,1,`p`,3),N(6,rD,9,2,`div`,4),N(7,iD,2,1,`p`,5),V(8,`dl`,6),N(9,aD,4,1),N(10,oD,6,3),N(11,sD,5,1),H(),V(12,`h3`),Y(13,`Active routes`),H(),V(14,`div`,7)(15,`table`)(16,`thead`)(17,`tr`)(18,`th`,8),Y(19,`Route`),H(),V(20,`th`,8),Y(21,`Component`),H(),V(22,`th`,8),Y(23,`Params`),H(),V(24,`th`,8),Y(25,`Data`),H(),V(26,`th`,8),Y(27,`Guards and resolvers`),H()()(),V(28,`tbody`),F(29,SD,23,11,`tr`,null,sg),H()()(),N(31,OD,5,0)),e&2){let e,n=t,r=q();j(4),X(n.url),j(),P(n.urlDrift&&n.browserUrl?5:-1),j(),P((e=n.pending)?6:-1,e),j(),P(r.message()?7:-1),j(2),P(n.title?9:-1),j(),P(r.hasKeys(n.queryParams)?10:-1),j(),P(n.fragment?11:-1),j(18),I(r.rows()),j(2),P(r.outletRows().length?31:-1)}}function AD(e,t){e&1&&(V(0,`div`,0)(1,`p`,23),Y(2,`This page reports no Router.`),H(),V(3,`p`,22),Y(4,` Add `),V(5,`code`),Y(6,`provideRouter()`),H(),Y(7,` to the app config and navigate once to see the active routes here. `),H()())}var jD=class e{page=$.required();rpc=$(null);message=A(``);rows=Q(()=>{let e=[],t=(n,r)=>{e.push({route:n,depth:r});for(let e of n.children)t(e,r+1)},n=this.page().snapshot?.root;return n&&t(n,0),e});outletRows=Q(()=>{let e=[],t=(n,r)=>{for(let i of n)e.push({outlet:i,depth:r}),i.children&&t(i.children,r+1)};return t(this.page().outlets??[],0),e});hasKeys(e){return Object.keys(e).length>0}entries(e){return Object.entries(e)}guardList(e){return Object.entries(e.guards??{}).flatMap(([e,t])=>t.map(t=>`${e} ${t}`))}boundInputs(e){return(e.inputs??[]).filter(e=>e.source!==`unset`)}async abort(){let e=await ZE(this.rpc(),this.page().pageId,{action:`abort`});this.message.set(e?.error?String(e.error):`Aborted navigation #${e?.aborted}`)}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-route-current`]],inputs:{page:[1,`page`],rpc:[1,`rpc`]},decls:2,vars:1,consts:[[1,`empty`],[1,`url`],[1,`url-label`],[`role`,`note`,1,`note`],[`role`,`status`,1,`pending`],[`role`,`status`,1,`muted`],[1,`facts`],[`role`,`region`,`aria-label`,`Active routes`,`tabindex`,`0`,1,`table-scroll`],[`scope`,`col`],[`aria-hidden`,`true`,1,`pulse`],[1,`pending-text`],[`type`,`button`,1,`small`,3,`click`],[1,`path`],[1,`tag`],[1,`sub`],[1,`component`],[1,`entry`],[1,`entry`,`data`],[`aria-hidden`,`true`,1,`nil`],[1,`visually-hidden`],[1,`outlets`],[3,`padding-left`],[1,`muted`],[1,`empty-title`]],template:function(e,t){if(e&1&&N(0,kD,32,8)(1,AD,8,0,`div`,0),e&2){let e;P((e=t.page().snapshot)?0:1,e)}},dependencies:[Py],styles:[`.muted[_ngcontent-%COMP%] { +}`]})};function qE(e,t,n){return e?e.scope(`ng-devtools`).rpc.call(t,...n===void 0?[]:[n]):Promise.resolve(null)}function JE(e,t,n){return qE(e,t,n).then(e=>e,()=>null)}function YE(e){return e.line?`${e.file}:${e.line}`:e.file}function XE(e,t){let n=t.filter(t=>t.fullPath===e.fullPath&&t.redirectTo!==void 0==(e.redirectTo!==void 0));return n.find(t=>!!e.component&&t.component===e.component)??n.find(t=>!t.component||!e.component)}var ZE=JE;function QE(e,t,n){return ZE(e,`request-router-action`,{pageId:t,request:n})}function $E(e){return e===`succeeded`?`good`:e===`redirected`||e===`pending`||e===`skipped`?`warn`:e===`cancelled`||e===`failed`?`bad`:``}var eD=()=>[],tD=(e,t)=>t[0],nD=(e,t)=>t.input;function rD(e,t){if(e&1&&(V(0,`p`,3),Y(1,` The browser shows `),V(2,`code`),Y(3),H(),Y(4,`, not the router URL (skipLocationChange, browserUrl, a failed navigation or code that changed history). `),H()),e&2){let e=q();j(3),X(e.browserUrl)}}function iD(e,t){if(e&1){let e=W();V(0,`div`,4),U(1,`span`,9),V(2,`span`,10),Y(3,`Navigating to `),V(4,`code`),Y(5),H(),Y(6),H(),V(7,`button`,11),K(`click`,function(){return O(e),k(q(2).abort())}),Y(8,`Abort`),H()()}if(e&2){let e=t;j(5),X(e.url),j(),Z(` (#`,e.id,`)`)}}function aD(e,t){if(e&1&&(V(0,`p`,5),Y(1),H()),e&2){let e=q(2);j(),X(e.message())}}function oD(e,t){if(e&1&&(V(0,`dt`),Y(1,`Document title`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q();j(3),X(e.title)}}function sD(e,t){if(e&1&&(V(0,`dt`),Y(1,`Query params`),H(),V(2,`dd`)(3,`code`),Y(4),U_(5,`json`),H()()),e&2){let e=q();j(4),X(G_(5,1,e.queryParams))}}function cD(e,t){if(e&1&&(V(0,`dt`),Y(1,`Fragment`),H(),V(2,`dd`)(3,`code`),Y(4),H()()),e&2){let e=q();j(4),X(e.fragment)}}function lD(e,t){if(e&1&&(V(0,`span`,13),Y(1),H()),e&2){let e=q().$implicit;j(),X(e.route.outlet)}}function uD(e,t){e&1&&(V(0,`span`,13),Y(1,`lazy`),H())}function dD(e,t){if(e&1&&(V(0,`div`,14),Y(1),H()),e&2){let e=q().$implicit;j(),O_(` title `,e.route.title,``,e.route.ownTitle===!1?` (inherited)`:``,` `)}}function fD(e,t){if(e&1&&(V(0,`code`,15),Y(1),H()),e&2){let e=q().$implicit;j(),X(e.route.component)}}function pD(e,t){e&1&&(V(0,`span`,18),Y(1,`–`),H(),V(2,`span`,19),Y(3,`none`),H())}function mD(e,t){e&1&&(V(0,`span`,13),Y(1,`inherited`),H())}function hD(e,t){if(e&1&&(V(0,`div`,16)(1,`code`),Y(2),U_(3,`json`),H(),N(4,mD,2,0,`span`,13),H()),e&2){let e=t.$implicit,n=q().$implicit;j(2),O_(``,e[0],`: `,G_(3,3,e[1])),j(2),P(n.route.paramSources?.[e[0]]===`inherited`?4:-1)}}function gD(e,t){e&1&&(V(0,`span`,18),Y(1,`–`),H(),V(2,`span`,19),Y(3,`none`),H())}function _D(e,t){e&1&&(V(0,`span`,13),Y(1),H()),e&2&&(j(),X(t))}function vD(e,t){if(e&1&&(V(0,`div`,17)(1,`code`),Y(2),U_(3,`json`),H(),N(4,_D,2,1,`span`,13),H()),e&2){let e,n=t.$implicit,r=q().$implicit;j(2),O_(``,n[0],`: `,G_(3,3,n[1])),j(2),P((e=r.route.dataSources?.[n[0]])?4:-1,e)}}function yD(e,t){e&1&&(V(0,`span`,18),Y(1,`–`),H(),V(2,`span`,19),Y(3,`none`),H())}function bD(e,t){if(e&1&&(V(0,`span`,13),Y(1),H()),e&2){let e=t.$implicit;j(),X(e)}}function xD(e,t){if(e&1&&(V(0,`span`,13),Y(1),H()),e&2){let e=t.$implicit;j(),Z(`resolve `,e)}}function SD(e,t){e&1&&(V(0,`span`,18),Y(1,`–`),H(),V(2,`span`,19),Y(3,`none`),H())}function CD(e,t){if(e&1&&(V(0,`tr`)(1,`td`,12),Y(2),N(3,lD,2,1,`span`,13),N(4,uD,2,0,`span`,13),N(5,dD,2,2,`div`,14),H(),V(6,`td`),N(7,fD,2,1,`code`,15)(8,pD,4,0),H(),V(9,`td`),F(10,hD,5,5,`div`,16,tD,!1,gD,4,0),H(),V(13,`td`),F(14,vD,5,5,`div`,17,tD,!1,yD,4,0),H(),V(17,`td`),F(18,bD,2,1,`span`,13,lg),F(20,xD,2,1,`span`,13,lg),N(22,SD,4,0),H()()),e&2){let e=t.$implicit,n=q(2);j(),n_(`padding-left`,14+e.depth*16,`px`),j(),Z(` `,e.depth===0&&!e.route.path?`(root)`:`/`+e.route.path,` `),j(),P(e.route.outlet===`primary`?-1:3),j(),P(e.route.lazy?4:-1),j(),P(e.route.title?5:-1),j(2),P(e.route.component?7:8),j(3),I(n.entries(e.route.params)),j(4),I(n.entries(e.route.data)),j(4),I(n.guardList(e.route)),j(2),I(e.route.resolvers??z_(10,eD)),j(2),P(!n.guardList(e.route).length&&!e.route.resolvers?.length?22:-1)}}function wD(e,t){if(e&1&&(V(0,`code`),Y(1),H(),Y(2,` for `),V(3,`code`),Y(4),H()),e&2){let e=q().$implicit;j(),X(e.outlet.component??`?`),j(3),X(e.outlet.route??`?`)}}function TD(e,t){e&1&&(V(0,`span`,22),Y(1,`not activated`),H())}function ED(e,t){e&1&&(V(0,`span`,13),Y(1,`detached by reuse strategy`),H())}function DD(e,t){if(e&1&&(V(0,`span`,13),Y(1),H()),e&2){let e=t.$implicit;j(),O_(`input `,e.input,` ← `,e.source)}}function OD(e,t){if(e&1&&(V(0,`li`)(1,`span`,13),Y(2),H(),N(3,wD,5,2)(4,TD,2,0,`span`,22),N(5,ED,2,0,`span`,13),F(6,DD,2,2,`span`,13,nD),H()),e&2){let e=t.$implicit,n=q(3);n_(`padding-left`,10+e.depth*16,`px`),j(2),X(e.outlet.outlet),j(),P(e.outlet.activated?3:4),j(2),P(e.outlet.detached?5:-1),j(),I(n.boundInputs(e.outlet))}}function kD(e,t){if(e&1&&(V(0,`h3`),Y(1,`Outlets`),H(),V(2,`ul`,20),F(3,OD,8,5,`li`,21,cg),H()),e&2){let e=q(2);j(3),I(e.outletRows())}}function AD(e,t){if(e&1&&(V(0,`p`,1)(1,`span`,2),Y(2,`URL`),H(),V(3,`code`),Y(4),H()(),N(5,rD,5,1,`p`,3),N(6,iD,9,2,`div`,4),N(7,aD,2,1,`p`,5),V(8,`dl`,6),N(9,oD,4,1),N(10,sD,6,3),N(11,cD,5,1),H(),V(12,`h3`),Y(13,`Active routes`),H(),V(14,`div`,7)(15,`table`)(16,`thead`)(17,`tr`)(18,`th`,8),Y(19,`Route`),H(),V(20,`th`,8),Y(21,`Component`),H(),V(22,`th`,8),Y(23,`Params`),H(),V(24,`th`,8),Y(25,`Data`),H(),V(26,`th`,8),Y(27,`Guards and resolvers`),H()()(),V(28,`tbody`),F(29,CD,23,11,`tr`,null,cg),H()()(),N(31,kD,5,0)),e&2){let e,n=t,r=q();j(4),X(n.url),j(),P(n.urlDrift&&n.browserUrl?5:-1),j(),P((e=n.pending)?6:-1,e),j(),P(r.message()?7:-1),j(2),P(n.title?9:-1),j(),P(r.hasKeys(n.queryParams)?10:-1),j(),P(n.fragment?11:-1),j(18),I(r.rows()),j(2),P(r.outletRows().length?31:-1)}}function jD(e,t){e&1&&(V(0,`div`,0)(1,`p`,23),Y(2,`This page reports no Router.`),H(),V(3,`p`,22),Y(4,` Add `),V(5,`code`),Y(6,`provideRouter()`),H(),Y(7,` to the app config and navigate once to see the active routes here. `),H()())}var MD=class e{page=$.required();rpc=$(null);message=A(``);rows=Q(()=>{let e=[],t=(n,r)=>{e.push({route:n,depth:r});for(let e of n.children)t(e,r+1)},n=this.page().snapshot?.root;return n&&t(n,0),e});outletRows=Q(()=>{let e=[],t=(n,r)=>{for(let i of n)e.push({outlet:i,depth:r}),i.children&&t(i.children,r+1)};return t(this.page().outlets??[],0),e});hasKeys(e){return Object.keys(e).length>0}entries(e){return Object.entries(e)}guardList(e){return Object.entries(e.guards??{}).flatMap(([e,t])=>t.map(t=>`${e} ${t}`))}boundInputs(e){return(e.inputs??[]).filter(e=>e.source!==`unset`)}async abort(){let e=await QE(this.rpc(),this.page().pageId,{action:`abort`});this.message.set(e?.error?String(e.error):`Aborted navigation #${e?.aborted}`)}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-route-current`]],inputs:{page:[1,`page`],rpc:[1,`rpc`]},decls:2,vars:1,consts:[[1,`empty`],[1,`url`],[1,`url-label`],[`role`,`note`,1,`note`],[`role`,`status`,1,`pending`],[`role`,`status`,1,`muted`],[1,`facts`],[`role`,`region`,`aria-label`,`Active routes`,`tabindex`,`0`,1,`table-scroll`],[`scope`,`col`],[`aria-hidden`,`true`,1,`pulse`],[1,`pending-text`],[`type`,`button`,1,`small`,3,`click`],[1,`path`],[1,`tag`],[1,`sub`],[1,`component`],[1,`entry`],[1,`entry`,`data`],[`aria-hidden`,`true`,1,`nil`],[1,`visually-hidden`],[1,`outlets`],[3,`padding-left`],[1,`muted`],[1,`empty-title`]],template:function(e,t){if(e&1&&N(0,AD,32,8)(1,jD,8,0,`div`,0),e&2){let e;P((e=t.page().snapshot)?0:1,e)}},dependencies:[Fy],styles:[`.muted[_ngcontent-%COMP%] { color: var(--%NS%text-2); font-size: 13px; line-height: 1.5; @@ -1375,7 +1375,7 @@ h3[_ngcontent-%COMP%] { .outlets[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover { background: var(--%NS%surface-2); -}`]})};function MD(e,t){if(e&1&&(V(0,`span`,7),Y(1),H()),e&2){let e=q(2);j(),Z(``,e.counts().error,` error(s)`)}}function ND(e,t){if(e&1&&(V(0,`span`,8),Y(1),H()),e&2){let e=q(2);j(),Z(``,e.counts().warning,` warning(s)`)}}function PD(e,t){if(e&1&&(V(0,`span`,9),Y(1),H()),e&2){let e=q(2);j(),Z(``,e.counts().info,` info`)}}function FD(e,t){if(e&1&&(V(0,`span`,3),N(1,MD,2,1,`span`,7),N(2,ND,2,1,`span`,8),N(3,PD,2,1,`span`,9),H()),e&2){let e=q();j(),P(e.counts().error?1:-1),j(),P(e.counts().warning?2:-1),j(),P(e.counts().info?3:-1)}}function ID(e,t){e&1&&(V(0,`p`,4),Y(1,`Checking…`),H())}function LD(e,t){if(e&1&&(V(0,`li`)(1,`div`,10)(2,`span`,9),Y(3),H(),V(4,`code`,11),Y(5),H(),V(6,`code`,12),Y(7),H()(),V(8,`p`,13),Y(9),H(),V(10,`p`,14)(11,`span`,15),Y(12,`Fix`),H(),V(13,`span`,16),Y(14),V(15,`span`,2),Y(16),H()()()()),e&2){let e=t.$implicit,n=q(2);M(`data-severity`,e.severity),j(2),M(`data-tone`,n.severityTone(e.severity)),j(),X(e.severity),j(2),X(e.rule),j(2),X(e.route),j(2),X(e.message),j(5),Z(``,e.fix,` `),j(2),Z(`(Angular `,e.angular===`throws`?`throws`:e.angular===`warns`?`warns`:`does not warn`,`)`)}}function RD(e,t){if(e&1&&(V(0,`ul`,5),F(1,LD,17,8,`li`,null,sg),H()),e&2){let e=q();j(),I(e.findings())}}function zD(e,t){e&1&&(V(0,`div`,6)(1,`span`,17),ps(),V(2,`svg`,18),U(3,`path`,19),H()(),ms(),V(4,`p`,20),Y(5,`No route config problems found.`),H(),V(6,`p`,2),Y(7,`The check runs again after each navigation or config change.`),H()())}var BD=class e{page=$.required();rpc=$(null);findings=A([]);loading=A(!1);counts=Q(()=>{let e={error:0,warning:0,info:0};for(let t of this.findings())e[t.severity]++;return e});key=Q(()=>`${this.page().pageId}:${this.page().generation}:${this.page().navigations.length}`);constructor(){dc(()=>{this.key(),$_(()=>void this.run())})}severityTone(e){return e===`error`?`bad`:e===`warning`?`warn`:``}async run(){this.loading.set(!0),this.findings.set(await XE(this.rpc(),`router-lint`,this.page().pageId)??[]),this.loading.set(!1)}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-route-lint`]],inputs:{page:[1,`page`],rpc:[1,`rpc`]},decls:9,vars:4,consts:[[1,`toolbar`],[`type`,`button`,1,`small`,3,`click`],[1,`muted`],[1,`summary`],[`role`,`status`,1,`muted`,`empty`],[1,`findings`],[1,`empty`],[`data-tone`,`bad`,1,`badge`],[`data-tone`,`warn`,1,`badge`],[1,`badge`],[1,`head`],[1,`rule`],[1,`route`],[1,`message`],[1,`fix`],[1,`fix-label`],[1,`fix-text`],[`aria-hidden`,`true`,1,`ok-mark`],[`width`,`16`,`height`,`16`,`viewBox`,`0 0 24 24`,`fill`,`none`,`stroke`,`currentColor`,`stroke-width`,`2.5`,`stroke-linecap`,`round`,`stroke-linejoin`,`round`],[`d`,`M20 6 9 17l-5-5`],[1,`empty-title`]],template:function(e,t){e&1&&(V(0,`div`,0)(1,`button`,1),K(`click`,function(){return t.run()}),Y(2),H(),V(3,`span`,2),Y(4,`Checks the live config, links and recent navigations. Lazy routes that have not loaded are skipped.`),H(),N(5,FD,4,3,`span`,3),H(),N(6,ID,2,0,`p`,4)(7,RD,3,0,`ul`,5)(8,zD,8,0,`div`,6)),e&2&&(j(),M(`aria-busy`,t.loading()),j(),Z(` `,t.loading()?`Checking…`:`Check again`,` `),j(3),P(!t.loading()&&t.findings().length?5:-1),j(),P(t.loading()?6:t.findings().length?7:8))},styles:[`.muted[_ngcontent-%COMP%] { +}`]})};function ND(e,t){if(e&1&&(V(0,`span`,7),Y(1),H()),e&2){let e=q(2);j(),Z(``,e.counts().error,` error(s)`)}}function PD(e,t){if(e&1&&(V(0,`span`,8),Y(1),H()),e&2){let e=q(2);j(),Z(``,e.counts().warning,` warning(s)`)}}function FD(e,t){if(e&1&&(V(0,`span`,9),Y(1),H()),e&2){let e=q(2);j(),Z(``,e.counts().info,` info`)}}function ID(e,t){if(e&1&&(V(0,`span`,3),N(1,ND,2,1,`span`,7),N(2,PD,2,1,`span`,8),N(3,FD,2,1,`span`,9),H()),e&2){let e=q();j(),P(e.counts().error?1:-1),j(),P(e.counts().warning?2:-1),j(),P(e.counts().info?3:-1)}}function LD(e,t){e&1&&(V(0,`p`,4),Y(1,`Checking…`),H())}function RD(e,t){if(e&1&&(V(0,`li`)(1,`div`,10)(2,`span`,9),Y(3),H(),V(4,`code`,11),Y(5),H(),V(6,`code`,12),Y(7),H()(),V(8,`p`,13),Y(9),H(),V(10,`p`,14)(11,`span`,15),Y(12,`Fix`),H(),V(13,`span`,16),Y(14),V(15,`span`,2),Y(16),H()()()()),e&2){let e=t.$implicit,n=q(2);M(`data-severity`,e.severity),j(2),M(`data-tone`,n.severityTone(e.severity)),j(),X(e.severity),j(2),X(e.rule),j(2),X(e.route),j(2),X(e.message),j(5),Z(``,e.fix,` `),j(2),Z(`(Angular `,e.angular===`throws`?`throws`:e.angular===`warns`?`warns`:`does not warn`,`)`)}}function zD(e,t){if(e&1&&(V(0,`ul`,5),F(1,RD,17,8,`li`,null,cg),H()),e&2){let e=q();j(),I(e.findings())}}function BD(e,t){e&1&&(V(0,`div`,6)(1,`span`,17),ps(),V(2,`svg`,18),U(3,`path`,19),H()(),ms(),V(4,`p`,20),Y(5,`No route config problems found.`),H(),V(6,`p`,2),Y(7,`The check runs again after each navigation or config change.`),H()())}var VD=class e{page=$.required();rpc=$(null);findings=A([]);loading=A(!1);counts=Q(()=>{let e={error:0,warning:0,info:0};for(let t of this.findings())e[t.severity]++;return e});key=Q(()=>`${this.page().pageId}:${this.page().generation}:${this.page().navigations.length}`);constructor(){dc(()=>{this.key(),ev(()=>void this.run())})}severityTone(e){return e===`error`?`bad`:e===`warning`?`warn`:``}async run(){this.loading.set(!0),this.findings.set(await ZE(this.rpc(),`router-lint`,this.page().pageId)??[]),this.loading.set(!1)}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-route-lint`]],inputs:{page:[1,`page`],rpc:[1,`rpc`]},decls:9,vars:4,consts:[[1,`toolbar`],[`type`,`button`,1,`small`,3,`click`],[1,`muted`],[1,`summary`],[`role`,`status`,1,`muted`,`empty`],[1,`findings`],[1,`empty`],[`data-tone`,`bad`,1,`badge`],[`data-tone`,`warn`,1,`badge`],[1,`badge`],[1,`head`],[1,`rule`],[1,`route`],[1,`message`],[1,`fix`],[1,`fix-label`],[1,`fix-text`],[`aria-hidden`,`true`,1,`ok-mark`],[`width`,`16`,`height`,`16`,`viewBox`,`0 0 24 24`,`fill`,`none`,`stroke`,`currentColor`,`stroke-width`,`2.5`,`stroke-linecap`,`round`,`stroke-linejoin`,`round`],[`d`,`M20 6 9 17l-5-5`],[1,`empty-title`]],template:function(e,t){e&1&&(V(0,`div`,0)(1,`button`,1),K(`click`,function(){return t.run()}),Y(2),H(),V(3,`span`,2),Y(4,`Checks the live config, links and recent navigations. Lazy routes that have not loaded are skipped.`),H(),N(5,ID,4,3,`span`,3),H(),N(6,LD,2,0,`p`,4)(7,zD,3,0,`ul`,5)(8,BD,8,0,`div`,6)),e&2&&(j(),M(`aria-busy`,t.loading()),j(),Z(` `,t.loading()?`Checking…`:`Check again`,` `),j(3),P(!t.loading()&&t.findings().length?5:-1),j(),P(t.loading()?6:t.findings().length?7:8))},styles:[`.muted[_ngcontent-%COMP%] { color: var(--%NS%text-2); font-size: 13px; line-height: 1.5; @@ -1797,7 +1797,7 @@ h3[_ngcontent-%COMP%] { .fix[_ngcontent-%COMP%] .muted[_ngcontent-%COMP%] { font-size: 12px; -}`]})},VD=(e,t)=>t.name,HD=(e,t)=>t[0];function UD(e,t){e&1&&(V(0,`p`,1),Y(1,` Events-only mode: this build has no debug utils (production build or unusual setup), so the route config, lint and actions are limited. `),H())}function WD(e,t){if(e&1&&(V(0,`dt`),Y(1,`Angular`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q();j(3),X(e.angularVersion)}}function GD(e,t){if(e&1&&(V(0,`dt`),Y(1,`Base href`),H(),V(2,`dd`)(3,`code`),Y(4),H()()),e&2){let e=q();j(4),X(e.baseHref)}}function KD(e,t){if(e&1&&(V(0,`dt`),Y(1,`Hydration`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q();j(3),Z(``,e.hydrated,` component(s) hydrated from server HTML`)}}function qD(e,t){if(e&1&&(V(0,`tr`)(1,`td`,5)(2,`code`),Y(3),H()(),V(4,`td`)(5,`code`),Y(6),H()(),V(7,`td`,6)(8,`span`,7),Y(9),H()()()),e&2){let e=t.$implicit;j(3),X(e.name),j(3),X(e.value),j(2),M(`data-tone`,e.set?`warn`:``),j(),X(e.set?`set`:`default`)}}function JD(e,t){if(e&1&&(V(0,`li`)(1,`span`,7),Y(2),H()()),e&2){let e=t.$implicit;j(),M(`data-tone`,e[1]===`off`?``:`good`),j(),D_(``,e[0],`: `,e[1])}}function YD(e,t){if(e&1&&(V(0,`h3`),Y(1,`Features`),H(),V(2,`ul`,8),F(3,JD,3,3,`li`,null,HD),H()),e&2){let e=q(),t=q();j(3),I(t.entries(e.features))}}function XD(e,t){if(e&1&&(V(0,`dt`),Y(1),H(),V(2,`dd`)(3,`code`),Y(4),H()()),e&2){let e=t.$implicit;j(),X(e[0]),j(3),X(e[1])}}function ZD(e,t){if(e&1&&(V(0,`h3`),Y(1,`Strategies`),H(),V(2,`dl`,2),F(3,XD,5,2,null,null,HD),H()),e&2){let e=q(),t=q();j(3),I(t.entries(e.strategies))}}function QD(e,t){if(e&1&&(N(0,UD,2,0,`p`,1),V(1,`dl`,2)(2,`dt`),Y(3,`Set up with`),H(),V(4,`dd`),Y(5),H(),N(6,WD,4,1),N(7,GD,5,1),N(8,KD,4,1),H(),V(9,`h3`),Y(10,`Options`),H(),V(11,`div`,3)(12,`table`)(13,`thead`)(14,`tr`)(15,`th`,4),Y(16,`Option`),H(),V(17,`th`,4),Y(18,`Value`),H(),V(19,`th`,4),Y(20,`Source`),H()()(),V(21,`tbody`),F(22,qD,10,4,`tr`,null,VD),H()()(),N(24,YD,5,0),N(25,ZD,5,0)),e&2){let e=t,n=q();P(e.mode===`events-only`?0:-1),j(5),D_(` `,e.setupKind,``,e.routers>1?`, `+e.routers+` routers on the page`:``,` `),j(),P(e.angularVersion?6:-1),j(),P(e.baseHref?7:-1),j(),P(e.hydrated?8:-1),j(14),I(e.options),j(2),P(n.entries(e.features).length?24:-1),j(),P(n.entries(e.strategies).length?25:-1)}}function $D(e,t){e&1&&(V(0,`div`,0)(1,`p`,9),Y(2,`The page has not reported its router setup yet.`),H(),V(3,`p`,10),Y(4,` It appears after the app finishes bootstrapping. Reload the app if it stays empty. `),H()())}var eO=class e{page=$.required();entries(e){return Object.entries(e)}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-route-setup`]],inputs:{page:[1,`page`]},decls:2,vars:1,consts:[[1,`empty`],[`role`,`note`,1,`note`],[1,`facts`],[`role`,`region`,`aria-label`,`Router options`,`tabindex`,`0`,1,`table-scroll`],[`scope`,`col`],[1,`name`],[1,`source`],[1,`badge`],[1,`chips`],[1,`empty-title`],[1,`muted`]],template:function(e,t){if(e&1&&N(0,QD,26,8)(1,$D,5,0,`div`,0),e&2){let e;P((e=t.page().setup)?0:1,e)}},styles:[`.muted[_ngcontent-%COMP%] { +}`]})},HD=(e,t)=>t.name,UD=(e,t)=>t[0];function WD(e,t){e&1&&(V(0,`p`,1),Y(1,` Events-only mode: this build has no debug utils (production build or unusual setup), so the route config, lint and actions are limited. `),H())}function GD(e,t){if(e&1&&(V(0,`dt`),Y(1,`Angular`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q();j(3),X(e.angularVersion)}}function KD(e,t){if(e&1&&(V(0,`dt`),Y(1,`Base href`),H(),V(2,`dd`)(3,`code`),Y(4),H()()),e&2){let e=q();j(4),X(e.baseHref)}}function qD(e,t){if(e&1&&(V(0,`dt`),Y(1,`Hydration`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q();j(3),Z(``,e.hydrated,` component(s) hydrated from server HTML`)}}function JD(e,t){if(e&1&&(V(0,`tr`)(1,`td`,5)(2,`code`),Y(3),H()(),V(4,`td`)(5,`code`),Y(6),H()(),V(7,`td`,6)(8,`span`,7),Y(9),H()()()),e&2){let e=t.$implicit;j(3),X(e.name),j(3),X(e.value),j(2),M(`data-tone`,e.set?`warn`:``),j(),X(e.set?`set`:`default`)}}function YD(e,t){if(e&1&&(V(0,`li`)(1,`span`,7),Y(2),H()()),e&2){let e=t.$implicit;j(),M(`data-tone`,e[1]===`off`?``:`good`),j(),O_(``,e[0],`: `,e[1])}}function XD(e,t){if(e&1&&(V(0,`h3`),Y(1,`Features`),H(),V(2,`ul`,8),F(3,YD,3,3,`li`,null,UD),H()),e&2){let e=q(),t=q();j(3),I(t.entries(e.features))}}function ZD(e,t){if(e&1&&(V(0,`dt`),Y(1),H(),V(2,`dd`)(3,`code`),Y(4),H()()),e&2){let e=t.$implicit;j(),X(e[0]),j(3),X(e[1])}}function QD(e,t){if(e&1&&(V(0,`h3`),Y(1,`Strategies`),H(),V(2,`dl`,2),F(3,ZD,5,2,null,null,UD),H()),e&2){let e=q(),t=q();j(3),I(t.entries(e.strategies))}}function $D(e,t){if(e&1&&(N(0,WD,2,0,`p`,1),V(1,`dl`,2)(2,`dt`),Y(3,`Set up with`),H(),V(4,`dd`),Y(5),H(),N(6,GD,4,1),N(7,KD,5,1),N(8,qD,4,1),H(),V(9,`h3`),Y(10,`Options`),H(),V(11,`div`,3)(12,`table`)(13,`thead`)(14,`tr`)(15,`th`,4),Y(16,`Option`),H(),V(17,`th`,4),Y(18,`Value`),H(),V(19,`th`,4),Y(20,`Source`),H()()(),V(21,`tbody`),F(22,JD,10,4,`tr`,null,HD),H()()(),N(24,XD,5,0),N(25,QD,5,0)),e&2){let e=t,n=q();P(e.mode===`events-only`?0:-1),j(5),O_(` `,e.setupKind,``,e.routers>1?`, `+e.routers+` routers on the page`:``,` `),j(),P(e.angularVersion?6:-1),j(),P(e.baseHref?7:-1),j(),P(e.hydrated?8:-1),j(14),I(e.options),j(2),P(n.entries(e.features).length?24:-1),j(),P(n.entries(e.strategies).length?25:-1)}}function eO(e,t){e&1&&(V(0,`div`,0)(1,`p`,9),Y(2,`The page has not reported its router setup yet.`),H(),V(3,`p`,10),Y(4,` It appears after the app finishes bootstrapping. Reload the app if it stays empty. `),H()())}var tO=class e{page=$.required();entries(e){return Object.entries(e)}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-route-setup`]],inputs:{page:[1,`page`]},decls:2,vars:1,consts:[[1,`empty`],[`role`,`note`,1,`note`],[1,`facts`],[`role`,`region`,`aria-label`,`Router options`,`tabindex`,`0`,1,`table-scroll`],[`scope`,`col`],[1,`name`],[1,`source`],[1,`badge`],[1,`chips`],[1,`empty-title`],[1,`muted`]],template:function(e,t){if(e&1&&N(0,$D,26,8)(1,eO,5,0,`div`,0),e&2){let e;P((e=t.page().setup)?0:1,e)}},styles:[`.muted[_ngcontent-%COMP%] { color: var(--%NS%text-2); font-size: 13px; line-height: 1.5; @@ -2128,7 +2128,7 @@ h3[_ngcontent-%COMP%] { .facts[_ngcontent-%COMP%] code[_ngcontent-%COMP%] { color: var(--%NS%text-strong); -}`]})};function tO(e){return new Date(e).toLocaleTimeString()}var nO=(e,t)=>t.id,rO=(e,t)=>t.phase;function iO(e,t){if(e&1&&(V(0,`p`,6),Y(1),H()),e&2){let e=q();j(),X(e.message())}}function aO(e,t){if(e&1&&(V(0,`span`),U(1,`i`),Y(2),H()),e&2){let e=t.$implicit,n=q(2);j(),t_(`background`,n.color(e)),j(),X(e)}}function oO(e,t){if(e&1&&(V(0,`time`),Y(1),H()),e&2){let e=q().$implicit,t=q(2);j(),X(t.time(e.startedAt))}}function sO(e,t){if(e&1&&(V(0,`span`,23),Y(1,`→`),H(),V(2,`span`,24),Y(3,`redirected to`),H(),V(4,`code`,13),Y(5),H()),e&2){let e=q().$implicit;j(5),X(e.finalUrl)}}function cO(e,t){if(e&1&&(V(0,`span`,16),Y(1),H()),e&2){let e=q().$implicit;j(),X(e.endedAt===void 0&&e.outcome!==`pending`?`before DevTools connected`:`started before DevTools connected`)}}function lO(e,t){if(e&1&&(V(0,`span`,17),Y(1),H()),e&2){let e=q().$implicit;j(),Z(``,e.phases?.total,`ms`)}}function uO(e,t){if(e&1&&(V(0,`span`,17),Y(1),H()),e&2){let e=q().$implicit;j(),Z(``,e.endedAt-e.startedAt,`ms`)}}function dO(e,t){e&1&&(V(0,`span`,18),Y(1,`probe`),H())}function fO(e,t){if(e&1&&U(0,`span`),e&2){let e=t.$implicit,n=q(4);t_(`width`,e.width,`%`)(`background`,n.color(e.phase)),M(`title`,e.phase+` `+e.ms+`ms`)}}function pO(e,t){if(e&1&&(V(0,`div`,19),F(1,fO,1,5,`span`,25,rO),H()),e&2){let e=q().$implicit,t=q(2);M(`aria-label`,t.barLabel(e)),j(),I(t.bars(e))}}function mO(e,t){if(e&1&&(V(0,`dt`),Y(1,`From`),H(),V(2,`dd`)(3,`code`),Y(4),H()()),e&2){let e=q().$implicit;j(4),X(e.from)}}function hO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Started by`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),D_(``,e.caller,` (`,e.trigger,`)`)}}function gO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Extras`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.extras?.join(`, `))}}function _O(e,t){if(e&1&&(V(0,`dt`),Y(1,`Redirect of`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),Z(`#`,e.redirectedFrom)}}function vO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Redirects to`),H(),V(2,`dd`)(3,`code`),Y(4),H(),Y(5),H()),e&2){let e=q().$implicit;j(4),X(e.redirectTo),j(),Z(` (`,e.redirectKind,`) `)}}function yO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Guards`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit,t=q(2);j(3),D_(``,e.guards.names.join(`, `)||`none`,`: `,t.guardResult(e))}}function bO(e,t){if(e&1&&(V(0,`div`)(1,`code`),Y(2),H(),Y(3),V(4,`code`),Y(5),H(),Y(6,`: `),V(7,`strong`),Y(8),H(),Y(9),H()),e&2){let e=t.$implicit,n=q(4);j(2),X(e.guard),j(),Z(` `,e.kind,` on `),j(2),X(e.route),j(2),J(`bad`,n.isBad(e.result)),j(),X(e.result),j(),Z(` (`,e.ms,`ms) `)}}function xO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Runs`),H(),V(2,`dd`),F(3,bO,10,7,`div`,null,sg),H()),e&2){let e=q().$implicit;j(3),I(e.runs)}}function SO(e,t){if(e&1&&Y(0),e&2){let e=q(2).$implicit;Z(` leaving `,e.checked.deactivate.join(`, `),`; `)}}function CO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Checked`),H(),V(2,`dd`),N(3,SO,1,1),Y(4),H()),e&2){let e=q().$implicit;j(3),P(e.checked.deactivate.length?3:-1),j(),Z(` entering `,e.checked.activate.join(`, `)||`nothing new`,` `)}}function wO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Resolvers`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.resolvers?.names?.join(`, `))}}function TO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Lazy loaded`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.lazyLoaded?.join(`, `))}}function EO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Reused`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),Z(` `,e.reused?.join(`, `),` (component kept, only inputs and params change) `)}}function DO(e,t){if(e&1&&(V(0,`dt`),Y(1,`HTTP`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),D_(``,e.requests.count,` request(s): `,e.requests.urls.join(`, `))}}function OO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Scroll`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.scroll)}}function kO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Title after`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.title)}}function AO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Warnings`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.warnings?.join(` · `))}}function jO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Reason`),H(),V(2,`dd`,26),Y(3),H()),e&2){let e=q().$implicit,t=q(2);j(3),X(t.reasonText(e))}}function MO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Error`),H(),V(2,`dd`,26),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.errorCode)}}function NO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Error handler`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.errorHandler)}}function PO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Earlier`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),Z(``,e.earlier,` navigation(s) before DevTools connected`)}}function FO(e,t){if(e&1){let e=W();V(0,`li`)(1,`div`,11),N(2,oO,2,1,`time`),V(3,`span`,12),Y(4),H(),V(5,`code`,13),Y(6),H(),N(7,sO,6,1),V(8,`span`,14)(9,`span`,15),Y(10),H(),N(11,cO,2,1,`span`,16)(12,lO,2,1,`span`,17)(13,uO,2,1,`span`,17),N(14,dO,2,0,`span`,18),H()(),N(15,pO,3,1,`div`,19),V(16,`dl`,20),N(17,mO,5,1),N(18,hO,4,2),N(19,gO,4,1),N(20,_O,4,1),N(21,vO,6,2),N(22,yO,4,2),N(23,xO,5,0),N(24,CO,5,2),N(25,wO,4,1),N(26,TO,4,1),N(27,EO,4,1),N(28,DO,4,2),N(29,OO,4,1),N(30,kO,4,1),N(31,AO,4,1),N(32,jO,4,1),N(33,MO,4,1),N(34,NO,4,1),N(35,PO,4,1),H(),V(36,`div`,21)(37,`button`,22),K(`click`,function(){let t=O(e).$implicit;return k(q(2).replay(t))}),Y(38,` Replay `),H(),V(39,`button`,22),K(`click`,function(){let t=O(e).$implicit;return k(q(2).copy(t))}),Y(40,` Copy repro `),H()()()}if(e&2){let e=t.$implicit,n=q(2);j(2),P(e.beforeConnect?-1:2),j(2),Z(`#`,e.id),j(2),X(e.url),j(),P(e.finalUrl&&e.finalUrl!==e.url?7:-1),j(2),M(`data-tone`,n.tone(e.outcome)),j(),X(e.outcome),j(),P(e.beforeConnect?11:e.phases?.total===void 0?e.endedAt===void 0?-1:13:12),j(3),P(e.probe?14:-1),j(),P(n.bars(e).length?15:-1),j(2),P(e.from?17:-1),j(),P(e.caller?18:-1),j(),P(e.extras?.length?19:-1),j(),P(e.redirectedFrom===void 0?-1:20),j(),P(e.redirectTo?21:-1),j(),P(e.guards&&(e.guards.names.length||e.guards.passed===!1)?22:-1),j(),P(e.runs?.length?23:-1),j(),P(e.checked&&(e.checked.activate.length||e.checked.deactivate.length)?24:-1),j(),P(e.resolvers?.names?.length?25:-1),j(),P(e.lazyLoaded?.length?26:-1),j(),P(e.reused?.length?27:-1),j(),P(e.requests?28:-1),j(),P(e.scroll?29:-1),j(),P(e.title?30:-1),j(),P(e.warnings?.length?31:-1),j(),P(e.reason||e.code?32:-1),j(),P(e.errorCode?33:-1),j(),P(e.errorHandler?34:-1),j(),P(e.earlier?35:-1),j(2),M(`aria-label`,`Replay navigation `+e.id),j(2),M(`aria-label`,`Copy repro for navigation `+e.id)}}function IO(e,t){if(e&1&&(V(0,`div`,7)(1,`span`,8),Y(2),H(),V(3,`div`,9),F(4,aO,3,3,`span`,null,cg),H()(),V(6,`ol`,10),F(7,FO,41,30,`li`,null,nO),H()),e&2){let e=q();j(2),D_(``,e.items().length,` of `,e.page().navigations.length,` navigation(s)`),j(2),I(e.phases),j(3),I(e.items())}}function LO(e,t){if(e&1){let e=W();V(0,`div`,27)(1,`p`,28),Y(2,`No navigations match the current filters.`),H(),V(3,`p`,16),Y(4),H(),V(5,`button`,22),K(`click`,function(){O(e);let t=q(2),n=Pg(2);return t.clearFilters(),k(n.focus())}),Y(6,` Clear filters `),H()()}if(e&2){let e=q(2);j(4),Z(` `,e.page().navigations.length,` navigation(s) are hidden. Clear the filters to see them. `)}}function RO(e,t){e&1&&(V(0,`div`,27)(1,`p`,28),Y(2,`No navigations since DevTools connected.`),H(),V(3,`p`,16),Y(4,`Earlier ones are not visible. Click a link in the app to record one.`),H()())}function zO(e,t){e&1&&N(0,LO,7,1,`div`,27)(1,RO,5,0,`div`,27),e&2&&P(+!q().page().navigations.length)}var BO=[`recognize`,`guards`,`resolve`,`activate`],VO={recognize:`#60a5fa`,guards:`#f59e0b`,resolve:`#2dd4bf`,activate:`#34d399`},HO=class e{page=$.required();rpc=$(null);phases=BO;filter=A(``);onlyProblems=A(!1);message=A(``);items=Q(()=>{let e=this.filter().toLowerCase();return[...this.page().navigations].reverse().filter(t=>(!e||t.url.toLowerCase().includes(e)||!!t.finalUrl?.toLowerCase().includes(e))&&(!this.onlyProblems()||![`succeeded`,`pending`].includes(t.outcome)))});reasonText(e){return[e.code,e.reason].filter(Boolean).join(`: `)}clearFilters(){this.filter.set(``),this.onlyProblems.set(!1)}tone(e){return QE(e)}color(e){return VO[e]}bars(e){let t=e.phases?.total;return t?BO.filter(t=>(e.phases?.[t]??0)>0).map(n=>({phase:n,ms:e.phases[n],width:Math.max(1,e.phases[n]/t*100)})):[]}barLabel(e){return`Phases: ${this.bars(e).map(e=>`${e.phase} ${e.ms}ms`).join(`, `)}`}guardResult(e){let t=e.guards?.passed;return t===!0?`passed`:t===!1?e.outcome===`redirected`?`redirected`:`blocked`:e.outcome===`pending`?`running`:`did not finish, navigation ${e.outcome}`}isBad(e){return e===`false`||/^(UrlTree|RedirectCommand|threw)/.test(e)}time=tO;async toggleInstrument(e){let t=e.target.checked,n=await ZE(this.rpc(),this.page().pageId,{action:`instrument`,on:t});this.message.set(n?.error?String(n.error):t?`Recording each guard and resolver.`:`Stopped recording guards and resolvers.`)}async replay(e){this.message.set(`Replaying #${e.id}…`);let t=await ZE(this.rpc(),this.page().pageId,{action:`replay`,id:e.id});if(!t||t.error){this.message.set(String(t?.error??`Replay failed.`));return}let n=t.replay;this.message.set(`Replay of #${e.id}: ${n?.outcome??`unknown`}${t.same?` (same as before)`:` (different from before)`}.`)}async copy(e){let t=await XE(this.rpc(),`router-export`,{pageId:this.page().pageId,id:e.id});if(!t){this.message.set(`Could not build the repro.`);return}try{await navigator.clipboard.writeText(t),this.message.set(`Copied a markdown repro of #${e.id}.`)}catch{this.message.set(`The clipboard is not available here.`)}}exportJson(){let e=new Blob([JSON.stringify(this.page().navigations,null,2)],{type:`application/json`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`navigations-${this.page().pageId}.json`,n.click(),URL.revokeObjectURL(t)}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-route-timeline`]],inputs:{page:[1,`page`],rpc:[1,`rpc`]},decls:14,vars:5,consts:[[`filterInput`,``],[1,`toolbar`],[`type`,`text`,`aria-label`,`Filter navigations by URL`,`placeholder`,`Filter by URL`,1,`field`,3,`input`,`value`],[1,`check`],[`type`,`checkbox`,3,`change`,`checked`],[`type`,`button`,1,`small`,`export`,3,`click`],[`role`,`status`,1,`message`],[1,`meta-row`],[1,`muted`,`count`],[`aria-hidden`,`true`,1,`legend`],[1,`navs`],[1,`head`],[1,`id`],[1,`url`],[1,`meta`],[1,`badge`],[1,`muted`],[1,`muted`,`ms`],[1,`tag`],[`role`,`img`,1,`bar`],[1,`details`],[1,`actions`],[`type`,`button`,1,`small`,3,`click`],[`aria-hidden`,`true`,1,`arrow`],[1,`visually-hidden`],[3,`width`,`background`],[1,`reason`],[1,`empty`],[1,`empty-title`]],template:function(e,t){e&1&&(V(0,`div`,1)(1,`input`,2,0),K(`input`,function(e){return t.filter.set(e.target.value)}),H(),V(3,`label`,3)(4,`input`,4),K(`change`,function(e){return t.onlyProblems.set(e.target.checked)}),H(),Y(5,` Only problems `),H(),V(6,`label`,3)(7,`input`,4),K(`change`,function(e){return t.toggleInstrument(e)}),H(),Y(8,` Record each guard and resolver `),H(),V(9,`button`,5),K(`click`,function(){return t.exportJson()}),Y(10,`Export JSON`),H()(),N(11,iO,2,1,`p`,6),N(12,IO,9,2)(13,zO,2,1)),e&2&&(j(),bg(`value`,t.filter()),j(3),bg(`checked`,t.onlyProblems()),j(3),bg(`checked`,t.page().instrumented),j(4),P(t.message()?11:-1),j(),P(t.items().length?12:13))},styles:[`.muted[_ngcontent-%COMP%] { +}`]})};function nO(e){return new Date(e).toLocaleTimeString()}var rO=(e,t)=>t.id,iO=(e,t)=>t.phase;function aO(e,t){if(e&1&&(V(0,`p`,6),Y(1),H()),e&2){let e=q();j(),X(e.message())}}function oO(e,t){if(e&1&&(V(0,`span`),U(1,`i`),Y(2),H()),e&2){let e=t.$implicit,n=q(2);j(),n_(`background`,n.color(e)),j(),X(e)}}function sO(e,t){if(e&1&&(V(0,`time`),Y(1),H()),e&2){let e=q().$implicit,t=q(2);j(),X(t.time(e.startedAt))}}function cO(e,t){if(e&1&&(V(0,`span`,23),Y(1,`→`),H(),V(2,`span`,24),Y(3,`redirected to`),H(),V(4,`code`,13),Y(5),H()),e&2){let e=q().$implicit;j(5),X(e.finalUrl)}}function lO(e,t){if(e&1&&(V(0,`span`,16),Y(1),H()),e&2){let e=q().$implicit;j(),X(e.endedAt===void 0&&e.outcome!==`pending`?`before DevTools connected`:`started before DevTools connected`)}}function uO(e,t){if(e&1&&(V(0,`span`,17),Y(1),H()),e&2){let e=q().$implicit;j(),Z(``,e.phases?.total,`ms`)}}function dO(e,t){if(e&1&&(V(0,`span`,17),Y(1),H()),e&2){let e=q().$implicit;j(),Z(``,e.endedAt-e.startedAt,`ms`)}}function fO(e,t){e&1&&(V(0,`span`,18),Y(1,`probe`),H())}function pO(e,t){if(e&1&&U(0,`span`),e&2){let e=t.$implicit,n=q(4);n_(`width`,e.width,`%`)(`background`,n.color(e.phase)),M(`title`,e.phase+` `+e.ms+`ms`)}}function mO(e,t){if(e&1&&(V(0,`div`,19),F(1,pO,1,5,`span`,25,iO),H()),e&2){let e=q().$implicit,t=q(2);M(`aria-label`,t.barLabel(e)),j(),I(t.bars(e))}}function hO(e,t){if(e&1&&(V(0,`dt`),Y(1,`From`),H(),V(2,`dd`)(3,`code`),Y(4),H()()),e&2){let e=q().$implicit;j(4),X(e.from)}}function gO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Started by`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),O_(``,e.caller,` (`,e.trigger,`)`)}}function _O(e,t){if(e&1&&(V(0,`dt`),Y(1,`Extras`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.extras?.join(`, `))}}function vO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Redirect of`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),Z(`#`,e.redirectedFrom)}}function yO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Redirects to`),H(),V(2,`dd`)(3,`code`),Y(4),H(),Y(5),H()),e&2){let e=q().$implicit;j(4),X(e.redirectTo),j(),Z(` (`,e.redirectKind,`) `)}}function bO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Guards`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit,t=q(2);j(3),O_(``,e.guards.names.join(`, `)||`none`,`: `,t.guardResult(e))}}function xO(e,t){if(e&1&&(V(0,`div`)(1,`code`),Y(2),H(),Y(3),V(4,`code`),Y(5),H(),Y(6,`: `),V(7,`strong`),Y(8),H(),Y(9),H()),e&2){let e=t.$implicit,n=q(4);j(2),X(e.guard),j(),Z(` `,e.kind,` on `),j(2),X(e.route),j(2),J(`bad`,n.isBad(e.result)),j(),X(e.result),j(),Z(` (`,e.ms,`ms) `)}}function SO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Runs`),H(),V(2,`dd`),F(3,xO,10,7,`div`,null,cg),H()),e&2){let e=q().$implicit;j(3),I(e.runs)}}function CO(e,t){if(e&1&&Y(0),e&2){let e=q(2).$implicit;Z(` leaving `,e.checked.deactivate.join(`, `),`; `)}}function wO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Checked`),H(),V(2,`dd`),N(3,CO,1,1),Y(4),H()),e&2){let e=q().$implicit;j(3),P(e.checked.deactivate.length?3:-1),j(),Z(` entering `,e.checked.activate.join(`, `)||`nothing new`,` `)}}function TO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Resolvers`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.resolvers?.names?.join(`, `))}}function EO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Lazy loaded`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.lazyLoaded?.join(`, `))}}function DO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Reused`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),Z(` `,e.reused?.join(`, `),` (component kept, only inputs and params change) `)}}function OO(e,t){if(e&1&&(V(0,`dt`),Y(1,`HTTP`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),O_(``,e.requests.count,` request(s): `,e.requests.urls.join(`, `))}}function kO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Scroll`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.scroll)}}function AO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Title after`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.title)}}function jO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Warnings`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.warnings?.join(` · `))}}function MO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Reason`),H(),V(2,`dd`,26),Y(3),H()),e&2){let e=q().$implicit,t=q(2);j(3),X(t.reasonText(e))}}function NO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Error`),H(),V(2,`dd`,26),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.errorCode)}}function PO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Error handler`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.errorHandler)}}function FO(e,t){if(e&1&&(V(0,`dt`),Y(1,`Earlier`),H(),V(2,`dd`),Y(3),H()),e&2){let e=q().$implicit;j(3),Z(``,e.earlier,` navigation(s) before DevTools connected`)}}function IO(e,t){if(e&1){let e=W();V(0,`li`)(1,`div`,11),N(2,sO,2,1,`time`),V(3,`span`,12),Y(4),H(),V(5,`code`,13),Y(6),H(),N(7,cO,6,1),V(8,`span`,14)(9,`span`,15),Y(10),H(),N(11,lO,2,1,`span`,16)(12,uO,2,1,`span`,17)(13,dO,2,1,`span`,17),N(14,fO,2,0,`span`,18),H()(),N(15,mO,3,1,`div`,19),V(16,`dl`,20),N(17,hO,5,1),N(18,gO,4,2),N(19,_O,4,1),N(20,vO,4,1),N(21,yO,6,2),N(22,bO,4,2),N(23,SO,5,0),N(24,wO,5,2),N(25,TO,4,1),N(26,EO,4,1),N(27,DO,4,1),N(28,OO,4,2),N(29,kO,4,1),N(30,AO,4,1),N(31,jO,4,1),N(32,MO,4,1),N(33,NO,4,1),N(34,PO,4,1),N(35,FO,4,1),H(),V(36,`div`,21)(37,`button`,22),K(`click`,function(){let t=O(e).$implicit;return k(q(2).replay(t))}),Y(38,` Replay `),H(),V(39,`button`,22),K(`click`,function(){let t=O(e).$implicit;return k(q(2).copy(t))}),Y(40,` Copy repro `),H()()()}if(e&2){let e=t.$implicit,n=q(2);j(2),P(e.beforeConnect?-1:2),j(2),Z(`#`,e.id),j(2),X(e.url),j(),P(e.finalUrl&&e.finalUrl!==e.url?7:-1),j(2),M(`data-tone`,n.tone(e.outcome)),j(),X(e.outcome),j(),P(e.beforeConnect?11:e.phases?.total===void 0?e.endedAt===void 0?-1:13:12),j(3),P(e.probe?14:-1),j(),P(n.bars(e).length?15:-1),j(2),P(e.from?17:-1),j(),P(e.caller?18:-1),j(),P(e.extras?.length?19:-1),j(),P(e.redirectedFrom===void 0?-1:20),j(),P(e.redirectTo?21:-1),j(),P(e.guards&&(e.guards.names.length||e.guards.passed===!1)?22:-1),j(),P(e.runs?.length?23:-1),j(),P(e.checked&&(e.checked.activate.length||e.checked.deactivate.length)?24:-1),j(),P(e.resolvers?.names?.length?25:-1),j(),P(e.lazyLoaded?.length?26:-1),j(),P(e.reused?.length?27:-1),j(),P(e.requests?28:-1),j(),P(e.scroll?29:-1),j(),P(e.title?30:-1),j(),P(e.warnings?.length?31:-1),j(),P(e.reason||e.code?32:-1),j(),P(e.errorCode?33:-1),j(),P(e.errorHandler?34:-1),j(),P(e.earlier?35:-1),j(2),M(`aria-label`,`Replay navigation `+e.id),j(2),M(`aria-label`,`Copy repro for navigation `+e.id)}}function LO(e,t){if(e&1&&(V(0,`div`,7)(1,`span`,8),Y(2),H(),V(3,`div`,9),F(4,oO,3,3,`span`,null,lg),H()(),V(6,`ol`,10),F(7,IO,41,30,`li`,null,rO),H()),e&2){let e=q();j(2),O_(``,e.items().length,` of `,e.page().navigations.length,` navigation(s)`),j(2),I(e.phases),j(3),I(e.items())}}function RO(e,t){if(e&1){let e=W();V(0,`div`,27)(1,`p`,28),Y(2,`No navigations match the current filters.`),H(),V(3,`p`,16),Y(4),H(),V(5,`button`,22),K(`click`,function(){O(e);let t=q(2),n=Fg(2);return t.clearFilters(),k(n.focus())}),Y(6,` Clear filters `),H()()}if(e&2){let e=q(2);j(4),Z(` `,e.page().navigations.length,` navigation(s) are hidden. Clear the filters to see them. `)}}function zO(e,t){e&1&&(V(0,`div`,27)(1,`p`,28),Y(2,`No navigations since DevTools connected.`),H(),V(3,`p`,16),Y(4,`Earlier ones are not visible. Click a link in the app to record one.`),H()())}function BO(e,t){e&1&&N(0,RO,7,1,`div`,27)(1,zO,5,0,`div`,27),e&2&&P(+!q().page().navigations.length)}var VO=[`recognize`,`guards`,`resolve`,`activate`],HO={recognize:`#60a5fa`,guards:`#f59e0b`,resolve:`#2dd4bf`,activate:`#34d399`},UO=class e{page=$.required();rpc=$(null);phases=VO;filter=A(``);onlyProblems=A(!1);message=A(``);items=Q(()=>{let e=this.filter().toLowerCase();return[...this.page().navigations].reverse().filter(t=>(!e||t.url.toLowerCase().includes(e)||!!t.finalUrl?.toLowerCase().includes(e))&&(!this.onlyProblems()||![`succeeded`,`pending`].includes(t.outcome)))});reasonText(e){return[e.code,e.reason].filter(Boolean).join(`: `)}clearFilters(){this.filter.set(``),this.onlyProblems.set(!1)}tone(e){return $E(e)}color(e){return HO[e]}bars(e){let t=e.phases?.total;return t?VO.filter(t=>(e.phases?.[t]??0)>0).map(n=>({phase:n,ms:e.phases[n],width:Math.max(1,e.phases[n]/t*100)})):[]}barLabel(e){return`Phases: ${this.bars(e).map(e=>`${e.phase} ${e.ms}ms`).join(`, `)}`}guardResult(e){let t=e.guards?.passed;return t===!0?`passed`:t===!1?e.outcome===`redirected`?`redirected`:`blocked`:e.outcome===`pending`?`running`:`did not finish, navigation ${e.outcome}`}isBad(e){return e===`false`||/^(UrlTree|RedirectCommand|threw)/.test(e)}time=nO;async toggleInstrument(e){let t=e.target.checked,n=await QE(this.rpc(),this.page().pageId,{action:`instrument`,on:t});this.message.set(n?.error?String(n.error):t?`Recording each guard and resolver.`:`Stopped recording guards and resolvers.`)}async replay(e){this.message.set(`Replaying #${e.id}…`);let t=await QE(this.rpc(),this.page().pageId,{action:`replay`,id:e.id});if(!t||t.error){this.message.set(String(t?.error??`Replay failed.`));return}let n=t.replay;this.message.set(`Replay of #${e.id}: ${n?.outcome??`unknown`}${t.same?` (same as before)`:` (different from before)`}.`)}async copy(e){let t=await ZE(this.rpc(),`router-export`,{pageId:this.page().pageId,id:e.id});if(!t){this.message.set(`Could not build the repro.`);return}try{await navigator.clipboard.writeText(t),this.message.set(`Copied a markdown repro of #${e.id}.`)}catch{this.message.set(`The clipboard is not available here.`)}}exportJson(){let e=new Blob([JSON.stringify(this.page().navigations,null,2)],{type:`application/json`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`navigations-${this.page().pageId}.json`,n.click(),URL.revokeObjectURL(t)}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-route-timeline`]],inputs:{page:[1,`page`],rpc:[1,`rpc`]},decls:14,vars:5,consts:[[`filterInput`,``],[1,`toolbar`],[`type`,`text`,`aria-label`,`Filter navigations by URL`,`placeholder`,`Filter by URL`,1,`field`,3,`input`,`value`],[1,`check`],[`type`,`checkbox`,3,`change`,`checked`],[`type`,`button`,1,`small`,`export`,3,`click`],[`role`,`status`,1,`message`],[1,`meta-row`],[1,`muted`,`count`],[`aria-hidden`,`true`,1,`legend`],[1,`navs`],[1,`head`],[1,`id`],[1,`url`],[1,`meta`],[1,`badge`],[1,`muted`],[1,`muted`,`ms`],[1,`tag`],[`role`,`img`,1,`bar`],[1,`details`],[1,`actions`],[`type`,`button`,1,`small`,3,`click`],[`aria-hidden`,`true`,1,`arrow`],[1,`visually-hidden`],[3,`width`,`background`],[1,`reason`],[1,`empty`],[1,`empty-title`]],template:function(e,t){e&1&&(V(0,`div`,1)(1,`input`,2,0),K(`input`,function(e){return t.filter.set(e.target.value)}),H(),V(3,`label`,3)(4,`input`,4),K(`change`,function(e){return t.onlyProblems.set(e.target.checked)}),H(),Y(5,` Only problems `),H(),V(6,`label`,3)(7,`input`,4),K(`change`,function(e){return t.toggleInstrument(e)}),H(),Y(8,` Record each guard and resolver `),H(),V(9,`button`,5),K(`click`,function(){return t.exportJson()}),Y(10,`Export JSON`),H()(),N(11,aO,2,1,`p`,6),N(12,LO,9,2)(13,BO,2,1)),e&2&&(j(),xg(`value`,t.filter()),j(3),xg(`checked`,t.onlyProblems()),j(3),xg(`checked`,t.page().instrumented),j(4),P(t.message()?11:-1),j(),P(t.items().length?12:13))},styles:[`.muted[_ngcontent-%COMP%] { color: var(--%NS%text-2); font-size: 13px; line-height: 1.5; @@ -2655,7 +2655,7 @@ time[_ngcontent-%COMP%] { .export[_ngcontent-%COMP%] { margin-left: 0; } -}`]})},UO=()=>[],WO=(e,t)=>t.node.id;function GO(e,t){if(e&1&&(Y(0,` with `),V(1,`code`),Y(2),H_(3,`json`),H()),e&2){let e=q(2);j(2),X(W_(3,1,e.params))}}function KO(e,t){if(e&1&&(V(0,`span`,14),Y(1,`match`),H(),Y(2,` Matches `),V(3,`code`,15),Y(4),H(),N(5,GO,4,3)),e&2){let e=q(),t=q();j(4),X(t.chainText(e)),j(),P(t.hasKeys(e.params)?5:-1)}}function qO(e,t){if(e&1&&(Y(0,` Nearest: `),V(1,`code`),Y(2),H()),e&2){let e=q(2);j(2),X(e.nearest.join(`, `))}}function JO(e,t){if(e&1&&(V(0,`span`,16),Y(1,`no match`),H(),Y(2,` Matches no route (NG04002). `),N(3,qO,3,1)),e&2){let e=q();j(3),P(e.nearest.length?3:-1)}}function YO(e,t){if(e&1&&(V(0,`div`,13),Y(1),H()),e&2){let e=t.$implicit;j(),X(e)}}function XO(e,t){if(e&1&&(V(0,`div`,6),N(1,KO,6,2)(2,JO,4,1),F(3,YO,2,1,`div`,13,cg),H()),e&2){let e=t;M(`data-matched`,e.matched),j(),P(e.matched?1:2),j(2),I(e.notes)}}function ZO(e,t){if(e&1&&(V(0,`p`,7),Y(1),H()),e&2){let e=q();j(),X(e.message())}}function QO(e,t){if(e&1&&(V(0,`p`,10),Y(1),H()),e&2){let e=q();j(),D_(` Generation `,e.page().generation,` · `,e.rows().length,` route(s). Lazy routes show their children once loaded. `)}}function $O(e,t){if(e&1&&(V(0,`div`,11)(1,`p`,17),Y(2),H(),V(3,`p`,13),Y(4),H()()),e&2){let e=q();j(2),Z(` `,e.page().setup?.mode===`events-only`?`This build has no debug utils, so the live config cannot be read.`:`The page has not reported its route config yet.`,` `),j(2),Z(` `,e.page().setup?.mode===`events-only`?`Run the app with the development build to inspect the live config.`:`It appears once the router initializes. Navigate in the app if it stays empty.`,` `)}}function ek(e,t){if(e&1){let e=W();V(0,`div`,11)(1,`p`,17),Y(2,`No routes match the filter.`),H(),V(3,`p`,13),Y(4,`Try a shorter path or a component name.`),H(),V(5,`button`,5),K(`click`,function(){O(e);let t=q(),n=Pg(12);return t.filter.set(``),k(n.focus())}),Y(6,` Clear filter `),H()()}}function tk(e,t){e&1&&(V(0,`span`,22),Y(1,`active`),H())}function nk(e,t){if(e&1&&(V(0,`span`,22),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`lazy `,e.node.lazy)}}function rk(e,t){if(e&1&&(V(0,`span`,22),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`outlet `,e.node.outlet)}}function ik(e,t){if(e&1&&(V(0,`span`,23)(1,`span`,19),Y(2,`declared in `),H(),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.source)}}function ak(e,t){if(e&1&&(V(0,`span`,24),Y(1,`redirect `),V(2,`span`,28),Y(3,`→`),H(),V(4,`code`),Y(5),H()()),e&2){let e=q().$implicit;j(5),X(e.node.redirectTo)}}function ok(e,t){if(e&1&&Y(0),e&2){let e=q().$implicit;Z(` `,e.node.component??(e.node.lazy===`unloaded`?`lazy, not loaded yet`:e.node.kind),` `)}}function sk(e,t){if(e&1&&(V(0,`span`,22),Y(1),H()),e&2){let e=t.$implicit;j(),X(e)}}function ck(e,t){if(e&1&&(V(0,`span`,22),Y(1),H()),e&2){let e=t.$implicit;j(),Z(`resolve `,e)}}function lk(e,t){e&1&&(V(0,`span`,29),Y(1,`–`),H(),V(2,`span`,19),Y(3,`none`),H())}function uk(e,t){if(e&1&&Y(0),e&2){let e=q().$implicit;Z(` `,e.node.title,` `)}}function dk(e,t){e&1&&(V(0,`span`,29),Y(1,`–`),H(),V(2,`span`,19),Y(3,`none`),H())}function fk(e,t){if(e&1){let e=W();V(0,`input`,31),K(`input`,function(t){let n=O(e).$implicit,r=q(2).$implicit;return k(q(2).setParam(r.node.id,n,t.target.value))}),H()}if(e&2){let e=t.$implicit,n=q(2).$implicit;bg(`placeholder`,e),M(`aria-label`,e+` for `+n.node.fullPath)}}function pk(e,t){if(e&1){let e=W();F(0,fk,1,2,`input`,30,cg),V(2,`button`,5),K(`click`,function(){O(e);let t=q().$implicit;return k(q(2).navigate(t.node))}),Y(3,` Go `),H()}if(e&2){let e=q().$implicit;I(q(2).params(e.node)),j(2),M(`aria-label`,`Navigate to `+e.node.fullPath)}}function mk(e,t){if(e&1){let e=W();V(0,`button`,5),K(`click`,function(){O(e);let t=q().$implicit;return k(q(2).resolveLazy(t.node))}),Y(1,` Read lazy `),H()}if(e&2){let e=q().$implicit;M(`aria-label`,`Read lazy routes of `+e.node.fullPath)}}function hk(e,t){if(e&1&&(V(0,`tr`)(1,`td`,21),Y(2),N(3,tk,2,0,`span`,22),N(4,nk,2,1,`span`,22),N(5,rk,2,1,`span`,22),N(6,ik,4,1,`span`,23),H(),V(7,`td`),N(8,ak,6,1,`span`,24)(9,ok,1,1),H(),V(10,`td`),F(11,sk,2,1,`span`,22,cg),F(13,ck,2,1,`span`,22,cg),N(15,lk,4,0),H(),V(16,`td`),N(17,uk,1,1)(18,dk,4,0),H(),V(19,`td`,25)(20,`div`,26),N(21,pk,4,1),N(22,mk,2,1,`button`,27),H()()()),e&2){let e=t.$implicit,n=q(2);J(`active`,n.isActive(e.node)),j(),t_(`padding-left`,14+e.depth*16,`px`),j(),Z(` `,e.node.fullPath,` `),j(),P(n.isActive(e.node)?3:-1),j(),P(e.node.lazy?4:-1),j(),P(e.node.outlet?5:-1),j(),P(e.source?6:-1),j(2),P(e.node.redirectTo===void 0?9:8),j(3),I(n.guardList(e.node)),j(2),I(e.node.resolvers??R_(14,UO)),j(2),P(!n.guardList(e.node).length&&!e.node.resolvers?.length?15:-1),j(2),P(e.node.title?17:18),j(4),P(n.canNavigate(e.node)?21:-1),j(),P(e.node.kind===`lazy`&&e.node.lazy===`unloaded`?22:-1)}}function gk(e,t){if(e&1&&(V(0,`div`,12)(1,`table`)(2,`thead`)(3,`tr`)(4,`th`,18),Y(5,`Path`),H(),V(6,`th`,18),Y(7,`Target`),H(),V(8,`th`,18),Y(9,`Guards and resolvers`),H(),V(10,`th`,18),Y(11,`Title`),H(),V(12,`th`,18)(13,`span`,19),Y(14,`Actions`),H()()()(),V(15,`tbody`),F(16,hk,23,15,`tr`,20,WO),H()()()),e&2){let e=q();j(16),I(e.rows())}}var _k=class e{page=$.required();rpc=$(null);sources=$([]);filter=A(``);testUrl=A(``);match=A(null);message=A(``);paramValues=new Map;active=Q(()=>new Set(this.page().activeIds??[]));rows=Q(()=>{let e=this.filter().toLowerCase(),t=this.sources(),n=[],r=(i,a)=>{for(let o of i){let i=YE(o,t),s=i&&JE(i);(!e||o.fullPath.toLowerCase().includes(e)||o.component?.toLowerCase().includes(e)||s?.toLowerCase().includes(e))&&n.push({node:o,depth:a,source:s}),o.children&&r(o.children,a+1)}};return r(this.page().config??[],0),n});hasKeys(e){return Object.keys(e).length>0}isActive(e){return this.active().has(e.id)}guardList(e){return Object.entries(e.guards??{}).flatMap(([e,t])=>t.map(t=>`${e} ${t}`))}params(e){return(e.fullPath.match(/:([A-Za-z0-9_]+)/g)??[]).map(e=>e.slice(1))}canNavigate(e){return e.redirectTo===void 0&&!e.outlet&&!e.fullPath.includes(`**`)&&(!!e.component||e.kind===`component`||e.kind===`lazy`)}setParam(e,t,n){this.paramValues.set(e,{...this.paramValues.get(e),[t]:n})}chainText(e){return e.chain.map(e=>e.fullPath).join(` → `)}async predict(){let e=this.testUrl().trim();e&&this.match.set(await XE(this.rpc(),`router-match`,{pageId:this.page().pageId,url:e}))}async probe(){let e=this.testUrl().trim();if(!e)return;this.message.set(`Running the real matcher in the app…`);let t=await ZE(this.rpc(),this.page().pageId,{action:`probe`,url:e});if(!t||t.error){this.message.set(String(t?.error??`Probe failed.`));return}this.message.set(t.matched?`The app recognized ${e} and its canMatch guards passed. The probe stopped before canActivate guards and resolvers, so those did not run. See the probe entry in Navigations.`:`The app could not recognize ${e}: ${String(t.reason??``)}`)}async navigate(e){let t=this.paramValues.get(e.id)??{};this.message.set(`Navigating to ${e.fullPath}…`);let n=await ZE(this.rpc(),this.page().pageId,{action:`navigate`,pattern:e.fullPath,params:t});this.message.set(!n||n.error?String(n?.error??`Navigation failed.`):`Navigation #${n.id}: ${n.outcome}${n.finalUrl?` at ${n.finalUrl}`:``}.`)}async resolveLazy(e){let t=await ZE(this.rpc(),this.page().pageId,{action:`resolve-lazy`,id:e.id});if(!t||t.error){this.message.set(String(t?.error??`Could not read the lazy routes.`));return}let n=t.routes??[];this.message.set(`${e.fullPath} declares ${n.length} route(s): ${n.map(e=>`/${e.path}`).join(`, `)}. The router loads them for real on the first navigation that needs them.`)}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-route-tree`]],inputs:{page:[1,`page`],rpc:[1,`rpc`],sources:[1,`sources`]},decls:17,vars:6,consts:[[`filterInput`,``],[1,`test`,3,`submit`],[`for`,`test-url`],[`id`,`test-url`,`type`,`text`,`placeholder`,`/users/42`,1,`field`,3,`input`,`value`],[`type`,`submit`,1,`small`,`primary`],[`type`,`button`,1,`small`,3,`click`],[`role`,`status`,1,`result`],[`role`,`status`,1,`message`],[1,`filter-row`],[`type`,`text`,`aria-label`,`Filter routes`,`placeholder`,`Filter by path, component or file`,1,`field`,`filter`,3,`input`,`value`],[1,`muted`,`summary`],[1,`empty`],[`role`,`region`,`aria-label`,`Live route config`,`tabindex`,`0`,1,`table-scroll`],[1,`muted`],[`data-tone`,`good`,1,`badge`],[1,`chain`],[`data-tone`,`bad`,1,`badge`],[1,`empty-title`],[`scope`,`col`],[1,`visually-hidden`],[3,`active`],[1,`path`],[1,`tag`],[1,`src`],[1,`redirect`],[1,`actions`],[1,`actions-inner`],[`type`,`button`,1,`small`],[`aria-hidden`,`true`],[`aria-hidden`,`true`,1,`nil`],[`type`,`text`,1,`field`,`param`,3,`placeholder`],[`type`,`text`,1,`field`,`param`,3,`input`,`placeholder`]],template:function(e,t){if(e&1){let e=W();V(0,`form`,1),K(`submit`,function(n){return O(e),n.preventDefault(),k(t.predict())}),V(1,`label`,2),Y(2,`Test a URL`),H(),V(3,`input`,3),K(`input`,function(e){return t.testUrl.set(e.target.value)}),H(),V(4,`button`,4),Y(5,`Predict`),H(),V(6,`button`,5),K(`click`,function(){return t.probe()}),Y(7,`Probe in app`),H()(),N(8,XO,5,2,`div`,6),N(9,ZO,2,1,`p`,7),V(10,`div`,8)(11,`input`,9,0),K(`input`,function(e){return t.filter.set(e.target.value)}),H(),N(13,QO,2,2,`p`,10),H(),N(14,$O,5,2,`div`,11)(15,ek,7,0,`div`,11)(16,gk,18,0,`div`,12)}if(e&2){let e;j(3),bg(`value`,t.testUrl()),j(5),P((e=t.match())?8:-1,e),j(),P(t.message()?9:-1),j(2),bg(`value`,t.filter()),j(2),P(t.page().config?13:-1),j(),P(t.page().config?t.rows().length?16:15:14)}},dependencies:[Py],styles:[`.muted[_ngcontent-%COMP%] { +}`]})},WO=()=>[],GO=(e,t)=>t.node.id;function KO(e,t){if(e&1&&(Y(0,` with `),V(1,`code`),Y(2),U_(3,`json`),H()),e&2){let e=q(2);j(2),X(G_(3,1,e.params))}}function qO(e,t){if(e&1&&(V(0,`span`,14),Y(1,`match`),H(),Y(2,` Matches `),V(3,`code`,15),Y(4),H(),N(5,KO,4,3)),e&2){let e=q(),t=q();j(4),X(t.chainText(e)),j(),P(t.hasKeys(e.params)?5:-1)}}function JO(e,t){if(e&1&&(Y(0,` Nearest: `),V(1,`code`),Y(2),H()),e&2){let e=q(2);j(2),X(e.nearest.join(`, `))}}function YO(e,t){if(e&1&&(V(0,`span`,16),Y(1,`no match`),H(),Y(2,` Matches no route (NG04002). `),N(3,JO,3,1)),e&2){let e=q();j(3),P(e.nearest.length?3:-1)}}function XO(e,t){if(e&1&&(V(0,`div`,13),Y(1),H()),e&2){let e=t.$implicit;j(),X(e)}}function ZO(e,t){if(e&1&&(V(0,`div`,6),N(1,qO,6,2)(2,YO,4,1),F(3,XO,2,1,`div`,13,lg),H()),e&2){let e=t;M(`data-matched`,e.matched),j(),P(e.matched?1:2),j(2),I(e.notes)}}function QO(e,t){if(e&1&&(V(0,`p`,7),Y(1),H()),e&2){let e=q();j(),X(e.message())}}function $O(e,t){if(e&1&&(V(0,`p`,10),Y(1),H()),e&2){let e=q();j(),O_(` Generation `,e.page().generation,` · `,e.rows().length,` route(s). Lazy routes show their children once loaded. `)}}function ek(e,t){if(e&1&&(V(0,`div`,11)(1,`p`,17),Y(2),H(),V(3,`p`,13),Y(4),H()()),e&2){let e=q();j(2),Z(` `,e.page().setup?.mode===`events-only`?`This build has no debug utils, so the live config cannot be read.`:`The page has not reported its route config yet.`,` `),j(2),Z(` `,e.page().setup?.mode===`events-only`?`Run the app with the development build to inspect the live config.`:`It appears once the router initializes. Navigate in the app if it stays empty.`,` `)}}function tk(e,t){if(e&1){let e=W();V(0,`div`,11)(1,`p`,17),Y(2,`No routes match the filter.`),H(),V(3,`p`,13),Y(4,`Try a shorter path or a component name.`),H(),V(5,`button`,5),K(`click`,function(){O(e);let t=q(),n=Fg(12);return t.filter.set(``),k(n.focus())}),Y(6,` Clear filter `),H()()}}function nk(e,t){e&1&&(V(0,`span`,22),Y(1,`active`),H())}function rk(e,t){if(e&1&&(V(0,`span`,22),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`lazy `,e.node.lazy)}}function ik(e,t){if(e&1&&(V(0,`span`,22),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`outlet `,e.node.outlet)}}function ak(e,t){if(e&1&&(V(0,`span`,23)(1,`span`,19),Y(2,`declared in `),H(),Y(3),H()),e&2){let e=q().$implicit;j(3),X(e.source)}}function ok(e,t){if(e&1&&(V(0,`span`,24),Y(1,`redirect `),V(2,`span`,28),Y(3,`→`),H(),V(4,`code`),Y(5),H()()),e&2){let e=q().$implicit;j(5),X(e.node.redirectTo)}}function sk(e,t){if(e&1&&Y(0),e&2){let e=q().$implicit;Z(` `,e.node.component??(e.node.lazy===`unloaded`?`lazy, not loaded yet`:e.node.kind),` `)}}function ck(e,t){if(e&1&&(V(0,`span`,22),Y(1),H()),e&2){let e=t.$implicit;j(),X(e)}}function lk(e,t){if(e&1&&(V(0,`span`,22),Y(1),H()),e&2){let e=t.$implicit;j(),Z(`resolve `,e)}}function uk(e,t){e&1&&(V(0,`span`,29),Y(1,`–`),H(),V(2,`span`,19),Y(3,`none`),H())}function dk(e,t){if(e&1&&Y(0),e&2){let e=q().$implicit;Z(` `,e.node.title,` `)}}function fk(e,t){e&1&&(V(0,`span`,29),Y(1,`–`),H(),V(2,`span`,19),Y(3,`none`),H())}function pk(e,t){if(e&1){let e=W();V(0,`input`,31),K(`input`,function(t){let n=O(e).$implicit,r=q(2).$implicit;return k(q(2).setParam(r.node.id,n,t.target.value))}),H()}if(e&2){let e=t.$implicit,n=q(2).$implicit;xg(`placeholder`,e),M(`aria-label`,e+` for `+n.node.fullPath)}}function mk(e,t){if(e&1){let e=W();F(0,pk,1,2,`input`,30,lg),V(2,`button`,5),K(`click`,function(){O(e);let t=q().$implicit;return k(q(2).navigate(t.node))}),Y(3,` Go `),H()}if(e&2){let e=q().$implicit;I(q(2).params(e.node)),j(2),M(`aria-label`,`Navigate to `+e.node.fullPath)}}function hk(e,t){if(e&1){let e=W();V(0,`button`,5),K(`click`,function(){O(e);let t=q().$implicit;return k(q(2).resolveLazy(t.node))}),Y(1,` Read lazy `),H()}if(e&2){let e=q().$implicit;M(`aria-label`,`Read lazy routes of `+e.node.fullPath)}}function gk(e,t){if(e&1&&(V(0,`tr`)(1,`td`,21),Y(2),N(3,nk,2,0,`span`,22),N(4,rk,2,1,`span`,22),N(5,ik,2,1,`span`,22),N(6,ak,4,1,`span`,23),H(),V(7,`td`),N(8,ok,6,1,`span`,24)(9,sk,1,1),H(),V(10,`td`),F(11,ck,2,1,`span`,22,lg),F(13,lk,2,1,`span`,22,lg),N(15,uk,4,0),H(),V(16,`td`),N(17,dk,1,1)(18,fk,4,0),H(),V(19,`td`,25)(20,`div`,26),N(21,mk,4,1),N(22,hk,2,1,`button`,27),H()()()),e&2){let e=t.$implicit,n=q(2);J(`active`,n.isActive(e.node)),j(),n_(`padding-left`,14+e.depth*16,`px`),j(),Z(` `,e.node.fullPath,` `),j(),P(n.isActive(e.node)?3:-1),j(),P(e.node.lazy?4:-1),j(),P(e.node.outlet?5:-1),j(),P(e.source?6:-1),j(2),P(e.node.redirectTo===void 0?9:8),j(3),I(n.guardList(e.node)),j(2),I(e.node.resolvers??z_(14,WO)),j(2),P(!n.guardList(e.node).length&&!e.node.resolvers?.length?15:-1),j(2),P(e.node.title?17:18),j(4),P(n.canNavigate(e.node)?21:-1),j(),P(e.node.kind===`lazy`&&e.node.lazy===`unloaded`?22:-1)}}function _k(e,t){if(e&1&&(V(0,`div`,12)(1,`table`)(2,`thead`)(3,`tr`)(4,`th`,18),Y(5,`Path`),H(),V(6,`th`,18),Y(7,`Target`),H(),V(8,`th`,18),Y(9,`Guards and resolvers`),H(),V(10,`th`,18),Y(11,`Title`),H(),V(12,`th`,18)(13,`span`,19),Y(14,`Actions`),H()()()(),V(15,`tbody`),F(16,gk,23,15,`tr`,20,GO),H()()()),e&2){let e=q();j(16),I(e.rows())}}var vk=class e{page=$.required();rpc=$(null);sources=$([]);filter=A(``);testUrl=A(``);match=A(null);message=A(``);paramValues=new Map;active=Q(()=>new Set(this.page().activeIds??[]));rows=Q(()=>{let e=this.filter().toLowerCase(),t=this.sources(),n=[],r=(i,a)=>{for(let o of i){let i=XE(o,t),s=i&&YE(i);(!e||o.fullPath.toLowerCase().includes(e)||o.component?.toLowerCase().includes(e)||s?.toLowerCase().includes(e))&&n.push({node:o,depth:a,source:s}),o.children&&r(o.children,a+1)}};return r(this.page().config??[],0),n});hasKeys(e){return Object.keys(e).length>0}isActive(e){return this.active().has(e.id)}guardList(e){return Object.entries(e.guards??{}).flatMap(([e,t])=>t.map(t=>`${e} ${t}`))}params(e){return(e.fullPath.match(/:([A-Za-z0-9_]+)/g)??[]).map(e=>e.slice(1))}canNavigate(e){return e.redirectTo===void 0&&!e.outlet&&!e.fullPath.includes(`**`)&&(!!e.component||e.kind===`component`||e.kind===`lazy`)}setParam(e,t,n){this.paramValues.set(e,{...this.paramValues.get(e),[t]:n})}chainText(e){return e.chain.map(e=>e.fullPath).join(` → `)}async predict(){let e=this.testUrl().trim();e&&this.match.set(await ZE(this.rpc(),`router-match`,{pageId:this.page().pageId,url:e}))}async probe(){let e=this.testUrl().trim();if(!e)return;this.message.set(`Running the real matcher in the app…`);let t=await QE(this.rpc(),this.page().pageId,{action:`probe`,url:e});if(!t||t.error){this.message.set(String(t?.error??`Probe failed.`));return}this.message.set(t.matched?`The app recognized ${e} and its canMatch guards passed. The probe stopped before canActivate guards and resolvers, so those did not run. See the probe entry in Navigations.`:`The app could not recognize ${e}: ${String(t.reason??``)}`)}async navigate(e){let t=this.paramValues.get(e.id)??{};this.message.set(`Navigating to ${e.fullPath}…`);let n=await QE(this.rpc(),this.page().pageId,{action:`navigate`,pattern:e.fullPath,params:t});this.message.set(!n||n.error?String(n?.error??`Navigation failed.`):`Navigation #${n.id}: ${n.outcome}${n.finalUrl?` at ${n.finalUrl}`:``}.`)}async resolveLazy(e){let t=await QE(this.rpc(),this.page().pageId,{action:`resolve-lazy`,id:e.id});if(!t||t.error){this.message.set(String(t?.error??`Could not read the lazy routes.`));return}let n=t.routes??[];this.message.set(`${e.fullPath} declares ${n.length} route(s): ${n.map(e=>`/${e.path}`).join(`, `)}. The router loads them for real on the first navigation that needs them.`)}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-route-tree`]],inputs:{page:[1,`page`],rpc:[1,`rpc`],sources:[1,`sources`]},decls:17,vars:6,consts:[[`filterInput`,``],[1,`test`,3,`submit`],[`for`,`test-url`],[`id`,`test-url`,`type`,`text`,`placeholder`,`/users/42`,1,`field`,3,`input`,`value`],[`type`,`submit`,1,`small`,`primary`],[`type`,`button`,1,`small`,3,`click`],[`role`,`status`,1,`result`],[`role`,`status`,1,`message`],[1,`filter-row`],[`type`,`text`,`aria-label`,`Filter routes`,`placeholder`,`Filter by path, component or file`,1,`field`,`filter`,3,`input`,`value`],[1,`muted`,`summary`],[1,`empty`],[`role`,`region`,`aria-label`,`Live route config`,`tabindex`,`0`,1,`table-scroll`],[1,`muted`],[`data-tone`,`good`,1,`badge`],[1,`chain`],[`data-tone`,`bad`,1,`badge`],[1,`empty-title`],[`scope`,`col`],[1,`visually-hidden`],[3,`active`],[1,`path`],[1,`tag`],[1,`src`],[1,`redirect`],[1,`actions`],[1,`actions-inner`],[`type`,`button`,1,`small`],[`aria-hidden`,`true`],[`aria-hidden`,`true`,1,`nil`],[`type`,`text`,1,`field`,`param`,3,`placeholder`],[`type`,`text`,1,`field`,`param`,3,`input`,`placeholder`]],template:function(e,t){if(e&1){let e=W();V(0,`form`,1),K(`submit`,function(n){return O(e),n.preventDefault(),k(t.predict())}),V(1,`label`,2),Y(2,`Test a URL`),H(),V(3,`input`,3),K(`input`,function(e){return t.testUrl.set(e.target.value)}),H(),V(4,`button`,4),Y(5,`Predict`),H(),V(6,`button`,5),K(`click`,function(){return t.probe()}),Y(7,`Probe in app`),H()(),N(8,ZO,5,2,`div`,6),N(9,QO,2,1,`p`,7),V(10,`div`,8)(11,`input`,9,0),K(`input`,function(e){return t.filter.set(e.target.value)}),H(),N(13,$O,2,2,`p`,10),H(),N(14,ek,5,2,`div`,11)(15,tk,7,0,`div`,11)(16,_k,18,0,`div`,12)}if(e&2){let e;j(3),xg(`value`,t.testUrl()),j(5),P((e=t.match())?8:-1,e),j(),P(t.message()?9:-1),j(2),xg(`value`,t.filter()),j(2),P(t.page().config?13:-1),j(),P(t.page().config?t.rows().length?16:15:14)}},dependencies:[Fy],styles:[`.muted[_ngcontent-%COMP%] { color: var(--%NS%text-2); font-size: 13px; line-height: 1.5; @@ -3108,7 +3108,7 @@ tr.active[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child { .filter[_ngcontent-%COMP%] { flex-basis: 100%; } -}`]})},vk=[`trigger`],yk=[`list`],bk=(e,t)=>t.value;function xk(e,t){if(e&1&&(V(0,`span`,4),Y(1),H()),e&2){let e=q();j(),X(e.current().hint)}}function Sk(e,t){if(e&1&&(V(0,`span`,15),Y(1),H()),e&2){let e=q().$implicit;j(),X(e.hint)}}function Ck(e,t){if(e&1){let e=W();V(0,`li`,11),K(`pointerenter`,function(){let t=O(e).$index;return k(q(2).active.set(t))})(`pointerdown`,function(e){return e.preventDefault()})(`click`,function(){let t=O(e).$index;return k(q(2).choose(t))}),ps(),V(1,`svg`,12),U(2,`path`,13),H(),ms(),V(3,`span`,14),Y(4),H(),N(5,Sk,2,1,`span`,15),H()}if(e&2){let e=t.$implicit,n=t.$index,r=q(2);J(`active`,n===r.active())(`selected`,e.value===r.value()),M(`id`,r.uid+`-opt-`+n)(`aria-selected`,e.value===r.value())(`aria-disabled`,e.disabled||null),j(4),X(e.label),j(),P(e.hint?5:-1)}}function wk(e,t){if(e&1&&(V(0,`li`,10),Y(1),H()),e&2){let e=q(2);j(),X(e.emptyText())}}function Tk(e,t){if(e&1&&(V(0,`ul`,8,1),Yh(`list-in`),F(2,Ck,6,9,`li`,9,bk,!1,wk,2,1,`li`,10),H()),e&2){let e=q();J(`up`,e.dropUp()),M(`id`,e.uid+`-list`)(`aria-labelledby`,e.labelledBy()||e.uid+`-trigger`),j(2),I(e.options())}}var Ek=0,Dk=class e{options=$.required();value=dv(null);placeholder=$(`Select…`);ariaLabel=$(``);labelledBy=$(``);disabled=$(!1);emptyText=$(`Nothing to choose`);uid=`app-select-${++Ek}`;open=A(!1);active=A(-1);dropUp=A(!1);current=Q(()=>this.options().find(e=>e.value===this.value())??null);host=E(Tl);injector=E(Ss);trigger=mv.required(`trigger`);list=mv(`list`);typed=``;typedAt=0;toggle(){this.open()?this.close():this.show()}choose(e){let t=this.options()[e];t&&!t.disabled&&(this.value.set(t.value),this.close(),this.trigger().nativeElement.focus())}onKey(e){let t=this.options(),n=this.open();switch(e.key){case`ArrowDown`:case`ArrowUp`:if(e.preventDefault(),!n){this.show();return}this.move(e.key===`ArrowDown`?1:-1);return;case`Home`:case`End`:if(!n)return;e.preventDefault(),this.setActive(e.key===`Home`?this.firstEnabled(0,1):this.firstEnabled(t.length-1,-1));return;case`Enter`:case` `:e.preventDefault(),n&&this.active()>=0?this.choose(this.active()):this.show();return;case`Escape`:if(!n)return;e.preventDefault(),e.stopPropagation(),this.close();return;case`Tab`:n&&this.close();return;default:e.key.length===1&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&this.typeAhead(e.key)}}onBlur(e){let t=e.relatedTarget;t&&this.host.nativeElement.contains(t)||this.close()}onOutside(e){this.open()&&!this.host.nativeElement.contains(e.target)&&this.close()}show(){if(this.disabled())return;let e=this.host.nativeElement.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.dropUp.set(t<220&&e.top>t);let n=this.options().findIndex(e=>e.value===this.value());this.open.set(!0),this.setActive(n>=0?n:this.firstEnabled(0,1))}close(){this.open.set(!1),this.active.set(-1)}move(e){let t=this.options(),n=this.active();for(let r=0;r=0&&r{(this.list()?.nativeElement.querySelector(`#${this.uid}-opt-${e}`))?.scrollIntoView({block:`nearest`})},{injector:this.injector})}typeAhead(e){let t=performance.now();this.typed=t-this.typedAt>600?e.toLowerCase():this.typed+e.toLowerCase(),this.typedAt=t;let n=this.options().findIndex(e=>!e.disabled&&e.label.toLowerCase().startsWith(this.typed));n<0||(this.open()?this.setActive(n):this.value.set(this.options()[n].value))}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-select`]],viewQuery:function(e,t){e&1&&Mg(t.trigger,vk,5)(t.list,yk,5),e&2&&Ng(2)},hostAttrs:[1,`app-select`],hostVars:2,hostBindings:function(e,t){e&1&&G(`pointerdown`,function(e){return t.onOutside(e)},yu),e&2&&J(`open`,t.open())},inputs:{options:[1,`options`],value:[1,`value`],placeholder:[1,`placeholder`],ariaLabel:[1,`ariaLabel`],labelledBy:[1,`labelledBy`],disabled:[1,`disabled`],emptyText:[1,`emptyText`]},outputs:{value:`valueChange`},decls:8,vars:12,consts:[[`trigger`,``],[`list`,``],[`type`,`button`,`role`,`combobox`,`aria-haspopup`,`listbox`,1,`trigger`,3,`click`,`keydown`,`blur`,`disabled`],[1,`value`],[1,`value-hint`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,1,`chevron`],[`d`,`m6 9 6 6 6-6`],[`role`,`listbox`,`tabindex`,`-1`,1,`list`,3,`up`],[`role`,`listbox`,`tabindex`,`-1`,1,`list`],[`role`,`option`,3,`active`,`selected`],[`role`,`option`,`aria-disabled`,`true`,1,`empty`],[`role`,`option`,3,`pointerenter`,`pointerdown`,`click`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,1,`check`],[`d`,`m5 12 5 5 9-10`],[1,`label`],[1,`hint`]],template:function(e,t){e&1&&(V(0,`button`,2,0),K(`click`,function(){return t.toggle()})(`keydown`,function(e){return t.onKey(e)})(`blur`,function(e){return t.onBlur(e)}),V(2,`span`,3),Y(3),H(),N(4,xk,2,1,`span`,4),ps(),V(5,`svg`,5),U(6,`path`,6),H()(),N(7,Tk,5,5,`ul`,7)),e&2&&(bg(`disabled`,t.disabled()),M(`id`,t.uid+`-trigger`)(`aria-controls`,t.uid+`-list`)(`aria-expanded`,t.open())(`aria-label`,t.ariaLabel()||null)(`aria-labelledby`,t.labelledBy()||null)(`aria-activedescendant`,t.open()&&t.active()>=0?t.uid+`-opt-`+t.active():null),j(2),J(`placeholder`,!t.current()),j(),Z(` `,t.current()?.label??t.placeholder(),` `),j(),P(t.current()?.hint?4:-1),j(3),P(t.open()?7:-1))},styles:[`[_nghost-%COMP%] { +}`]})},yk=[`trigger`],bk=[`list`],xk=(e,t)=>t.value;function Sk(e,t){if(e&1&&(V(0,`span`,4),Y(1),H()),e&2){let e=q();j(),X(e.current().hint)}}function Ck(e,t){if(e&1&&(V(0,`span`,15),Y(1),H()),e&2){let e=q().$implicit;j(),X(e.hint)}}function wk(e,t){if(e&1){let e=W();V(0,`li`,11),K(`pointerenter`,function(){let t=O(e).$index;return k(q(2).active.set(t))})(`pointerdown`,function(e){return e.preventDefault()})(`click`,function(){let t=O(e).$index;return k(q(2).choose(t))}),ps(),V(1,`svg`,12),U(2,`path`,13),H(),ms(),V(3,`span`,14),Y(4),H(),N(5,Ck,2,1,`span`,15),H()}if(e&2){let e=t.$implicit,n=t.$index,r=q(2);J(`active`,n===r.active())(`selected`,e.value===r.value()),M(`id`,r.uid+`-opt-`+n)(`aria-selected`,e.value===r.value())(`aria-disabled`,e.disabled||null),j(4),X(e.label),j(),P(e.hint?5:-1)}}function Tk(e,t){if(e&1&&(V(0,`li`,10),Y(1),H()),e&2){let e=q(2);j(),X(e.emptyText())}}function Ek(e,t){if(e&1&&(V(0,`ul`,8,1),Xh(`list-in`),F(2,wk,6,9,`li`,9,xk,!1,Tk,2,1,`li`,10),H()),e&2){let e=q();J(`up`,e.dropUp()),M(`id`,e.uid+`-list`)(`aria-labelledby`,e.labelledBy()||e.uid+`-trigger`),j(2),I(e.options())}}var Dk=0,Ok=class e{options=$.required();value=fv(null);placeholder=$(`Select…`);ariaLabel=$(``);labelledBy=$(``);disabled=$(!1);emptyText=$(`Nothing to choose`);uid=`app-select-${++Dk}`;open=A(!1);active=A(-1);dropUp=A(!1);current=Q(()=>this.options().find(e=>e.value===this.value())??null);host=E(Tl);injector=E(Ss);trigger=hv.required(`trigger`);list=hv(`list`);typed=``;typedAt=0;toggle(){this.open()?this.close():this.show()}choose(e){let t=this.options()[e];t&&!t.disabled&&(this.value.set(t.value),this.close(),this.trigger().nativeElement.focus())}onKey(e){let t=this.options(),n=this.open();switch(e.key){case`ArrowDown`:case`ArrowUp`:if(e.preventDefault(),!n){this.show();return}this.move(e.key===`ArrowDown`?1:-1);return;case`Home`:case`End`:if(!n)return;e.preventDefault(),this.setActive(e.key===`Home`?this.firstEnabled(0,1):this.firstEnabled(t.length-1,-1));return;case`Enter`:case` `:e.preventDefault(),n&&this.active()>=0?this.choose(this.active()):this.show();return;case`Escape`:if(!n)return;e.preventDefault(),e.stopPropagation(),this.close();return;case`Tab`:n&&this.close();return;default:e.key.length===1&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&this.typeAhead(e.key)}}onBlur(e){let t=e.relatedTarget;t&&this.host.nativeElement.contains(t)||this.close()}onOutside(e){this.open()&&!this.host.nativeElement.contains(e.target)&&this.close()}show(){if(this.disabled())return;let e=this.host.nativeElement.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.dropUp.set(t<220&&e.top>t);let n=this.options().findIndex(e=>e.value===this.value());this.open.set(!0),this.setActive(n>=0?n:this.firstEnabled(0,1))}close(){this.open.set(!1),this.active.set(-1)}move(e){let t=this.options(),n=this.active();for(let r=0;r=0&&r{(this.list()?.nativeElement.querySelector(`#${this.uid}-opt-${e}`))?.scrollIntoView({block:`nearest`})},{injector:this.injector})}typeAhead(e){let t=performance.now();this.typed=t-this.typedAt>600?e.toLowerCase():this.typed+e.toLowerCase(),this.typedAt=t;let n=this.options().findIndex(e=>!e.disabled&&e.label.toLowerCase().startsWith(this.typed));n<0||(this.open()?this.setActive(n):this.value.set(this.options()[n].value))}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-select`]],viewQuery:function(e,t){e&1&&Ng(t.trigger,yk,5)(t.list,bk,5),e&2&&Pg(2)},hostAttrs:[1,`app-select`],hostVars:2,hostBindings:function(e,t){e&1&&G(`pointerdown`,function(e){return t.onOutside(e)},bu),e&2&&J(`open`,t.open())},inputs:{options:[1,`options`],value:[1,`value`],placeholder:[1,`placeholder`],ariaLabel:[1,`ariaLabel`],labelledBy:[1,`labelledBy`],disabled:[1,`disabled`],emptyText:[1,`emptyText`]},outputs:{value:`valueChange`},decls:8,vars:12,consts:[[`trigger`,``],[`list`,``],[`type`,`button`,`role`,`combobox`,`aria-haspopup`,`listbox`,1,`trigger`,3,`click`,`keydown`,`blur`,`disabled`],[1,`value`],[1,`value-hint`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,1,`chevron`],[`d`,`m6 9 6 6 6-6`],[`role`,`listbox`,`tabindex`,`-1`,1,`list`,3,`up`],[`role`,`listbox`,`tabindex`,`-1`,1,`list`],[`role`,`option`,3,`active`,`selected`],[`role`,`option`,`aria-disabled`,`true`,1,`empty`],[`role`,`option`,3,`pointerenter`,`pointerdown`,`click`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,1,`check`],[`d`,`m5 12 5 5 9-10`],[1,`label`],[1,`hint`]],template:function(e,t){e&1&&(V(0,`button`,2,0),K(`click`,function(){return t.toggle()})(`keydown`,function(e){return t.onKey(e)})(`blur`,function(e){return t.onBlur(e)}),V(2,`span`,3),Y(3),H(),N(4,Sk,2,1,`span`,4),ps(),V(5,`svg`,5),U(6,`path`,6),H()(),N(7,Ek,5,5,`ul`,7)),e&2&&(xg(`disabled`,t.disabled()),M(`id`,t.uid+`-trigger`)(`aria-controls`,t.uid+`-list`)(`aria-expanded`,t.open())(`aria-label`,t.ariaLabel()||null)(`aria-labelledby`,t.labelledBy()||null)(`aria-activedescendant`,t.open()&&t.active()>=0?t.uid+`-opt-`+t.active():null),j(2),J(`placeholder`,!t.current()),j(),Z(` `,t.current()?.label??t.placeholder(),` `),j(),P(t.current()?.hint?4:-1),j(3),P(t.open()?7:-1))},styles:[`[_nghost-%COMP%] { position: relative; display: inline-flex; min-width: 0; @@ -3295,7 +3295,7 @@ li.selected[_ngcontent-%COMP%] .check[_ngcontent-%COMP%] { .chevron[_ngcontent-%COMP%] { transition: none; } -}`]})},Ok=(e,t)=>t.id;function kk(e,t){if(e&1){let e=W();R(0,`div`,4)(1,`span`,5),Y(2,`Page`),z(),R(3,`app-select`,6),G(`valueChange`,function(t){return O(e),k(q(2).pageId.set(t))}),z()()}if(e&2){let e=q(),t=q();j(3),L(`options`,t.pageOptions())(`value`,e.pageId)}}function Ak(e,t){e&1&&N(0,kk,4,2,`div`,4),e&2&&P(q().pages().length>1?0:-1)}function jk(e,t){if(e&1){let e=W();R(0,`div`,1)(1,`p`,7),Y(2,`Could not load the live router state.`),z(),R(3,`p`,8),Y(4,` Check that the dev server with ng-devtools is still running, then retry. `),z(),R(5,`button`,9),G(`click`,function(){return O(e),k(q().retry())}),Y(6,`Retry`),z()()}}function Mk(e,t){e&1&&(R(0,`p`,2),Y(1,`Loading the live router state…`),z())}function Nk(e,t){if(e&1&&(R(0,`span`,17),Y(1),z(),R(2,`span`,18),Y(3),z()),e&2){let e=q(3);j(),X(e.problems()),j(2),Z(`, `,e.problems(),` problem navigations`)}}function Pk(e,t){if(e&1){let e=W();R(0,`button`,16),G(`click`,function(){let t=O(e).$implicit;return k(q(2).selected.set(t.id))}),Y(1),N(2,Nk,4,2),z()}if(e&2){let e=t.$implicit,n=q(2);L(`id`,`router-tab-`+e.id),M(`aria-selected`,e.id===n.selected())(`aria-controls`,`router-panel-`+e.id)(`tabindex`,e.id===n.selected()?0:-1),j(),Z(` `,e.label,` `),j(),P(e.id===`navigations`&&n.problems()>0?2:-1)}}function Fk(e,t){if(e&1&&B(0,`app-route-current`,13),e&2){let e=q(),t=q();L(`page`,e)(`rpc`,t.rpc())}}function Ik(e,t){if(e&1&&B(0,`app-route-timeline`,13),e&2){let e=q(),t=q();L(`page`,e)(`rpc`,t.rpc())}}function Lk(e,t){if(e&1&&B(0,`app-route-tree`,14),e&2){let e=q(),t=q();L(`page`,e)(`rpc`,t.rpc())(`sources`,t.sources())}}function Rk(e,t){e&1&&B(0,`app-route-setup`,15),e&2&&L(`page`,q())}function zk(e,t){if(e&1&&B(0,`app-route-lint`,13),e&2){let e=q(),t=q();L(`page`,e)(`rpc`,t.rpc())}}function Bk(e,t){if(e&1){let e=W();R(0,`div`,10),G(`keydown`,function(t){return O(e),k(q().onKey(t))}),F(1,Pk,3,6,`button`,11,Ok),z(),R(3,`div`,12),N(4,Fk,1,2,`app-route-current`,13)(5,Ik,1,2,`app-route-timeline`,13)(6,Lk,1,3,`app-route-tree`,14)(7,Rk,1,1,`app-route-setup`,15)(8,zk,1,2,`app-route-lint`,13),z()}if(e&2){let e,t=q();j(),I(t.tabs),j(2),L(`id`,`router-panel-`+t.selected()),M(`aria-labelledby`,`router-tab-`+t.selected()),j(),P((e=t.selected())===`current`?4:e===`navigations`?5:e===`routes`?6:e===`setup`?7:e===`lint`?8:-1)}}function Vk(e,t){e&1&&(R(0,`div`,3)(1,`p`,7),Y(2,`No page is reporting router state yet.`),z(),R(3,`p`,8),Y(4,` Open the app in a browser. This view updates as soon as a page connects. `),z()())}var Hk=[{id:`current`,label:`Current`},{id:`navigations`,label:`Navigations`},{id:`routes`,label:`Routes`},{id:`setup`,label:`Setup`},{id:`lint`,label:`Lint`}],Uk=class e{rpc=$(null);sources=$([]);tabs=Hk;selected=A(`current`);pages=A([]);hostPageId=oT();loading=A(!0);failed=A(!1);pageId=tv({source:this.pages,computation:(e,t)=>t?.value&&e.some(e=>e.pageId===t.value)?t.value:e.find(e=>e.pageId===this.hostPageId&&e.snapshot)?.pageId??e.find(e=>e.snapshot)?.pageId??e[0]?.pageId??null});unsubscribe=null;destroyRef=E(ws);page=Q(()=>{let e=this.pages();return e.find(e=>e.pageId===this.pageId())??e[0]??null});problems=Q(()=>(this.page()?.navigations??[]).filter(e=>!e.probe&&[`failed`,`cancelled`,`redirected`].includes(e.outcome)).length);constructor(){dc(()=>{let e=this.rpc();e&&this.load(e)}),this.destroyRef.onDestroy(()=>this.unsubscribe?.())}async load(e){this.loading.set(!0),this.failed.set(!1);try{let t=await e.scope(`ng-devtools`).rpc.sharedState(`router`);if(this.destroyRef.destroyed)return;let n=e=>{this.pages.set(e?.pages??[])};n(t.value()),this.unsubscribe?.(),this.unsubscribe=t.on(`updated`,n)}catch{this.failed.set(!0)}finally{this.loading.set(!1)}}retry(){let e=this.rpc();e&&this.load(e)}pageOptions=Q(()=>this.pages().map(e=>({value:e.pageId,label:e.snapshot?.url??e.pageId,hint:e.pageId})));onKey(e){let t=this.tabs.map(e=>e.id),n=t.indexOf(this.selected()),r=n;if(e.key===`ArrowRight`)r=(n+1)%t.length;else if(e.key===`ArrowLeft`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),this.selected.set(t[r]);let i=e.currentTarget;queueMicrotask(()=>i.querySelector(`#router-tab-${t[r]}`)?.focus())}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-live-route`]],inputs:{rpc:[1,`rpc`],sources:[1,`sources`]},decls:8,vars:2,consts:[[1,`section-head`],[`role`,`alert`,1,`empty`],[`role`,`status`,1,`muted`,`empty`],[1,`empty`],[1,`page-pick`],[`id`,`live-route-page-label`,1,`page-label`],[`labelledBy`,`live-route-page-label`,3,`valueChange`,`options`,`value`],[1,`empty-title`],[1,`muted`],[`type`,`button`,1,`retry`,3,`click`],[`role`,`tablist`,`aria-label`,`Router views`,1,`tabs`,3,`keydown`],[`type`,`button`,`role`,`tab`,3,`id`],[`role`,`tabpanel`,1,`panel`,3,`id`],[3,`page`,`rpc`],[3,`page`,`rpc`,`sources`],[3,`page`],[`type`,`button`,`role`,`tab`,3,`click`,`id`],[`aria-hidden`,`true`,1,`count`],[1,`visually-hidden`]],template:function(e,t){if(e&1&&(R(0,`div`,0)(1,`h2`),Y(2,`Live router`),z(),N(3,Ak,1,1),z(),N(4,jk,7,0,`div`,1)(5,Mk,2,0,`p`,2)(6,Bk,9,3)(7,Vk,5,0,`div`,3)),e&2){let e,n;j(3),P((e=t.page())?3:-1,e),j(),P(t.failed()?4:t.loading()?5:(n=t.page())?6:7,n)}},dependencies:[jD,BD,eO,HO,_k,Dk],styles:[`[_nghost-%COMP%] { +}`]})},kk=(e,t)=>t.id;function Ak(e,t){if(e&1){let e=W();R(0,`div`,4)(1,`span`,5),Y(2,`Page`),z(),R(3,`app-select`,6),G(`valueChange`,function(t){return O(e),k(q(2).pageId.set(t))}),z()()}if(e&2){let e=q(),t=q();j(3),L(`options`,t.pageOptions())(`value`,e.pageId)}}function jk(e,t){e&1&&N(0,Ak,4,2,`div`,4),e&2&&P(q().pages().length>1?0:-1)}function Mk(e,t){if(e&1){let e=W();R(0,`div`,1)(1,`p`,7),Y(2,`Could not load the live router state.`),z(),R(3,`p`,8),Y(4,` Check that the dev server with ng-devtools is still running, then retry. `),z(),R(5,`button`,9),G(`click`,function(){return O(e),k(q().retry())}),Y(6,`Retry`),z()()}}function Nk(e,t){e&1&&(R(0,`p`,2),Y(1,`Loading the live router state…`),z())}function Pk(e,t){if(e&1&&(R(0,`span`,17),Y(1),z(),R(2,`span`,18),Y(3),z()),e&2){let e=q(3);j(),X(e.problems()),j(2),Z(`, `,e.problems(),` problem navigations`)}}function Fk(e,t){if(e&1){let e=W();R(0,`button`,16),G(`click`,function(){let t=O(e).$implicit;return k(q(2).selected.set(t.id))}),Y(1),N(2,Pk,4,2),z()}if(e&2){let e=t.$implicit,n=q(2);L(`id`,`router-tab-`+e.id),M(`aria-selected`,e.id===n.selected())(`aria-controls`,`router-panel-`+e.id)(`tabindex`,e.id===n.selected()?0:-1),j(),Z(` `,e.label,` `),j(),P(e.id===`navigations`&&n.problems()>0?2:-1)}}function Ik(e,t){if(e&1&&B(0,`app-route-current`,13),e&2){let e=q(),t=q();L(`page`,e)(`rpc`,t.rpc())}}function Lk(e,t){if(e&1&&B(0,`app-route-timeline`,13),e&2){let e=q(),t=q();L(`page`,e)(`rpc`,t.rpc())}}function Rk(e,t){if(e&1&&B(0,`app-route-tree`,14),e&2){let e=q(),t=q();L(`page`,e)(`rpc`,t.rpc())(`sources`,t.sources())}}function zk(e,t){e&1&&B(0,`app-route-setup`,15),e&2&&L(`page`,q())}function Bk(e,t){if(e&1&&B(0,`app-route-lint`,13),e&2){let e=q(),t=q();L(`page`,e)(`rpc`,t.rpc())}}function Vk(e,t){if(e&1){let e=W();R(0,`div`,10),G(`keydown`,function(t){return O(e),k(q().onKey(t))}),F(1,Fk,3,6,`button`,11,kk),z(),R(3,`div`,12),N(4,Ik,1,2,`app-route-current`,13)(5,Lk,1,2,`app-route-timeline`,13)(6,Rk,1,3,`app-route-tree`,14)(7,zk,1,1,`app-route-setup`,15)(8,Bk,1,2,`app-route-lint`,13),z()}if(e&2){let e,t=q();j(),I(t.tabs),j(2),L(`id`,`router-panel-`+t.selected()),M(`aria-labelledby`,`router-tab-`+t.selected()),j(),P((e=t.selected())===`current`?4:e===`navigations`?5:e===`routes`?6:e===`setup`?7:e===`lint`?8:-1)}}function Hk(e,t){e&1&&(R(0,`div`,3)(1,`p`,7),Y(2,`No page is reporting router state yet.`),z(),R(3,`p`,8),Y(4,` Open the app in a browser. This view updates as soon as a page connects. `),z()())}var Uk=[{id:`current`,label:`Current`},{id:`navigations`,label:`Navigations`},{id:`routes`,label:`Routes`},{id:`setup`,label:`Setup`},{id:`lint`,label:`Lint`}],Wk=class e{rpc=$(null);sources=$([]);tabs=Uk;selected=A(`current`);pages=A([]);hostPageId=sT();loading=A(!0);failed=A(!1);pageId=nv({source:this.pages,computation:(e,t)=>t?.value&&e.some(e=>e.pageId===t.value)?t.value:e.find(e=>e.pageId===this.hostPageId&&e.snapshot)?.pageId??e.find(e=>e.snapshot)?.pageId??e[0]?.pageId??null});unsubscribe=null;destroyRef=E(ws);page=Q(()=>{let e=this.pages();return e.find(e=>e.pageId===this.pageId())??e[0]??null});problems=Q(()=>(this.page()?.navigations??[]).filter(e=>!e.probe&&[`failed`,`cancelled`,`redirected`].includes(e.outcome)).length);constructor(){dc(()=>{let e=this.rpc();e&&this.load(e)}),this.destroyRef.onDestroy(()=>this.unsubscribe?.())}async load(e){this.loading.set(!0),this.failed.set(!1);try{let t=await e.scope(`ng-devtools`).rpc.sharedState(`router`);if(this.destroyRef.destroyed)return;let n=e=>{this.pages.set(e?.pages??[])};n(t.value()),this.unsubscribe?.(),this.unsubscribe=t.on(`updated`,n)}catch{this.failed.set(!0)}finally{this.loading.set(!1)}}retry(){let e=this.rpc();e&&this.load(e)}pageOptions=Q(()=>this.pages().map(e=>({value:e.pageId,label:e.snapshot?.url??e.pageId,hint:e.pageId})));onKey(e){let t=this.tabs.map(e=>e.id),n=t.indexOf(this.selected()),r=n;if(e.key===`ArrowRight`)r=(n+1)%t.length;else if(e.key===`ArrowLeft`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),this.selected.set(t[r]);let i=e.currentTarget;queueMicrotask(()=>i.querySelector(`#router-tab-${t[r]}`)?.focus())}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-live-route`]],inputs:{rpc:[1,`rpc`],sources:[1,`sources`]},decls:8,vars:2,consts:[[1,`section-head`],[`role`,`alert`,1,`empty`],[`role`,`status`,1,`muted`,`empty`],[1,`empty`],[1,`page-pick`],[`id`,`live-route-page-label`,1,`page-label`],[`labelledBy`,`live-route-page-label`,3,`valueChange`,`options`,`value`],[1,`empty-title`],[1,`muted`],[`type`,`button`,1,`retry`,3,`click`],[`role`,`tablist`,`aria-label`,`Router views`,1,`tabs`,3,`keydown`],[`type`,`button`,`role`,`tab`,3,`id`],[`role`,`tabpanel`,1,`panel`,3,`id`],[3,`page`,`rpc`],[3,`page`,`rpc`,`sources`],[3,`page`],[`type`,`button`,`role`,`tab`,3,`click`,`id`],[`aria-hidden`,`true`,1,`count`],[1,`visually-hidden`]],template:function(e,t){if(e&1&&(R(0,`div`,0)(1,`h2`),Y(2,`Live router`),z(),N(3,jk,1,1),z(),N(4,Mk,7,0,`div`,1)(5,Nk,2,0,`p`,2)(6,Vk,9,3)(7,Hk,5,0,`div`,3)),e&2){let e,n;j(3),P((e=t.page())?3:-1,e),j(),P(t.failed()?4:t.loading()?5:(n=t.page())?6:7,n)}},dependencies:[MD,VD,tO,UO,vk,Ok],styles:[`[_nghost-%COMP%] { display: grid; gap: 16px; min-width: 0; @@ -3460,7 +3460,7 @@ h2[_ngcontent-%COMP%] { line-height: 16px; text-align: center; font-variant-numeric: tabular-nums; -}`]})};function Wk(e,t){e&1&&Y(0,` The Routes tab above shows what the router uses. `)}function Gk(e,t){if(e&1){let e=W();R(0,`button`,13),G(`click`,function(){O(e);let t=q();return k(t.expanded.set(!t.expanded()))}),Y(1),z()}if(e&2){let e=q();M(`aria-expanded`,e.expanded()),j(),Z(` `,e.expanded()?`Hide table`:`Show table`,` `)}}function Kk(e,t){e&1&&(R(0,`div`,11)(1,`p`,14),Y(2,`Could not scan the route files.`),z(),R(3,`p`,15),Y(4,`Check that the dev server is running, then refresh.`),z()())}function qk(e,t){e&1&&(R(0,`p`,12),Y(1,`Scanning routes…`),z())}function Jk(e,t){if(e&1){let e=W();R(0,`div`,16)(1,`p`,14),Y(2,`No routes match the filter.`),z(),R(3,`p`,15),Y(4,`Search by path, component, guard, title or file name.`),z(),R(5,`button`,10),G(`click`,function(){O(e);let t=q(2),n=Pg(12);return t.filter.set(``),k(n.focus())}),Y(6,` Clear filter `),z()()}}function Yk(e,t){e&1&&(R(0,`div`,16)(1,`p`,14),Y(2,`No routes found.`),z(),R(3,`p`,15),Y(4,` Routes are read from `),R(5,`code`),Y(6,`*.routes.ts`),z(),Y(7,` and `),R(8,`code`),Y(9,`*routing.module.ts`),z(),Y(10,` files, the files they lazy load, plus Analog pages. Add one and refresh. `),z()())}function Xk(e,t){e&1&&N(0,Jk,7,0,`div`,16)(1,Yk,11,0,`div`,16),e&2&&P(+!q().routes().length)}function Zk(e,t){if(e&1&&(R(0,`span`,21),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.kind)}}function Qk(e,t){if(e&1&&(R(0,`span`,22)(1,`span`,25),Y(2,`→`),z(),R(3,`span`,26),Y(4,`redirects to`),z(),Y(5),z()),e&2){let e=q().$implicit;j(5),Z(` `,e.redirectTo)}}function $k(e,t){if(e&1&&(R(0,`code`,23),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.component)}}function eA(e,t){e&1&&(R(0,`span`,27),Y(1,`–`),z(),R(2,`span`,26),Y(3,`none`),z())}function tA(e,t){if(e&1&&(R(0,`span`,21),Y(1),z()),e&2){let e=t.$implicit;j(),X(e)}}function nA(e,t){e&1&&(R(0,`span`,27),Y(1,`–`),z(),R(2,`span`,26),Y(3,`none`),z())}function rA(e,t){if(e&1&&Y(0),e&2){let e=q().$implicit;Z(` `,e.title,` `)}}function iA(e,t){e&1&&(R(0,`span`,27),Y(1,`–`),z(),R(2,`span`,26),Y(3,`none`),z())}function aA(e,t){if(e&1&&(R(0,`tr`)(1,`td`,20),Y(2),N(3,Zk,2,1,`span`,21),z(),R(4,`td`),N(5,Qk,6,1,`span`,22)(6,$k,2,1,`code`,23)(7,eA,4,0),z(),R(8,`td`),F(9,tA,2,1,`span`,21,sg,!1,nA,4,0),z(),R(12,`td`),N(13,rA,1,1)(14,iA,4,0),z(),R(15,`td`,24),Y(16),z()()),e&2){let e=t.$implicit,n=q(2);j(2),Z(` `,e.fullPath,` `),j(),P(e.kind===`page`?-1:3),j(2),P(e.redirectTo===void 0?e.component?6:7:5),j(4),I(n.checks(e)),j(4),P(e.title?13:14),j(3),X(n.location(e))}}function oA(e,t){if(e&1&&(R(0,`p`,17),Y(1),z(),R(2,`div`,18)(3,`table`)(4,`thead`)(5,`tr`)(6,`th`,19),Y(7,`Path`),z(),R(8,`th`,19),Y(9,`Component / Target`),z(),R(10,`th`,19),Y(11,`Guards and resolvers`),z(),R(12,`th`,19),Y(13,`Title`),z(),R(14,`th`,19),Y(15,`Declared in`),z()()(),R(16,`tbody`),F(17,aA,17,6,`tr`,null,sg),z()()()),e&2){let e=q();j(),O_(` `,e.filtered().length,` of `,e.routes().length,` route entries, `,e.navigable(),` navigable `),j(16),I(e.filtered())}}var sA=class e{rpc=$(null);routes=A([]);filter=A(``);loading=A(!1);error=A(!1);live=mv(Uk);liveHasConfig=Q(()=>!!this.live()?.page()?.config);expanded=tv(()=>!this.liveHasConfig());navigable=Q(()=>this.filtered().filter(e=>e.kind===`page`).length);filtered=Q(()=>{let e=this.filter().toLowerCase().trim(),t=this.routes();return e?t.filter(t=>t.fullPath.toLowerCase().includes(e)||t.component&&t.component.toLowerCase().includes(e)||t.redirectTo&&t.redirectTo.toLowerCase().includes(e)||t.title&&t.title.toLowerCase().includes(e)||this.checks(t).some(t=>t.toLowerCase().includes(e))||t.file.toLowerCase().includes(e)):t});constructor(){dc(()=>{this.rpc()&&this.refresh()})}checks(e){return[...Object.entries(e.guards??{}).flatMap(([e,t])=>t.map(t=>`${e} ${t}`)),...(e.resolvers??[]).map(e=>`resolve ${e}`)]}location(e){return JE(e)}onFilterInput(e){let t=e.target;this.filter.set(t?.value??``)}async refresh(){let e=this.rpc();if(e){this.loading.set(!0),this.error.set(!1);try{let t=await e.scope(`ng-devtools`).rpc.call(`get-routes`);this.routes.set(t)}catch{this.error.set(!0)}finally{this.loading.set(!1)}}}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-route-inspector`]],viewQuery:function(e,t){e&1&&Mg(t.live,Uk,5),e&2&&Ng()},inputs:{rpc:[1,`rpc`]},decls:19,vars:9,consts:[[`filterInput`,``],[3,`rpc`,`sources`],[`aria-labelledby`,`config-heading`,1,`config`],[1,`section-head`],[`id`,`config-heading`],[1,`muted`,`hint`],[`type`,`button`,`aria-controls`,`config-body`,1,`small`,`toggle`],[`id`,`config-body`,1,`config-body`,3,`hidden`],[1,`toolbar`],[`type`,`text`,`aria-label`,`Filter source routes`,`placeholder`,`Filter routes…`,1,`field`,3,`input`,`value`],[`type`,`button`,1,`small`,3,`click`],[`role`,`alert`,1,`empty`],[`role`,`status`,1,`muted`,`empty`],[`type`,`button`,`aria-controls`,`config-body`,1,`small`,`toggle`,3,`click`],[1,`empty-title`],[1,`muted`],[1,`empty`],[1,`muted`,`count`],[`role`,`region`,`aria-label`,`Source route config`,`tabindex`,`0`,1,`table-scroll`],[`scope`,`col`],[1,`path`],[1,`tag`],[1,`redirect`],[1,`component`],[1,`file`],[`aria-hidden`,`true`],[1,`visually-hidden`],[`aria-hidden`,`true`,1,`nil`]],template:function(e,t){e&1&&(B(0,`app-live-route`,1),R(1,`section`,2)(2,`div`,3)(3,`h2`,4),Y(4,`Source route config`),z(),R(5,`span`,5),Y(6,` Read from your source files. `),N(7,Wk,1,0),z(),N(8,Gk,2,2,`button`,6),z(),R(9,`div`,7)(10,`div`,8)(11,`input`,9,0),G(`input`,function(e){return t.onFilterInput(e)}),z(),R(13,`button`,10),G(`click`,function(){return t.refresh()}),Y(14),z()(),N(15,Kk,5,0,`div`,11)(16,qk,2,0,`p`,12)(17,Xk,2,1)(18,oA,19,3),z()()),e&2&&(L(`rpc`,t.rpc())(`sources`,t.routes()),j(7),P(t.liveHasConfig()?7:-1),j(),P(t.liveHasConfig()?8:-1),j(),L(`hidden`,!t.expanded()),j(2),L(`value`,t.filter()),j(2),M(`aria-busy`,t.loading()),j(),Z(` `,t.loading()?`Scanning…`:`Refresh`,` `),j(),P(t.error()?15:t.loading()&&t.routes().length===0?16:t.filtered().length===0?17:18))},dependencies:[Uk],styles:[`.muted[_ngcontent-%COMP%] { +}`]})};function Gk(e,t){e&1&&Y(0,` The Routes tab above shows what the router uses. `)}function Kk(e,t){if(e&1){let e=W();R(0,`button`,13),G(`click`,function(){O(e);let t=q();return k(t.expanded.set(!t.expanded()))}),Y(1),z()}if(e&2){let e=q();M(`aria-expanded`,e.expanded()),j(),Z(` `,e.expanded()?`Hide table`:`Show table`,` `)}}function qk(e,t){e&1&&(R(0,`div`,11)(1,`p`,14),Y(2,`Could not scan the route files.`),z(),R(3,`p`,15),Y(4,`Check that the dev server is running, then refresh.`),z()())}function Jk(e,t){e&1&&(R(0,`p`,12),Y(1,`Scanning routes…`),z())}function Yk(e,t){if(e&1){let e=W();R(0,`div`,16)(1,`p`,14),Y(2,`No routes match the filter.`),z(),R(3,`p`,15),Y(4,`Search by path, component, guard, title or file name.`),z(),R(5,`button`,10),G(`click`,function(){O(e);let t=q(2),n=Fg(12);return t.filter.set(``),k(n.focus())}),Y(6,` Clear filter `),z()()}}function Xk(e,t){e&1&&(R(0,`div`,16)(1,`p`,14),Y(2,`No routes found.`),z(),R(3,`p`,15),Y(4,` Routes are read from `),R(5,`code`),Y(6,`*.routes.ts`),z(),Y(7,` and `),R(8,`code`),Y(9,`*routing.module.ts`),z(),Y(10,` files, the files they lazy load, plus Analog pages. Add one and refresh. `),z()())}function Zk(e,t){e&1&&N(0,Yk,7,0,`div`,16)(1,Xk,11,0,`div`,16),e&2&&P(+!q().routes().length)}function Qk(e,t){if(e&1&&(R(0,`span`,21),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.kind)}}function $k(e,t){if(e&1&&(R(0,`span`,22)(1,`span`,25),Y(2,`→`),z(),R(3,`span`,26),Y(4,`redirects to`),z(),Y(5),z()),e&2){let e=q().$implicit;j(5),Z(` `,e.redirectTo)}}function eA(e,t){if(e&1&&(R(0,`code`,23),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.component)}}function tA(e,t){e&1&&(R(0,`span`,27),Y(1,`–`),z(),R(2,`span`,26),Y(3,`none`),z())}function nA(e,t){if(e&1&&(R(0,`span`,21),Y(1),z()),e&2){let e=t.$implicit;j(),X(e)}}function rA(e,t){e&1&&(R(0,`span`,27),Y(1,`–`),z(),R(2,`span`,26),Y(3,`none`),z())}function iA(e,t){if(e&1&&Y(0),e&2){let e=q().$implicit;Z(` `,e.title,` `)}}function aA(e,t){e&1&&(R(0,`span`,27),Y(1,`–`),z(),R(2,`span`,26),Y(3,`none`),z())}function oA(e,t){if(e&1&&(R(0,`tr`)(1,`td`,20),Y(2),N(3,Qk,2,1,`span`,21),z(),R(4,`td`),N(5,$k,6,1,`span`,22)(6,eA,2,1,`code`,23)(7,tA,4,0),z(),R(8,`td`),F(9,nA,2,1,`span`,21,cg,!1,rA,4,0),z(),R(12,`td`),N(13,iA,1,1)(14,aA,4,0),z(),R(15,`td`,24),Y(16),z()()),e&2){let e=t.$implicit,n=q(2);j(2),Z(` `,e.fullPath,` `),j(),P(e.kind===`page`?-1:3),j(2),P(e.redirectTo===void 0?e.component?6:7:5),j(4),I(n.checks(e)),j(4),P(e.title?13:14),j(3),X(n.location(e))}}function sA(e,t){if(e&1&&(R(0,`p`,17),Y(1),z(),R(2,`div`,18)(3,`table`)(4,`thead`)(5,`tr`)(6,`th`,19),Y(7,`Path`),z(),R(8,`th`,19),Y(9,`Component / Target`),z(),R(10,`th`,19),Y(11,`Guards and resolvers`),z(),R(12,`th`,19),Y(13,`Title`),z(),R(14,`th`,19),Y(15,`Declared in`),z()()(),R(16,`tbody`),F(17,oA,17,6,`tr`,null,cg),z()()()),e&2){let e=q();j(),k_(` `,e.filtered().length,` of `,e.routes().length,` route entries, `,e.navigable(),` navigable `),j(16),I(e.filtered())}}var cA=class e{rpc=$(null);routes=A([]);filter=A(``);loading=A(!1);error=A(!1);live=hv(Wk);liveHasConfig=Q(()=>!!this.live()?.page()?.config);expanded=nv(()=>!this.liveHasConfig());navigable=Q(()=>this.filtered().filter(e=>e.kind===`page`).length);filtered=Q(()=>{let e=this.filter().toLowerCase().trim(),t=this.routes();return e?t.filter(t=>t.fullPath.toLowerCase().includes(e)||t.component&&t.component.toLowerCase().includes(e)||t.redirectTo&&t.redirectTo.toLowerCase().includes(e)||t.title&&t.title.toLowerCase().includes(e)||this.checks(t).some(t=>t.toLowerCase().includes(e))||t.file.toLowerCase().includes(e)):t});constructor(){dc(()=>{this.rpc()&&this.refresh()})}checks(e){return[...Object.entries(e.guards??{}).flatMap(([e,t])=>t.map(t=>`${e} ${t}`)),...(e.resolvers??[]).map(e=>`resolve ${e}`)]}location(e){return YE(e)}onFilterInput(e){let t=e.target;this.filter.set(t?.value??``)}async refresh(){let e=this.rpc();if(e){this.loading.set(!0),this.error.set(!1);try{let t=await e.scope(`ng-devtools`).rpc.call(`get-routes`);this.routes.set(t)}catch{this.error.set(!0)}finally{this.loading.set(!1)}}}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-route-inspector`]],viewQuery:function(e,t){e&1&&Ng(t.live,Wk,5),e&2&&Pg()},inputs:{rpc:[1,`rpc`]},decls:19,vars:9,consts:[[`filterInput`,``],[3,`rpc`,`sources`],[`aria-labelledby`,`config-heading`,1,`config`],[1,`section-head`],[`id`,`config-heading`],[1,`muted`,`hint`],[`type`,`button`,`aria-controls`,`config-body`,1,`small`,`toggle`],[`id`,`config-body`,1,`config-body`,3,`hidden`],[1,`toolbar`],[`type`,`text`,`aria-label`,`Filter source routes`,`placeholder`,`Filter routes…`,1,`field`,3,`input`,`value`],[`type`,`button`,1,`small`,3,`click`],[`role`,`alert`,1,`empty`],[`role`,`status`,1,`muted`,`empty`],[`type`,`button`,`aria-controls`,`config-body`,1,`small`,`toggle`,3,`click`],[1,`empty-title`],[1,`muted`],[1,`empty`],[1,`muted`,`count`],[`role`,`region`,`aria-label`,`Source route config`,`tabindex`,`0`,1,`table-scroll`],[`scope`,`col`],[1,`path`],[1,`tag`],[1,`redirect`],[1,`component`],[1,`file`],[`aria-hidden`,`true`],[1,`visually-hidden`],[`aria-hidden`,`true`,1,`nil`]],template:function(e,t){e&1&&(B(0,`app-live-route`,1),R(1,`section`,2)(2,`div`,3)(3,`h2`,4),Y(4,`Source route config`),z(),R(5,`span`,5),Y(6,` Read from your source files. `),N(7,Gk,1,0),z(),N(8,Kk,2,2,`button`,6),z(),R(9,`div`,7)(10,`div`,8)(11,`input`,9,0),G(`input`,function(e){return t.onFilterInput(e)}),z(),R(13,`button`,10),G(`click`,function(){return t.refresh()}),Y(14),z()(),N(15,qk,5,0,`div`,11)(16,Jk,2,0,`p`,12)(17,Zk,2,1)(18,sA,19,3),z()()),e&2&&(L(`rpc`,t.rpc())(`sources`,t.routes()),j(7),P(t.liveHasConfig()?7:-1),j(),P(t.liveHasConfig()?8:-1),j(),L(`hidden`,!t.expanded()),j(2),L(`value`,t.filter()),j(2),M(`aria-busy`,t.loading()),j(),Z(` `,t.loading()?`Scanning…`:`Refresh`,` `),j(),P(t.error()?15:t.loading()&&t.routes().length===0?16:t.filtered().length===0?17:18))},dependencies:[Wk],styles:[`.muted[_ngcontent-%COMP%] { color: var(--%NS%text-2); font-size: 13px; line-height: 1.5; @@ -3841,7 +3841,7 @@ h2[_ngcontent-%COMP%] { font-family: var(--%NS%font-mono); font-size: 12px; overflow-wrap: anywhere; -}`]})},cA=(e,t)=>t.kind,lA=(e,t)=>t.name+t.file+t.line,uA=(e,t)=>t.id,dA=(e,t)=>t.epoch;function fA(e,t){if(e&1){let e=W();R(0,`div`,2)(1,`span`,8),Y(2,`Component`),z(),R(3,`app-select`,9),G(`valueChange`,function(t){return O(e),k(q().pickComponent(t))}),z()()}if(e&2){let e=q();j(3),L(`options`,e.componentOptions())(`value`,e.pickerValue())}}function pA(e,t){if(e&1&&(R(0,`span`,13),Y(1),z()),e&2){let e=q(2);j(),X(e.sourceNote(e.graph().source))}}function mA(e,t){e&1&&(R(0,`p`,14),Y(1,` The picked component is gone or has no signal graph, so this shows another one. `),z())}function hA(e,t){if(e&1&&(R(0,`p`,10)(1,`span`,11),Y(2),z(),R(3,`span`,12),Y(4),z(),N(5,pA,2,1,`span`,13),z(),N(6,mA,2,0,`p`,14)),e&2){let e=t,n=q();j(2),X(e.name),j(2),X(e.path),j(),P(n.graph().source?5:-1),j(),P(n.picked()&&n.graph().source!==`selected`?6:-1)}}function gA(e,t){e&1&&Y(0,` The live signal graph of one component. Only signals that its template or an effect has read appear here; a signal nothing has read yet is not part of the graph. Pick a kind to filter. `)}function _A(e,t){e&1&&Y(0,` Every signal, computed and effect found in your source. Pick a kind to filter. `)}function vA(e,t){if(e&1){let e=W();R(0,`button`,15),G(`click`,function(){let t=O(e).$implicit,n=q(2);return k(n.kind.set(n.kind()===t.kind?null:t.kind))}),B(1,`span`,18),R(2,`span`,19),Y(3),z(),R(4,`span`,16),Y(5),z()()}if(e&2){let e=t.$implicit,n=q(2);J(`active`,n.kind()===e.kind),M(`aria-pressed`,n.kind()===e.kind),j(),t_(`background`,n.kindColor(e.kind)),j(2),X(e.kind),j(2),X(e.count)}}function yA(e,t){if(e&1){let e=W();R(0,`div`,4)(1,`button`,15),G(`click`,function(){return O(e),k(q().kind.set(null))}),Y(2,` All `),R(3,`span`,16),Y(4),z()(),F(5,vA,6,7,`button`,17,cA),z()}if(e&2){let e=q();j(),J(`active`,!e.kind()),M(`aria-pressed`,!e.kind()),j(3),X(e.kindTotal()),j(),I(e.kindCounts())}}function bA(e,t){e&1&&(R(0,`div`,5),B(1,`span`,20),R(2,`p`,21),Y(3,`Scanning source for signals…`),z()())}function xA(e,t){e&1&&(R(0,`div`,6)(1,`p`,21),Y(2,`No signals found.`),z(),R(3,`p`,22),Y(4,` No `),R(5,`code`),Y(6,`signal()`),z(),Y(7,`, `),R(8,`code`),Y(9,`computed()`),z(),Y(10,` or `),R(11,`code`),Y(12,`effect()`),z(),Y(13,` calls were found in your source. To see the live graph, run Angular 19+ with the overlay connected and select a component. `),z()())}function SA(e,t){if(e&1&&(R(0,`span`,32),Y(1,`·`),z(),R(2,`span`),Y(3),z()),e&2){let e=q().$implicit;j(3),Z(`in <`,e.component,`>`)}}function CA(e,t){if(e&1&&(R(0,`div`,25)(1,`div`,27)(2,`span`,28),Y(3),z(),R(4,`span`,29),Y(5),z()(),R(6,`div`,30)(7,`span`,31),Y(8),z(),N(9,SA,4,1),z()()),e&2){let e=t.$implicit,n=q(2);j(2),t_(`background`,n.kindColor(e.kind)),j(),X(e.kind),j(2),X(e.name),j(2),L(`title`,e.file+`:`+e.line),j(),D_(``,e.file,`:`,e.line),j(),P(e.component?9:-1)}}function wA(e,t){if(e&1){let e=W();R(0,`div`,26)(1,`p`,21),Y(2,`No signals match.`),z(),R(3,`p`,22),Y(4,`Try a different name or kind.`),z(),R(5,`button`,33),G(`click`,function(){return O(e),k(q(2).clearFilters())}),Y(6,`Clear filters`),z()()}}function TA(e,t){if(e&1&&(R(0,`p`,23),Y(1,`Signals from source scan (static analysis):`),z(),R(2,`div`,24),F(3,CA,10,8,`div`,25,lA,!1,wA,7,0,`div`,26),z()),e&2){let e=q();j(3),I(e.filteredSourceSignals())}}function EA(e,t){if(e&1&&(R(0,`span`,36),Y(1),z()),e&2){let e=t;j(),D_(``,e,` `,e===1?`change`:`changes`)}}function DA(e,t){if(e&1&&(R(0,`span`,38),Y(1),H_(2,`json`),z()),e&2){let e=q().$implicit;j(),X(W_(2,1,e.value))}}function OA(e,t){if(e&1&&(R(0,`span`,32),Y(1,`·`),z(),R(2,`span`),Y(3),z()),e&2){let e=q().$implicit,t=q(2);j(3),Z(`Deps: `,t.getDependencies(e).length)}}function kA(e,t){if(e&1&&(R(0,`span`,32),Y(1,`·`),z(),R(2,`span`),Y(3),z()),e&2){let e=q().$implicit,t=q(2);j(3),Z(`Consumers: `,t.getConsumers(e).length)}}function AA(e,t){if(e&1&&(R(0,`dt`),Y(1,`Value`),z(),R(2,`dd`)(3,`pre`),Y(4),H_(5,`json`),z()()),e&2){let e=q(4);j(4),X(W_(5,1,e.selectedNode().value))}}function jA(e,t){if(e&1&&(R(0,`li`)(1,`span`,40),Y(2),z(),R(3,`span`,41),Y(4),z()()),e&2){let e=t.$implicit,n=q(5);j(),t_(`background`,n.kindColor(e.kind)),j(),X(e.kind),j(2),X(e.label??e.id)}}function MA(e,t){if(e&1&&(R(0,`h3`),Y(1,`Dependencies (producers)`),z(),R(2,`ul`),F(3,jA,5,4,`li`,null,uA),z()),e&2){let e=q(4);j(3),I(e.getDependencies(e.selectedNode()))}}function NA(e,t){if(e&1&&(R(0,`li`)(1,`span`,40),Y(2),z(),R(3,`span`,41),Y(4),z()()),e&2){let e=t.$implicit,n=q(5);j(),t_(`background`,n.kindColor(e.kind)),j(),X(e.kind),j(2),X(e.label??e.id)}}function PA(e,t){if(e&1&&(R(0,`h3`),Y(1,`Consumers`),z(),R(2,`ul`),F(3,NA,5,4,`li`,null,uA),z()),e&2){let e=q(4);j(3),I(e.getConsumers(e.selectedNode()))}}function FA(e,t){if(e&1&&(R(0,`span`,47),Y(1),z()),e&2){let e=q().$implicit;j(),Z(``,e.missed,` earlier not captured`)}}function IA(e,t){if(e&1&&(R(0,`li`)(1,`span`,45)(2,`time`),Y(3),H_(4,`date`),z(),R(5,`span`,46),Y(6),z(),R(7,`span`),Y(8),z(),N(9,FA,2,1,`span`,47),z(),R(10,`pre`),Y(11),H_(12,`json`),z()()),e&2){let e=t.$implicit,n=q(5);j(3),X(G_(4,7,e.at,`HH:mm:ss.SSS`)),j(2),n_(`source-`+e.source),j(),X(n.sourceLabel(e.source)),j(2),Z(`epoch `,e.epoch),j(),P(e.missed?9:-1),j(2),X(W_(12,10,e.value))}}function LA(e,t){if(e&1&&(R(0,`h3`,42),Y(1,`Value history`),z(),R(2,`p`,43),Y(3),z(),R(4,`ol`,44),F(5,IA,13,12,`li`,null,dA),z()),e&2){let e=q(4);j(3),Z(` `,e.changeCount(e.selectedNode().id),` changes recorded, newest first. `),j(2),I(e.selectedHistory())}}function RA(e,t){if(e&1&&(R(0,`div`,39)(1,`h2`),Y(2),z(),R(3,`dl`)(4,`dt`),Y(5,`Kind`),z(),R(6,`dd`),Y(7),z(),R(8,`dt`),Y(9,`Epoch`),z(),R(10,`dd`),Y(11),z(),N(12,AA,6,3),z(),N(13,MA,5,0),N(14,PA,5,0),N(15,LA,7,1),z()),e&2){let e=q().$implicit,t=q(2);L(`id`,`signal-detail-`+e.id),j(2),X(t.selectedNode().label??t.selectedNode().id),j(5),X(t.selectedNode().kind),j(4),X(t.selectedNode().epoch),j(),P(t.selectedNode().value===void 0?-1:12),j(),P(t.getDependencies(t.selectedNode()).length?13:-1),j(),P(t.getConsumers(t.selectedNode()).length?14:-1),j(),P(t.selectedHistory().length?15:-1)}}function zA(e,t){if(e&1){let e=W();R(0,`li`)(1,`button`,35),G(`click`,function(){let t=O(e).$implicit;return k(q(2).selectNode(t))}),R(2,`span`,27)(3,`span`,28),Y(4),z(),R(5,`span`,29),Y(6),z(),N(7,EA,2,2,`span`,36),B(8,`span`,37),z(),N(9,DA,3,3,`span`,38),R(10,`span`,30)(11,`span`),Y(12),z(),N(13,OA,4,1),N(14,kA,4,1),z()(),N(15,RA,16,8,`div`,39),z()}if(e&2){let e,n=t.$implicit,r=q(2);j(),J(`selected`,r.selectedId()===n.id),M(`aria-expanded`,r.selectedId()===n.id)(`aria-controls`,`signal-detail-`+n.id),j(2),t_(`background`,r.kindColor(n.kind)),j(),X(n.kind),j(2),X(n.label??`(unnamed)`),j(),P((e=r.changeCount(n.id))?7:-1,e),j(2),P(n.value===void 0?-1:9),j(3),Z(`Epoch: `,n.epoch),j(),P(r.getDependencies(n).length?13:-1),j(),P(r.getConsumers(n).length?14:-1),j(),P(r.selectedId()===n.id&&r.selectedNode()?15:-1)}}function BA(e,t){if(e&1){let e=W();R(0,`button`,33),G(`click`,function(){return O(e),k(q(3).clearFilters())}),Y(1,`Clear filters`),z()}}function VA(e,t){if(e&1&&(R(0,`li`,34)(1,`p`,21),Y(2),z(),R(3,`p`,22),Y(4),z(),N(5,BA,2,0,`button`,48),z()),e&2){let e=q(2);j(2),Z(` `,e.graph().nodes.length?`No signals match.`:`No signals in this component.`,` `),j(2),Z(` `,e.graph().nodes.length?`Try a different name or kind.`:`Select a component that reads signals, or interact with the page to create some.`,` `),j(),P(e.graph().nodes.length?5:-1)}}function HA(e,t){if(e&1&&(R(0,`ul`,7),F(1,zA,16,14,`li`,null,uA,!1,VA,6,3,`li`,34),z()),e&2){let e=q();j(),I(e.filteredNodes())}}var UA=`follow`,WA={selected:`picked`,routed:`rendered by the router`,root:`first component with signals`},GA={write:`set`,sample:`sampled`,initial:`initial`},KA={signal:`#facc15`,computed:`#60a5fa`,linkedSignal:`#34d399`,effect:`#fb923c`,template:`#94a3b8`,afterRenderEffectPhase:`#f472b6`,childSignalProp:`#fef08a`,"input (signal)":`#f59e0b`,"input.required (signal)":`#f59e0b`,"output (signal)":`#ec4899`,"model (signal)":`#14b8a6`,"model.required (signal)":`#14b8a6`,"viewChild (signal)":`#a3e635`,"viewChild.required (signal)":`#a3e635`,"viewChildren (signal)":`#a3e635`,"contentChild (signal)":`#fda4af`,"contentChild.required (signal)":`#fda4af`,"contentChildren (signal)":`#fda4af`,resource:`#06b6d4`,unknown:`var(--text-2)`},qA=class e{rpc=$(null);destroyRef=E(ws);pageId=oT();cleanups=[];treePages=A({});picked=A(null);graph=A(null);sourceSignals=A([]);sourceLoaded=A(!1);filter=A(``);kind=A(null);kindCounts=Q(()=>{let e=this.graph()?(this.graph()?.nodes??[]).map(e=>e.kind):this.sourceSignals().map(e=>e.kind),t=new Map;for(let n of e)t.set(n,(t.get(n)??0)+1);return[...t].map(([e,t])=>({kind:e,count:t}))});kindTotal=Q(()=>this.kindCounts().reduce((e,t)=>e+t.count,0));selectedId=A(null);selectedNode=Q(()=>this.graph()?.nodes.find(e=>e.id===this.selectedId())??null);selectedHistory=Q(()=>{let e=this.selectedId();return e?[...this.graph()?.history?.[e]??[]].reverse():[]});kindLegend=Object.entries(KA).map(([e,t])=>({kind:e,color:t}));filteredNodes=Q(()=>{let e=this.graph();if(!e)return[];let t=this.filter().toLowerCase(),n=this.kind();return e.nodes.filter(e=>(!n||e.kind===n)&&(!t||(e.label??``).toLowerCase().includes(t)||e.kind.toLowerCase().includes(t))).sort((e,t)=>e.id.localeCompare(t.id,void 0,{numeric:!0}))});filteredSourceSignals=Q(()=>{let e=this.filter().toLowerCase(),t=this.kind();return this.sourceSignals().filter(n=>(!t||n.kind===t)&&(!e||n.name.toLowerCase().includes(e)||n.kind.toLowerCase().includes(e)||n.file.toLowerCase().includes(e)))});targetPageId=Q(()=>this.pageId??this.graph()?.pageId??this.latestTreePage()?.pageId??null);latestTreePage=Q(()=>{let e=null;for(let[t,n]of Object.entries(this.treePages())){let r=n.reportedAt??0;(!e||r>e.reportedAt)&&(e={pageId:t,reportedAt:r})}return e});componentOptions=Q(()=>{let e=this.targetPageId(),t=(e?this.treePages()[e]?.roots:void 0)??[],n=[],r=e=>{for(let t of e)n.push(t),r(t.children)};if(r(t),!n.length)return[];let i=new Map;for(let e of n)i.set(e.name,(i.get(e.name)??0)+1);let a=new Map,o=[{value:UA,label:`Follow the routed component`,hint:`automatic`}];for(let e of n){let t=(a.get(e.name)??0)+1;a.set(e.name,t),o.push({value:e.id,label:(i.get(e.name)??0)>1?`${e.name} #${t}`:e.name,hint:`<${e.tag}>`})}return o});pickerValue=Q(()=>{let e=this.picked();return e&&this.componentOptions().some(t=>t.value===e)?e:UA});constructor(){dc(()=>{let e=this.rpc();e&&(this.loadSignalGraph(e),this.loadSourceSignals(e))}),this.destroyRef.onDestroy(()=>{for(let e of this.cleanups.splice(0))e()})}async loadSignalGraph(e){for(let e of this.cleanups.splice(0))e();let t=e.scope(`ng-devtools`);try{let e=await t.rpc.sharedState(`signal-graph`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e,n=(this.pageId?t?.pages?.[this.pageId]:t?.graph)??null;n?.component?.id!==this.graph()?.component?.id&&this.selectedId.set(null),this.graph.set(n)};n(e.value()),this.cleanups.push(e.on(`updated`,n))}catch{this.graph.set(null)}try{let e=await t.rpc.sharedState(`component-tree`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e?.pages;this.treePages.set(t&&typeof t==`object`?t:{})};n(e.value()),this.cleanups.push(e.on(`updated`,n))}catch{this.treePages.set({})}}pickComponent(e){let t=e&&e!==UA?e:null;this.picked.set(t);let n=this.rpc();n&&n.scope(`ng-devtools`).rpc.call(`select-signal-target`,{pageId:this.targetPageId()??void 0,id:t}).catch(()=>{})}sourceNote(e){return WA[e]}async loadSourceSignals(e){let t=e.scope(`ng-devtools`);try{let e=await t.rpc.call(`get-signals`);this.sourceSignals.set(e)}catch{}finally{this.sourceLoaded.set(!0)}}clearFilters(){this.filter.set(``),this.kind.set(null)}selectNode(e){this.selectedId.set(this.selectedId()===e.id?null:e.id)}changeCount(e){return(this.graph()?.history?.[e]??[]).reduce((e,t)=>e+(t.source===`initial`?0:1+(t.missed??0)),0)}sourceLabel(e){return GA[e]}kindColor(e){return KA[e]??KA.unknown}getDependencies(e){let t=this.graph();if(!t)return[];let n=t.nodes.findIndex(t=>t.id===e.id);return t.edges.filter(e=>e.consumer===n).map(e=>t.nodes[e.producer]).filter(Boolean)}getConsumers(e){let t=this.graph();if(!t)return[];let n=t.nodes.findIndex(t=>t.id===e.id);return t.edges.filter(e=>e.producer===n).map(e=>t.nodes[e.consumer]).filter(Boolean)}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-signal-inspector`]],inputs:{rpc:[1,`rpc`]},decls:12,vars:9,consts:[[1,`toolbar`],[`type`,`text`,`placeholder`,`Filter by name or kind…`,`aria-label`,`Filter signals by name or kind`,3,`input`,`value`],[1,`picker`],[1,`intro`],[`role`,`group`,`aria-label`,`Filter by kind`,1,`kinds`],[`role`,`status`,1,`empty`],[1,`empty`],[`role`,`list`,1,`nodes`],[`id`,`signals-component-label`,1,`label-key`],[`labelledBy`,`signals-component-label`,3,`valueChange`,`options`,`value`],[1,`showing`],[1,`showing-name`],[1,`mono`],[1,`source-note`],[`role`,`status`,1,`fallback`],[`type`,`button`,1,`kind-chip`,3,`click`],[1,`count`],[`type`,`button`,1,`kind-chip`,3,`active`],[`aria-hidden`,`true`,1,`dot`],[1,`chip-text`],[`aria-hidden`,`true`,1,`spinner`],[1,`empty-title`],[1,`hint`],[1,`source-label`],[1,`nodes`],[1,`node-card`],[`role`,`status`,1,`empty`,`compact`],[1,`node-header`],[1,`kind-badge`],[1,`node-label`],[1,`node-meta`],[1,`file`,3,`title`],[`aria-hidden`,`true`,1,`sep`],[`type`,`button`,1,`reset`,3,`click`],[1,`empty`,`compact`],[`type`,`button`,1,`node-card`,3,`click`],[1,`changed-badge`],[`aria-hidden`,`true`,1,`chevron`],[1,`node-value`],[1,`detail-panel`,3,`id`],[1,`kind-badge`,`sm`],[1,`rel-label`],[`id`,`value-history-heading`],[`aria-live`,`polite`,1,`history-summary`],[`aria-labelledby`,`value-history-heading`,1,`history`],[1,`history-meta`],[1,`source-tag`],[1,`missed`],[`type`,`button`,1,`reset`]],template:function(e,t){if(e&1&&(R(0,`div`,0)(1,`input`,1),G(`input`,function(e){return t.filter.set(e.target.value)}),z(),N(2,fA,4,2,`div`,2),z(),N(3,hA,7,4),R(4,`p`,3),N(5,gA,1,0)(6,_A,1,0),z(),N(7,yA,7,4,`div`,4),N(8,bA,4,0,`div`,5),N(9,xA,14,0,`div`,6),N(10,TA,6,1),N(11,HA,4,1,`ul`,7)),e&2){let e;j(),L(`value`,t.filter()),j(),P(t.componentOptions().length?2:-1),j(),P((e=t.graph()?.component)?3:-1,e),j(2),P(t.graph()?5:6),j(2),P(t.kindCounts().length?7:-1),j(),P(!t.graph()&&!t.sourceLoaded()?8:-1),j(),P(!t.graph()&&t.sourceLoaded()&&t.sourceSignals().length===0?9:-1),j(),P(!t.graph()&&t.sourceSignals().length>0?10:-1),j(),P(t.graph()?11:-1)}},dependencies:[Dk,Ny,Py],styles:[`[_nghost-%COMP%] { +}`]})},lA=(e,t)=>t.kind,uA=(e,t)=>t.name+t.file+t.line,dA=(e,t)=>t.id,fA=(e,t)=>t.epoch;function pA(e,t){if(e&1){let e=W();R(0,`div`,2)(1,`span`,8),Y(2,`Component`),z(),R(3,`app-select`,9),G(`valueChange`,function(t){return O(e),k(q().pickComponent(t))}),z()()}if(e&2){let e=q();j(3),L(`options`,e.componentOptions())(`value`,e.pickerValue())}}function mA(e,t){if(e&1&&(R(0,`span`,13),Y(1),z()),e&2){let e=q(2);j(),X(e.sourceNote(e.graph().source))}}function hA(e,t){e&1&&(R(0,`p`,14),Y(1,` The picked component is gone or has no signal graph, so this shows another one. `),z())}function gA(e,t){if(e&1&&(R(0,`p`,10)(1,`span`,11),Y(2),z(),R(3,`span`,12),Y(4),z(),N(5,mA,2,1,`span`,13),z(),N(6,hA,2,0,`p`,14)),e&2){let e=t,n=q();j(2),X(e.name),j(2),X(e.path),j(),P(n.graph().source?5:-1),j(),P(n.picked()&&n.graph().source!==`selected`?6:-1)}}function _A(e,t){e&1&&Y(0,` The live signal graph of one component. Only signals that its template or an effect has read appear here; a signal nothing has read yet is not part of the graph. Pick a kind to filter. `)}function vA(e,t){e&1&&Y(0,` Every signal, computed and effect found in your source. Pick a kind to filter. `)}function yA(e,t){if(e&1){let e=W();R(0,`button`,15),G(`click`,function(){let t=O(e).$implicit,n=q(2);return k(n.kind.set(n.kind()===t.kind?null:t.kind))}),B(1,`span`,18),R(2,`span`,19),Y(3),z(),R(4,`span`,16),Y(5),z()()}if(e&2){let e=t.$implicit,n=q(2);J(`active`,n.kind()===e.kind),M(`aria-pressed`,n.kind()===e.kind),j(),n_(`background`,n.kindColor(e.kind)),j(2),X(e.kind),j(2),X(e.count)}}function bA(e,t){if(e&1){let e=W();R(0,`div`,4)(1,`button`,15),G(`click`,function(){return O(e),k(q().kind.set(null))}),Y(2,` All `),R(3,`span`,16),Y(4),z()(),F(5,yA,6,7,`button`,17,lA),z()}if(e&2){let e=q();j(),J(`active`,!e.kind()),M(`aria-pressed`,!e.kind()),j(3),X(e.kindTotal()),j(),I(e.kindCounts())}}function xA(e,t){e&1&&(R(0,`div`,5),B(1,`span`,20),R(2,`p`,21),Y(3,`Scanning source for signals…`),z()())}function SA(e,t){e&1&&(R(0,`div`,6)(1,`p`,21),Y(2,`No signals found.`),z(),R(3,`p`,22),Y(4,` No `),R(5,`code`),Y(6,`signal()`),z(),Y(7,`, `),R(8,`code`),Y(9,`computed()`),z(),Y(10,` or `),R(11,`code`),Y(12,`effect()`),z(),Y(13,` calls were found in your source. To see the live graph, run Angular 19+ with the overlay connected and select a component. `),z()())}function CA(e,t){if(e&1&&(R(0,`span`,32),Y(1,`·`),z(),R(2,`span`),Y(3),z()),e&2){let e=q().$implicit;j(3),Z(`in <`,e.component,`>`)}}function wA(e,t){if(e&1&&(R(0,`div`,25)(1,`div`,27)(2,`span`,28),Y(3),z(),R(4,`span`,29),Y(5),z()(),R(6,`div`,30)(7,`span`,31),Y(8),z(),N(9,CA,4,1),z()()),e&2){let e=t.$implicit,n=q(2);j(2),n_(`background`,n.kindColor(e.kind)),j(),X(e.kind),j(2),X(e.name),j(2),L(`title`,e.file+`:`+e.line),j(),O_(``,e.file,`:`,e.line),j(),P(e.component?9:-1)}}function TA(e,t){if(e&1){let e=W();R(0,`div`,26)(1,`p`,21),Y(2,`No signals match.`),z(),R(3,`p`,22),Y(4,`Try a different name or kind.`),z(),R(5,`button`,33),G(`click`,function(){return O(e),k(q(2).clearFilters())}),Y(6,`Clear filters`),z()()}}function EA(e,t){if(e&1&&(R(0,`p`,23),Y(1,`Signals from source scan (static analysis):`),z(),R(2,`div`,24),F(3,wA,10,8,`div`,25,uA,!1,TA,7,0,`div`,26),z()),e&2){let e=q();j(3),I(e.filteredSourceSignals())}}function DA(e,t){if(e&1&&(R(0,`span`,36),Y(1),z()),e&2){let e=t;j(),O_(``,e,` `,e===1?`change`:`changes`)}}function OA(e,t){if(e&1&&(R(0,`span`,38),Y(1),U_(2,`json`),z()),e&2){let e=q().$implicit;j(),X(G_(2,1,e.value))}}function kA(e,t){if(e&1&&(R(0,`span`,32),Y(1,`·`),z(),R(2,`span`),Y(3),z()),e&2){let e=q().$implicit,t=q(2);j(3),Z(`Deps: `,t.getDependencies(e).length)}}function AA(e,t){if(e&1&&(R(0,`span`,32),Y(1,`·`),z(),R(2,`span`),Y(3),z()),e&2){let e=q().$implicit,t=q(2);j(3),Z(`Consumers: `,t.getConsumers(e).length)}}function jA(e,t){if(e&1&&(R(0,`dt`),Y(1,`Value`),z(),R(2,`dd`)(3,`pre`),Y(4),U_(5,`json`),z()()),e&2){let e=q(4);j(4),X(G_(5,1,e.selectedNode().value))}}function MA(e,t){if(e&1&&(R(0,`li`)(1,`span`,40),Y(2),z(),R(3,`span`,41),Y(4),z()()),e&2){let e=t.$implicit,n=q(5);j(),n_(`background`,n.kindColor(e.kind)),j(),X(e.kind),j(2),X(e.label??e.id)}}function NA(e,t){if(e&1&&(R(0,`h3`),Y(1,`Dependencies (producers)`),z(),R(2,`ul`),F(3,MA,5,4,`li`,null,dA),z()),e&2){let e=q(4);j(3),I(e.getDependencies(e.selectedNode()))}}function PA(e,t){if(e&1&&(R(0,`li`)(1,`span`,40),Y(2),z(),R(3,`span`,41),Y(4),z()()),e&2){let e=t.$implicit,n=q(5);j(),n_(`background`,n.kindColor(e.kind)),j(),X(e.kind),j(2),X(e.label??e.id)}}function FA(e,t){if(e&1&&(R(0,`h3`),Y(1,`Consumers`),z(),R(2,`ul`),F(3,PA,5,4,`li`,null,dA),z()),e&2){let e=q(4);j(3),I(e.getConsumers(e.selectedNode()))}}function IA(e,t){if(e&1&&(R(0,`span`,47),Y(1),z()),e&2){let e=q().$implicit;j(),Z(``,e.missed,` earlier not captured`)}}function LA(e,t){if(e&1&&(R(0,`li`)(1,`span`,45)(2,`time`),Y(3),U_(4,`date`),z(),R(5,`span`,46),Y(6),z(),R(7,`span`),Y(8),z(),N(9,IA,2,1,`span`,47),z(),R(10,`pre`),Y(11),U_(12,`json`),z()()),e&2){let e=t.$implicit,n=q(5);j(3),X(K_(4,7,e.at,`HH:mm:ss.SSS`)),j(2),r_(`source-`+e.source),j(),X(n.sourceLabel(e.source)),j(2),Z(`epoch `,e.epoch),j(),P(e.missed?9:-1),j(2),X(G_(12,10,e.value))}}function RA(e,t){if(e&1&&(R(0,`h3`,42),Y(1,`Value history`),z(),R(2,`p`,43),Y(3),z(),R(4,`ol`,44),F(5,LA,13,12,`li`,null,fA),z()),e&2){let e=q(4);j(3),Z(` `,e.changeCount(e.selectedNode().id),` changes recorded, newest first. `),j(2),I(e.selectedHistory())}}function zA(e,t){if(e&1&&(R(0,`div`,39)(1,`h2`),Y(2),z(),R(3,`dl`)(4,`dt`),Y(5,`Kind`),z(),R(6,`dd`),Y(7),z(),R(8,`dt`),Y(9,`Epoch`),z(),R(10,`dd`),Y(11),z(),N(12,jA,6,3),z(),N(13,NA,5,0),N(14,FA,5,0),N(15,RA,7,1),z()),e&2){let e=q().$implicit,t=q(2);L(`id`,`signal-detail-`+e.id),j(2),X(t.selectedNode().label??t.selectedNode().id),j(5),X(t.selectedNode().kind),j(4),X(t.selectedNode().epoch),j(),P(t.selectedNode().value===void 0?-1:12),j(),P(t.getDependencies(t.selectedNode()).length?13:-1),j(),P(t.getConsumers(t.selectedNode()).length?14:-1),j(),P(t.selectedHistory().length?15:-1)}}function BA(e,t){if(e&1){let e=W();R(0,`li`)(1,`button`,35),G(`click`,function(){let t=O(e).$implicit;return k(q(2).selectNode(t))}),R(2,`span`,27)(3,`span`,28),Y(4),z(),R(5,`span`,29),Y(6),z(),N(7,DA,2,2,`span`,36),B(8,`span`,37),z(),N(9,OA,3,3,`span`,38),R(10,`span`,30)(11,`span`),Y(12),z(),N(13,kA,4,1),N(14,AA,4,1),z()(),N(15,zA,16,8,`div`,39),z()}if(e&2){let e,n=t.$implicit,r=q(2);j(),J(`selected`,r.selectedId()===n.id),M(`aria-expanded`,r.selectedId()===n.id)(`aria-controls`,`signal-detail-`+n.id),j(2),n_(`background`,r.kindColor(n.kind)),j(),X(n.kind),j(2),X(n.label??`(unnamed)`),j(),P((e=r.changeCount(n.id))?7:-1,e),j(2),P(n.value===void 0?-1:9),j(3),Z(`Epoch: `,n.epoch),j(),P(r.getDependencies(n).length?13:-1),j(),P(r.getConsumers(n).length?14:-1),j(),P(r.selectedId()===n.id&&r.selectedNode()?15:-1)}}function VA(e,t){if(e&1){let e=W();R(0,`button`,33),G(`click`,function(){return O(e),k(q(3).clearFilters())}),Y(1,`Clear filters`),z()}}function HA(e,t){if(e&1&&(R(0,`li`,34)(1,`p`,21),Y(2),z(),R(3,`p`,22),Y(4),z(),N(5,VA,2,0,`button`,48),z()),e&2){let e=q(2);j(2),Z(` `,e.graph().nodes.length?`No signals match.`:`No signals in this component.`,` `),j(2),Z(` `,e.graph().nodes.length?`Try a different name or kind.`:`Select a component that reads signals, or interact with the page to create some.`,` `),j(),P(e.graph().nodes.length?5:-1)}}function UA(e,t){if(e&1&&(R(0,`ul`,7),F(1,BA,16,14,`li`,null,dA,!1,HA,6,3,`li`,34),z()),e&2){let e=q();j(),I(e.filteredNodes())}}var WA=`follow`,GA={selected:`picked`,routed:`rendered by the router`,root:`first component with signals`},KA={write:`set`,sample:`sampled`,initial:`initial`},qA={signal:`#facc15`,computed:`#60a5fa`,linkedSignal:`#34d399`,effect:`#fb923c`,template:`#94a3b8`,afterRenderEffectPhase:`#f472b6`,childSignalProp:`#fef08a`,"input (signal)":`#f59e0b`,"input.required (signal)":`#f59e0b`,"output (signal)":`#ec4899`,"model (signal)":`#14b8a6`,"model.required (signal)":`#14b8a6`,"viewChild (signal)":`#a3e635`,"viewChild.required (signal)":`#a3e635`,"viewChildren (signal)":`#a3e635`,"contentChild (signal)":`#fda4af`,"contentChild.required (signal)":`#fda4af`,"contentChildren (signal)":`#fda4af`,resource:`#06b6d4`,unknown:`var(--text-2)`},JA=class e{rpc=$(null);destroyRef=E(ws);pageId=sT();cleanups=[];treePages=A({});picked=A(null);graph=A(null);sourceSignals=A([]);sourceLoaded=A(!1);filter=A(``);kind=A(null);kindCounts=Q(()=>{let e=this.graph()?(this.graph()?.nodes??[]).map(e=>e.kind):this.sourceSignals().map(e=>e.kind),t=new Map;for(let n of e)t.set(n,(t.get(n)??0)+1);return[...t].map(([e,t])=>({kind:e,count:t}))});kindTotal=Q(()=>this.kindCounts().reduce((e,t)=>e+t.count,0));selectedId=A(null);selectedNode=Q(()=>this.graph()?.nodes.find(e=>e.id===this.selectedId())??null);selectedHistory=Q(()=>{let e=this.selectedId();return e?[...this.graph()?.history?.[e]??[]].reverse():[]});kindLegend=Object.entries(qA).map(([e,t])=>({kind:e,color:t}));filteredNodes=Q(()=>{let e=this.graph();if(!e)return[];let t=this.filter().toLowerCase(),n=this.kind();return e.nodes.filter(e=>(!n||e.kind===n)&&(!t||(e.label??``).toLowerCase().includes(t)||e.kind.toLowerCase().includes(t))).sort((e,t)=>e.id.localeCompare(t.id,void 0,{numeric:!0}))});filteredSourceSignals=Q(()=>{let e=this.filter().toLowerCase(),t=this.kind();return this.sourceSignals().filter(n=>(!t||n.kind===t)&&(!e||n.name.toLowerCase().includes(e)||n.kind.toLowerCase().includes(e)||n.file.toLowerCase().includes(e)))});targetPageId=Q(()=>this.pageId??this.graph()?.pageId??this.latestTreePage()?.pageId??null);latestTreePage=Q(()=>{let e=null;for(let[t,n]of Object.entries(this.treePages())){let r=n.reportedAt??0;(!e||r>e.reportedAt)&&(e={pageId:t,reportedAt:r})}return e});componentOptions=Q(()=>{let e=this.targetPageId(),t=(e?this.treePages()[e]?.roots:void 0)??[],n=[],r=e=>{for(let t of e)n.push(t),r(t.children)};if(r(t),!n.length)return[];let i=new Map;for(let e of n)i.set(e.name,(i.get(e.name)??0)+1);let a=new Map,o=[{value:WA,label:`Follow the routed component`,hint:`automatic`}];for(let e of n){let t=(a.get(e.name)??0)+1;a.set(e.name,t),o.push({value:e.id,label:(i.get(e.name)??0)>1?`${e.name} #${t}`:e.name,hint:`<${e.tag}>`})}return o});pickerValue=Q(()=>{let e=this.picked();return e&&this.componentOptions().some(t=>t.value===e)?e:WA});constructor(){dc(()=>{let e=this.rpc();e&&(this.loadSignalGraph(e),this.loadSourceSignals(e))}),this.destroyRef.onDestroy(()=>{for(let e of this.cleanups.splice(0))e()})}async loadSignalGraph(e){for(let e of this.cleanups.splice(0))e();let t=e.scope(`ng-devtools`);try{let e=await t.rpc.sharedState(`signal-graph`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e,n=(this.pageId?t?.pages?.[this.pageId]:t?.graph)??null;n?.component?.id!==this.graph()?.component?.id&&this.selectedId.set(null),this.graph.set(n)};n(e.value()),this.cleanups.push(e.on(`updated`,n))}catch{this.graph.set(null)}try{let e=await t.rpc.sharedState(`component-tree`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e?.pages;this.treePages.set(t&&typeof t==`object`?t:{})};n(e.value()),this.cleanups.push(e.on(`updated`,n))}catch{this.treePages.set({})}}pickComponent(e){let t=e&&e!==WA?e:null;this.picked.set(t);let n=this.rpc();n&&n.scope(`ng-devtools`).rpc.call(`select-signal-target`,{pageId:this.targetPageId()??void 0,id:t}).catch(()=>{})}sourceNote(e){return GA[e]}async loadSourceSignals(e){let t=e.scope(`ng-devtools`);try{let e=await t.rpc.call(`get-signals`);this.sourceSignals.set(e)}catch{}finally{this.sourceLoaded.set(!0)}}clearFilters(){this.filter.set(``),this.kind.set(null)}selectNode(e){this.selectedId.set(this.selectedId()===e.id?null:e.id)}changeCount(e){return(this.graph()?.history?.[e]??[]).reduce((e,t)=>e+(t.source===`initial`?0:1+(t.missed??0)),0)}sourceLabel(e){return KA[e]}kindColor(e){return qA[e]??qA.unknown}getDependencies(e){let t=this.graph();if(!t)return[];let n=t.nodes.findIndex(t=>t.id===e.id);return t.edges.filter(e=>e.consumer===n).map(e=>t.nodes[e.producer]).filter(Boolean)}getConsumers(e){let t=this.graph();if(!t)return[];let n=t.nodes.findIndex(t=>t.id===e.id);return t.edges.filter(e=>e.producer===n).map(e=>t.nodes[e.consumer]).filter(Boolean)}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-signal-inspector`]],inputs:{rpc:[1,`rpc`]},decls:12,vars:9,consts:[[1,`toolbar`],[`type`,`text`,`placeholder`,`Filter by name or kind…`,`aria-label`,`Filter signals by name or kind`,3,`input`,`value`],[1,`picker`],[1,`intro`],[`role`,`group`,`aria-label`,`Filter by kind`,1,`kinds`],[`role`,`status`,1,`empty`],[1,`empty`],[`role`,`list`,1,`nodes`],[`id`,`signals-component-label`,1,`label-key`],[`labelledBy`,`signals-component-label`,3,`valueChange`,`options`,`value`],[1,`showing`],[1,`showing-name`],[1,`mono`],[1,`source-note`],[`role`,`status`,1,`fallback`],[`type`,`button`,1,`kind-chip`,3,`click`],[1,`count`],[`type`,`button`,1,`kind-chip`,3,`active`],[`aria-hidden`,`true`,1,`dot`],[1,`chip-text`],[`aria-hidden`,`true`,1,`spinner`],[1,`empty-title`],[1,`hint`],[1,`source-label`],[1,`nodes`],[1,`node-card`],[`role`,`status`,1,`empty`,`compact`],[1,`node-header`],[1,`kind-badge`],[1,`node-label`],[1,`node-meta`],[1,`file`,3,`title`],[`aria-hidden`,`true`,1,`sep`],[`type`,`button`,1,`reset`,3,`click`],[1,`empty`,`compact`],[`type`,`button`,1,`node-card`,3,`click`],[1,`changed-badge`],[`aria-hidden`,`true`,1,`chevron`],[1,`node-value`],[1,`detail-panel`,3,`id`],[1,`kind-badge`,`sm`],[1,`rel-label`],[`id`,`value-history-heading`],[`aria-live`,`polite`,1,`history-summary`],[`aria-labelledby`,`value-history-heading`,1,`history`],[1,`history-meta`],[1,`source-tag`],[1,`missed`],[`type`,`button`,1,`reset`]],template:function(e,t){if(e&1&&(R(0,`div`,0)(1,`input`,1),G(`input`,function(e){return t.filter.set(e.target.value)}),z(),N(2,pA,4,2,`div`,2),z(),N(3,gA,7,4),R(4,`p`,3),N(5,_A,1,0)(6,vA,1,0),z(),N(7,bA,7,4,`div`,4),N(8,xA,4,0,`div`,5),N(9,SA,14,0,`div`,6),N(10,EA,6,1),N(11,UA,4,1,`ul`,7)),e&2){let e;j(),L(`value`,t.filter()),j(),P(t.componentOptions().length?2:-1),j(),P((e=t.graph()?.component)?3:-1,e),j(2),P(t.graph()?5:6),j(2),P(t.kindCounts().length?7:-1),j(),P(!t.graph()&&!t.sourceLoaded()?8:-1),j(),P(!t.graph()&&t.sourceLoaded()&&t.sourceSignals().length===0?9:-1),j(),P(!t.graph()&&t.sourceSignals().length>0?10:-1),j(),P(t.graph()?11:-1)}},dependencies:[Ok,Py,Fy],styles:[`[_nghost-%COMP%] { display: block; min-width: 0; color: var(--%NS%text); @@ -4487,7 +4487,7 @@ button.node-card[_ngcontent-%COMP%] { dd[_ngcontent-%COMP%] + dt[_ngcontent-%COMP%] { margin-top: 8px; } -}`]})},JA=(e,t)=>t.node.injector.id,YA=(e,t)=>t.id,XA=(e,t)=>t.from+t.token+e,ZA=(e,t)=>t.token+e,QA=(e,t)=>t.type,$A=(e,t)=>t.token+t.file+t.line;function ej(e,t){if(e&1){let e=W();V(0,`label`,12)(1,`input`,13),K(`change`,function(){O(e);let t=q(2);return k(t.componentsOnly.set(!t.componentsOnly()))}),H(),Y(2,` Components only `),H()}if(e&2){let e=q(2);j(),bg(`checked`,e.componentsOnly())}}function tj(e,t){if(e&1){let e=W();V(0,`button`,22),K(`click`,function(){let t=O(e).$implicit;return k(q(3).reveal(t.id))}),U(1,`span`,23),V(2,`span`,24),Y(3),H(),V(4,`span`,25),Y(5),H()()}if(e&2){let e=t.$implicit,n=q(3);j(),t_(`background`,n.tone(e.kind)),j(2),X(e.label),j(2),X(e.tokens)}}function nj(e,t){if(e&1&&(V(0,`div`,14)(1,`span`,20),Y(2,`Provided by`),H(),F(3,tj,6,4,`button`,21,YA),H()),e&2){let e=q(2);j(3),I(e.providedBy())}}function rj(e,t){if(e&1){let e=W();V(0,`div`,15),Y(1),V(2,`button`,26),K(`click`,function(){return O(e),k(q(2).query.set(``))}),Y(3,`Clear search`),H()()}if(e&2){let e=q(2);j(),Z(` Nothing here matches “`,e.query().trim(),`”. `)}}function ij(e,t){e&1&&Y(0,` None of them provide anything themselves. `)}function aj(e,t){e&1&&Y(0,` Turn off “Components only” to see directives. `)}function oj(e,t){e&1&&Y(0,` Try a different search. `)}function sj(e,t){if(e&1&&(V(0,`div`,1)(1,`p`,27),Y(2,`No injectors to show`),H(),V(3,`p`,28),N(4,ij,1,0)(5,aj,1,0)(6,oj,1,0),H()()),e&2){let e=q(2);j(4),P(e.onlyProviding()?4:e.componentsOnly()&&e.view()===`element`?5:6)}}function cj(e,t){if(e&1){let e=W();V(0,`span`,38),K(`click`,function(t){O(e);let n=q().$implicit;return k(q(2).toggle(n.node.injector.id,t))}),ps(),V(1,`svg`,39),U(2,`path`,40),H()()}if(e&2){let e=q().$implicit;J(`open`,e.expanded)}}function lj(e,t){e&1&&U(0,`span`,31)}function uj(e,t){if(e&1&&(V(0,`span`,34),Y(1),H()),e&2){let e=q().$implicit;j(),X(e.node.injector.component)}}function dj(e,t){if(e&1&&(V(0,`span`,34),Y(1),H()),e&2){let e=q().$implicit;j(),X(e.node.injector.directives.join(`, `))}}function fj(e,t){if(e&1&&(V(0,`span`,36),ps(),V(1,`svg`,41),U(2,`path`,42),H(),Y(3),H()),e&2){let e=q().$implicit;M(`title`,e.node.dependencies.length+` injected`),j(3),Z(` `,e.node.dependencies.length,` `)}}function pj(e,t){if(e&1&&(V(0,`span`,37),ps(),V(1,`svg`,41),U(2,`path`,43),H(),Y(3),H()),e&2){let e=q().$implicit;M(`title`,e.node.injector.providerCount+` provided`),j(3),Z(` `,e.node.injector.providerCount,` `)}}function mj(e,t){if(e&1){let e=W();V(0,`div`,29),K(`click`,function(){let t=O(e).$implicit;return k(q(2).select(t.node.injector.id))})(`focus`,function(){let t=O(e).$implicit,n=q(2);return n.focusId.set(t.node.injector.id),k(n.highlight(t.node))})(`blur`,function(){return O(e),k(q(2).highlight(null))})(`mouseenter`,function(){let t=O(e).$implicit;return k(q(2).highlight(t.node))})(`mouseleave`,function(){return O(e),k(q(2).highlight(null))}),N(1,cj,3,2,`span`,30)(2,lj,1,0,`span`,31),V(3,`span`,32),Y(4),H(),V(5,`span`,33),Y(6),H(),N(7,uj,2,1,`span`,34)(8,dj,2,1,`span`,34),V(9,`span`,35),N(10,fj,4,2,`span`,36),N(11,pj,4,2,`span`,37),H()()}if(e&2){let e=t.$implicit,n=q(2);t_(`--%NS%depth`,e.depth),J(`selected`,n.selected()?.injector?.id===e.node.injector.id),M(`aria-level`,e.depth+1)(`aria-expanded`,e.hasChildren?e.expanded:null)(`aria-selected`,n.selected()?.injector?.id===e.node.injector.id)(`tabindex`,n.rovingId()===e.node.injector.id?0:-1)(`data-id`,e.node.injector.id),j(),P(e.hasChildren?1:2),j(2),t_(`--%NS%tone`,n.tone(n.kind(e.node))),M(`title`,n.kind(e.node)),j(),X(n.kind(e.node)[0].toUpperCase()),j(2),X(n.label(e.node)),j(),P(e.node.injector.component?7:e.node.injector.directives?.length?8:-1),j(3),P((e.node.dependencies?.length??0)>0?10:-1),j(),P(e.node.injector.providerCount>0?11:-1)}}function hj(e,t){if(e&1&&(V(0,`li`),Y(1),H()),e&2){let e=t.$implicit;J(`is-component`,e===q(2).injector.component),j(),X(e)}}function gj(e,t){if(e&1&&(V(0,`ul`,47),F(1,hj,2,3,`li`,54,cg),H()),e&2){let e=q();j(),I(e.injector.directives)}}function _j(e,t){if(e&1&&(V(0,`span`,55),U(1,`span`,23),Y(2,` Null injector `),V(3,`span`,57),Y(4,`throws NullInjectorError`),H()()),e&2){let e=q(4);j(),t_(`background`,e.tone(`null`))}}function vj(e,t){if(e&1&&(V(0,`span`,59),Y(1),H()),e&2){let e=q(2).$implicit;j(),X(e.providers)}}function yj(e,t){if(e&1){let e=W();V(0,`button`,58),K(`click`,function(){O(e);let t=q().$implicit;return k(q(3).reveal(t.id))}),U(1,`span`,23),V(2,`span`,24),Y(3),H(),N(4,vj,2,1,`span`,59),H()}if(e&2){let e=q().$implicit,t=q(3);j(),t_(`background`,t.tone(e.kind)),j(2),X(e.label),j(),P(e.providers?4:-1)}}function bj(e,t){if(e&1&&(V(0,`li`),N(1,_j,5,2,`span`,55)(2,yj,5,4,`button`,56),H()),e&2){let e=t.$implicit,n=t.$index,r=q(3);J(`current`,n===0),j(),P(e.id===r.nullId?1:2)}}function xj(e,t){if(e&1&&(V(0,`span`,65),Y(1),H()),e&2){let e=t.$implicit;j(),X(e)}}function Sj(e,t){if(e&1&&(V(0,`span`),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`for `,e.from)}}function Cj(e,t){if(e&1){let e=W();V(0,`button`,69),K(`click`,function(){let t=O(e);return k(q(6).reveal(t))}),U(1,`span`,23),Y(2,` from `),V(3,`span`,24),Y(4),H()()}if(e&2){let e=t,n=q(6);j(),t_(`background`,n.tone(n.kindById(e))),j(3),X(n.labelById(e))}}function wj(e,t){e&1&&(V(0,`span`,68),Y(1,`not provided anywhere`),H())}function Tj(e,t){if(e&1&&(V(0,`li`,62)(1,`div`,63)(2,`span`,64),Y(3),H(),F(4,xj,2,1,`span`,65,cg),H(),V(6,`div`,66),N(7,Sj,2,1,`span`),N(8,Cj,5,3,`button`,67)(9,wj,2,0,`span`,68),H()()),e&2){let e,n=t.$implicit,r=q(3);J(`hit`,q(2).matches(n.token)),j(3),X(n.token),j(),I(n.flags),j(3),P(r.injector.directives&&r.injector.directives.length>1?7:-1),j(),P((e=n.providedBy)?8:9,e)}}function Ej(e,t){if(e&1&&(V(0,`ul`,60),F(1,Tj,10,5,`li`,61,XA),H()),e&2){let e=q(2);j(),I(e.dependencies)}}function Dj(e,t){e&1&&(V(0,`p`,53),Y(1,`Nothing is injected through the constructor or inject().`),H())}function Oj(e,t){if(e&1&&(V(0,`div`,48)(1,`h3`),Y(2,` Injected here `),V(3,`span`,6),Y(4),H()(),N(5,Ej,3,0,`ul`,60)(6,Dj,2,0,`p`,53),H()),e&2){let e=q();j(4),X(e.dependencies?.length??0),j(),P(e.dependencies?.length?5:6)}}function kj(e,t){e&1&&(V(0,`span`,65),Y(1,`viewProviders`),H())}function Aj(e,t){e&1&&(V(0,`span`,65),Y(1,`multi`),H())}function jj(e,t){if(e&1&&(V(0,`div`,66),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`via `,e.importPath.join(` › `))}}function Mj(e,t){if(e&1&&(V(0,`li`,71)(1,`div`,63)(2,`span`,64),Y(3),H(),V(4,`span`,72),Y(5),H(),N(6,kj,2,0,`span`,65),N(7,Aj,2,0,`span`,65),H(),N(8,jj,2,1,`div`,66),H()),e&2){let e=t.$implicit,n=q(4);J(`hit`,n.matches(e.token)),j(3),X(e.token),j(2),X(e.type===`unknown`?`provider`:`use`+n.capital(e.type)),j(),P(e.isViewProvider?6:-1),j(),P(e.multi?7:-1),j(),P(e.importPath?.length?8:-1)}}function Nj(e,t){if(e&1&&(V(0,`ul`,52),F(1,Mj,9,7,`li`,70,ZA),H()),e&2){let e=q();j(),I(e.providers)}}function Pj(e,t){e&1&&Y(0,` No providers or viewProviders on this element. `)}function Fj(e,t){e&1&&Y(0,` This injector has no providers of its own. `)}function Ij(e,t){if(e&1&&(V(0,`p`,53),N(1,Pj,1,0)(2,Fj,1,0),H()),e&2){let e=q();j(),P(e.injector.type===`element`?1:2)}}function Lj(e,t){if(e&1&&(V(0,`section`,19)(1,`header`,44)(2,`span`,45),Y(3),H(),V(4,`h2`,46),Y(5),H(),N(6,gj,3,0,`ul`,47),H(),V(7,`div`,48)(8,`h3`),Y(9,`Lookup path`),H(),V(10,`p`,49),Y(11,`Angular asks these injectors in order until one has the token.`),H(),V(12,`ol`,50),F(13,bj,3,3,`li`,51,YA),H()(),N(15,Oj,7,2,`div`,48),V(16,`div`,48)(17,`h3`),Y(18,` Provides `),V(19,`span`,6),Y(20),H()(),N(21,Nj,3,0,`ul`,52)(22,Ij,3,1,`p`,53),H()()),e&2){let e=t,n=q(2);j(2),t_(`--%NS%tone`,n.tone(n.kind(e))),j(),X(n.kind(e)),j(2),X(n.label(e)),j(),P(e.injector.directives?.length?6:-1),j(7),I(n.path()),j(2),P(e.injector.type===`element`?15:-1),j(5),X(e.providers.length),j(),P(e.providers.length?21:22)}}function Rj(e,t){if(e&1){let e=W();V(0,`p`,2),Y(1,` Every component and directive gets an injector. When it asks for a token, Angular walks up this tree, then through the environment injectors, until something provides it. `),H(),V(2,`div`,3)(3,`div`,4)(4,`button`,5),K(`click`,function(){return O(e),k(q().setView(`element`))}),Y(5,` Elements `),V(6,`span`,6),Y(7),H()(),V(8,`button`,5),K(`click`,function(){return O(e),k(q().setView(`environment`))}),Y(9,` Environment `),V(10,`span`,6),Y(11),H()()(),V(12,`div`,7),ps(),V(13,`svg`,8),U(14,`circle`,9)(15,`path`,10),H(),ms(),V(16,`input`,11),K(`input`,function(t){return O(e),k(q().query.set(t.target.value))})(`keydown.escape`,function(){return O(e),k(q().query.set(``))}),H()(),N(17,ej,3,1,`label`,12),V(18,`label`,12)(19,`input`,13),K(`change`,function(){O(e);let t=q();return k(t.onlyProviding.set(!t.onlyProviding()))}),H(),Y(20,` With providers `),H()(),N(21,nj,5,0,`div`,14)(22,rj,4,1,`div`,15),V(23,`div`,16),N(24,sj,7,1,`div`,1),V(25,`div`,17),K(`keydown`,function(t){return O(e),k(q().onTreeKey(t))}),F(26,mj,12,18,`div`,18,JA),H(),N(28,Lj,23,8,`section`,19),H()}if(e&2){let e,t=q();j(4),J(`active`,t.view()===`element`),M(`aria-pressed`,t.view()===`element`),j(3),X(t.elementCount()),j(),J(`active`,t.view()===`environment`),M(`aria-pressed`,t.view()===`environment`),j(3),X(t.environmentCount()),j(5),bg(`value`,t.query()),j(),P(t.view()===`element`?17:-1),j(2),bg(`checked`,t.onlyProviding()),j(2),P(t.providedBy().length?21:t.query().trim()&&!t.rows().length?22:-1),j(3),P(t.rows().length?-1:24),j(),bg(`hidden`,!t.rows().length),M(`aria-label`,t.view()===`element`?`Element injectors`:`Environment injectors`),j(),I(t.rows()),j(2),P((e=t.selected())?28:-1,e)}}function zj(e,t){e&1&&(V(0,`div`,0),U(1,`span`,73),V(2,`p`,27),Y(3,`Loading dependency injection data…`),H()())}function Bj(e,t){e&1&&(V(0,`div`,1)(1,`p`,27),Y(2,`No DI data found`),H(),V(3,`p`,28),Y(4,` Open the app in a browser with the devtools connected to see its live injectors. No providers, injectables or inject() calls were found in the source either. `),H()())}function Vj(e,t){if(e&1){let e=W();V(0,`div`,1)(1,`p`,27),Y(2),H(),V(3,`p`,28),Y(4,`Try part of a token name or a file path.`),H(),V(5,`button`,5),K(`click`,function(){return O(e),k(q(2).query.set(``))}),Y(6,`Clear filter`),H()()}if(e&2){let e=q(2);j(2),Z(`No providers match “`,e.query(),`”`)}}function Hj(e,t){if(e&1&&(V(0,`span`,86),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`providedIn: `,e.providedIn)}}function Uj(e,t){if(e&1&&(V(0,`span`,88),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`as `,e.source)}}function Wj(e,t){if(e&1&&(V(0,`li`,83)(1,`div`,84)(2,`span`,85),Y(3),H(),N(4,Hj,2,1,`span`,86),H(),V(5,`div`,87)(6,`span`,50),Y(7),H(),N(8,Uj,2,1,`span`,88),H()()),e&2){let e=t.$implicit;j(3),X(e.token),j(),P(e.providedIn?4:-1),j(3),D_(``,e.file,`:`,e.line),j(),P(e.source!==`class`&&e.source!==`providers array`?8:-1)}}function Gj(e,t){if(e&1&&(V(0,`section`,80)(1,`h2`),Y(2),V(3,`span`,81),Y(4),H()(),V(5,`ul`,82),F(6,Wj,9,5,`li`,83,$A),H()()),e&2){let e=t.$implicit;j(2),Z(` `,e.label,` `),j(2),X(e.items.length),j(2),I(e.items)}}function Kj(e,t){if(e&1&&(V(0,`div`,79),F(1,Gj,8,2,`section`,80,QA),H()),e&2){let e=q(2);j(),I(e.groupedProviders())}}function qj(e,t){if(e&1){let e=W();V(0,`div`,3)(1,`div`,7),ps(),V(2,`svg`,8),U(3,`circle`,9)(4,`path`,10),H(),ms(),V(5,`input`,74),K(`input`,function(t){return O(e),k(q().query.set(t.target.value))})(`keydown.escape`,function(){return O(e),k(q().query.set(``))}),H()(),V(6,`span`,75),Y(7),H()(),V(8,`p`,76),ps(),V(9,`svg`,41),U(10,`circle`,77)(11,`path`,78),H(),ms(),V(12,`span`)(13,`strong`),Y(14,`DI from source scan (static analysis).`),H(),Y(15,` Connect the overlay on Angular 17+ to see the live injector tree. `),H()(),N(16,Vj,7,1,`div`,1)(17,Kj,3,0,`div`,79)}if(e&2){let e=q();j(5),bg(`value`,e.query()),j(2),D_(` `,e.sourceMatchCount(),` of `,e.sourceProviders().length,` `),j(9),P(e.groupedProviders().length===0?16:17)}}var Jj=`inj-null`,Yj={component:`var(--accent)`,directive:`#7cb4ff`,environment:`var(--ok)`,null:`var(--text-3)`};function Xj(e){return e.injector.type===`element`?e.injector.component?`component`:`directive`:`environment`}function Zj(e){return e.injector.type===`element`?`<${e.injector.name}>`:e.injector.name}function Qj(e){return Array.isArray(e)}var $j=class e{rpc=$(null);nullId=Jj;roots=A([]);environment=A([]);sourceProviders=A([]);loaded=A(!1);view=A(`element`);query=A(``);onlyProviding=A(!1);componentsOnly=A(!0);collapsed=A(new Set);selectedId=A(null);focusId=A(null);index=Q(()=>{let e=new Map,t=new Map,n=(r,i)=>{for(let a of r)e.set(a.injector.id,a),i&&t.set(a.injector.id,i),n(a.children,a.injector.id)};return n(this.roots(),null),n(this.environment(),null),{map:e,parents:t}});elementCount=Q(()=>this.count(this.roots()));environmentCount=Q(()=>this.count(this.environment()));visible=Q(()=>{let e=this.view()===`element`?this.roots():this.environment();this.view()===`element`&&this.componentsOnly()&&(e=this.prune(e,e=>!!e.injector.component)),this.onlyProviding()&&(e=this.prune(e,e=>e.providers.length>0));let t=this.normalizedQuery();return t&&(e=this.prune(e,e=>this.nodeMatches(e,t))),e});rows=Q(()=>{let e=[],t=this.collapsed(),n=!!this.normalizedQuery(),r=(i,a)=>{for(let o of i){let i=n||!t.has(o.injector.id);e.push({node:o,depth:a,hasChildren:o.children.length>0,expanded:i}),i&&r(o.children,a+1)}};return r(this.visible(),0),e});selected=Q(()=>{let e=this.selectedId();return(e?this.index().map.get(e):void 0)??this.rows()[0]?.node??null});rovingId=Q(()=>{let e=this.rows(),t=this.focusId()??this.selected()?.injector.id;return t&&e.some(e=>e.node.injector.id===t)?t:e[0]?.node.injector.id??null});path=Q(()=>{let e=this.selected();if(!e)return[];let{map:t,parents:n}=this.index(),r=e.injector.path??[];if(!r.length){r=[e.injector.id];let t=n.get(e.injector.id);for(;t;)r.push(t),t=n.get(t);r.push(Jj)}return r.map(e=>{let n=t.get(e);return{id:e,label:n?Zj(n):`Null injector`,kind:n?Xj(n):`null`,providers:n?.providers.length??0}})});providedBy=Q(()=>{let e=this.normalizedQuery();if(!e)return[];let t=[];for(let n of this.index().map.values()){let r=n.providers.filter(t=>t.token.toLowerCase().includes(e));r.length&&t.push({id:n.injector.id,label:Zj(n),kind:Xj(n),tokens:r.map(e=>e.token).join(`, `)})}return t.slice(0,12)});groupedProviders=Q(()=>{let e=this.normalizedQuery(),t=e?this.sourceProviders().filter(t=>t.token.toLowerCase().includes(e)||t.file.toLowerCase().includes(e)):this.sourceProviders(),n=[{type:`root-provider`,label:`Root Providers (provide*)`,items:[]},{type:`injectable`,label:`Injectable Services`,items:[]},{type:`injection`,label:`inject() Calls`,items:[]},{type:`provider`,label:`Component Providers`,items:[]}];for(let e of t)n.find(t=>t.type===e.type)?.items.push(e);return n.filter(e=>e.items.length>0)});sourceMatchCount=Q(()=>this.groupedProviders().reduce((e,t)=>e+t.items.length,0));normalizedQuery=Q(()=>this.query().trim().toLowerCase());destroyRef=E(ws);stopTree=null;constructor(){dc(()=>{let e=this.rpc();e&&(this.loadInjectorTree(e),this.loadSourceProviders(e))}),this.destroyRef.onDestroy(()=>{this.stopTree?.(),this.highlight(null)})}label(e){return Zj(e)}kind(e){return Xj(e)}tone(e){return Yj[e]??Yj.null}kindById(e){let t=this.index().map.get(e);return t?Xj(t):`null`}labelById(e){let t=this.index().map.get(e);return t?Zj(t):`Null injector`}capital(e){return e.charAt(0).toUpperCase()+e.slice(1)}matches(e){let t=this.normalizedQuery();return!!t&&e.toLowerCase().includes(t)}setView(e){this.view()!==e&&(this.view.set(e),this.selectedId.set(null),this.focusId.set(null))}select(e){this.selectedId.set(e),this.focusId.set(e)}toggle(e,t){t?.stopPropagation(),!this.normalizedQuery()&&this.collapsed.update(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})}reveal(e){let t=this.index().map.get(e);if(!t)return;this.setView(t.injector.type===`element`?`element`:`environment`);let{parents:n}=this.index();this.collapsed.update(t=>{let r=new Set(t),i=n.get(e);for(;i;)r.delete(i),i=n.get(i);return r}),this.onlyProviding()&&t.providers.length===0&&this.onlyProviding.set(!1),t.injector.type===`element`&&!t.injector.component&&this.componentsOnly.set(!1),this.select(e),queueMicrotask(()=>this.focusRow(e,!1))}highlight(e){let t=this.rpc();if(!t)return;let n=e?.injector.type===`element`?e.injector.selector??null:null;t.scope(`ng-devtools`).rpc.call(`request-page-highlight`,n).catch(()=>{})}onTreeKey(e){let t=this.rows();if(!t.length)return;let n=this.rovingId(),r=t.findIndex(e=>e.node.injector.id===n),i=Math.max(r,0),a=t[i],o=-1;switch(e.key){case`ArrowDown`:o=Math.min(i+1,t.length-1);break;case`ArrowUp`:o=Math.max(i-1,0);break;case`Home`:o=0;break;case`End`:o=t.length-1;break;case`ArrowRight`:a.hasChildren&&!a.expanded?this.toggle(a.node.injector.id):a.hasChildren&&(o=i+1);break;case`ArrowLeft`:if(a.hasChildren&&a.expanded&&!this.normalizedQuery())this.toggle(a.node.injector.id);else{let e=this.index().parents.get(a.node.injector.id);o=t.findIndex(t=>t.node.injector.id===e)}break;case`Enter`:case` `:this.select(a.node.injector.id);break;default:return}if(e.preventDefault(),o>=0){let e=t[o].node.injector.id;this.focusId.set(e),this.selectedId.set(e),queueMicrotask(()=>this.focusRow(e,!0))}}focusRow(e,t){let n=document.querySelector(`.row[data-id="${CSS.escape(e)}"]`);n&&(t&&n.focus(),n.scrollIntoView({block:`nearest`}))}async loadInjectorTree(e){this.stopTree?.(),this.stopTree=null;let t=e.scope(`ng-devtools`),n;try{n=await t.rpc.sharedState(`injector-tree`)}catch{return}if(this.destroyRef.destroyed)return;let r=oT(),i=e=>{let t=e,n=(r?t?.pages?.[r]:void 0)??t;Qj(n?.roots)&&this.roots.set(n.roots),Qj(n?.environment)&&this.environment.set(n.environment)};i(n.value()),this.stopTree=n.on(`updated`,i)}async loadSourceProviders(e){let t=e.scope(`ng-devtools`);try{this.sourceProviders.set(await t.rpc.call(`get-providers`))}catch{this.sourceProviders.set([])}finally{this.loaded.set(!0)}}count(e){return e.reduce((e,t)=>e+1+this.count(t.children),0)}nodeMatches(e,t){let n=e.injector;return n.name.toLowerCase().includes(t)||!!n.component?.toLowerCase().includes(t)||!!n.directives?.some(e=>e.toLowerCase().includes(t))||e.providers.some(e=>e.token.toLowerCase().includes(t))||!!e.dependencies?.some(e=>e.token.toLowerCase().includes(t))}prune(e,t){let n=[];for(let r of e){let e=this.prune(r.children,t);(t(r)||e.length)&&n.push({...r,children:e})}return n}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-di-inspector`]],inputs:{rpc:[1,`rpc`]},decls:4,vars:1,consts:[[`role`,`status`,1,`state`],[1,`state`],[1,`intro`],[1,`toolbar`],[`role`,`group`,`aria-label`,`Injector tree`,1,`segmented`],[`type`,`button`,3,`click`],[1,`pill`],[1,`search`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,1,`search-icon`],[`cx`,`11`,`cy`,`11`,`r`,`7`],[`d`,`m20 20-3.5-3.5`],[`type`,`search`,`placeholder`,`Find a token, component or injector…`,`aria-label`,`Find a token, component or injector`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`keydown.escape`,`value`],[1,`checkbox`],[`type`,`checkbox`,3,`change`,`checked`],[`role`,`status`,1,`where`],[`role`,`status`,1,`where`,`muted`],[1,`layout`],[`role`,`tree`,1,`tree`,3,`keydown`,`hidden`],[`role`,`treeitem`,1,`row`,3,`selected`,`--%NS%depth`],[`aria-labelledby`,`di-detail-title`,1,`detail`],[1,`where-label`],[`type`,`button`,1,`chip`],[`type`,`button`,1,`chip`,3,`click`],[`aria-hidden`,`true`,1,`dot`],[1,`mono`],[1,`chip-tokens`],[`type`,`button`,1,`link`,3,`click`],[1,`state-title`],[1,`state-hint`],[`role`,`treeitem`,1,`row`,3,`click`,`focus`,`blur`,`mouseenter`,`mouseleave`],[`aria-hidden`,`true`,1,`twisty`,3,`open`],[`aria-hidden`,`true`,1,`twisty-space`],[`aria-hidden`,`true`,1,`kind`],[1,`name`,`mono`],[1,`sub`],[1,`meta`],[1,`count`],[1,`count`,`provides`],[`aria-hidden`,`true`,1,`twisty`,3,`click`],[`viewBox`,`0 0 24 24`],[`d`,`m9 6 6 6-6 6`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`],[`d`,`M12 5v14M5 12l7 7 7-7`],[`d`,`M21 8 12 3 3 8v8l9 5 9-5z`],[1,`detail-head`],[1,`badge`],[`id`,`di-detail-title`,1,`mono`],[`aria-label`,`Classes on this element`,1,`classes`],[1,`block`],[1,`hint`],[1,`path`],[3,`current`],[1,`providers`],[1,`empty-line`],[3,`is-component`],[1,`step`,`null`],[`type`,`button`,1,`step`],[1,`hint-inline`],[`type`,`button`,1,`step`,3,`click`],[1,`step-count`],[1,`deps`],[1,`dep`,3,`hit`],[1,`dep`],[1,`dep-main`],[1,`token`,`mono`],[1,`flag`],[1,`dep-meta`],[`type`,`button`,1,`from`],[1,`from`,`missing`],[`type`,`button`,1,`from`,3,`click`],[1,`provider`,3,`hit`],[1,`provider`],[1,`flag`,`kind-flag`],[`aria-hidden`,`true`,1,`spinner`],[`type`,`search`,`placeholder`,`Filter by token or file…`,`aria-label`,`Filter by token or file`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`keydown.escape`,`value`],[`aria-live`,`polite`,1,`total`],[1,`notice`],[`cx`,`12`,`cy`,`12`,`r`,`9`],[`d`,`M12 11v5M12 8h.01`],[1,`source-providers`],[1,`provider-group`],[1,`section-count`],[`role`,`list`,1,`provider-list`],[1,`provider-card`],[1,`provider-header`],[1,`token`],[1,`provided-in`],[1,`provider-meta`],[1,`as`]],template:function(e,t){e&1&&N(0,Rj,29,16)(1,zj,4,0,`div`,0)(2,Bj,5,0,`div`,1)(3,qj,18,4),e&2&&P(t.roots().length>0?0:t.loaded()?t.sourceProviders().length===0?2:3:1)},styles:[`[_nghost-%COMP%] { +}`]})},YA=(e,t)=>t.node.injector.id,XA=(e,t)=>t.id,ZA=(e,t)=>t.from+t.token+e,QA=(e,t)=>t.token+e,$A=(e,t)=>t.type,ej=(e,t)=>t.token+t.file+t.line;function tj(e,t){if(e&1){let e=W();V(0,`label`,12)(1,`input`,13),K(`change`,function(){O(e);let t=q(2);return k(t.componentsOnly.set(!t.componentsOnly()))}),H(),Y(2,` Components only `),H()}if(e&2){let e=q(2);j(),xg(`checked`,e.componentsOnly())}}function nj(e,t){if(e&1){let e=W();V(0,`button`,22),K(`click`,function(){let t=O(e).$implicit;return k(q(3).reveal(t.id))}),U(1,`span`,23),V(2,`span`,24),Y(3),H(),V(4,`span`,25),Y(5),H()()}if(e&2){let e=t.$implicit,n=q(3);j(),n_(`background`,n.tone(e.kind)),j(2),X(e.label),j(2),X(e.tokens)}}function rj(e,t){if(e&1&&(V(0,`div`,14)(1,`span`,20),Y(2,`Provided by`),H(),F(3,nj,6,4,`button`,21,XA),H()),e&2){let e=q(2);j(3),I(e.providedBy())}}function ij(e,t){if(e&1){let e=W();V(0,`div`,15),Y(1),V(2,`button`,26),K(`click`,function(){return O(e),k(q(2).query.set(``))}),Y(3,`Clear search`),H()()}if(e&2){let e=q(2);j(),Z(` Nothing here matches “`,e.query().trim(),`”. `)}}function aj(e,t){e&1&&Y(0,` None of them provide anything themselves. `)}function oj(e,t){e&1&&Y(0,` Turn off “Components only” to see directives. `)}function sj(e,t){e&1&&Y(0,` Try a different search. `)}function cj(e,t){if(e&1&&(V(0,`div`,1)(1,`p`,27),Y(2,`No injectors to show`),H(),V(3,`p`,28),N(4,aj,1,0)(5,oj,1,0)(6,sj,1,0),H()()),e&2){let e=q(2);j(4),P(e.onlyProviding()?4:e.componentsOnly()&&e.view()===`element`?5:6)}}function lj(e,t){if(e&1){let e=W();V(0,`span`,38),K(`click`,function(t){O(e);let n=q().$implicit;return k(q(2).toggle(n.node.injector.id,t))}),ps(),V(1,`svg`,39),U(2,`path`,40),H()()}if(e&2){let e=q().$implicit;J(`open`,e.expanded)}}function uj(e,t){e&1&&U(0,`span`,31)}function dj(e,t){if(e&1&&(V(0,`span`,34),Y(1),H()),e&2){let e=q().$implicit;j(),X(e.node.injector.component)}}function fj(e,t){if(e&1&&(V(0,`span`,34),Y(1),H()),e&2){let e=q().$implicit;j(),X(e.node.injector.directives.join(`, `))}}function pj(e,t){if(e&1&&(V(0,`span`,36),ps(),V(1,`svg`,41),U(2,`path`,42),H(),Y(3),H()),e&2){let e=q().$implicit;M(`title`,e.node.dependencies.length+` injected`),j(3),Z(` `,e.node.dependencies.length,` `)}}function mj(e,t){if(e&1&&(V(0,`span`,37),ps(),V(1,`svg`,41),U(2,`path`,43),H(),Y(3),H()),e&2){let e=q().$implicit;M(`title`,e.node.injector.providerCount+` provided`),j(3),Z(` `,e.node.injector.providerCount,` `)}}function hj(e,t){if(e&1){let e=W();V(0,`div`,29),K(`click`,function(){let t=O(e).$implicit;return k(q(2).select(t.node.injector.id))})(`focus`,function(){let t=O(e).$implicit,n=q(2);return n.focusId.set(t.node.injector.id),k(n.highlight(t.node))})(`blur`,function(){return O(e),k(q(2).highlight(null))})(`mouseenter`,function(){let t=O(e).$implicit;return k(q(2).highlight(t.node))})(`mouseleave`,function(){return O(e),k(q(2).highlight(null))}),N(1,lj,3,2,`span`,30)(2,uj,1,0,`span`,31),V(3,`span`,32),Y(4),H(),V(5,`span`,33),Y(6),H(),N(7,dj,2,1,`span`,34)(8,fj,2,1,`span`,34),V(9,`span`,35),N(10,pj,4,2,`span`,36),N(11,mj,4,2,`span`,37),H()()}if(e&2){let e=t.$implicit,n=q(2);n_(`--%NS%depth`,e.depth),J(`selected`,n.selected()?.injector?.id===e.node.injector.id),M(`aria-level`,e.depth+1)(`aria-expanded`,e.hasChildren?e.expanded:null)(`aria-selected`,n.selected()?.injector?.id===e.node.injector.id)(`tabindex`,n.rovingId()===e.node.injector.id?0:-1)(`data-id`,e.node.injector.id),j(),P(e.hasChildren?1:2),j(2),n_(`--%NS%tone`,n.tone(n.kind(e.node))),M(`title`,n.kind(e.node)),j(),X(n.kind(e.node)[0].toUpperCase()),j(2),X(n.label(e.node)),j(),P(e.node.injector.component?7:e.node.injector.directives?.length?8:-1),j(3),P((e.node.dependencies?.length??0)>0?10:-1),j(),P(e.node.injector.providerCount>0?11:-1)}}function gj(e,t){if(e&1&&(V(0,`li`),Y(1),H()),e&2){let e=t.$implicit;J(`is-component`,e===q(2).injector.component),j(),X(e)}}function _j(e,t){if(e&1&&(V(0,`ul`,47),F(1,gj,2,3,`li`,54,lg),H()),e&2){let e=q();j(),I(e.injector.directives)}}function vj(e,t){if(e&1&&(V(0,`span`,55),U(1,`span`,23),Y(2,` Null injector `),V(3,`span`,57),Y(4,`throws NullInjectorError`),H()()),e&2){let e=q(4);j(),n_(`background`,e.tone(`null`))}}function yj(e,t){if(e&1&&(V(0,`span`,59),Y(1),H()),e&2){let e=q(2).$implicit;j(),X(e.providers)}}function bj(e,t){if(e&1){let e=W();V(0,`button`,58),K(`click`,function(){O(e);let t=q().$implicit;return k(q(3).reveal(t.id))}),U(1,`span`,23),V(2,`span`,24),Y(3),H(),N(4,yj,2,1,`span`,59),H()}if(e&2){let e=q().$implicit,t=q(3);j(),n_(`background`,t.tone(e.kind)),j(2),X(e.label),j(),P(e.providers?4:-1)}}function xj(e,t){if(e&1&&(V(0,`li`),N(1,vj,5,2,`span`,55)(2,bj,5,4,`button`,56),H()),e&2){let e=t.$implicit,n=t.$index,r=q(3);J(`current`,n===0),j(),P(e.id===r.nullId?1:2)}}function Sj(e,t){if(e&1&&(V(0,`span`,65),Y(1),H()),e&2){let e=t.$implicit;j(),X(e)}}function Cj(e,t){if(e&1&&(V(0,`span`),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`for `,e.from)}}function wj(e,t){if(e&1){let e=W();V(0,`button`,69),K(`click`,function(){let t=O(e);return k(q(6).reveal(t))}),U(1,`span`,23),Y(2,` from `),V(3,`span`,24),Y(4),H()()}if(e&2){let e=t,n=q(6);j(),n_(`background`,n.tone(n.kindById(e))),j(3),X(n.labelById(e))}}function Tj(e,t){e&1&&(V(0,`span`,68),Y(1,`not provided anywhere`),H())}function Ej(e,t){if(e&1&&(V(0,`li`,62)(1,`div`,63)(2,`span`,64),Y(3),H(),F(4,Sj,2,1,`span`,65,lg),H(),V(6,`div`,66),N(7,Cj,2,1,`span`),N(8,wj,5,3,`button`,67)(9,Tj,2,0,`span`,68),H()()),e&2){let e,n=t.$implicit,r=q(3);J(`hit`,q(2).matches(n.token)),j(3),X(n.token),j(),I(n.flags),j(3),P(r.injector.directives&&r.injector.directives.length>1?7:-1),j(),P((e=n.providedBy)?8:9,e)}}function Dj(e,t){if(e&1&&(V(0,`ul`,60),F(1,Ej,10,5,`li`,61,ZA),H()),e&2){let e=q(2);j(),I(e.dependencies)}}function Oj(e,t){e&1&&(V(0,`p`,53),Y(1,`Nothing is injected through the constructor or inject().`),H())}function kj(e,t){if(e&1&&(V(0,`div`,48)(1,`h3`),Y(2,` Injected here `),V(3,`span`,6),Y(4),H()(),N(5,Dj,3,0,`ul`,60)(6,Oj,2,0,`p`,53),H()),e&2){let e=q();j(4),X(e.dependencies?.length??0),j(),P(e.dependencies?.length?5:6)}}function Aj(e,t){e&1&&(V(0,`span`,65),Y(1,`viewProviders`),H())}function jj(e,t){e&1&&(V(0,`span`,65),Y(1,`multi`),H())}function Mj(e,t){if(e&1&&(V(0,`div`,66),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`via `,e.importPath.join(` › `))}}function Nj(e,t){if(e&1&&(V(0,`li`,71)(1,`div`,63)(2,`span`,64),Y(3),H(),V(4,`span`,72),Y(5),H(),N(6,Aj,2,0,`span`,65),N(7,jj,2,0,`span`,65),H(),N(8,Mj,2,1,`div`,66),H()),e&2){let e=t.$implicit,n=q(4);J(`hit`,n.matches(e.token)),j(3),X(e.token),j(2),X(e.type===`unknown`?`provider`:`use`+n.capital(e.type)),j(),P(e.isViewProvider?6:-1),j(),P(e.multi?7:-1),j(),P(e.importPath?.length?8:-1)}}function Pj(e,t){if(e&1&&(V(0,`ul`,52),F(1,Nj,9,7,`li`,70,QA),H()),e&2){let e=q();j(),I(e.providers)}}function Fj(e,t){e&1&&Y(0,` No providers or viewProviders on this element. `)}function Ij(e,t){e&1&&Y(0,` This injector has no providers of its own. `)}function Lj(e,t){if(e&1&&(V(0,`p`,53),N(1,Fj,1,0)(2,Ij,1,0),H()),e&2){let e=q();j(),P(e.injector.type===`element`?1:2)}}function Rj(e,t){if(e&1&&(V(0,`section`,19)(1,`header`,44)(2,`span`,45),Y(3),H(),V(4,`h2`,46),Y(5),H(),N(6,_j,3,0,`ul`,47),H(),V(7,`div`,48)(8,`h3`),Y(9,`Lookup path`),H(),V(10,`p`,49),Y(11,`Angular asks these injectors in order until one has the token.`),H(),V(12,`ol`,50),F(13,xj,3,3,`li`,51,XA),H()(),N(15,kj,7,2,`div`,48),V(16,`div`,48)(17,`h3`),Y(18,` Provides `),V(19,`span`,6),Y(20),H()(),N(21,Pj,3,0,`ul`,52)(22,Lj,3,1,`p`,53),H()()),e&2){let e=t,n=q(2);j(2),n_(`--%NS%tone`,n.tone(n.kind(e))),j(),X(n.kind(e)),j(2),X(n.label(e)),j(),P(e.injector.directives?.length?6:-1),j(7),I(n.path()),j(2),P(e.injector.type===`element`?15:-1),j(5),X(e.providers.length),j(),P(e.providers.length?21:22)}}function zj(e,t){if(e&1){let e=W();V(0,`p`,2),Y(1,` Every component and directive gets an injector. When it asks for a token, Angular walks up this tree, then through the environment injectors, until something provides it. `),H(),V(2,`div`,3)(3,`div`,4)(4,`button`,5),K(`click`,function(){return O(e),k(q().setView(`element`))}),Y(5,` Elements `),V(6,`span`,6),Y(7),H()(),V(8,`button`,5),K(`click`,function(){return O(e),k(q().setView(`environment`))}),Y(9,` Environment `),V(10,`span`,6),Y(11),H()()(),V(12,`div`,7),ps(),V(13,`svg`,8),U(14,`circle`,9)(15,`path`,10),H(),ms(),V(16,`input`,11),K(`input`,function(t){return O(e),k(q().query.set(t.target.value))})(`keydown.escape`,function(){return O(e),k(q().query.set(``))}),H()(),N(17,tj,3,1,`label`,12),V(18,`label`,12)(19,`input`,13),K(`change`,function(){O(e);let t=q();return k(t.onlyProviding.set(!t.onlyProviding()))}),H(),Y(20,` With providers `),H()(),N(21,rj,5,0,`div`,14)(22,ij,4,1,`div`,15),V(23,`div`,16),N(24,cj,7,1,`div`,1),V(25,`div`,17),K(`keydown`,function(t){return O(e),k(q().onTreeKey(t))}),F(26,hj,12,18,`div`,18,YA),H(),N(28,Rj,23,8,`section`,19),H()}if(e&2){let e,t=q();j(4),J(`active`,t.view()===`element`),M(`aria-pressed`,t.view()===`element`),j(3),X(t.elementCount()),j(),J(`active`,t.view()===`environment`),M(`aria-pressed`,t.view()===`environment`),j(3),X(t.environmentCount()),j(5),xg(`value`,t.query()),j(),P(t.view()===`element`?17:-1),j(2),xg(`checked`,t.onlyProviding()),j(2),P(t.providedBy().length?21:t.query().trim()&&!t.rows().length?22:-1),j(3),P(t.rows().length?-1:24),j(),xg(`hidden`,!t.rows().length),M(`aria-label`,t.view()===`element`?`Element injectors`:`Environment injectors`),j(),I(t.rows()),j(2),P((e=t.selected())?28:-1,e)}}function Bj(e,t){e&1&&(V(0,`div`,0),U(1,`span`,73),V(2,`p`,27),Y(3,`Loading dependency injection data…`),H()())}function Vj(e,t){e&1&&(V(0,`div`,1)(1,`p`,27),Y(2,`No DI data found`),H(),V(3,`p`,28),Y(4,` Open the app in a browser with the devtools connected to see its live injectors. No providers, injectables or inject() calls were found in the source either. `),H()())}function Hj(e,t){if(e&1){let e=W();V(0,`div`,1)(1,`p`,27),Y(2),H(),V(3,`p`,28),Y(4,`Try part of a token name or a file path.`),H(),V(5,`button`,5),K(`click`,function(){return O(e),k(q(2).query.set(``))}),Y(6,`Clear filter`),H()()}if(e&2){let e=q(2);j(2),Z(`No providers match “`,e.query(),`”`)}}function Uj(e,t){if(e&1&&(V(0,`span`,86),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`providedIn: `,e.providedIn)}}function Wj(e,t){if(e&1&&(V(0,`span`,88),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`as `,e.source)}}function Gj(e,t){if(e&1&&(V(0,`li`,83)(1,`div`,84)(2,`span`,85),Y(3),H(),N(4,Uj,2,1,`span`,86),H(),V(5,`div`,87)(6,`span`,50),Y(7),H(),N(8,Wj,2,1,`span`,88),H()()),e&2){let e=t.$implicit;j(3),X(e.token),j(),P(e.providedIn?4:-1),j(3),O_(``,e.file,`:`,e.line),j(),P(e.source!==`class`&&e.source!==`providers array`?8:-1)}}function Kj(e,t){if(e&1&&(V(0,`section`,80)(1,`h2`),Y(2),V(3,`span`,81),Y(4),H()(),V(5,`ul`,82),F(6,Gj,9,5,`li`,83,ej),H()()),e&2){let e=t.$implicit;j(2),Z(` `,e.label,` `),j(2),X(e.items.length),j(2),I(e.items)}}function qj(e,t){if(e&1&&(V(0,`div`,79),F(1,Kj,8,2,`section`,80,$A),H()),e&2){let e=q(2);j(),I(e.groupedProviders())}}function Jj(e,t){if(e&1){let e=W();V(0,`div`,3)(1,`div`,7),ps(),V(2,`svg`,8),U(3,`circle`,9)(4,`path`,10),H(),ms(),V(5,`input`,74),K(`input`,function(t){return O(e),k(q().query.set(t.target.value))})(`keydown.escape`,function(){return O(e),k(q().query.set(``))}),H()(),V(6,`span`,75),Y(7),H()(),V(8,`p`,76),ps(),V(9,`svg`,41),U(10,`circle`,77)(11,`path`,78),H(),ms(),V(12,`span`)(13,`strong`),Y(14,`DI from source scan (static analysis).`),H(),Y(15,` Connect the overlay on Angular 17+ to see the live injector tree. `),H()(),N(16,Hj,7,1,`div`,1)(17,qj,3,0,`div`,79)}if(e&2){let e=q();j(5),xg(`value`,e.query()),j(2),O_(` `,e.sourceMatchCount(),` of `,e.sourceProviders().length,` `),j(9),P(e.groupedProviders().length===0?16:17)}}var Yj=`inj-null`,Xj={component:`var(--accent)`,directive:`#7cb4ff`,environment:`var(--ok)`,null:`var(--text-3)`};function Zj(e){return e.injector.type===`element`?e.injector.component?`component`:`directive`:`environment`}function Qj(e){return e.injector.type===`element`?`<${e.injector.name}>`:e.injector.name}function $j(e){return Array.isArray(e)}var eM=class e{rpc=$(null);nullId=Yj;roots=A([]);environment=A([]);sourceProviders=A([]);loaded=A(!1);view=A(`element`);query=A(``);onlyProviding=A(!1);componentsOnly=A(!0);collapsed=A(new Set);selectedId=A(null);focusId=A(null);index=Q(()=>{let e=new Map,t=new Map,n=(r,i)=>{for(let a of r)e.set(a.injector.id,a),i&&t.set(a.injector.id,i),n(a.children,a.injector.id)};return n(this.roots(),null),n(this.environment(),null),{map:e,parents:t}});elementCount=Q(()=>this.count(this.roots()));environmentCount=Q(()=>this.count(this.environment()));visible=Q(()=>{let e=this.view()===`element`?this.roots():this.environment();this.view()===`element`&&this.componentsOnly()&&(e=this.prune(e,e=>!!e.injector.component)),this.onlyProviding()&&(e=this.prune(e,e=>e.providers.length>0));let t=this.normalizedQuery();return t&&(e=this.prune(e,e=>this.nodeMatches(e,t))),e});rows=Q(()=>{let e=[],t=this.collapsed(),n=!!this.normalizedQuery(),r=(i,a)=>{for(let o of i){let i=n||!t.has(o.injector.id);e.push({node:o,depth:a,hasChildren:o.children.length>0,expanded:i}),i&&r(o.children,a+1)}};return r(this.visible(),0),e});selected=Q(()=>{let e=this.selectedId();return(e?this.index().map.get(e):void 0)??this.rows()[0]?.node??null});rovingId=Q(()=>{let e=this.rows(),t=this.focusId()??this.selected()?.injector.id;return t&&e.some(e=>e.node.injector.id===t)?t:e[0]?.node.injector.id??null});path=Q(()=>{let e=this.selected();if(!e)return[];let{map:t,parents:n}=this.index(),r=e.injector.path??[];if(!r.length){r=[e.injector.id];let t=n.get(e.injector.id);for(;t;)r.push(t),t=n.get(t);r.push(Yj)}return r.map(e=>{let n=t.get(e);return{id:e,label:n?Qj(n):`Null injector`,kind:n?Zj(n):`null`,providers:n?.providers.length??0}})});providedBy=Q(()=>{let e=this.normalizedQuery();if(!e)return[];let t=[];for(let n of this.index().map.values()){let r=n.providers.filter(t=>t.token.toLowerCase().includes(e));r.length&&t.push({id:n.injector.id,label:Qj(n),kind:Zj(n),tokens:r.map(e=>e.token).join(`, `)})}return t.slice(0,12)});groupedProviders=Q(()=>{let e=this.normalizedQuery(),t=e?this.sourceProviders().filter(t=>t.token.toLowerCase().includes(e)||t.file.toLowerCase().includes(e)):this.sourceProviders(),n=[{type:`root-provider`,label:`Root Providers (provide*)`,items:[]},{type:`injectable`,label:`Injectable Services`,items:[]},{type:`injection`,label:`inject() Calls`,items:[]},{type:`provider`,label:`Component Providers`,items:[]}];for(let e of t)n.find(t=>t.type===e.type)?.items.push(e);return n.filter(e=>e.items.length>0)});sourceMatchCount=Q(()=>this.groupedProviders().reduce((e,t)=>e+t.items.length,0));normalizedQuery=Q(()=>this.query().trim().toLowerCase());destroyRef=E(ws);stopTree=null;constructor(){dc(()=>{let e=this.rpc();e&&(this.loadInjectorTree(e),this.loadSourceProviders(e))}),this.destroyRef.onDestroy(()=>{this.stopTree?.(),this.highlight(null)})}label(e){return Qj(e)}kind(e){return Zj(e)}tone(e){return Xj[e]??Xj.null}kindById(e){let t=this.index().map.get(e);return t?Zj(t):`null`}labelById(e){let t=this.index().map.get(e);return t?Qj(t):`Null injector`}capital(e){return e.charAt(0).toUpperCase()+e.slice(1)}matches(e){let t=this.normalizedQuery();return!!t&&e.toLowerCase().includes(t)}setView(e){this.view()!==e&&(this.view.set(e),this.selectedId.set(null),this.focusId.set(null))}select(e){this.selectedId.set(e),this.focusId.set(e)}toggle(e,t){t?.stopPropagation(),!this.normalizedQuery()&&this.collapsed.update(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})}reveal(e){let t=this.index().map.get(e);if(!t)return;this.setView(t.injector.type===`element`?`element`:`environment`);let{parents:n}=this.index();this.collapsed.update(t=>{let r=new Set(t),i=n.get(e);for(;i;)r.delete(i),i=n.get(i);return r}),this.onlyProviding()&&t.providers.length===0&&this.onlyProviding.set(!1),t.injector.type===`element`&&!t.injector.component&&this.componentsOnly.set(!1),this.select(e),queueMicrotask(()=>this.focusRow(e,!1))}highlight(e){let t=this.rpc();if(!t)return;let n=e?.injector.type===`element`?e.injector.selector??null:null;t.scope(`ng-devtools`).rpc.call(`request-page-highlight`,n).catch(()=>{})}onTreeKey(e){let t=this.rows();if(!t.length)return;let n=this.rovingId(),r=t.findIndex(e=>e.node.injector.id===n),i=Math.max(r,0),a=t[i],o=-1;switch(e.key){case`ArrowDown`:o=Math.min(i+1,t.length-1);break;case`ArrowUp`:o=Math.max(i-1,0);break;case`Home`:o=0;break;case`End`:o=t.length-1;break;case`ArrowRight`:a.hasChildren&&!a.expanded?this.toggle(a.node.injector.id):a.hasChildren&&(o=i+1);break;case`ArrowLeft`:if(a.hasChildren&&a.expanded&&!this.normalizedQuery())this.toggle(a.node.injector.id);else{let e=this.index().parents.get(a.node.injector.id);o=t.findIndex(t=>t.node.injector.id===e)}break;case`Enter`:case` `:this.select(a.node.injector.id);break;default:return}if(e.preventDefault(),o>=0){let e=t[o].node.injector.id;this.focusId.set(e),this.selectedId.set(e),queueMicrotask(()=>this.focusRow(e,!0))}}focusRow(e,t){let n=document.querySelector(`.row[data-id="${CSS.escape(e)}"]`);n&&(t&&n.focus(),n.scrollIntoView({block:`nearest`}))}async loadInjectorTree(e){this.stopTree?.(),this.stopTree=null;let t=e.scope(`ng-devtools`),n;try{n=await t.rpc.sharedState(`injector-tree`)}catch{return}if(this.destroyRef.destroyed)return;let r=sT(),i=e=>{let t=e,n=(r?t?.pages?.[r]:void 0)??t;$j(n?.roots)&&this.roots.set(n.roots),$j(n?.environment)&&this.environment.set(n.environment)};i(n.value()),this.stopTree=n.on(`updated`,i)}async loadSourceProviders(e){let t=e.scope(`ng-devtools`);try{this.sourceProviders.set(await t.rpc.call(`get-providers`))}catch{this.sourceProviders.set([])}finally{this.loaded.set(!0)}}count(e){return e.reduce((e,t)=>e+1+this.count(t.children),0)}nodeMatches(e,t){let n=e.injector;return n.name.toLowerCase().includes(t)||!!n.component?.toLowerCase().includes(t)||!!n.directives?.some(e=>e.toLowerCase().includes(t))||e.providers.some(e=>e.token.toLowerCase().includes(t))||!!e.dependencies?.some(e=>e.token.toLowerCase().includes(t))}prune(e,t){let n=[];for(let r of e){let e=this.prune(r.children,t);(t(r)||e.length)&&n.push({...r,children:e})}return n}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-di-inspector`]],inputs:{rpc:[1,`rpc`]},decls:4,vars:1,consts:[[`role`,`status`,1,`state`],[1,`state`],[1,`intro`],[1,`toolbar`],[`role`,`group`,`aria-label`,`Injector tree`,1,`segmented`],[`type`,`button`,3,`click`],[1,`pill`],[1,`search`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,1,`search-icon`],[`cx`,`11`,`cy`,`11`,`r`,`7`],[`d`,`m20 20-3.5-3.5`],[`type`,`search`,`placeholder`,`Find a token, component or injector…`,`aria-label`,`Find a token, component or injector`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`keydown.escape`,`value`],[1,`checkbox`],[`type`,`checkbox`,3,`change`,`checked`],[`role`,`status`,1,`where`],[`role`,`status`,1,`where`,`muted`],[1,`layout`],[`role`,`tree`,1,`tree`,3,`keydown`,`hidden`],[`role`,`treeitem`,1,`row`,3,`selected`,`--%NS%depth`],[`aria-labelledby`,`di-detail-title`,1,`detail`],[1,`where-label`],[`type`,`button`,1,`chip`],[`type`,`button`,1,`chip`,3,`click`],[`aria-hidden`,`true`,1,`dot`],[1,`mono`],[1,`chip-tokens`],[`type`,`button`,1,`link`,3,`click`],[1,`state-title`],[1,`state-hint`],[`role`,`treeitem`,1,`row`,3,`click`,`focus`,`blur`,`mouseenter`,`mouseleave`],[`aria-hidden`,`true`,1,`twisty`,3,`open`],[`aria-hidden`,`true`,1,`twisty-space`],[`aria-hidden`,`true`,1,`kind`],[1,`name`,`mono`],[1,`sub`],[1,`meta`],[1,`count`],[1,`count`,`provides`],[`aria-hidden`,`true`,1,`twisty`,3,`click`],[`viewBox`,`0 0 24 24`],[`d`,`m9 6 6 6-6 6`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`],[`d`,`M12 5v14M5 12l7 7 7-7`],[`d`,`M21 8 12 3 3 8v8l9 5 9-5z`],[1,`detail-head`],[1,`badge`],[`id`,`di-detail-title`,1,`mono`],[`aria-label`,`Classes on this element`,1,`classes`],[1,`block`],[1,`hint`],[1,`path`],[3,`current`],[1,`providers`],[1,`empty-line`],[3,`is-component`],[1,`step`,`null`],[`type`,`button`,1,`step`],[1,`hint-inline`],[`type`,`button`,1,`step`,3,`click`],[1,`step-count`],[1,`deps`],[1,`dep`,3,`hit`],[1,`dep`],[1,`dep-main`],[1,`token`,`mono`],[1,`flag`],[1,`dep-meta`],[`type`,`button`,1,`from`],[1,`from`,`missing`],[`type`,`button`,1,`from`,3,`click`],[1,`provider`,3,`hit`],[1,`provider`],[1,`flag`,`kind-flag`],[`aria-hidden`,`true`,1,`spinner`],[`type`,`search`,`placeholder`,`Filter by token or file…`,`aria-label`,`Filter by token or file`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`keydown.escape`,`value`],[`aria-live`,`polite`,1,`total`],[1,`notice`],[`cx`,`12`,`cy`,`12`,`r`,`9`],[`d`,`M12 11v5M12 8h.01`],[1,`source-providers`],[1,`provider-group`],[1,`section-count`],[`role`,`list`,1,`provider-list`],[1,`provider-card`],[1,`provider-header`],[1,`token`],[1,`provided-in`],[1,`provider-meta`],[1,`as`]],template:function(e,t){e&1&&N(0,zj,29,16)(1,Bj,4,0,`div`,0)(2,Vj,5,0,`div`,1)(3,Jj,18,4),e&2&&P(t.roots().length>0?0:t.loaded()?t.sourceProviders().length===0?2:3:1)},styles:[`[_nghost-%COMP%] { display: block; color: var(--%NS%text); font-size: 13px; @@ -5351,11 +5351,11 @@ button[_ngcontent-%COMP%] { .provider-meta[_ngcontent-%COMP%] .as[_ngcontent-%COMP%] { color: var(--%NS%text-2); -}`]})},eM=`@type`;function tM(e){return!!e&&typeof e==`object`&&!Array.isArray(e)&&eM in e}function nM(e){return/^[A-Za-z_$][\w$]*$/.test(e)?e:JSON.stringify(e)}function rM(e,t=``){if(e===null)return`null`;if(typeof e==`string`)return JSON.stringify(e);if(typeof e!=`object`)return String(e);let n=t+` `;if(Array.isArray(e))return e.length?`[\n${e.map(e=>n+rM(e,n)).join(`, -`)}\n${t}]`:`[]`;if(tM(e)){let r=e;switch(r[eM]){case`undefined`:return`undefined`;case`Date`:return`Date(${r.value})`;case`bigint`:return`${r.value}n`;case`symbol`:return`Symbol(${r.value})`;case`function`:return`ƒ ${r.name}()`;case`Error`:return`${r.name??`Error`}: ${r.message}`;case`Element`:return`<${r.value}>`;case`Map`:{let e=r.entries??[];if(!e.length)return`Map(${r.size}) {}`;let i=e.map(([e,t])=>`${n}${rM(e,n)} => ${rM(t,n)}`);return`Map(${r.size}) {\n${i.join(`, -`)}\n${t}}`}case`Set`:{let e=r.values??[];return e.length?`Set(${r.size}) {\n${e.map(e=>n+rM(e,n)).join(`, -`)}\n${t}}`:`Set(${r.size}) {}`}default:return String(r.value??r[eM])}}let r=Object.entries(e);return r.length?`{\n${r.map(([e,t])=>`${n}${nM(e)}: ${rM(t,n)}`).join(`, -`)}\n${t}}`:`{}`}function iM(e,t=120){let n=rM(e).replace(/\s*\n\s*/g,` `);return n.length>t?`${n.slice(0,t-1)}…`:n}var aM=(e,t)=>t.id,oM=(e,t)=>t.seq,sM=(e,t)=>t.key,cM=(e,t)=>t.name,lM=(e,t)=>t.path,uM=(e,t)=>t.kind,dM=(e,t)=>t.name+t.file+t.line;function fM(e,t){if(e&1){let e=W();R(0,`span`,16),Y(1,`Page`),z(),R(2,`app-select`,17),G(`valueChange`,function(t){return O(e),k(q().selectPage(t))}),z()}if(e&2){let e=q();j(2),L(`options`,e.pageOptions())(`value`,e.page()?.pageId??null)}}function pM(e,t){if(e&1&&(R(0,`span`,7),Y(1),z()),e&2){let e=q();j(),X(e.liveStores().length)}}function mM(e,t){if(e&1){let e=W();R(0,`div`,8)(1,`p`,18),Y(2,`Could not load the live store state.`),z(),R(3,`p`,19),Y(4,`Check that the dev server with ng-devtools is still running.`),z(),R(5,`button`,20),G(`click`,function(){return O(e),k(q().retry())}),Y(6,`Retry`),z()()}}function hM(e,t){e&1&&(R(0,`div`,9)(1,`p`,18),Y(2,`No page is reporting NgRx state yet.`),z(),R(3,`p`,19),Y(4,` Open the app in a browser. Stores show up here as soon as the page creates them. `),z()())}function gM(e,t){e&1&&(R(0,`p`,18),Y(1,`No signal store instance on this page yet.`),z(),R(2,`p`,19),Y(3,` A `),R(4,`code`),Y(5,`signalStore`),z(),Y(6,` is created the first time something injects it. Navigate to a page that uses the store and it appears here. `),z())}function _M(e,t){e&1&&(R(0,`p`,18),Y(1,`The @ngrx/store Store was not found on this page.`),z(),R(2,`p`,19),Y(3,` Check that `),R(4,`code`),Y(5,`provideStore()`),z(),Y(6,` or `),R(7,`code`),Y(8,`StoreModule.forRoot()`),z(),Y(9,` is part of the providers of the running app. `),z())}function vM(e,t){e&1&&(R(0,`p`,18),Y(1,`This page has no NgRx store.`),z(),R(2,`p`,19),Y(3,` Stores from `),R(4,`code`),Y(5,`@ngrx/signals`),z(),Y(6,` (`),R(7,`code`),Y(8,`signalStore`),z(),Y(9,`, `),R(10,`code`),Y(11,`signalState`),z(),Y(12,`) and `),R(13,`code`),Y(14,`@ngrx/store`),z(),Y(15,` are listed here once the app creates them. `),z())}function yM(e,t){if(e&1&&(R(0,`div`,9),N(1,gM,7,0)(2,_M,10,0)(3,vM,16,0),z()),e&2){let e=q();j(),P(e.usesSignals()?1:e.usesClassic()?2:3)}}function bM(e,t){if(e&1){let e=W();R(0,`li`)(1,`button`,24),G(`click`,function(){let t=O(e).$implicit;return k(q(2).selectStore(t.id))}),R(2,`span`,25),B(3,`span`,26),R(4,`span`,27),Y(5),z()(),R(6,`span`,28),Y(7),z()()()}if(e&2){let e=t.$implicit,n=q(2);j(),J(`selected`,e.id===n.store()?.id),M(`aria-pressed`,e.id===n.store()?.id),j(2),t_(`background`,n.kindColor(e.kind)),j(2),X(e.label),j(2),k_(` `,n.kindLabel(e.kind),` · `,e.scope,` · `,n.changeCount(e.id),` `,n.changeCount(e.id)===1?`change`:`changes`,` `)}}function xM(e,t){e&1&&(R(0,`li`,22),Y(1,`No stores match this filter.`),z())}function SM(e,t){if(e&1&&(R(0,`span`,32),Y(1),z()),e&2){let e=t;L(`title`,e),j(),X(e)}}function CM(e,t){if(e&1&&(R(0,`span`,31),Y(1),z()),e&2){let e=q();j(),X(e.classic.devtools?`Store DevTools on`:`read-only`)}}function wM(e,t){if(e&1&&(R(0,`code`),Y(1),z(),Y(2)),e&2){let e=t.$implicit,n=t.$index,r=t.$count;j(),X(e),j(),Z(``,n===r-1?``:`, `,` `)}}function TM(e,t){if(e&1&&(R(0,`p`,33),Y(1,` Referenced by `),F(2,wM,3,2,null,null,cg),z()),e&2){let e=q();j(2),I(e.signal.references)}}function EM(e,t){if(e&1&&(R(0,`dt`),Y(1),z(),R(2,`dd`)(3,`code`,49),Y(4),z()()),e&2){let e=t.$implicit;j(),X(e.key),j(2),L(`title`,e.full),j(),X(e.value)}}function DM(e,t){if(e&1&&(R(0,`dl`,45),F(1,EM,5,3,null,null,sM),z()),e&2){let e=q(4);j(),I(e.computedEntries())}}function OM(e,t){e&1&&(R(0,`p`,46),Y(1,`No computed signals.`),z())}function kM(e,t){e&1&&(R(0,`span`,51),Y(1,`rxMethod`),z())}function AM(e,t){if(e&1&&(R(0,`li`,50),Y(1),N(2,kM,2,0,`span`,51),R(3,`span`,52),Y(4),z()()),e&2){let e=t.$implicit;j(),Z(` `,e.name,` `),j(),P(e.rx?2:-1),j(2),D_(``,e.calls,` `,e.calls===1?`call`:`calls`)}}function jM(e,t){if(e&1&&(R(0,`ul`,48),F(1,AM,5,4,`li`,50,cM),z()),e&2){let e=q();j(),I(e.methods)}}function MM(e,t){e&1&&(R(0,`p`,46),Y(1,`No methods.`),z())}function NM(e,t){if(e&1&&(R(0,`section`,38)(1,`h4`,44),Y(2,`Computed`),z(),N(3,DM,3,0,`dl`,45)(4,OM,2,0,`p`,46),R(5,`h4`,47),Y(6,`Methods`),z(),N(7,jM,3,0,`ul`,48)(8,MM,2,0,`p`,46),z()),e&2){let e=q(3);j(3),P(e.computedEntries().length?3:4),j(4),P(t.methods.length?7:8)}}function PM(e,t){if(e&1){let e=W();R(0,`li`)(1,`button`,53),G(`click`,function(){let t=O(e).$implicit;return k(q(3).selectEntry(t.seq))}),R(2,`span`,54),Y(3),z(),R(4,`span`,55),Y(5),z(),R(6,`span`,56),Y(7),z()()()}if(e&2){let e=t.$implicit,n=q(3);j(),J(`selected`,e.seq===n.selectedSeq()),M(`aria-pressed`,e.seq===n.selectedSeq()),j(2),Z(`#`,e.seq),j(),L(`title`,e.type),j(),X(e.type),j(2),D_(``,e.diff.length===0?`no change`:e.diff.length+(e.diff.length===1?` change`:` changes`),` · `,n.formatTime(e.timestamp))}}function FM(e,t){e&1&&Y(0,` No entries match this filter. `)}function IM(e,t){e&1&&Y(0,` No actions dispatched since the page connected. `)}function LM(e,t){e&1&&Y(0,` No state changes yet. Method calls and patchState writes that change the state are recorded here. `)}function RM(e,t){if(e&1&&(R(0,`li`,22),N(1,FM,1,0)(2,IM,1,0)(3,LM,1,0),z()),e&2){let e=q(),t=q(2);j(),P(t.filter()?1:e.classic?2:3)}}function zM(e,t){if(e&1&&(R(0,`dt`),Y(1,`Action`),z(),R(2,`dd`)(3,`pre`,61),Y(4),z()()),e&2){let e=q(),t=q(3);j(4),X(t.prettyText(e.action))}}function BM(e,t){if(e&1&&(R(0,`dt`),Y(1,`Arguments`),z(),R(2,`dd`)(3,`pre`,61),Y(4),z()()),e&2){let e=q(),t=q(3);j(4),X(t.prettyText(e.args))}}function VM(e,t){if(e&1&&(R(0,`code`,66),Y(1),z()),e&2){let e=q().$implicit,t=q(5);j(),X(t.shortText(e.before))}}function HM(e,t){e&1&&(R(0,`span`,68),Y(1,`→`),z(),R(2,`span`,69),Y(3,`became`),z())}function UM(e,t){if(e&1&&(R(0,`code`,67),Y(1),z()),e&2){let e=q().$implicit,t=q(5);j(),X(t.shortText(e.after))}}function WM(e,t){if(e&1&&(R(0,`li`)(1,`span`,63),Y(2),z(),R(3,`code`,64),Y(4),z(),R(5,`span`,65),N(6,VM,2,1,`code`,66),N(7,HM,4,0),N(8,UM,2,1,`code`,67),z()()),e&2){let e=t.$implicit,n=q(5);n_(`diff-row `+e.op),j(2),X(n.opLabel(e.op)),j(2),X(e.path),j(2),P(e.op===`add`?-1:6),j(),P(e.op===`change`?7:-1),j(),P(e.op===`remove`?-1:8)}}function GM(e,t){if(e&1&&(R(0,`ul`,59),F(1,WM,9,7,`li`,62,lM),z()),e&2){let e=q();j(),I(e.diff)}}function KM(e,t){e&1&&(R(0,`p`,46),Y(1,`The state did not change.`),z())}function qM(e,t){e&1&&Y(0),e&2&&Z(` Store DevTools jumps the app state to the state right after action #`,q(3).seq,`. New actions continue from there. `)}function JM(e,t){if(e&1&&Y(0),e&2){let e=q(3);D_(` This sets every state key of `,q().label,` back to its value right after change #`,e.seq,`. Components that read the store update at once, and a new "Restore" entry is added to the log. `)}}function YM(e,t){if(e&1){let e=W();R(0,`div`,70)(1,`p`,72),N(2,qM,1,1)(3,JM,1,2),z(),R(4,`div`,73)(5,`button`,74),G(`click`,function(){O(e);let t=q(2);return k(q(3).restore(t.seq))}),Y(6,` Restore `),z(),R(7,`button`,20),G(`click`,function(){return O(e),k(q(5).confirmSeq.set(null))}),Y(8,` Cancel `),z()()()}if(e&2){let e=q(2),t=q(3);j(2),P(e.source===`store`?2:3),j(3),L(`disabled`,t.busy())}}function XM(e,t){if(e&1){let e=W();R(0,`button`,75),G(`click`,function(){O(e);let t=q(2);return k(q(3).confirmSeq.set(t.seq))}),Y(1,` Restore this state `),z()}}function ZM(e,t){if(e&1&&N(0,YM,9,2,`div`,70)(1,XM,2,0,`button`,71),e&2){let e=q();P(q(3).confirmSeq()===e.seq?0:1)}}function QM(e,t){e&1&&(R(0,`p`,60),Y(1,` Time travel for @ngrx/store needs `),R(2,`code`),Y(3,`provideStoreDevtools()`),z(),Y(4,`. Without it this log is read-only. `),z())}function $M(e,t){if(e&1&&(R(0,`section`,43)(1,`h5`,57),Y(2),z(),R(3,`dl`,45)(4,`dt`),Y(5,`Time`),z(),R(6,`dd`),Y(7),z(),N(8,zM,5,1),N(9,BM,5,1),z(),R(10,`h6`,58),Y(11,`State diff`),z(),N(12,GM,3,0,`ul`,59)(13,KM,2,0,`p`,46),N(14,ZM,2,1)(15,QM,5,0,`p`,60),z()),e&2){let e=t,n=q(3);j(2),D_(`#`,e.seq,` `,e.type),j(5),X(n.formatTime(e.timestamp)),j(),P(e.action===void 0?-1:8),j(),P(e.args?.length?9:-1),j(3),P(e.diff.length?12:13),j(2),P(e.restorable?14:e.source===`store`?15:-1)}}function eN(e,t){if(e&1&&(R(0,`div`,23)(1,`div`,29)(2,`h3`),Y(3),z(),R(4,`div`,30)(5,`span`,31),Y(6),z(),R(7,`span`,31),Y(8),z(),N(9,SM,2,2,`span`,32),N(10,CM,2,1,`span`,31),z(),N(11,TM,4,0,`p`,33),z(),R(12,`div`,34)(13,`section`,35)(14,`h4`,36),Y(15,`State`),z(),R(16,`pre`,37),Y(17),z()(),N(18,NM,9,2,`section`,38),z(),R(19,`section`,39)(20,`h4`,40),Y(21),R(22,`span`,7),Y(23),z()(),R(24,`div`,41)(25,`ul`,42),F(26,PM,8,8,`li`,null,oM,!1,RM,4,1,`li`,22),z(),N(29,$M,16,7,`section`,43),z()()()),e&2){let e,n,r,i=t,a=q(2);j(3),X(i.label),j(3),X(a.kindLabel(i.kind)),j(2),Z(`scope: `,i.scope),j(),P((e=i.signal?.declaredIn)?9:-1,e),j(),P(i.classic?10:-1),j(),P(i.signal?.references?.length?11:-1),j(6),X(a.stateText()),j(),P((n=i.signal)?18:-1,n),j(3),Z(` `,i.classic?`Action log`:`Change log`,` `),j(2),X(a.storeLog().length),j(2),M(`aria-label`,i.classic?`Actions`:`Changes`),j(),I(a.storeLog()),j(3),P((r=a.entry())?29:-1,r)}}function tN(e,t){if(e&1&&(R(0,`div`,10)(1,`ul`,21),F(2,bM,8,10,`li`,null,aM,!1,xM,2,0,`li`,22),z(),N(5,eN,30,13,`div`,23),z()),e&2){let e,t=q();j(2),I(t.filteredStores()),j(3),P((e=t.store())?5:-1,e)}}function nN(e,t){if(e&1&&(R(0,`span`,7),Y(1),z()),e&2){let e=q();j(),X(e.sourceEntries().length)}}function rN(e,t){e&1&&(R(0,`div`,14),B(1,`span`,76),R(2,`p`,18),Y(3,`Scanning source for NgRx declarations…`),z()())}function iN(e,t){e&1&&(R(0,`div`,15)(1,`p`,18),Y(2,`No NgRx declarations found in source.`),z(),R(3,`p`,19),Y(4,` The scan looks for `),R(5,`code`),Y(6,`signalStore`),z(),Y(7,`, `),R(8,`code`),Y(9,`signalState`),z(),Y(10,`, `),R(11,`code`),Y(12,`signalMethod`),z(),Y(13,`, `),R(14,`code`),Y(15,`createAction`),z(),Y(16,`, `),R(17,`code`),Y(18,`createReducer`),z(),Y(19,`, `),R(20,`code`),Y(21,`createEffect`),z(),Y(22,`, `),R(23,`code`),Y(24,`createSelector`),z(),Y(25,` and `),R(26,`code`),Y(27,`createFeature`),z(),Y(28,`. `),z()())}function aN(e,t){if(e&1){let e=W();R(0,`button`,78),G(`click`,function(){let t=O(e).$implicit,n=q(2);return k(n.kind.set(n.kind()===t.kind?null:t.kind))}),B(1,`span`,26),R(2,`span`,83),Y(3),z(),R(4,`span`,79),Y(5),z()()}if(e&2){let e=t.$implicit,n=q(2);J(`active`,n.kind()===e.kind),M(`aria-pressed`,n.kind()===e.kind),j(),t_(`background`,n.kindColor(e.kind)),j(2),X(n.kindLabel(e.kind)),j(2),X(e.count)}}function oN(e,t){if(e&1&&(R(0,`p`,88),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.detail)}}function sN(e,t){if(e&1&&(R(0,`li`,82)(1,`div`,84),B(2,`span`,26),R(3,`span`,85),Y(4),z(),R(5,`span`,31),Y(6),z()(),R(7,`div`,86)(8,`span`,87),Y(9),z()(),N(10,oN,2,1,`p`,88),z()),e&2){let e=t.$implicit,n=q(2);j(2),t_(`background`,n.kindColor(e.kind)),j(2),X(e.name),j(2),X(n.kindLabel(e.kind)),j(2),L(`title`,e.file+`:`+e.line),j(),D_(``,e.file,`:`,e.line),j(),P(e.detail?10:-1)}}function cN(e,t){if(e&1){let e=W();R(0,`li`,14)(1,`p`,18),Y(2,`No declarations match.`),z(),R(3,`button`,20),G(`click`,function(){return O(e),k(q(2).clearFilters())}),Y(4,`Clear filters`),z()()}}function lN(e,t){if(e&1){let e=W();R(0,`div`,77)(1,`button`,78),G(`click`,function(){return O(e),k(q().kind.set(null))}),Y(2,` All `),R(3,`span`,79),Y(4),z()(),F(5,aN,6,7,`button`,80,uM),z(),R(7,`ul`,81),F(8,sN,11,8,`li`,82,dM,!1,cN,5,0,`li`,14),z()}if(e&2){let e=q();j(),J(`active`,!e.kind()),M(`aria-pressed`,!e.kind()),j(3),X(e.sourceEntries().length),j(),I(e.groupedEntries()),j(3),I(e.filteredEntries())}}var uN={action:`#f59e0b`,reducer:`#a78bfa`,effect:`#fb923c`,selector:`#60a5fa`,feature:`#34d399`,"store-setup":`#94a3b8`,"signal-store":`#e879f9`,"signal-state":`#22d3ee`,"signal-method":`#fb7185`,store:`#a78bfa`},dN={"signal-store":`signalStore`,"signal-state":`signalState`,"signal-method":`signalMethod`,"store-setup":`store setup`,store:`@ngrx/store`},fN=new Set([`action`,`reducer`,`effect`,`selector`,`feature`,`store-setup`]),pN=class e{rpc=$(null);filter=A(``);kind=A(null);sourceEntries=A([]);sourceLoaded=A(!1);pages=A([]);failed=A(!1);selectedPageId=A(null);hostPageId=oT();selectedStoreId=A(null);selectedSeq=A(null);confirmSeq=A(null);busy=A(!1);message=A(``);destroyRef=E(ws);unsubscribe=null;page=Q(()=>{let e=this.pages();return e.find(e=>e.pageId===this.selectedPageId())??e.find(e=>e.pageId===this.hostPageId)??e[0]??null});pageOptions=Q(()=>this.pages().map(e=>({value:e.pageId,label:e.title||e.url,hint:e.url})));liveStores=Q(()=>{let e=this.page();if(!e)return[];let t=e.stores.map(e=>({id:e.id,label:e.name??e.references[0]??e.className,kind:e.kind,scope:e.scope,signal:e}));return e.classic&&t.push({id:`store`,label:`Store`,kind:`store`,scope:e.classic.scope,classic:e.classic}),t});filteredStores=Q(()=>{let e=this.filter().trim().toLowerCase();return e?this.liveStores().filter(t=>t.label.toLowerCase().includes(e)||t.kind.includes(e)||(t.signal?.stateKeys??[]).some(t=>t.toLowerCase().includes(e))||(this.page()?.log??[]).some(n=>n.storeId===t.id&&n.type.toLowerCase().includes(e))):this.liveStores()});store=Q(()=>{let e=this.liveStores();return e.find(e=>e.id===this.selectedStoreId())??e[0]??null});stateText=Q(()=>{let e=this.store();return e?rM(e.signal?e.signal.state:e.classic?.state):``});computedEntries=Q(()=>Object.entries(this.store()?.signal?.computed??{}).map(([e,t])=>({key:e,value:iM(t,160),full:rM(t)})));storeLog=Q(()=>{let e=this.store()?.id,t=this.filter().trim().toLowerCase();return(this.page()?.log??[]).filter(n=>n.storeId===e&&(!t||n.type.toLowerCase().includes(t)||this.storeMatches(t))).reverse()});entry=Q(()=>this.storeLog().find(e=>e.seq===this.selectedSeq())??null);usesSignals=Q(()=>this.sourceEntries().some(e=>e.kind===`signal-store`||e.kind===`signal-state`));usesClassic=Q(()=>this.sourceEntries().some(e=>fN.has(e.kind)));filteredEntries=Q(()=>{let e=this.filter().trim().toLowerCase(),t=this.kind();return this.sourceEntries().filter(n=>(!t||n.kind===t)&&(!e||n.name.toLowerCase().includes(e)||n.kind.includes(e)||(n.detail??``).toLowerCase().includes(e)))});groupedEntries=Q(()=>{let e=new Map;for(let t of this.sourceEntries())e.set(t.kind,(e.get(t.kind)??0)+1);return[...e.entries()].map(([e,t])=>({kind:e,count:t}))});constructor(){dc(()=>{let e=this.rpc();e&&this.load(e)}),this.destroyRef.onDestroy(()=>this.unsubscribe?.())}storeMatches(e){let t=this.store();return!!t&&t.label.toLowerCase().includes(e)}async load(e){this.failed.set(!1),KE(e,`get-ngrx-store`).then(e=>this.sourceEntries.set(Array.isArray(e)?e:[])).catch(()=>this.sourceEntries.set([])).finally(()=>this.sourceLoaded.set(!0));try{let t=await e.scope(`ng-devtools`).rpc.sharedState(`ngrx-store`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e;this.pages.set(Array.isArray(t?.pages)?t.pages:[])};n(t.value()),this.unsubscribe?.(),this.unsubscribe=t.on(`updated`,n)}catch{this.failed.set(!0)}}retry(){let e=this.rpc();e&&this.load(e)}selectPage(e){this.selectedPageId.set(e),this.selectedStoreId.set(null),this.selectedSeq.set(null),this.confirmSeq.set(null)}selectStore(e){this.selectedStoreId.set(e),this.selectedSeq.set(null),this.confirmSeq.set(null)}selectEntry(e){this.selectedSeq.set(this.selectedSeq()===e?null:e),this.confirmSeq.set(null)}async restore(e){let t=this.page();if(t){this.busy.set(!0);try{let n=await KE(this.rpc(),`request-ngrx-action`,{pageId:t.pageId,request:{type:`restore`,seq:e}});this.message.set(n?.error??n?.message??`Restored.`)}catch{this.message.set(`Could not reach the page to restore the state.`)}finally{this.busy.set(!1),this.confirmSeq.set(null)}}}clearFilters(){this.filter.set(``),this.kind.set(null)}changeCount(e){return(this.page()?.log??[]).filter(t=>t.storeId===e).length}kindColor(e){return uN[e]??`var(--text-3)`}kindLabel(e){return dN[e]??e}opLabel(e){return e===`add`?`added`:e===`remove`?`removed`:`changed`}prettyText(e){return rM(e)}shortText(e){return iM(e)}formatTime=tO;static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-store-inspector`]],inputs:{rpc:[1,`rpc`]},decls:25,vars:10,consts:[[1,`toolbar`],[`type`,`search`,`placeholder`,`Filter stores, changes and declarations…`,`aria-label`,`Filter stores, changes and source declarations`,3,`input`,`value`],[1,`status`],[`aria-hidden`,`true`,1,`live-dot`],[`aria-labelledby`,`ngrx-live-heading`,1,`block`],[1,`section-head`],[`id`,`ngrx-live-heading`],[1,`pill`],[`role`,`alert`,1,`empty`],[1,`empty`],[1,`live-layout`],[`role`,`status`,1,`message`],[`aria-labelledby`,`ngrx-source-heading`,1,`block`],[`id`,`ngrx-source-heading`],[`role`,`status`,1,`empty`,`compact`],[1,`empty`,`compact`],[`id`,`ngrx-page-label`,1,`visually-hidden`],[`labelledBy`,`ngrx-page-label`,1,`page-select`,3,`valueChange`,`options`,`value`],[1,`empty-title`],[1,`hint`],[`type`,`button`,1,`btn`,3,`click`],[`aria-label`,`Stores on this page`,1,`store-list`],[1,`muted`,`pad`],[1,`store-detail`],[`type`,`button`,1,`store-item`,3,`click`],[1,`store-top`],[`aria-hidden`,`true`,1,`dot`],[1,`store-name`],[1,`store-meta`],[1,`detail-head`],[1,`chips`],[1,`chip`],[1,`chip`,`mono`,3,`title`],[1,`refs`],[1,`facts`],[`aria-labelledby`,`ngrx-state-heading`,1,`fact`],[`id`,`ngrx-state-heading`],[`tabindex`,`0`,`aria-labelledby`,`ngrx-state-heading`,1,`tree`],[`aria-labelledby`,`ngrx-computed-heading`,1,`fact`],[`aria-labelledby`,`ngrx-log-heading`,1,`log`],[`id`,`ngrx-log-heading`],[1,`log-layout`],[1,`log-list`],[`aria-labelledby`,`ngrx-entry-heading`,1,`entry`],[`id`,`ngrx-computed-heading`],[1,`kv`],[1,`muted`],[`id`,`ngrx-methods-heading`,1,`spaced`],[`aria-labelledby`,`ngrx-methods-heading`,1,`methods`],[3,`title`],[1,`chip`,`mono`],[1,`tag`],[1,`calls`],[`type`,`button`,1,`log-item`,3,`click`],[1,`seq`],[1,`log-type`,3,`title`],[1,`log-meta`],[`id`,`ngrx-entry-heading`],[1,`sub`],[1,`diff`],[1,`hint`,`small`],[1,`code`],[3,`class`],[1,`op`],[1,`path`],[1,`values`],[1,`before`],[1,`after`],[`aria-hidden`,`true`,1,`arrow`],[1,`visually-hidden`],[`role`,`group`,`aria-labelledby`,`ngrx-confirm-text`,1,`confirm`],[`type`,`button`,1,`btn`,`restore`],[`id`,`ngrx-confirm-text`],[1,`actions`],[`type`,`button`,1,`btn`,`primary`,3,`click`,`disabled`],[`type`,`button`,1,`btn`,`restore`,3,`click`],[`aria-hidden`,`true`,1,`spinner`],[`role`,`group`,`aria-label`,`Filter declarations by kind`,1,`kinds`],[`type`,`button`,1,`kind-chip`,3,`click`],[1,`count`],[`type`,`button`,1,`kind-chip`,3,`active`],[1,`nodes`],[1,`node-card`],[1,`chip-text`],[1,`node-header`],[1,`node-label`],[1,`node-meta`],[1,`file`,3,`title`],[1,`detail`]],template:function(e,t){e&1&&(R(0,`div`,0)(1,`input`,1),G(`input`,function(e){return t.filter.set(e.target.value)}),z(),N(2,fM,3,2),R(3,`span`,2),B(4,`span`,3),Y(5),z()(),R(6,`section`,4)(7,`div`,5)(8,`h2`,6),Y(9,`Live stores`),z(),N(10,pM,2,1,`span`,7),z(),N(11,mM,7,0,`div`,8)(12,hM,5,0,`div`,9)(13,yM,4,1,`div`,9)(14,tN,6,2,`div`,10),R(15,`p`,11),Y(16),z()(),R(17,`section`,12)(18,`div`,5)(19,`h2`,13),Y(20,`Source declarations`),z(),N(21,nN,2,1,`span`,7),z(),N(22,rN,4,0,`div`,14)(23,iN,29,0,`div`,15)(24,lN,11,5),z()),e&2&&(j(),L(`value`,t.filter()),j(),P(t.pages().length>1?2:-1),j(),J(`on`,!!t.page()),j(2),Z(` `,t.page()?`Live`:`No page connected`,` `),j(5),P(t.liveStores().length?10:-1),j(),P(t.failed()?11:t.page()?t.liveStores().length?14:13:12),j(5),X(t.message()),j(5),P(t.sourceEntries().length?21:-1),j(),P(t.sourceLoaded()?t.sourceEntries().length===0?23:24:22))},dependencies:[Dk],styles:[`[_nghost-%COMP%] { +}`]})},tM=`@type`;function nM(e){return!!e&&typeof e==`object`&&!Array.isArray(e)&&tM in e}function rM(e){return/^[A-Za-z_$][\w$]*$/.test(e)?e:JSON.stringify(e)}function iM(e,t=``){if(e===null)return`null`;if(typeof e==`string`)return JSON.stringify(e);if(typeof e!=`object`)return String(e);let n=t+` `;if(Array.isArray(e))return e.length?`[\n${e.map(e=>n+iM(e,n)).join(`, +`)}\n${t}]`:`[]`;if(nM(e)){let r=e;switch(r[tM]){case`undefined`:return`undefined`;case`Date`:return`Date(${r.value})`;case`bigint`:return`${r.value}n`;case`symbol`:return`Symbol(${r.value})`;case`function`:return`ƒ ${r.name}()`;case`Error`:return`${r.name??`Error`}: ${r.message}`;case`Element`:return`<${r.value}>`;case`Map`:{let e=r.entries??[];if(!e.length)return`Map(${r.size}) {}`;let i=e.map(([e,t])=>`${n}${iM(e,n)} => ${iM(t,n)}`);return`Map(${r.size}) {\n${i.join(`, +`)}\n${t}}`}case`Set`:{let e=r.values??[];return e.length?`Set(${r.size}) {\n${e.map(e=>n+iM(e,n)).join(`, +`)}\n${t}}`:`Set(${r.size}) {}`}default:return String(r.value??r[tM])}}let r=Object.entries(e);return r.length?`{\n${r.map(([e,t])=>`${n}${rM(e)}: ${iM(t,n)}`).join(`, +`)}\n${t}}`:`{}`}function aM(e,t=120){let n=iM(e).replace(/\s*\n\s*/g,` `);return n.length>t?`${n.slice(0,t-1)}…`:n}var oM=(e,t)=>t.id,sM=(e,t)=>t.seq,cM=(e,t)=>t.key,lM=(e,t)=>t.name,uM=(e,t)=>t.path,dM=(e,t)=>t.kind,fM=(e,t)=>t.name+t.file+t.line;function pM(e,t){if(e&1){let e=W();R(0,`span`,16),Y(1,`Page`),z(),R(2,`app-select`,17),G(`valueChange`,function(t){return O(e),k(q().selectPage(t))}),z()}if(e&2){let e=q();j(2),L(`options`,e.pageOptions())(`value`,e.page()?.pageId??null)}}function mM(e,t){if(e&1&&(R(0,`span`,7),Y(1),z()),e&2){let e=q();j(),X(e.liveStores().length)}}function hM(e,t){if(e&1){let e=W();R(0,`div`,8)(1,`p`,18),Y(2,`Could not load the live store state.`),z(),R(3,`p`,19),Y(4,`Check that the dev server with ng-devtools is still running.`),z(),R(5,`button`,20),G(`click`,function(){return O(e),k(q().retry())}),Y(6,`Retry`),z()()}}function gM(e,t){e&1&&(R(0,`div`,9)(1,`p`,18),Y(2,`No page is reporting NgRx state yet.`),z(),R(3,`p`,19),Y(4,` Open the app in a browser. Stores show up here as soon as the page creates them. `),z()())}function _M(e,t){e&1&&(R(0,`p`,18),Y(1,`No signal store instance on this page yet.`),z(),R(2,`p`,19),Y(3,` A `),R(4,`code`),Y(5,`signalStore`),z(),Y(6,` is created the first time something injects it. Navigate to a page that uses the store and it appears here. `),z())}function vM(e,t){e&1&&(R(0,`p`,18),Y(1,`The @ngrx/store Store was not found on this page.`),z(),R(2,`p`,19),Y(3,` Check that `),R(4,`code`),Y(5,`provideStore()`),z(),Y(6,` or `),R(7,`code`),Y(8,`StoreModule.forRoot()`),z(),Y(9,` is part of the providers of the running app. `),z())}function yM(e,t){e&1&&(R(0,`p`,18),Y(1,`This page has no NgRx store.`),z(),R(2,`p`,19),Y(3,` Stores from `),R(4,`code`),Y(5,`@ngrx/signals`),z(),Y(6,` (`),R(7,`code`),Y(8,`signalStore`),z(),Y(9,`, `),R(10,`code`),Y(11,`signalState`),z(),Y(12,`) and `),R(13,`code`),Y(14,`@ngrx/store`),z(),Y(15,` are listed here once the app creates them. `),z())}function bM(e,t){if(e&1&&(R(0,`div`,9),N(1,_M,7,0)(2,vM,10,0)(3,yM,16,0),z()),e&2){let e=q();j(),P(e.usesSignals()?1:e.usesClassic()?2:3)}}function xM(e,t){if(e&1){let e=W();R(0,`li`)(1,`button`,24),G(`click`,function(){let t=O(e).$implicit;return k(q(2).selectStore(t.id))}),R(2,`span`,25),B(3,`span`,26),R(4,`span`,27),Y(5),z()(),R(6,`span`,28),Y(7),z()()()}if(e&2){let e=t.$implicit,n=q(2);j(),J(`selected`,e.id===n.store()?.id),M(`aria-pressed`,e.id===n.store()?.id),j(2),n_(`background`,n.kindColor(e.kind)),j(2),X(e.label),j(2),A_(` `,n.kindLabel(e.kind),` · `,e.scope,` · `,n.changeCount(e.id),` `,n.changeCount(e.id)===1?`change`:`changes`,` `)}}function SM(e,t){e&1&&(R(0,`li`,22),Y(1,`No stores match this filter.`),z())}function CM(e,t){if(e&1&&(R(0,`span`,32),Y(1),z()),e&2){let e=t;L(`title`,e),j(),X(e)}}function wM(e,t){if(e&1&&(R(0,`span`,31),Y(1),z()),e&2){let e=q();j(),X(e.classic.devtools?`Store DevTools on`:`read-only`)}}function TM(e,t){if(e&1&&(R(0,`code`),Y(1),z(),Y(2)),e&2){let e=t.$implicit,n=t.$index,r=t.$count;j(),X(e),j(),Z(``,n===r-1?``:`, `,` `)}}function EM(e,t){if(e&1&&(R(0,`p`,33),Y(1,` Referenced by `),F(2,TM,3,2,null,null,lg),z()),e&2){let e=q();j(2),I(e.signal.references)}}function DM(e,t){if(e&1&&(R(0,`dt`),Y(1),z(),R(2,`dd`)(3,`code`,49),Y(4),z()()),e&2){let e=t.$implicit;j(),X(e.key),j(2),L(`title`,e.full),j(),X(e.value)}}function OM(e,t){if(e&1&&(R(0,`dl`,45),F(1,DM,5,3,null,null,cM),z()),e&2){let e=q(4);j(),I(e.computedEntries())}}function kM(e,t){e&1&&(R(0,`p`,46),Y(1,`No computed signals.`),z())}function AM(e,t){e&1&&(R(0,`span`,51),Y(1,`rxMethod`),z())}function jM(e,t){if(e&1&&(R(0,`li`,50),Y(1),N(2,AM,2,0,`span`,51),R(3,`span`,52),Y(4),z()()),e&2){let e=t.$implicit;j(),Z(` `,e.name,` `),j(),P(e.rx?2:-1),j(2),O_(``,e.calls,` `,e.calls===1?`call`:`calls`)}}function MM(e,t){if(e&1&&(R(0,`ul`,48),F(1,jM,5,4,`li`,50,lM),z()),e&2){let e=q();j(),I(e.methods)}}function NM(e,t){e&1&&(R(0,`p`,46),Y(1,`No methods.`),z())}function PM(e,t){if(e&1&&(R(0,`section`,38)(1,`h4`,44),Y(2,`Computed`),z(),N(3,OM,3,0,`dl`,45)(4,kM,2,0,`p`,46),R(5,`h4`,47),Y(6,`Methods`),z(),N(7,MM,3,0,`ul`,48)(8,NM,2,0,`p`,46),z()),e&2){let e=q(3);j(3),P(e.computedEntries().length?3:4),j(4),P(t.methods.length?7:8)}}function FM(e,t){if(e&1){let e=W();R(0,`li`)(1,`button`,53),G(`click`,function(){let t=O(e).$implicit;return k(q(3).selectEntry(t.seq))}),R(2,`span`,54),Y(3),z(),R(4,`span`,55),Y(5),z(),R(6,`span`,56),Y(7),z()()()}if(e&2){let e=t.$implicit,n=q(3);j(),J(`selected`,e.seq===n.selectedSeq()),M(`aria-pressed`,e.seq===n.selectedSeq()),j(2),Z(`#`,e.seq),j(),L(`title`,e.type),j(),X(e.type),j(2),O_(``,e.diff.length===0?`no change`:e.diff.length+(e.diff.length===1?` change`:` changes`),` · `,n.formatTime(e.timestamp))}}function IM(e,t){e&1&&Y(0,` No entries match this filter. `)}function LM(e,t){e&1&&Y(0,` No actions dispatched since the page connected. `)}function RM(e,t){e&1&&Y(0,` No state changes yet. Method calls and patchState writes that change the state are recorded here. `)}function zM(e,t){if(e&1&&(R(0,`li`,22),N(1,IM,1,0)(2,LM,1,0)(3,RM,1,0),z()),e&2){let e=q(),t=q(2);j(),P(t.filter()?1:e.classic?2:3)}}function BM(e,t){if(e&1&&(R(0,`dt`),Y(1,`Action`),z(),R(2,`dd`)(3,`pre`,61),Y(4),z()()),e&2){let e=q(),t=q(3);j(4),X(t.prettyText(e.action))}}function VM(e,t){if(e&1&&(R(0,`dt`),Y(1,`Arguments`),z(),R(2,`dd`)(3,`pre`,61),Y(4),z()()),e&2){let e=q(),t=q(3);j(4),X(t.prettyText(e.args))}}function HM(e,t){if(e&1&&(R(0,`code`,66),Y(1),z()),e&2){let e=q().$implicit,t=q(5);j(),X(t.shortText(e.before))}}function UM(e,t){e&1&&(R(0,`span`,68),Y(1,`→`),z(),R(2,`span`,69),Y(3,`became`),z())}function WM(e,t){if(e&1&&(R(0,`code`,67),Y(1),z()),e&2){let e=q().$implicit,t=q(5);j(),X(t.shortText(e.after))}}function GM(e,t){if(e&1&&(R(0,`li`)(1,`span`,63),Y(2),z(),R(3,`code`,64),Y(4),z(),R(5,`span`,65),N(6,HM,2,1,`code`,66),N(7,UM,4,0),N(8,WM,2,1,`code`,67),z()()),e&2){let e=t.$implicit,n=q(5);r_(`diff-row `+e.op),j(2),X(n.opLabel(e.op)),j(2),X(e.path),j(2),P(e.op===`add`?-1:6),j(),P(e.op===`change`?7:-1),j(),P(e.op===`remove`?-1:8)}}function KM(e,t){if(e&1&&(R(0,`ul`,59),F(1,GM,9,7,`li`,62,uM),z()),e&2){let e=q();j(),I(e.diff)}}function qM(e,t){e&1&&(R(0,`p`,46),Y(1,`The state did not change.`),z())}function JM(e,t){e&1&&Y(0),e&2&&Z(` Store DevTools jumps the app state to the state right after action #`,q(3).seq,`. New actions continue from there. `)}function YM(e,t){if(e&1&&Y(0),e&2){let e=q(3);O_(` This sets every state key of `,q().label,` back to its value right after change #`,e.seq,`. Components that read the store update at once, and a new "Restore" entry is added to the log. `)}}function XM(e,t){if(e&1){let e=W();R(0,`div`,70)(1,`p`,72),N(2,JM,1,1)(3,YM,1,2),z(),R(4,`div`,73)(5,`button`,74),G(`click`,function(){O(e);let t=q(2);return k(q(3).restore(t.seq))}),Y(6,` Restore `),z(),R(7,`button`,20),G(`click`,function(){return O(e),k(q(5).confirmSeq.set(null))}),Y(8,` Cancel `),z()()()}if(e&2){let e=q(2),t=q(3);j(2),P(e.source===`store`?2:3),j(3),L(`disabled`,t.busy())}}function ZM(e,t){if(e&1){let e=W();R(0,`button`,75),G(`click`,function(){O(e);let t=q(2);return k(q(3).confirmSeq.set(t.seq))}),Y(1,` Restore this state `),z()}}function QM(e,t){if(e&1&&N(0,XM,9,2,`div`,70)(1,ZM,2,0,`button`,71),e&2){let e=q();P(q(3).confirmSeq()===e.seq?0:1)}}function $M(e,t){e&1&&(R(0,`p`,60),Y(1,` Time travel for @ngrx/store needs `),R(2,`code`),Y(3,`provideStoreDevtools()`),z(),Y(4,`. Without it this log is read-only. `),z())}function eN(e,t){if(e&1&&(R(0,`section`,43)(1,`h5`,57),Y(2),z(),R(3,`dl`,45)(4,`dt`),Y(5,`Time`),z(),R(6,`dd`),Y(7),z(),N(8,BM,5,1),N(9,VM,5,1),z(),R(10,`h6`,58),Y(11,`State diff`),z(),N(12,KM,3,0,`ul`,59)(13,qM,2,0,`p`,46),N(14,QM,2,1)(15,$M,5,0,`p`,60),z()),e&2){let e=t,n=q(3);j(2),O_(`#`,e.seq,` `,e.type),j(5),X(n.formatTime(e.timestamp)),j(),P(e.action===void 0?-1:8),j(),P(e.args?.length?9:-1),j(3),P(e.diff.length?12:13),j(2),P(e.restorable?14:e.source===`store`?15:-1)}}function tN(e,t){if(e&1&&(R(0,`div`,23)(1,`div`,29)(2,`h3`),Y(3),z(),R(4,`div`,30)(5,`span`,31),Y(6),z(),R(7,`span`,31),Y(8),z(),N(9,CM,2,2,`span`,32),N(10,wM,2,1,`span`,31),z(),N(11,EM,4,0,`p`,33),z(),R(12,`div`,34)(13,`section`,35)(14,`h4`,36),Y(15,`State`),z(),R(16,`pre`,37),Y(17),z()(),N(18,PM,9,2,`section`,38),z(),R(19,`section`,39)(20,`h4`,40),Y(21),R(22,`span`,7),Y(23),z()(),R(24,`div`,41)(25,`ul`,42),F(26,FM,8,8,`li`,null,sM,!1,zM,4,1,`li`,22),z(),N(29,eN,16,7,`section`,43),z()()()),e&2){let e,n,r,i=t,a=q(2);j(3),X(i.label),j(3),X(a.kindLabel(i.kind)),j(2),Z(`scope: `,i.scope),j(),P((e=i.signal?.declaredIn)?9:-1,e),j(),P(i.classic?10:-1),j(),P(i.signal?.references?.length?11:-1),j(6),X(a.stateText()),j(),P((n=i.signal)?18:-1,n),j(3),Z(` `,i.classic?`Action log`:`Change log`,` `),j(2),X(a.storeLog().length),j(2),M(`aria-label`,i.classic?`Actions`:`Changes`),j(),I(a.storeLog()),j(3),P((r=a.entry())?29:-1,r)}}function nN(e,t){if(e&1&&(R(0,`div`,10)(1,`ul`,21),F(2,xM,8,10,`li`,null,oM,!1,SM,2,0,`li`,22),z(),N(5,tN,30,13,`div`,23),z()),e&2){let e,t=q();j(2),I(t.filteredStores()),j(3),P((e=t.store())?5:-1,e)}}function rN(e,t){if(e&1&&(R(0,`span`,7),Y(1),z()),e&2){let e=q();j(),X(e.sourceEntries().length)}}function iN(e,t){e&1&&(R(0,`div`,14),B(1,`span`,76),R(2,`p`,18),Y(3,`Scanning source for NgRx declarations…`),z()())}function aN(e,t){e&1&&(R(0,`div`,15)(1,`p`,18),Y(2,`No NgRx declarations found in source.`),z(),R(3,`p`,19),Y(4,` The scan looks for `),R(5,`code`),Y(6,`signalStore`),z(),Y(7,`, `),R(8,`code`),Y(9,`signalState`),z(),Y(10,`, `),R(11,`code`),Y(12,`signalMethod`),z(),Y(13,`, `),R(14,`code`),Y(15,`createAction`),z(),Y(16,`, `),R(17,`code`),Y(18,`createReducer`),z(),Y(19,`, `),R(20,`code`),Y(21,`createEffect`),z(),Y(22,`, `),R(23,`code`),Y(24,`createSelector`),z(),Y(25,` and `),R(26,`code`),Y(27,`createFeature`),z(),Y(28,`. `),z()())}function oN(e,t){if(e&1){let e=W();R(0,`button`,78),G(`click`,function(){let t=O(e).$implicit,n=q(2);return k(n.kind.set(n.kind()===t.kind?null:t.kind))}),B(1,`span`,26),R(2,`span`,83),Y(3),z(),R(4,`span`,79),Y(5),z()()}if(e&2){let e=t.$implicit,n=q(2);J(`active`,n.kind()===e.kind),M(`aria-pressed`,n.kind()===e.kind),j(),n_(`background`,n.kindColor(e.kind)),j(2),X(n.kindLabel(e.kind)),j(2),X(e.count)}}function sN(e,t){if(e&1&&(R(0,`p`,88),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.detail)}}function cN(e,t){if(e&1&&(R(0,`li`,82)(1,`div`,84),B(2,`span`,26),R(3,`span`,85),Y(4),z(),R(5,`span`,31),Y(6),z()(),R(7,`div`,86)(8,`span`,87),Y(9),z()(),N(10,sN,2,1,`p`,88),z()),e&2){let e=t.$implicit,n=q(2);j(2),n_(`background`,n.kindColor(e.kind)),j(2),X(e.name),j(2),X(n.kindLabel(e.kind)),j(2),L(`title`,e.file+`:`+e.line),j(),O_(``,e.file,`:`,e.line),j(),P(e.detail?10:-1)}}function lN(e,t){if(e&1){let e=W();R(0,`li`,14)(1,`p`,18),Y(2,`No declarations match.`),z(),R(3,`button`,20),G(`click`,function(){return O(e),k(q(2).clearFilters())}),Y(4,`Clear filters`),z()()}}function uN(e,t){if(e&1){let e=W();R(0,`div`,77)(1,`button`,78),G(`click`,function(){return O(e),k(q().kind.set(null))}),Y(2,` All `),R(3,`span`,79),Y(4),z()(),F(5,oN,6,7,`button`,80,dM),z(),R(7,`ul`,81),F(8,cN,11,8,`li`,82,fM,!1,lN,5,0,`li`,14),z()}if(e&2){let e=q();j(),J(`active`,!e.kind()),M(`aria-pressed`,!e.kind()),j(3),X(e.sourceEntries().length),j(),I(e.groupedEntries()),j(3),I(e.filteredEntries())}}var dN={action:`#f59e0b`,reducer:`#a78bfa`,effect:`#fb923c`,selector:`#60a5fa`,feature:`#34d399`,"store-setup":`#94a3b8`,"signal-store":`#e879f9`,"signal-state":`#22d3ee`,"signal-method":`#fb7185`,store:`#a78bfa`},fN={"signal-store":`signalStore`,"signal-state":`signalState`,"signal-method":`signalMethod`,"store-setup":`store setup`,store:`@ngrx/store`},pN=new Set([`action`,`reducer`,`effect`,`selector`,`feature`,`store-setup`]),mN=class e{rpc=$(null);filter=A(``);kind=A(null);sourceEntries=A([]);sourceLoaded=A(!1);pages=A([]);failed=A(!1);selectedPageId=A(null);hostPageId=sT();selectedStoreId=A(null);selectedSeq=A(null);confirmSeq=A(null);busy=A(!1);message=A(``);destroyRef=E(ws);unsubscribe=null;page=Q(()=>{let e=this.pages();return e.find(e=>e.pageId===this.selectedPageId())??e.find(e=>e.pageId===this.hostPageId)??e[0]??null});pageOptions=Q(()=>this.pages().map(e=>({value:e.pageId,label:e.title||e.url,hint:e.url})));liveStores=Q(()=>{let e=this.page();if(!e)return[];let t=e.stores.map(e=>({id:e.id,label:e.name??e.references[0]??e.className,kind:e.kind,scope:e.scope,signal:e}));return e.classic&&t.push({id:`store`,label:`Store`,kind:`store`,scope:e.classic.scope,classic:e.classic}),t});filteredStores=Q(()=>{let e=this.filter().trim().toLowerCase();return e?this.liveStores().filter(t=>t.label.toLowerCase().includes(e)||t.kind.includes(e)||(t.signal?.stateKeys??[]).some(t=>t.toLowerCase().includes(e))||(this.page()?.log??[]).some(n=>n.storeId===t.id&&n.type.toLowerCase().includes(e))):this.liveStores()});store=Q(()=>{let e=this.liveStores();return e.find(e=>e.id===this.selectedStoreId())??e[0]??null});stateText=Q(()=>{let e=this.store();return e?iM(e.signal?e.signal.state:e.classic?.state):``});computedEntries=Q(()=>Object.entries(this.store()?.signal?.computed??{}).map(([e,t])=>({key:e,value:aM(t,160),full:iM(t)})));storeLog=Q(()=>{let e=this.store()?.id,t=this.filter().trim().toLowerCase();return(this.page()?.log??[]).filter(n=>n.storeId===e&&(!t||n.type.toLowerCase().includes(t)||this.storeMatches(t))).reverse()});entry=Q(()=>this.storeLog().find(e=>e.seq===this.selectedSeq())??null);usesSignals=Q(()=>this.sourceEntries().some(e=>e.kind===`signal-store`||e.kind===`signal-state`));usesClassic=Q(()=>this.sourceEntries().some(e=>pN.has(e.kind)));filteredEntries=Q(()=>{let e=this.filter().trim().toLowerCase(),t=this.kind();return this.sourceEntries().filter(n=>(!t||n.kind===t)&&(!e||n.name.toLowerCase().includes(e)||n.kind.includes(e)||(n.detail??``).toLowerCase().includes(e)))});groupedEntries=Q(()=>{let e=new Map;for(let t of this.sourceEntries())e.set(t.kind,(e.get(t.kind)??0)+1);return[...e.entries()].map(([e,t])=>({kind:e,count:t}))});constructor(){dc(()=>{let e=this.rpc();e&&this.load(e)}),this.destroyRef.onDestroy(()=>this.unsubscribe?.())}storeMatches(e){let t=this.store();return!!t&&t.label.toLowerCase().includes(e)}async load(e){this.failed.set(!1),qE(e,`get-ngrx-store`).then(e=>this.sourceEntries.set(Array.isArray(e)?e:[])).catch(()=>this.sourceEntries.set([])).finally(()=>this.sourceLoaded.set(!0));try{let t=await e.scope(`ng-devtools`).rpc.sharedState(`ngrx-store`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e;this.pages.set(Array.isArray(t?.pages)?t.pages:[])};n(t.value()),this.unsubscribe?.(),this.unsubscribe=t.on(`updated`,n)}catch{this.failed.set(!0)}}retry(){let e=this.rpc();e&&this.load(e)}selectPage(e){this.selectedPageId.set(e),this.selectedStoreId.set(null),this.selectedSeq.set(null),this.confirmSeq.set(null)}selectStore(e){this.selectedStoreId.set(e),this.selectedSeq.set(null),this.confirmSeq.set(null)}selectEntry(e){this.selectedSeq.set(this.selectedSeq()===e?null:e),this.confirmSeq.set(null)}async restore(e){let t=this.page();if(t){this.busy.set(!0);try{let n=await qE(this.rpc(),`request-ngrx-action`,{pageId:t.pageId,request:{type:`restore`,seq:e}});this.message.set(n?.error??n?.message??`Restored.`)}catch{this.message.set(`Could not reach the page to restore the state.`)}finally{this.busy.set(!1),this.confirmSeq.set(null)}}}clearFilters(){this.filter.set(``),this.kind.set(null)}changeCount(e){return(this.page()?.log??[]).filter(t=>t.storeId===e).length}kindColor(e){return dN[e]??`var(--text-3)`}kindLabel(e){return fN[e]??e}opLabel(e){return e===`add`?`added`:e===`remove`?`removed`:`changed`}prettyText(e){return iM(e)}shortText(e){return aM(e)}formatTime=nO;static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-store-inspector`]],inputs:{rpc:[1,`rpc`]},decls:25,vars:10,consts:[[1,`toolbar`],[`type`,`search`,`placeholder`,`Filter stores, changes and declarations…`,`aria-label`,`Filter stores, changes and source declarations`,3,`input`,`value`],[1,`status`],[`aria-hidden`,`true`,1,`live-dot`],[`aria-labelledby`,`ngrx-live-heading`,1,`block`],[1,`section-head`],[`id`,`ngrx-live-heading`],[1,`pill`],[`role`,`alert`,1,`empty`],[1,`empty`],[1,`live-layout`],[`role`,`status`,1,`message`],[`aria-labelledby`,`ngrx-source-heading`,1,`block`],[`id`,`ngrx-source-heading`],[`role`,`status`,1,`empty`,`compact`],[1,`empty`,`compact`],[`id`,`ngrx-page-label`,1,`visually-hidden`],[`labelledBy`,`ngrx-page-label`,1,`page-select`,3,`valueChange`,`options`,`value`],[1,`empty-title`],[1,`hint`],[`type`,`button`,1,`btn`,3,`click`],[`aria-label`,`Stores on this page`,1,`store-list`],[1,`muted`,`pad`],[1,`store-detail`],[`type`,`button`,1,`store-item`,3,`click`],[1,`store-top`],[`aria-hidden`,`true`,1,`dot`],[1,`store-name`],[1,`store-meta`],[1,`detail-head`],[1,`chips`],[1,`chip`],[1,`chip`,`mono`,3,`title`],[1,`refs`],[1,`facts`],[`aria-labelledby`,`ngrx-state-heading`,1,`fact`],[`id`,`ngrx-state-heading`],[`tabindex`,`0`,`aria-labelledby`,`ngrx-state-heading`,1,`tree`],[`aria-labelledby`,`ngrx-computed-heading`,1,`fact`],[`aria-labelledby`,`ngrx-log-heading`,1,`log`],[`id`,`ngrx-log-heading`],[1,`log-layout`],[1,`log-list`],[`aria-labelledby`,`ngrx-entry-heading`,1,`entry`],[`id`,`ngrx-computed-heading`],[1,`kv`],[1,`muted`],[`id`,`ngrx-methods-heading`,1,`spaced`],[`aria-labelledby`,`ngrx-methods-heading`,1,`methods`],[3,`title`],[1,`chip`,`mono`],[1,`tag`],[1,`calls`],[`type`,`button`,1,`log-item`,3,`click`],[1,`seq`],[1,`log-type`,3,`title`],[1,`log-meta`],[`id`,`ngrx-entry-heading`],[1,`sub`],[1,`diff`],[1,`hint`,`small`],[1,`code`],[3,`class`],[1,`op`],[1,`path`],[1,`values`],[1,`before`],[1,`after`],[`aria-hidden`,`true`,1,`arrow`],[1,`visually-hidden`],[`role`,`group`,`aria-labelledby`,`ngrx-confirm-text`,1,`confirm`],[`type`,`button`,1,`btn`,`restore`],[`id`,`ngrx-confirm-text`],[1,`actions`],[`type`,`button`,1,`btn`,`primary`,3,`click`,`disabled`],[`type`,`button`,1,`btn`,`restore`,3,`click`],[`aria-hidden`,`true`,1,`spinner`],[`role`,`group`,`aria-label`,`Filter declarations by kind`,1,`kinds`],[`type`,`button`,1,`kind-chip`,3,`click`],[1,`count`],[`type`,`button`,1,`kind-chip`,3,`active`],[1,`nodes`],[1,`node-card`],[1,`chip-text`],[1,`node-header`],[1,`node-label`],[1,`node-meta`],[1,`file`,3,`title`],[1,`detail`]],template:function(e,t){e&1&&(R(0,`div`,0)(1,`input`,1),G(`input`,function(e){return t.filter.set(e.target.value)}),z(),N(2,pM,3,2),R(3,`span`,2),B(4,`span`,3),Y(5),z()(),R(6,`section`,4)(7,`div`,5)(8,`h2`,6),Y(9,`Live stores`),z(),N(10,mM,2,1,`span`,7),z(),N(11,hM,7,0,`div`,8)(12,gM,5,0,`div`,9)(13,bM,4,1,`div`,9)(14,nN,6,2,`div`,10),R(15,`p`,11),Y(16),z()(),R(17,`section`,12)(18,`div`,5)(19,`h2`,13),Y(20,`Source declarations`),z(),N(21,rN,2,1,`span`,7),z(),N(22,iN,4,0,`div`,14)(23,aN,29,0,`div`,15)(24,uN,11,5),z()),e&2&&(j(),L(`value`,t.filter()),j(),P(t.pages().length>1?2:-1),j(),J(`on`,!!t.page()),j(2),Z(` `,t.page()?`Live`:`No page connected`,` `),j(5),P(t.liveStores().length?10:-1),j(),P(t.failed()?11:t.page()?t.liveStores().length?14:13:12),j(5),X(t.message()),j(5),P(t.sourceEntries().length?21:-1),j(),P(t.sourceLoaded()?t.sourceEntries().length===0?23:24:22))},dependencies:[Ok],styles:[`[_nghost-%COMP%] { display: grid; gap: 24px; min-width: 0; @@ -6117,7 +6117,7 @@ pre[_ngcontent-%COMP%] { .kv[_ngcontent-%COMP%] { grid-template-columns: minmax(0, 1fr); } -}`]})};function mN(e){return e.split(`@`)[1]??``}var hN={signal:`Signal Forms`,reactive:`Reactive`,template:`Template-driven`},gN={own:`validator`,directive:`template attribute`,tree:`cross-field rule`,async:`async`,parse:`parse`,submission:`server`,schema:`schema`,manual:`setErrors`},_N=qE;async function vN(e,t){return await _N(e,`request-form-action`,t)??{ok:!1,error:`The devtools server did not answer.`}}function yN(e){return`${e.ok?e.message??`Done.`:e.error??`Failed.`}${e.skipped?.length?` Skipped: ${e.skipped.map(e=>`${e.path} (${e.reason})`).join(`, `)}.`:``}${e.status?` Status: ${e.status}.`:``}`}function bN(e){return(e??``).replace(/^_Labels, paths.*_\n\n/,``).replace(/`/g,``).replace(/\*\*/g,``)}function xN(e,t){if(e&1){let e=W();V(0,`div`,4)(1,`label`,8),Y(2),H(),V(3,`input`,9),K(`input`,function(t){return O(e),k(q().draft.set(t.target.value))})(`keydown.enter`,function(){return O(e),k(q().setValue())}),H(),V(4,`button`,10),K(`click`,function(){return O(e),k(q().setValue())}),Y(5,`Set`),H()()}if(e&2){let e=q();j(2),Z(`New value for `,e.node().path),j(),bg(`value`,e.draft())}}var SN=class e{form=$.required();node=$.required();version=$(0);rpc=$(null);text=A(``);target=Q(()=>`${this.form().id}|${this.node().path}`);draft=tv({source:this.target,computation:()=>``});message=tv({source:this.target,computation:()=>``});constructor(){dc(()=>{let e=this.form().id,t=this.node().path;this.version();let n=this.rpc();$_(()=>this.load(n,e,t))})}async load(e,t,n){let r=await _N(e,`forms-explain`,{kind:`field`,form:t,path:n});this.form().id===t&&this.node().path===n&&this.text.set(bN(r))}async act(e){let t=await vN(this.rpc(),{action:e,formId:this.form().id,path:this.node().path});this.message.set(t.expression?`${yN(t)} ${t.expression}`:yN(t))}async setValue(){let e=await vN(this.rpc(),{action:`set-value`,formId:this.form().id,path:this.node().path,value:this.draft(),coerce:!0,mode:`user`});this.message.set(yN(e))}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-forms-field-detail`]],inputs:{form:[1,`form`],node:[1,`node`],version:[1,`version`],rpc:[1,`rpc`]},decls:21,vars:6,consts:[[1,`head`],[1,`section-label`],[1,`tag`],[1,`explain`],[1,`editor`],[`role`,`group`,`aria-label`,`Field actions`,1,`row`],[`type`,`button`,1,`small`,3,`click`],[`role`,`status`,1,`status`],[`for`,`field-value`,1,`sr-only`],[`id`,`field-value`,`type`,`text`,`placeholder`,`New value, read as the current value's type`,`autocomplete`,`off`,`spellcheck`,`false`,1,`field-input`,3,`input`,`keydown.enter`,`value`],[`type`,`button`,1,`small`,`primary`,3,`click`]],template:function(e,t){e&1&&(V(0,`div`,0)(1,`span`,1),Y(2,`Field`),H(),V(3,`h3`),Y(4),H(),V(5,`span`,2),Y(6),H()(),V(7,`pre`,3),Y(8),H(),N(9,xN,6,2,`div`,4),V(10,`div`,5)(11,`button`,6),K(`click`,function(){return t.act(`focus`)}),Y(12,`Focus`),H(),V(13,`button`,6),K(`click`,function(){return t.act(`mark-touched`)}),Y(14,`Touch`),H(),V(15,`button`,6),K(`click`,function(){return t.act(`revalidate`)}),Y(16,`Revalidate`),H(),V(17,`button`,6),K(`click`,function(){return t.act(`store-as-global`)}),Y(18,`Store as global`),H()(),V(19,`p`,7),Y(20),H()),e&2&&(j(4),X(t.node().path||`(form)`),j(2),X(t.node().type),j(),M(`aria-busy`,t.text()?null:`true`),j(),X(t.text()||`Loading…`),j(),P(t.node().type===`control`&&!t.node().redacted?9:-1),j(11),X(t.message()))},styles:[`.muted[_ngcontent-%COMP%] { +}`]})};function hN(e){return e.split(`@`)[1]??``}var gN={signal:`Signal Forms`,reactive:`Reactive`,template:`Template-driven`},_N={own:`validator`,directive:`template attribute`,tree:`cross-field rule`,async:`async`,parse:`parse`,submission:`server`,schema:`schema`,manual:`setErrors`},vN=JE;async function yN(e,t){return await vN(e,`request-form-action`,t)??{ok:!1,error:`The devtools server did not answer.`}}function bN(e){return`${e.ok?e.message??`Done.`:e.error??`Failed.`}${e.skipped?.length?` Skipped: ${e.skipped.map(e=>`${e.path} (${e.reason})`).join(`, `)}.`:``}${e.status?` Status: ${e.status}.`:``}`}function xN(e){return(e??``).replace(/^_Labels, paths.*_\n\n/,``).replace(/`/g,``).replace(/\*\*/g,``)}function SN(e,t){if(e&1){let e=W();V(0,`div`,4)(1,`label`,8),Y(2),H(),V(3,`input`,9),K(`input`,function(t){return O(e),k(q().draft.set(t.target.value))})(`keydown.enter`,function(){return O(e),k(q().setValue())}),H(),V(4,`button`,10),K(`click`,function(){return O(e),k(q().setValue())}),Y(5,`Set`),H()()}if(e&2){let e=q();j(2),Z(`New value for `,e.node().path),j(),xg(`value`,e.draft())}}var CN=class e{form=$.required();node=$.required();version=$(0);rpc=$(null);text=A(``);target=Q(()=>`${this.form().id}|${this.node().path}`);draft=nv({source:this.target,computation:()=>``});message=nv({source:this.target,computation:()=>``});constructor(){dc(()=>{let e=this.form().id,t=this.node().path;this.version();let n=this.rpc();ev(()=>this.load(n,e,t))})}async load(e,t,n){let r=await vN(e,`forms-explain`,{kind:`field`,form:t,path:n});this.form().id===t&&this.node().path===n&&this.text.set(xN(r))}async act(e){let t=await yN(this.rpc(),{action:e,formId:this.form().id,path:this.node().path});this.message.set(t.expression?`${bN(t)} ${t.expression}`:bN(t))}async setValue(){let e=await yN(this.rpc(),{action:`set-value`,formId:this.form().id,path:this.node().path,value:this.draft(),coerce:!0,mode:`user`});this.message.set(bN(e))}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-forms-field-detail`]],inputs:{form:[1,`form`],node:[1,`node`],version:[1,`version`],rpc:[1,`rpc`]},decls:21,vars:6,consts:[[1,`head`],[1,`section-label`],[1,`tag`],[1,`explain`],[1,`editor`],[`role`,`group`,`aria-label`,`Field actions`,1,`row`],[`type`,`button`,1,`small`,3,`click`],[`role`,`status`,1,`status`],[`for`,`field-value`,1,`sr-only`],[`id`,`field-value`,`type`,`text`,`placeholder`,`New value, read as the current value's type`,`autocomplete`,`off`,`spellcheck`,`false`,1,`field-input`,3,`input`,`keydown.enter`,`value`],[`type`,`button`,1,`small`,`primary`,3,`click`]],template:function(e,t){e&1&&(V(0,`div`,0)(1,`span`,1),Y(2,`Field`),H(),V(3,`h3`),Y(4),H(),V(5,`span`,2),Y(6),H()(),V(7,`pre`,3),Y(8),H(),N(9,SN,6,2,`div`,4),V(10,`div`,5)(11,`button`,6),K(`click`,function(){return t.act(`focus`)}),Y(12,`Focus`),H(),V(13,`button`,6),K(`click`,function(){return t.act(`mark-touched`)}),Y(14,`Touch`),H(),V(15,`button`,6),K(`click`,function(){return t.act(`revalidate`)}),Y(16,`Revalidate`),H(),V(17,`button`,6),K(`click`,function(){return t.act(`store-as-global`)}),Y(18,`Store as global`),H()(),V(19,`p`,7),Y(20),H()),e&2&&(j(4),X(t.node().path||`(form)`),j(2),X(t.node().type),j(),M(`aria-busy`,t.text()?null:`true`),j(),X(t.text()||`Loading…`),j(),P(t.node().type===`control`&&!t.node().redacted?9:-1),j(11),X(t.message()))},styles:[`.muted[_ngcontent-%COMP%] { color: var(--%NS%text-2); } @@ -6390,7 +6390,7 @@ h3[_ngcontent-%COMP%] { .status[_ngcontent-%COMP%]:empty { height: 0; margin: -12px 0 0; -}`]})};function CN(e,t){e&1&&(V(0,`div`,0),U(1,`span`,2),V(2,`p`),Y(3,`Checking the form for problems…`),H()())}function wN(e,t){e&1&&(V(0,`div`,1)(1,`span`,3),ps(),V(2,`svg`,4),U(3,`path`,5),H()(),ms(),V(4,`p`,6),Y(5,`No problems found`),H(),V(6,`p`),Y(7,`For generic accessibility checks, run axe on the page.`),H()())}function TN(e,t){if(e&1&&(V(0,`span`,13),Y(1,`at `),V(2,`code`),Y(3),H()()),e&2){let e=q().$implicit;j(3),X(e.path)}}function EN(e,t){if(e&1&&(V(0,`li`)(1,`div`,10)(2,`span`,11),Y(3),H(),V(4,`code`,12),Y(5),H(),N(6,TN,4,1,`span`,13),H(),V(7,`p`,14),Y(8),H(),V(9,`p`,15)(10,`span`,16),Y(11,`Fix`),H(),Y(12),H()()),e&2){let e=t.$implicit;M(`data-severity`,e.severity),j(2),M(`data-tone`,e.severity===`info`?``:e.severity===`error`?`bad`:`warn`),j(),X(e.severity),j(2),X(e.rule),j(),P(e.path?6:-1),j(2),X(e.message),j(4),Z(` `,e.fix)}}function DN(e,t){if(e&1&&(V(0,`p`,7)(1,`span`,8),Y(2),H(),Y(3),H(),V(4,`ul`,9),F(5,EN,13,7,`li`,null,sg),H()),e&2){let e=q();j(2),X(e.findings().length),j(),Z(` `,e.findings().length===1?`finding`:`findings`,` `),j(2),I(e.findings())}}var ON=class e{formId=$.required();version=$(0);rpc=$(null);submit=A(``);payload=A(``);message=A(``);constructor(){dc(()=>{let e=this.formId();this.version();let t=this.rpc();$_(async()=>{let[n,r]=await Promise.all([_N(t,`forms-explain`,{kind:`submit`,form:e}),_N(t,`forms-explain`,{kind:`payload`,form:e})]);this.formId()===e&&(this.submit.set(bN(n)),this.payload.set(bN(r)))})})}async copyFixture(){let e=(await _N(this.rpc(),`forms-explain`,{kind:`fixture`,form:this.formId()})??``).match(/```ts\n([\s\S]*?)```/)?.[1];if(!e){this.message.set(`No test fixture is available for this form.`);return}try{await navigator.clipboard.writeText(e),this.message.set(`Copied.`)}catch{this.message.set(`Clipboard is not available here.`)}}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-forms-submit`]],inputs:{formId:[1,`formId`],version:[1,`version`],rpc:[1,`rpc`]},decls:15,vars:5,consts:[[`aria-labelledby`,`forms-submit-title`,1,`block`],[`id`,`forms-submit-title`,1,`section-label`],[1,`explain`],[`aria-labelledby`,`forms-payload-title`,1,`block`],[`id`,`forms-payload-title`,1,`section-label`],[1,`fixture`],[`type`,`button`,1,`small`,3,`click`],[`role`,`status`,1,`status`]],template:function(e,t){e&1&&(V(0,`section`,0)(1,`h3`,1),Y(2,`Submit`),H(),V(3,`pre`,2),Y(4),H()(),V(5,`section`,3)(6,`h3`,4),Y(7,`Payload`),H(),V(8,`pre`,2),Y(9),H()(),V(10,`div`,5)(11,`button`,6),K(`click`,function(){return t.copyFixture()}),Y(12,`Copy test fixture`),H(),V(13,`span`,7),Y(14),H()()),e&2&&(j(3),M(`aria-busy`,t.submit()?null:`true`),j(),X(t.submit()||`Loading…`),j(4),M(`aria-busy`,t.payload()?null:`true`),j(),X(t.payload()||`Loading…`),j(5),X(t.message()))},styles:[`.muted[_ngcontent-%COMP%] { +}`]})};function wN(e,t){e&1&&(V(0,`div`,0),U(1,`span`,2),V(2,`p`),Y(3,`Checking the form for problems…`),H()())}function TN(e,t){e&1&&(V(0,`div`,1)(1,`span`,3),ps(),V(2,`svg`,4),U(3,`path`,5),H()(),ms(),V(4,`p`,6),Y(5,`No problems found`),H(),V(6,`p`),Y(7,`For generic accessibility checks, run axe on the page.`),H()())}function EN(e,t){if(e&1&&(V(0,`span`,13),Y(1,`at `),V(2,`code`),Y(3),H()()),e&2){let e=q().$implicit;j(3),X(e.path)}}function DN(e,t){if(e&1&&(V(0,`li`)(1,`div`,10)(2,`span`,11),Y(3),H(),V(4,`code`,12),Y(5),H(),N(6,EN,4,1,`span`,13),H(),V(7,`p`,14),Y(8),H(),V(9,`p`,15)(10,`span`,16),Y(11,`Fix`),H(),Y(12),H()()),e&2){let e=t.$implicit;M(`data-severity`,e.severity),j(2),M(`data-tone`,e.severity===`info`?``:e.severity===`error`?`bad`:`warn`),j(),X(e.severity),j(2),X(e.rule),j(),P(e.path?6:-1),j(2),X(e.message),j(4),Z(` `,e.fix)}}function ON(e,t){if(e&1&&(V(0,`p`,7)(1,`span`,8),Y(2),H(),Y(3),H(),V(4,`ul`,9),F(5,DN,13,7,`li`,null,cg),H()),e&2){let e=q();j(2),X(e.findings().length),j(),Z(` `,e.findings().length===1?`finding`:`findings`,` `),j(2),I(e.findings())}}var kN=class e{formId=$.required();version=$(0);rpc=$(null);submit=A(``);payload=A(``);message=A(``);constructor(){dc(()=>{let e=this.formId();this.version();let t=this.rpc();ev(async()=>{let[n,r]=await Promise.all([vN(t,`forms-explain`,{kind:`submit`,form:e}),vN(t,`forms-explain`,{kind:`payload`,form:e})]);this.formId()===e&&(this.submit.set(xN(n)),this.payload.set(xN(r)))})})}async copyFixture(){let e=(await vN(this.rpc(),`forms-explain`,{kind:`fixture`,form:this.formId()})??``).match(/```ts\n([\s\S]*?)```/)?.[1];if(!e){this.message.set(`No test fixture is available for this form.`);return}try{await navigator.clipboard.writeText(e),this.message.set(`Copied.`)}catch{this.message.set(`Clipboard is not available here.`)}}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-forms-submit`]],inputs:{formId:[1,`formId`],version:[1,`version`],rpc:[1,`rpc`]},decls:15,vars:5,consts:[[`aria-labelledby`,`forms-submit-title`,1,`block`],[`id`,`forms-submit-title`,1,`section-label`],[1,`explain`],[`aria-labelledby`,`forms-payload-title`,1,`block`],[`id`,`forms-payload-title`,1,`section-label`],[1,`fixture`],[`type`,`button`,1,`small`,3,`click`],[`role`,`status`,1,`status`]],template:function(e,t){e&1&&(V(0,`section`,0)(1,`h3`,1),Y(2,`Submit`),H(),V(3,`pre`,2),Y(4),H()(),V(5,`section`,3)(6,`h3`,4),Y(7,`Payload`),H(),V(8,`pre`,2),Y(9),H()(),V(10,`div`,5)(11,`button`,6),K(`click`,function(){return t.copyFixture()}),Y(12,`Copy test fixture`),H(),V(13,`span`,7),Y(14),H()()),e&2&&(j(3),M(`aria-busy`,t.submit()?null:`true`),j(),X(t.submit()||`Loading…`),j(4),M(`aria-busy`,t.payload()?null:`true`),j(),X(t.payload()||`Loading…`),j(5),X(t.message()))},styles:[`.muted[_ngcontent-%COMP%] { color: var(--%NS%text-2); } @@ -6627,7 +6627,7 @@ code[_ngcontent-%COMP%] { flex-wrap: wrap; gap: 8px 12px; align-items: center; -}`]})},kN=class e{formId=$.required();version=$(0);rpc=$(null);findings=A(null);constructor(){dc(()=>{let e=this.formId();this.version();let t=this.rpc();$_(async()=>{let n=await _N(t,`forms-lint`,{form:e});this.formId()===e&&this.findings.set(n??[])})})}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-forms-lint`]],inputs:{formId:[1,`formId`],version:[1,`version`],rpc:[1,`rpc`]},decls:3,vars:1,consts:[[`role`,`status`,1,`empty-state`],[1,`empty-state`],[`aria-hidden`,`true`,1,`spinner`],[`aria-hidden`,`true`,1,`ok-icon`],[`width`,`16`,`height`,`16`,`viewBox`,`0 0 24 24`,`fill`,`none`,`stroke`,`currentColor`,`stroke-width`,`2.5`,`stroke-linecap`,`round`,`stroke-linejoin`,`round`],[`d`,`M20 6 9 17l-5-5`],[1,`empty-title`],[1,`summary`],[1,`tabular`],[1,`findings`],[1,`meta`],[1,`tag`,`severity`],[1,`rule`],[1,`muted`,`path`],[1,`message`],[1,`fix`],[1,`fix-label`]],template:function(e,t){e&1&&N(0,CN,4,0,`div`,0)(1,wN,8,0,`div`,1)(2,DN,7,2),e&2&&P(t.findings()===null?0:t.findings().length?2:1)},styles:[`.muted[_ngcontent-%COMP%] { +}`]})},AN=class e{formId=$.required();version=$(0);rpc=$(null);findings=A(null);constructor(){dc(()=>{let e=this.formId();this.version();let t=this.rpc();ev(async()=>{let n=await vN(t,`forms-lint`,{form:e});this.formId()===e&&this.findings.set(n??[])})})}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-forms-lint`]],inputs:{formId:[1,`formId`],version:[1,`version`],rpc:[1,`rpc`]},decls:3,vars:1,consts:[[`role`,`status`,1,`empty-state`],[1,`empty-state`],[`aria-hidden`,`true`,1,`spinner`],[`aria-hidden`,`true`,1,`ok-icon`],[`width`,`16`,`height`,`16`,`viewBox`,`0 0 24 24`,`fill`,`none`,`stroke`,`currentColor`,`stroke-width`,`2.5`,`stroke-linecap`,`round`,`stroke-linejoin`,`round`],[`d`,`M20 6 9 17l-5-5`],[1,`empty-title`],[1,`summary`],[1,`tabular`],[1,`findings`],[1,`meta`],[1,`tag`,`severity`],[1,`rule`],[1,`muted`,`path`],[1,`message`],[1,`fix`],[1,`fix-label`]],template:function(e,t){e&1&&N(0,wN,4,0,`div`,0)(1,TN,8,0,`div`,1)(2,ON,7,2),e&2&&P(t.findings()===null?0:t.findings().length?2:1)},styles:[`.muted[_ngcontent-%COMP%] { color: var(--%NS%text-2); } @@ -6952,7 +6952,7 @@ code[_ngcontent-%COMP%] { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; -}`]})},AN=()=>[],jN=(e,t)=>t.formId+`#`+t.seq;function MN(e,t){e&1&&U(0,`span`,5)}function NN(e,t){if(e&1){let e=W();V(0,`label`)(1,`input`,11),K(`change`,function(){let t=O(e).$implicit;return k(q().filter.set(t))}),H(),Y(2),H()}if(e&2){let e=t.$implicit,n=q();j(),bg(`value`,e)(`checked`,e===n.filter()),j(),Z(` `,e,` `)}}function PN(e,t){if(e&1&&(V(0,`span`,16),Y(1),H()),e&2){let e=q().$implicit;M(`data-tone`,e.outcome===`ran`?``:`bad`),j(),X(e.outcome)}}function FN(e,t){if(e&1&&(V(0,`span`,16),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`×`,e.count)}}function IN(e,t){if(e&1&&(V(0,`span`,16),Y(1),H()),e&2){let e=q().$implicit;j(),X(e.origin)}}function LN(e,t){if(e&1&&(V(0,`span`,16),Y(1),H()),e&2){let e=q().$implicit;M(`data-tone`,e.ms>1e3?`warn`:``),j(),Z(`pending `,e.ms,`ms`)}}function RN(e,t){if(e&1&&(V(0,`span`,16),Y(1),H()),e&2){let e=q().$implicit;M(`data-tone`,e.renders>20?`warn`:``),j(),D_(``,e.renders,` renders: `,(e.rendered??R_(3,AN)).join(`, `))}}function zN(e,t){if(e&1&&(V(0,`span`,19),Y(1),H(),V(2,`span`,20),Y(3,`→`),H(),V(4,`span`,8),Y(5,`changed to`),H()),e&2){let e=q(2).$implicit;j(),X(e.prev)}}function BN(e,t){if(e&1&&(V(0,`div`,17),N(1,zN,6,1),Y(2),H()),e&2){let e=q().$implicit;j(),P(e.prev===void 0?-1:1),j(),Z(` `,e.detail,` `)}}function VN(e,t){if(e&1&&(V(0,`span`,18),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`from `,e.caller)}}function HN(e,t){if(e&1&&(V(0,`li`)(1,`time`),Y(2),H(),V(3,`div`,12)(4,`div`,13)(5,`code`,14),Y(6),H(),V(7,`span`,15),Y(8),H(),N(9,PN,2,2,`span`,16),N(10,FN,2,1,`span`,16),N(11,IN,2,1,`span`,16),N(12,LN,2,2,`span`,16),N(13,RN,2,4,`span`,16),H(),N(14,BN,3,2,`div`,17),N(15,VN,2,1,`span`,18),H()()),e&2){let e=t.$implicit,n=q(2);M(`data-type`,e.type),j(),M(`datetime`,n.iso(e.timestamp)),j(),X(n.time(e.timestamp)),j(4),X(e.path||`(form)`),j(2),X(e.type),j(),P(e.outcome?9:-1),j(),P(e.count&&e.count>1?10:-1),j(),P(e.origin?11:-1),j(),P(e.ms===void 0?-1:12),j(),P(e.renders?13:-1),j(),P(e.prev!==void 0||e.detail?14:-1),j(),P(e.caller?15:-1)}}function UN(e,t){if(e&1&&(V(0,`ol`,9),F(1,HN,16,12,`li`,null,jN),H()),e&2){let e=q();j(),I(e.shown())}}function WN(e,t){if(e&1&&(V(0,`div`,10)(1,`p`,21),Y(2),H(),V(3,`p`),Y(4,`Pick another source above, or interact with the form to record more.`),H()()),e&2){let e=q();j(2),Z(`No changes from `,e.filter())}}function GN(e,t){e&1&&(V(0,`div`,10)(1,`p`,21),Y(2,`No changes yet`),H(),V(3,`p`),Y(4,`Type into the form to see them here.`),H()())}var KN=[`all`,`user`,`code`,`devtools`],qN=class e{events=$.required();recording=$(!1);record=iv();origins=KN;filter=A(`all`);shown=Q(()=>{let e=this.filter();return this.events().filter(t=>e===`all`||t.origin===e).slice(-100).reverse()});iso(e){return new Date(e).toISOString()}time=tO;static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-forms-timeline`]],inputs:{events:[1,`events`],recording:[1,`recording`]},outputs:{record:`record`},decls:17,vars:5,consts:[[1,`toolbar`],[1,`record`],[`type`,`checkbox`,3,`change`,`checked`],[1,`record-text`],[1,`record-title`],[`aria-hidden`,`true`,1,`rec-dot`],[1,`record-hint`],[1,`chips`],[1,`sr-only`],[1,`events`],[1,`empty-state`],[`type`,`radio`,`name`,`timeline-origin`,3,`change`,`value`,`checked`],[1,`body`],[1,`line`],[1,`path`],[1,`event-type`],[1,`tag`],[1,`detail`],[1,`caller`],[1,`prev`],[`aria-hidden`,`true`,1,`arrow`],[1,`empty-title`]],template:function(e,t){e&1&&(V(0,`div`,0)(1,`label`,1)(2,`input`,2),K(`change`,function(){return t.record.emit(!t.recording())}),H(),V(3,`span`,3)(4,`span`,4),N(5,MN,1,0,`span`,5),Y(6,` Record details `),H(),V(7,`span`,6),Y(8,`Record calling code, validator changes and renders per keystroke`),H()()(),V(9,`fieldset`,7)(10,`legend`,8),Y(11,`Show changes from`),H(),F(12,NN,3,3,`label`,null,cg),H()(),N(14,UN,3,0,`ol`,9)(15,WN,5,1,`div`,10)(16,GN,5,0,`div`,10)),e&2&&(j(),J(`on`,t.recording()),j(),bg(`checked`,t.recording()),j(3),P(t.recording()?5:-1),j(7),I(t.origins),j(2),P(t.shown().length?14:t.events().length?15:16))},styles:[`.muted[_ngcontent-%COMP%] { +}`]})},jN=()=>[],MN=(e,t)=>t.formId+`#`+t.seq;function NN(e,t){e&1&&U(0,`span`,5)}function PN(e,t){if(e&1){let e=W();V(0,`label`)(1,`input`,11),K(`change`,function(){let t=O(e).$implicit;return k(q().filter.set(t))}),H(),Y(2),H()}if(e&2){let e=t.$implicit,n=q();j(),xg(`value`,e)(`checked`,e===n.filter()),j(),Z(` `,e,` `)}}function FN(e,t){if(e&1&&(V(0,`span`,16),Y(1),H()),e&2){let e=q().$implicit;M(`data-tone`,e.outcome===`ran`?``:`bad`),j(),X(e.outcome)}}function IN(e,t){if(e&1&&(V(0,`span`,16),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`×`,e.count)}}function LN(e,t){if(e&1&&(V(0,`span`,16),Y(1),H()),e&2){let e=q().$implicit;j(),X(e.origin)}}function RN(e,t){if(e&1&&(V(0,`span`,16),Y(1),H()),e&2){let e=q().$implicit;M(`data-tone`,e.ms>1e3?`warn`:``),j(),Z(`pending `,e.ms,`ms`)}}function zN(e,t){if(e&1&&(V(0,`span`,16),Y(1),H()),e&2){let e=q().$implicit;M(`data-tone`,e.renders>20?`warn`:``),j(),O_(``,e.renders,` renders: `,(e.rendered??z_(3,jN)).join(`, `))}}function BN(e,t){if(e&1&&(V(0,`span`,19),Y(1),H(),V(2,`span`,20),Y(3,`→`),H(),V(4,`span`,8),Y(5,`changed to`),H()),e&2){let e=q(2).$implicit;j(),X(e.prev)}}function VN(e,t){if(e&1&&(V(0,`div`,17),N(1,BN,6,1),Y(2),H()),e&2){let e=q().$implicit;j(),P(e.prev===void 0?-1:1),j(),Z(` `,e.detail,` `)}}function HN(e,t){if(e&1&&(V(0,`span`,18),Y(1),H()),e&2){let e=q().$implicit;j(),Z(`from `,e.caller)}}function UN(e,t){if(e&1&&(V(0,`li`)(1,`time`),Y(2),H(),V(3,`div`,12)(4,`div`,13)(5,`code`,14),Y(6),H(),V(7,`span`,15),Y(8),H(),N(9,FN,2,2,`span`,16),N(10,IN,2,1,`span`,16),N(11,LN,2,1,`span`,16),N(12,RN,2,2,`span`,16),N(13,zN,2,4,`span`,16),H(),N(14,VN,3,2,`div`,17),N(15,HN,2,1,`span`,18),H()()),e&2){let e=t.$implicit,n=q(2);M(`data-type`,e.type),j(),M(`datetime`,n.iso(e.timestamp)),j(),X(n.time(e.timestamp)),j(4),X(e.path||`(form)`),j(2),X(e.type),j(),P(e.outcome?9:-1),j(),P(e.count&&e.count>1?10:-1),j(),P(e.origin?11:-1),j(),P(e.ms===void 0?-1:12),j(),P(e.renders?13:-1),j(),P(e.prev!==void 0||e.detail?14:-1),j(),P(e.caller?15:-1)}}function WN(e,t){if(e&1&&(V(0,`ol`,9),F(1,UN,16,12,`li`,null,MN),H()),e&2){let e=q();j(),I(e.shown())}}function GN(e,t){if(e&1&&(V(0,`div`,10)(1,`p`,21),Y(2),H(),V(3,`p`),Y(4,`Pick another source above, or interact with the form to record more.`),H()()),e&2){let e=q();j(2),Z(`No changes from `,e.filter())}}function KN(e,t){e&1&&(V(0,`div`,10)(1,`p`,21),Y(2,`No changes yet`),H(),V(3,`p`),Y(4,`Type into the form to see them here.`),H()())}var qN=[`all`,`user`,`code`,`devtools`],JN=class e{events=$.required();recording=$(!1);record=av();origins=qN;filter=A(`all`);shown=Q(()=>{let e=this.filter();return this.events().filter(t=>e===`all`||t.origin===e).slice(-100).reverse()});iso(e){return new Date(e).toISOString()}time=nO;static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-forms-timeline`]],inputs:{events:[1,`events`],recording:[1,`recording`]},outputs:{record:`record`},decls:17,vars:5,consts:[[1,`toolbar`],[1,`record`],[`type`,`checkbox`,3,`change`,`checked`],[1,`record-text`],[1,`record-title`],[`aria-hidden`,`true`,1,`rec-dot`],[1,`record-hint`],[1,`chips`],[1,`sr-only`],[1,`events`],[1,`empty-state`],[`type`,`radio`,`name`,`timeline-origin`,3,`change`,`value`,`checked`],[1,`body`],[1,`line`],[1,`path`],[1,`event-type`],[1,`tag`],[1,`detail`],[1,`caller`],[1,`prev`],[`aria-hidden`,`true`,1,`arrow`],[1,`empty-title`]],template:function(e,t){e&1&&(V(0,`div`,0)(1,`label`,1)(2,`input`,2),K(`change`,function(){return t.record.emit(!t.recording())}),H(),V(3,`span`,3)(4,`span`,4),N(5,NN,1,0,`span`,5),Y(6,` Record details `),H(),V(7,`span`,6),Y(8,`Record calling code, validator changes and renders per keystroke`),H()()(),V(9,`fieldset`,7)(10,`legend`,8),Y(11,`Show changes from`),H(),F(12,PN,3,3,`label`,null,lg),H()(),N(14,WN,3,0,`ol`,9)(15,GN,5,1,`div`,10)(16,KN,5,0,`div`,10)),e&2&&(j(),J(`on`,t.recording()),j(),xg(`checked`,t.recording()),j(3),P(t.recording()?5:-1),j(7),I(t.origins),j(2),P(t.shown().length?14:t.events().length?15:16))},styles:[`.muted[_ngcontent-%COMP%] { color: var(--%NS%text-2); } @@ -7422,7 +7422,7 @@ time[_ngcontent-%COMP%] { justify-content: center; padding: 0 8px; } -}`]})},JN=()=>[],YN=(e,t)=>t.id,XN=(e,t)=>t.node.path;function ZN(e,t){e&1&&(R(0,`div`,0),B(1,`span`,4),R(2,`p`),Y(3,`Connecting to the devtools server…`),z()())}function QN(e,t){if(e&1){let e=W();R(0,`div`,1)(1,`p`,5),Y(2,`Could not load forms`),z(),R(3,`p`,6),Y(4,` The devtools server did not answer. Check that the app is running, then try again. `),z(),R(5,`button`,7),G(`click`,function(){return O(e),k(q().retry())}),Y(6,`Try again`),z()()}}function $N(e,t){e&1&&(R(0,`div`,0),B(1,`span`,4),R(2,`p`),Y(3,`Loading forms…`),z()())}function eP(e,t){e&1&&(R(0,`div`,2)(1,`p`,5),Y(2,`No forms on the page yet`),z(),R(3,`p`,6),Y(4,` Open a page that renders a form. Signal Forms, reactive and template-driven forms all show up here, in development builds. `),z()())}function tP(e,t){if(e&1){let e=W();R(0,`div`,2)(1,`p`,5),Y(2,`No forms on this page`),z(),R(3,`p`,6),Y(4),z(),R(5,`button`,7),G(`click`,function(){return O(e),k(q().allPages.set(!0))}),Y(6,` Show forms from all pages `),z()()}if(e&2){let e=q();j(4),D_(` Other connected tabs report `,e.forms().length,` `,e.forms().length===1?`form`:`forms`,`. `)}}function nP(e,t){if(e&1){let e=W();R(0,`label`,11)(1,`input`,15),G(`change`,function(t){return O(e),k(q(2).allPages.set(t.target.checked))}),z(),Y(2,` All pages `),z()}if(e&2){let e=q(2);j(),L(`checked`,e.allPages())}}function rP(e,t){e&1&&(R(0,`span`,22),Y(1),R(2,`span`,21),Y(3,` errors`),z()()),e&2&&(j(),X(t))}function iP(e,t){if(e&1){let e=W();R(0,`li`)(1,`button`,16),G(`click`,function(){let t=O(e).$implicit;return k(q(2).selectForm(t.id))}),B(2,`span`,17),R(3,`span`,18),Y(4),z(),R(5,`span`,19),Y(6),R(7,`span`,20),Y(8),z(),R(9,`span`,21),Y(10),z()(),N(11,rP,4,1,`span`,22),z()()}if(e&2){let e,n=t.$implicit,r=q(2);j(),J(`active`,n.id===r.selected()?.id),M(`aria-current`,n.id===r.selected()?.id?`true`:null),j(),M(`data-status`,n.root.status),j(),M(`title`,n.label),j(),X(n.label),j(2),Z(``,r.kindLabel(n.kind),` · `),j(2),X(n.id),j(2),Z(`, `,n.root.status),j(),P((e=r.counts().get(n.id)?.errors)?11:-1,e)}}function aP(e,t){if(e&1){let e=W();R(0,`section`,13)(1,`h2`,23),Y(2),z(),R(3,`p`,24),Y(4,` This form is no longer on the page. It comes back here if the page renders it again. `),z(),R(5,`button`,7),G(`click`,function(){O(e);let t=q(2);return k(t.selectForm(t.visible()[0].id))}),Y(6),z()()}if(e&2){let e=q(2);j(2),X(t),j(4),Z(` Show `,e.visible()[0].label,` `)}}function oP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q();j(),X(e.submitted?`submitted`:`not submitted`)}}function sP(e,t){e&1&&(R(0,`span`),Y(1,`submitting`),z())}function cP(e,t){if(e&1&&(R(0,`li`)(1,`code`),Y(2),z(),Y(3),R(4,`code`,44),Y(5),z()()),e&2){let e=t.$implicit;j(2),X(e.path||`(form)`),j(),Z(` `,e.message,` `),j(2),X(e.kind)}}function lP(e,t){if(e&1&&(R(0,`details`,30)(1,`summary`),Y(2),z(),R(3,`ul`),F(4,cP,6,3,`li`,null,sg),z()()),e&2){let e=q();j(2),Z(`Error summary (`,e.errorSummary.length,`)`),j(2),I(e.errorSummary)}}function uP(e,t){if(e&1){let e=W();R(0,`button`,7),G(`click`,function(){return O(e),k(q(3).confirmAct(`restore`))}),Y(1),z()}if(e&2){let e=q(3);J(`armed`,e.armed()===`restore`),M(`title`,`Restore `+e.snapshot()),j(),Z(` `,e.armed()===`restore`?`Confirm restore`:`Restore `+e.snapshot(),` `)}}function dP(e,t){if(e&1){let e=W();R(0,`button`,45),G(`click`,function(){let t=O(e).$implicit;return k(q(3).tab_.set(t.id))}),Y(1),z()}if(e&2){let e=t.$implicit,n=q(3);L(`id`,`forms-tab-`+e.id),M(`aria-selected`,e.id===n.tab_())(`aria-controls`,`forms-panel-`+e.id)(`tabindex`,e.id===n.tab_()?0:-1),j(),Z(` `,e.label,` `)}}function fP(e,t){if(e&1){let e=W();R(0,`label`)(1,`input`,15),G(`change`,function(){let t=O(e).$implicit;return k(q(4).toggleChip(t.id))}),z(),Y(2),z()}if(e&2){let e=t.$implicit,n=q(4);j(),L(`checked`,n.active().has(e.id)),j(),Z(` `,e.label,` `)}}function pP(e,t){if(e&1&&(R(0,`div`,6),Y(1,` typed `),R(2,`code`),Y(3),H_(4,`json`),z(),Y(5,`, not in the model yet `),z()),e&2){let e=q(2).$implicit;j(3),X(W_(4,1,e.node.uncommitted))}}function mP(e,t){if(e&1&&(R(0,`div`,6),Y(1,` resets to `),R(2,`code`),Y(3),H_(4,`json`),z()()),e&2){let e=q(2).$implicit;j(3),X(W_(4,1,e.node.defaultValue))}}function hP(e,t){if(e&1&&(R(0,`code`),Y(1),H_(2,`json`),z(),N(3,pP,6,3,`div`,6),N(4,mP,5,3,`div`,6)),e&2){let e=q().$implicit;j(),X(W_(2,3,e.node.value)),j(2),P(e.node.uncommitted===void 0?-1:3),j(),P(e.node.defaultValue===void 0?-1:4)}}function gP(e,t){e&1&&(R(0,`span`,6),Y(1,`not created yet`),z())}function _P(e,t){if(e&1&&(R(0,`span`,28),Y(1),z()),e&2){let e=q().$implicit;M(`data-status`,e.node.status),j(),X(e.node.status)}}function vP(e,t){e&1&&(R(0,`span`),Y(1,`touched`),z())}function yP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.node.changed===!1?`dirty, unchanged`:`dirty`)}}function bP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`not validated (`,e.node.skipped,`)`)}}function xP(e,t){if(e&1&&(R(0,`span`,60),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`stale: `,e.node.stale.join(`, `))}}function SP(e,t){e&1&&(R(0,`span`,60),Y(1,`view out of sync`),z())}function CP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`redacted (`,e.node.redacted,`)`)}}function wP(e,t){e&1&&(R(0,`span`),Y(1,`required`),z())}function TP(e,t){e&1&&(R(0,`span`),Y(1,`readonly`),z())}function EP(e,t){e&1&&(R(0,`span`),Y(1,`hidden`),z())}function DP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`updates on `,e.node.updateOn)}}function OP(e,t){e&1&&(R(0,`span`),Y(1,`debouncing`),z())}function kP(e,t){e&1&&(R(0,`span`),Y(1,`validators`),z())}function AP(e,t){e&1&&(R(0,`span`),Y(1,`async validator`),z())}function jP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=t.$implicit;j(),X(e)}}function MP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.node.accessor)}}function NP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`name `,e.node.name)}}function PP(e,t){if(e&1&&(R(0,`span`),Y(1),H_(2,`json`),z()),e&2){let e=t.$implicit;j(),Z(`metadata `,W_(2,1,e))}}function FP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=t.$implicit;j(),Z(`disabled: `,e)}}function IP(e,t){if(e&1&&(R(0,`span`,63),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`at `,e.params.path)}}function LP(e,t){if(e&1&&(R(0,`span`,63),Y(1),z()),e&2){let e=q().$implicit,t=q(5);j(),X(t.sourceText(e))}}function RP(e,t){if(e&1&&(R(0,`div`),Y(1),R(2,`code`,44),Y(3),z(),N(4,IP,2,1,`span`,63),N(5,LP,2,1,`span`,63),z()),e&2){let e=t.$implicit,n=q().$implicit,r=q(4);j(),Z(` `,r.errorText(n.node,e),` `),j(2),X(e.kind),j(),P(e.kind===`standardSchema`&&e.params?.path?4:-1),j(),P(e.source?5:-1)}}function zP(e,t){e&1&&(R(0,`div`,62),Y(1,`not shown to the user`),z())}function BP(e,t){if(e&1&&(R(0,`tr`)(1,`td`,64),Y(2),z()()),e&2){let e=q().$implicit;j(),t_(`padding-left`,28+e.depth*16,`px`),j(),D_(` `,e.node.truncated,` more fields under `,e.node.path||`the form`,` not shown `)}}function VP(e,t){if(e&1){let e=W();R(0,`tr`,53),G(`mouseenter`,function(){let t=O(e).$implicit,n=q(2);return k(q(2).highlight(n.id,t.node.path))})(`mouseleave`,function(){return O(e),k(q(4).highlight(null,``))}),R(1,`th`,54)(2,`button`,55),G(`focus`,function(){let t=O(e).$implicit,n=q(2);return k(q(2).highlight(n.id,t.node.path))})(`blur`,function(){return O(e),k(q(4).highlight(null,``))})(`click`,function(){let t=O(e).$implicit;return k(q(4).fieldPath.set(t.node.path))}),Y(3),z(),R(4,`span`,56),Y(5),z()(),R(6,`td`,57),N(7,hP,5,5),z(),R(8,`td`,58),N(9,gP,2,0,`span`,6)(10,_P,2,2,`span`,28),z(),R(11,`td`,59),N(12,vP,2,0,`span`),N(13,yP,2,1,`span`),N(14,bP,2,1,`span`),N(15,xP,2,1,`span`,60),N(16,SP,2,0,`span`,60),N(17,CP,2,1,`span`),N(18,wP,2,0,`span`),N(19,TP,2,0,`span`),N(20,EP,2,0,`span`),N(21,DP,2,1,`span`),N(22,OP,2,0,`span`),N(23,kP,2,0,`span`),N(24,AP,2,0,`span`),F(25,jP,2,1,`span`,null,cg),N(27,MP,2,1,`span`),N(28,NP,2,1,`span`),F(29,PP,3,3,`span`,null,sg),F(31,FP,2,1,`span`,null,sg),z(),R(33,`td`,61),F(34,RP,6,4,`div`,null,sg),N(36,zP,2,0,`div`,62),z()(),N(37,BP,3,4,`tr`)}if(e&2){let e=t.$implicit,n=q(4);J(`invalid`,e.node.errors.length),j(),t_(`padding-left`,12+e.depth*16,`px`),j(),M(`aria-label`,`Highlight `+(e.node.path||`the form`)+` on the page`)(`aria-pressed`,e.node.path===n.fieldPath())(`title`,e.node.path||`(form)`),j(),Z(` `,e.node.key||`(form)`,` `),j(2),X(e.node.type),j(2),P(e.node.type===`control`?7:-1),j(2),P(e.node.materialized===!1?9:10),j(3),P(e.node.touched?12:-1),j(),P(e.node.dirty?13:-1),j(),P(e.node.skipped?14:-1),j(),P(e.node.stale?.length?15:-1),j(),P(e.node.dom?.drift===void 0?-1:16),j(),P(e.node.redacted?17:-1),j(),P(e.node.required?18:-1),j(),P(e.node.readonly?19:-1),j(),P(e.node.hidden?20:-1),j(),P(e.node.updateOn?21:-1),j(),P(e.node.debouncing?22:-1),j(),P(e.node.validators?.sync?23:-1),j(),P(e.node.validators?.async?24:-1),j(),I(n.constraintList(e.node)),j(2),P(e.node.accessor?27:-1),j(),P(e.node.name?28:-1),j(),I(e.node.metadata??R_(28,JN)),j(2),I(e.node.disabledReasons??R_(29,JN)),j(3),I(e.node.errors),j(2),P(e.node.errors.length&&e.node.dom?.errorShown===!1?36:-1),j(),P(e.node.truncated?37:-1)}}function HP(e,t){e&1&&Y(0),e&2&&Z(` No field path matches "`,q(5).filter(),`". `)}function UP(e,t){e&1&&Y(0,` No field matches the selected filters. `)}function WP(e,t){if(e&1&&(R(0,`tr`)(1,`td`,65),N(2,HP,1,1)(3,UP,1,0),z()()),e&2){let e=q(4);j(2),P(e.filter()?2:3)}}function GP(e,t){if(e&1&&B(0,`app-forms-field-detail`,52),e&2){let e=q(2),n=q(2);L(`form`,e)(`node`,t)(`version`,n.version())(`rpc`,n.rpc())}}function KP(e,t){if(e&1){let e=W();R(0,`div`,46)(1,`input`,47),G(`input`,function(t){return O(e),k(q(3).onFilter(t))}),z(),R(2,`fieldset`,48)(3,`legend`,21),Y(4,`Show only fields that are`),z(),F(5,fP,3,2,`label`,null,YN),z()(),R(7,`div`,49)(8,`table`,50)(9,`thead`)(10,`tr`)(11,`th`,51),Y(12,`Field`),z(),R(13,`th`,51),Y(14,`Value`),z(),R(15,`th`,51),Y(16,`Status`),z(),R(17,`th`,51),Y(18,`State`),z(),R(19,`th`,51),Y(20,`Errors`),z()()(),R(21,`tbody`),F(22,VP,38,30,null,null,XN,!1,WP,4,1,`tr`),z()()(),N(25,GP,1,4,`app-forms-field-detail`,52)}if(e&2){let e,t=q(3);j(),L(`value`,t.filter()),j(4),I(t.chips),j(17),I(t.rows()),j(3),P((e=t.selectedNode())?25:-1,e)}}function qP(e,t){if(e&1){let e=W();R(0,`app-forms-timeline`,66),G(`record`,function(t){return O(e),k(q(3).setRecording(t))}),z()}if(e&2){let e=q(3);L(`events`,e.selectedEvents())(`recording`,e.recording())}}function JP(e,t){if(e&1&&B(0,`app-forms-submit`,43),e&2){let e=q(),t=q(2);L(`formId`,e.id)(`version`,t.version())(`rpc`,t.rpc())}}function YP(e,t){if(e&1&&B(0,`app-forms-lint`,43),e&2){let e=q(),t=q(2);L(`formId`,e.id)(`version`,t.version())(`rpc`,t.rpc())}}function XP(e,t){if(e&1){let e=W();R(0,`section`,14)(1,`div`,25)(2,`h2`,23),Y(3),z(),R(4,`p`,26),Y(5),R(6,`code`),Y(7),z()()(),R(8,`div`,27)(9,`span`,28),Y(10),z(),R(11,`span`),Y(12),z(),R(13,`span`),Y(14),z(),N(15,oP,2,1,`span`),N(16,sP,2,0,`span`),R(17,`span`,29)(18,`b`),Y(19),z(),Y(20,` fields · `),R(21,`b`),Y(22),z(),Y(23,` errors`),z()(),N(24,lP,6,1,`details`,30),R(25,`div`,31)(26,`div`,32)(27,`button`,7),G(`click`,function(){return O(e),k(q(2).act(`touch-all`))}),Y(28,`Touch all`),z(),R(29,`button`,7),G(`click`,function(){return O(e),k(q(2).act(`revalidate`))}),Y(30,`Revalidate`),z(),R(31,`button`,7),G(`click`,function(){return O(e),k(q(2).act(`focus-first-invalid`))}),Y(32,` Focus first invalid `),z(),R(33,`button`,7),G(`click`,function(){return O(e),k(q(2).pick())}),Y(34,`Pick field on page`),z(),B(35,`span`,33),R(36,`button`,7),G(`click`,function(){return O(e),k(q(2).act(`snapshot`))}),Y(37,`Snapshot`),z(),N(38,uP,2,4,`button`,34),B(39,`span`,35),R(40,`button`,36),G(`click`,function(){return O(e),k(q(2).confirmAct(`reset`))}),Y(41),z(),R(42,`button`,37),G(`click`,function(){return O(e),k(q(2).confirmAct(`submit`))}),Y(43),z()(),R(44,`p`,38),Y(45),z()(),R(46,`div`,39),G(`keydown`,function(t){return O(e),k(q(2).onKey(t))}),F(47,dP,2,5,`button`,40,YN),z(),R(49,`div`,41),N(50,KP,26,3)(51,qP,1,2,`app-forms-timeline`,42)(52,JP,1,3,`app-forms-submit`,43)(53,YP,1,3,`app-forms-lint`,43),z()()}if(e&2){let e,n=t,r=q(2);j(3),X(n.label),j(2),Z(` `,r.kindLabel(n.kind),` · `),j(2),X(n.id),j(2),M(`data-status`,n.root.status),j(),X(n.root.status),j(2),X(n.root.dirty?`dirty`:`pristine`),j(2),X(n.root.touched?`touched`:`untouched`),j(),P(n.submitted===void 0?-1:15),j(),P(n.root.submitting?16:-1),j(3),X(r.counts().get(n.id)?.fields),j(2),J(`has-errors`,r.counts().get(n.id)?.errors),j(),X(r.counts().get(n.id)?.errors),j(2),P(n.errorSummary?.length?24:-1),j(14),P(r.snapshot()?38:-1),j(2),J(`armed`,r.armed()===`reset`),j(),Z(` `,r.armed()===`reset`?`Confirm reset`:`Reset`,` `),j(),J(`armed`,r.armed()===`submit`),j(),Z(` `,r.armed()===`submit`?`Confirm submit`:`Submit`,` `),j(2),X(r.message()),j(2),I(r.tabs),j(2),L(`id`,`forms-panel-`+r.tab_()),M(`aria-labelledby`,`forms-tab-`+r.tab_()),j(),P((e=r.tab_())===`fields`?50:e===`timeline`?51:e===`submit`?52:e===`lint`?53:-1)}}function ZP(e,t){if(e&1&&(R(0,`div`,3)(1,`div`,8)(2,`h2`,9),Y(3,` Forms `),R(4,`span`,10),Y(5),z()(),N(6,nP,3,1,`label`,11),R(7,`ul`,12),F(8,iP,12,10,`li`,null,YN),z()(),N(10,aP,7,2,`section`,13)(11,XP,54,25,`section`,14),z()),e&2){let e,t=q();j(5),X(t.visible().length),j(),P(t.hostPageId&&(t.allPages()||t.otherPages())?6:-1),j(2),I(t.visible()),j(2),P((e=t.missing())?10:(e=t.selected())?11:-1,e)}}var QP=[{id:`fields`,label:`Fields`},{id:`timeline`,label:`Timeline`},{id:`submit`,label:`Submit`},{id:`lint`,label:`Lint`}],$P=[{id:`invalid`,label:`Invalid`},{id:`dirty`,label:`Dirty`},{id:`touched`,label:`Touched`},{id:`disabled`,label:`Disabled`},{id:`hidden-error`,label:`Error not shown`}];function eF(e,t){switch(t){case`invalid`:return e.errors.length>0;case`dirty`:return e.dirty&&e.type===`control`;case`touched`:return e.touched&&e.type===`control`;case`disabled`:return e.status===`DISABLED`;case`hidden-error`:return e.dom?.errorShown===!1}}function tF(e){return e.errors.length+(e.children??[]).reduce((e,t)=>e+tF(t),0)}function nF(e){return e.children?e.children.reduce((e,t)=>e+nF(t),0):+(e.type===`control`&&e.materialized!==!1)}var rF=class e{rpc=$(null);focus=$(null);focusHandled=iv();forms=A([]);events=A([]);loading=A(!0);failed=A(!1);selectedId=A(null);selectedLabel=A(null);hostPageId=oT();allPages=A(!1);visible=Q(()=>{let e=this.forms(),t=this.hostPageId;return t&&!this.allPages()?e.filter(e=>mN(e.id)===t):e});otherPages=Q(()=>this.forms().some(e=>mN(e.id)!==this.hostPageId));instrumented=A([]);recording=Q(()=>{let e=this.selected()?.id??``;return this.instrumented().some(t=>e.endsWith(`@${t}`))});filter=A(``);tabs=QP;chips=$P;tab_=A(`fields`);active=A(new Set);fieldPath=A(null);version=A(0);message=A(``);armed=A(null);snapshot=A(null);unsubscribe=null;destroyRef=E(ws);counts=Q(()=>new Map(this.visible().map(e=>[e.id,{fields:nF(e.root),errors:tF(e.root)}])));selected=Q(()=>{let e=this.visible(),t=this.selectedId();if(t===null)return e[0]??null;let n=this.selectedLabel(),r=mN(t);return e.find(e=>e.id===t)??e.find(e=>e.label===n&&mN(e.id)===r)??e.find(e=>e.label===n)??null});missing=Q(()=>this.selectedId()!==null&&!this.selected()&&this.visible().length?this.selectedLabel()??this.selectedId():null);rows=Q(()=>{let e=this.selected();if(!e)return[];let t=this.filter().toLowerCase(),n=Array.from(this.active()),r=[],i=(e,a)=>{let o=r.length,s=(!t||e.path.toLowerCase().includes(t))&&n.every(t=>eF(e,t));for(let t of e.children??[])s=i(t,a+1)||s;return s&&r.splice(o,0,{node:e,depth:a}),s};return i(e.root,0),r});selectedNode=Q(()=>{let e=this.fieldPath(),t=this.selected();if(e===null||!t)return null;let n=t=>t.path===e?t:(t.children??[]).map(n).find(Boolean)??null;return n(t.root)});selectedEvents=Q(()=>{let e=this.selected()?.id;return this.events().filter(t=>t.formId===e).slice(-200)});constructor(){dc(()=>{let e=this.rpc();e&&this.load(e)}),dc(()=>{let e=this.focus();e&&$_(()=>{this.selectForm(e.id),this.focusHandled.emit()})}),this.destroyRef.onDestroy(()=>{this.unsubscribe?.(),this.highlight(null,``)})}async load(e){this.loading.set(!0),this.failed.set(!1);try{let t=await e.scope(`ng-devtools`).rpc.sharedState(`forms`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e;this.forms.set(t?.forms??[]),this.events.set(t?.events??[]),this.instrumented.set(t?.instrumented??[]),this.version.update(e=>e+1)};n(t.value()),this.unsubscribe?.(),this.unsubscribe=t.on(`updated`,n)}catch{this.failed.set(!0)}finally{this.loading.set(!1)}}retry(){let e=this.rpc();e&&this.load(e)}async pick(){let e=this.selected();if(!e)return;this.message.set(`Click a field in the app (Esc cancels).`);let t=await vN(this.rpc(),{action:`pick`,formId:e.id}),n=t;if(!t.ok||!n.formId){this.message.set(yN(t));return}this.selectForm(n.formId),this.tab_.set(`fields`),this.fieldPath.set(n.path??``),this.message.set(`Picked ${n.path||`(form)`}.`)}async setRecording(e){let t=this.selected();if(!t)return;let n=await vN(this.rpc(),{action:`instrument`,formId:t.id,value:e});this.message.set(yN(n))}selectForm(e){this.hostPageId&&mN(e)&&mN(e)!==this.hostPageId&&this.allPages.set(!0),this.selectedId.set(e),this.selectedLabel.set(this.forms().find(t=>t.id===e)?.label??null),this.filter.set(``),this.fieldPath.set(null),this.snapshot.set(null),this.armed.set(null)}toggleChip(e){this.active.update(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})}async act(e,t={}){let n=this.selected();if(!n)return;this.armed.set(null);let r=await vN(this.rpc(),{action:e,formId:n.id,...t});r.snapshot&&this.snapshot.set(r.snapshot),this.message.set(yN(r))}confirmAct(e){if(this.armed()!==e){this.armed.set(e),this.message.set(`Press "Confirm ${e}" to ${e} the form in the app.`);return}this.act(e,{confirm:!0,snapshot:this.snapshot()??void 0})}onKey(e){let t=this.tabs.map(e=>e.id),n=t.indexOf(this.tab_()),r=n;if(e.key===`ArrowRight`)r=(n+1)%t.length;else if(e.key===`ArrowLeft`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),this.tab_.set(t[r]);let i=e.currentTarget;queueMicrotask(()=>i.querySelector(`#forms-tab-${t[r]}`)?.focus())}sourceText(e){let t=gN[e.source??``]??e.source??``;return e.from===void 0?t:`${t} on ${e.from||`the form`}`}onFilter(e){this.filter.set(e.target.value)}highlight(e,t){let n=this.rpc();n&&n.scope(`ng-devtools`).rpc.callEvent(`request-form-highlight`,e?{formId:e,path:t}:null)}kindLabel(e){return hN[e]}constraintList(e){return Object.entries(e.constraints??{}).map(([e,t])=>`${e} ${t}`)}errorText(e,t){return/^[a-z]/.test(t.message)?`${e.key||`The form`} ${t.message}`:t.message}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-forms-inspector`]],inputs:{rpc:[1,`rpc`],focus:[1,`focus`]},outputs:{focusHandled:`focusHandled`},decls:6,vars:1,consts:[[`role`,`status`,1,`empty`],[`role`,`alert`,1,`empty`],[1,`empty`],[1,`layout`],[`aria-hidden`,`true`,1,`spinner`],[1,`empty-title`],[1,`muted`],[`type`,`button`,1,`small`,3,`click`],[1,`sidebar`],[`id`,`forms-list-heading`,1,`list-heading`],[1,`list-count`],[1,`page-toggle`],[`aria-labelledby`,`forms-list-heading`,1,`form-list`],[`aria-labelledby`,`forms-detail-title`,1,`detail`,`gone`],[`aria-labelledby`,`forms-detail-title`,1,`detail`],[`type`,`checkbox`,3,`change`,`checked`],[`type`,`button`,1,`form-item`,3,`click`],[`aria-hidden`,`true`,1,`dot`],[1,`label`],[1,`kind`],[1,`id`],[1,`sr-only`],[1,`count`],[`id`,`forms-detail-title`],[`role`,`status`,1,`muted`],[1,`detail-head`],[1,`detail-meta`],[1,`summary`],[1,`badge`],[1,`totals`],[1,`error-summary`],[1,`action-bar`],[`role`,`group`,`aria-label`,`Form actions`,1,`actions`],[`aria-hidden`,`true`,1,`divider`],[`type`,`button`,1,`small`,3,`armed`],[`aria-hidden`,`true`,1,`spacer`],[`type`,`button`,1,`small`,`danger`,3,`click`],[`type`,`button`,1,`small`,`primary`,3,`click`],[`role`,`status`,1,`status`],[`role`,`tablist`,`aria-label`,`Form views`,1,`tabs`,3,`keydown`],[`type`,`button`,`role`,`tab`,3,`id`],[`role`,`tabpanel`,1,`panel`,3,`id`],[3,`events`,`recording`],[3,`formId`,`version`,`rpc`],[1,`kind-tag`],[`type`,`button`,`role`,`tab`,3,`click`,`id`],[1,`filters`],[`type`,`search`,`placeholder`,`Filter fields by path`,`aria-label`,`Filter fields by path`,`autocomplete`,`off`,`spellcheck`,`false`,1,`filter`,3,`input`,`value`],[1,`chips`],[`role`,`region`,`aria-label`,`Fields`,`tabindex`,`0`,1,`table-scroll`],[1,`fields`],[`scope`,`col`],[3,`form`,`node`,`version`,`rpc`],[3,`mouseenter`,`mouseleave`],[`scope`,`row`,1,`name`],[`type`,`button`,1,`field`,3,`focus`,`blur`,`click`],[1,`type`],[1,`value`],[1,`status-cell`],[1,`flags`],[1,`warn`],[1,`errors`],[1,`unseen`],[1,`source`],[`colspan`,`5`,1,`muted`,`truncated`],[`colspan`,`5`,1,`no-match`],[3,`record`,`events`,`recording`]],template:function(e,t){e&1&&N(0,ZN,4,0,`div`,0)(1,QN,7,0,`div`,1)(2,$N,4,0,`div`,0)(3,eP,5,0,`div`,2)(4,tP,7,2,`div`,2)(5,ZP,12,3,`div`,3),e&2&&P(t.rpc()?t.failed()?1:t.loading()?2:t.forms().length?t.visible().length?5:4:3:0)},dependencies:[SN,qN,ON,kN,Py],styles:[`.muted[_ngcontent-%COMP%] { +}`]})},YN=()=>[],XN=(e,t)=>t.id,ZN=(e,t)=>t.node.path;function QN(e,t){e&1&&(R(0,`div`,0),B(1,`span`,4),R(2,`p`),Y(3,`Connecting to the devtools server…`),z()())}function $N(e,t){if(e&1){let e=W();R(0,`div`,1)(1,`p`,5),Y(2,`Could not load forms`),z(),R(3,`p`,6),Y(4,` The devtools server did not answer. Check that the app is running, then try again. `),z(),R(5,`button`,7),G(`click`,function(){return O(e),k(q().retry())}),Y(6,`Try again`),z()()}}function eP(e,t){e&1&&(R(0,`div`,0),B(1,`span`,4),R(2,`p`),Y(3,`Loading forms…`),z()())}function tP(e,t){e&1&&(R(0,`div`,2)(1,`p`,5),Y(2,`No forms on the page yet`),z(),R(3,`p`,6),Y(4,` Open a page that renders a form. Signal Forms, reactive and template-driven forms all show up here, in development builds. `),z()())}function nP(e,t){if(e&1){let e=W();R(0,`div`,2)(1,`p`,5),Y(2,`No forms on this page`),z(),R(3,`p`,6),Y(4),z(),R(5,`button`,7),G(`click`,function(){return O(e),k(q().allPages.set(!0))}),Y(6,` Show forms from all pages `),z()()}if(e&2){let e=q();j(4),O_(` Other connected tabs report `,e.forms().length,` `,e.forms().length===1?`form`:`forms`,`. `)}}function rP(e,t){if(e&1){let e=W();R(0,`label`,11)(1,`input`,15),G(`change`,function(t){return O(e),k(q(2).allPages.set(t.target.checked))}),z(),Y(2,` All pages `),z()}if(e&2){let e=q(2);j(),L(`checked`,e.allPages())}}function iP(e,t){e&1&&(R(0,`span`,22),Y(1),R(2,`span`,21),Y(3,` errors`),z()()),e&2&&(j(),X(t))}function aP(e,t){if(e&1){let e=W();R(0,`li`)(1,`button`,16),G(`click`,function(){let t=O(e).$implicit;return k(q(2).selectForm(t.id))}),B(2,`span`,17),R(3,`span`,18),Y(4),z(),R(5,`span`,19),Y(6),R(7,`span`,20),Y(8),z(),R(9,`span`,21),Y(10),z()(),N(11,iP,4,1,`span`,22),z()()}if(e&2){let e,n=t.$implicit,r=q(2);j(),J(`active`,n.id===r.selected()?.id),M(`aria-current`,n.id===r.selected()?.id?`true`:null),j(),M(`data-status`,n.root.status),j(),M(`title`,n.label),j(),X(n.label),j(2),Z(``,r.kindLabel(n.kind),` · `),j(2),X(n.id),j(2),Z(`, `,n.root.status),j(),P((e=r.counts().get(n.id)?.errors)?11:-1,e)}}function oP(e,t){if(e&1){let e=W();R(0,`section`,13)(1,`h2`,23),Y(2),z(),R(3,`p`,24),Y(4,` This form is no longer on the page. It comes back here if the page renders it again. `),z(),R(5,`button`,7),G(`click`,function(){O(e);let t=q(2);return k(t.selectForm(t.visible()[0].id))}),Y(6),z()()}if(e&2){let e=q(2);j(2),X(t),j(4),Z(` Show `,e.visible()[0].label,` `)}}function sP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q();j(),X(e.submitted?`submitted`:`not submitted`)}}function cP(e,t){e&1&&(R(0,`span`),Y(1,`submitting`),z())}function lP(e,t){if(e&1&&(R(0,`li`)(1,`code`),Y(2),z(),Y(3),R(4,`code`,44),Y(5),z()()),e&2){let e=t.$implicit;j(2),X(e.path||`(form)`),j(),Z(` `,e.message,` `),j(2),X(e.kind)}}function uP(e,t){if(e&1&&(R(0,`details`,30)(1,`summary`),Y(2),z(),R(3,`ul`),F(4,lP,6,3,`li`,null,cg),z()()),e&2){let e=q();j(2),Z(`Error summary (`,e.errorSummary.length,`)`),j(2),I(e.errorSummary)}}function dP(e,t){if(e&1){let e=W();R(0,`button`,7),G(`click`,function(){return O(e),k(q(3).confirmAct(`restore`))}),Y(1),z()}if(e&2){let e=q(3);J(`armed`,e.armed()===`restore`),M(`title`,`Restore `+e.snapshot()),j(),Z(` `,e.armed()===`restore`?`Confirm restore`:`Restore `+e.snapshot(),` `)}}function fP(e,t){if(e&1){let e=W();R(0,`button`,45),G(`click`,function(){let t=O(e).$implicit;return k(q(3).tab_.set(t.id))}),Y(1),z()}if(e&2){let e=t.$implicit,n=q(3);L(`id`,`forms-tab-`+e.id),M(`aria-selected`,e.id===n.tab_())(`aria-controls`,`forms-panel-`+e.id)(`tabindex`,e.id===n.tab_()?0:-1),j(),Z(` `,e.label,` `)}}function pP(e,t){if(e&1){let e=W();R(0,`label`)(1,`input`,15),G(`change`,function(){let t=O(e).$implicit;return k(q(4).toggleChip(t.id))}),z(),Y(2),z()}if(e&2){let e=t.$implicit,n=q(4);j(),L(`checked`,n.active().has(e.id)),j(),Z(` `,e.label,` `)}}function mP(e,t){if(e&1&&(R(0,`div`,6),Y(1,` typed `),R(2,`code`),Y(3),U_(4,`json`),z(),Y(5,`, not in the model yet `),z()),e&2){let e=q(2).$implicit;j(3),X(G_(4,1,e.node.uncommitted))}}function hP(e,t){if(e&1&&(R(0,`div`,6),Y(1,` resets to `),R(2,`code`),Y(3),U_(4,`json`),z()()),e&2){let e=q(2).$implicit;j(3),X(G_(4,1,e.node.defaultValue))}}function gP(e,t){if(e&1&&(R(0,`code`),Y(1),U_(2,`json`),z(),N(3,mP,6,3,`div`,6),N(4,hP,5,3,`div`,6)),e&2){let e=q().$implicit;j(),X(G_(2,3,e.node.value)),j(2),P(e.node.uncommitted===void 0?-1:3),j(),P(e.node.defaultValue===void 0?-1:4)}}function _P(e,t){e&1&&(R(0,`span`,6),Y(1,`not created yet`),z())}function vP(e,t){if(e&1&&(R(0,`span`,28),Y(1),z()),e&2){let e=q().$implicit;M(`data-status`,e.node.status),j(),X(e.node.status)}}function yP(e,t){e&1&&(R(0,`span`),Y(1,`touched`),z())}function bP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.node.changed===!1?`dirty, unchanged`:`dirty`)}}function xP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`not validated (`,e.node.skipped,`)`)}}function SP(e,t){if(e&1&&(R(0,`span`,60),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`stale: `,e.node.stale.join(`, `))}}function CP(e,t){e&1&&(R(0,`span`,60),Y(1,`view out of sync`),z())}function wP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`redacted (`,e.node.redacted,`)`)}}function TP(e,t){e&1&&(R(0,`span`),Y(1,`required`),z())}function EP(e,t){e&1&&(R(0,`span`),Y(1,`readonly`),z())}function DP(e,t){e&1&&(R(0,`span`),Y(1,`hidden`),z())}function OP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`updates on `,e.node.updateOn)}}function kP(e,t){e&1&&(R(0,`span`),Y(1,`debouncing`),z())}function AP(e,t){e&1&&(R(0,`span`),Y(1,`validators`),z())}function jP(e,t){e&1&&(R(0,`span`),Y(1,`async validator`),z())}function MP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=t.$implicit;j(),X(e)}}function NP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.node.accessor)}}function PP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`name `,e.node.name)}}function FP(e,t){if(e&1&&(R(0,`span`),Y(1),U_(2,`json`),z()),e&2){let e=t.$implicit;j(),Z(`metadata `,G_(2,1,e))}}function IP(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=t.$implicit;j(),Z(`disabled: `,e)}}function LP(e,t){if(e&1&&(R(0,`span`,63),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`at `,e.params.path)}}function RP(e,t){if(e&1&&(R(0,`span`,63),Y(1),z()),e&2){let e=q().$implicit,t=q(5);j(),X(t.sourceText(e))}}function zP(e,t){if(e&1&&(R(0,`div`),Y(1),R(2,`code`,44),Y(3),z(),N(4,LP,2,1,`span`,63),N(5,RP,2,1,`span`,63),z()),e&2){let e=t.$implicit,n=q().$implicit,r=q(4);j(),Z(` `,r.errorText(n.node,e),` `),j(2),X(e.kind),j(),P(e.kind===`standardSchema`&&e.params?.path?4:-1),j(),P(e.source?5:-1)}}function BP(e,t){e&1&&(R(0,`div`,62),Y(1,`not shown to the user`),z())}function VP(e,t){if(e&1&&(R(0,`tr`)(1,`td`,64),Y(2),z()()),e&2){let e=q().$implicit;j(),n_(`padding-left`,28+e.depth*16,`px`),j(),O_(` `,e.node.truncated,` more fields under `,e.node.path||`the form`,` not shown `)}}function HP(e,t){if(e&1){let e=W();R(0,`tr`,53),G(`mouseenter`,function(){let t=O(e).$implicit,n=q(2);return k(q(2).highlight(n.id,t.node.path))})(`mouseleave`,function(){return O(e),k(q(4).highlight(null,``))}),R(1,`th`,54)(2,`button`,55),G(`focus`,function(){let t=O(e).$implicit,n=q(2);return k(q(2).highlight(n.id,t.node.path))})(`blur`,function(){return O(e),k(q(4).highlight(null,``))})(`click`,function(){let t=O(e).$implicit;return k(q(4).fieldPath.set(t.node.path))}),Y(3),z(),R(4,`span`,56),Y(5),z()(),R(6,`td`,57),N(7,gP,5,5),z(),R(8,`td`,58),N(9,_P,2,0,`span`,6)(10,vP,2,2,`span`,28),z(),R(11,`td`,59),N(12,yP,2,0,`span`),N(13,bP,2,1,`span`),N(14,xP,2,1,`span`),N(15,SP,2,1,`span`,60),N(16,CP,2,0,`span`,60),N(17,wP,2,1,`span`),N(18,TP,2,0,`span`),N(19,EP,2,0,`span`),N(20,DP,2,0,`span`),N(21,OP,2,1,`span`),N(22,kP,2,0,`span`),N(23,AP,2,0,`span`),N(24,jP,2,0,`span`),F(25,MP,2,1,`span`,null,lg),N(27,NP,2,1,`span`),N(28,PP,2,1,`span`),F(29,FP,3,3,`span`,null,cg),F(31,IP,2,1,`span`,null,cg),z(),R(33,`td`,61),F(34,zP,6,4,`div`,null,cg),N(36,BP,2,0,`div`,62),z()(),N(37,VP,3,4,`tr`)}if(e&2){let e=t.$implicit,n=q(4);J(`invalid`,e.node.errors.length),j(),n_(`padding-left`,12+e.depth*16,`px`),j(),M(`aria-label`,`Highlight `+(e.node.path||`the form`)+` on the page`)(`aria-pressed`,e.node.path===n.fieldPath())(`title`,e.node.path||`(form)`),j(),Z(` `,e.node.key||`(form)`,` `),j(2),X(e.node.type),j(2),P(e.node.type===`control`?7:-1),j(2),P(e.node.materialized===!1?9:10),j(3),P(e.node.touched?12:-1),j(),P(e.node.dirty?13:-1),j(),P(e.node.skipped?14:-1),j(),P(e.node.stale?.length?15:-1),j(),P(e.node.dom?.drift===void 0?-1:16),j(),P(e.node.redacted?17:-1),j(),P(e.node.required?18:-1),j(),P(e.node.readonly?19:-1),j(),P(e.node.hidden?20:-1),j(),P(e.node.updateOn?21:-1),j(),P(e.node.debouncing?22:-1),j(),P(e.node.validators?.sync?23:-1),j(),P(e.node.validators?.async?24:-1),j(),I(n.constraintList(e.node)),j(2),P(e.node.accessor?27:-1),j(),P(e.node.name?28:-1),j(),I(e.node.metadata??z_(28,YN)),j(2),I(e.node.disabledReasons??z_(29,YN)),j(3),I(e.node.errors),j(2),P(e.node.errors.length&&e.node.dom?.errorShown===!1?36:-1),j(),P(e.node.truncated?37:-1)}}function UP(e,t){e&1&&Y(0),e&2&&Z(` No field path matches "`,q(5).filter(),`". `)}function WP(e,t){e&1&&Y(0,` No field matches the selected filters. `)}function GP(e,t){if(e&1&&(R(0,`tr`)(1,`td`,65),N(2,UP,1,1)(3,WP,1,0),z()()),e&2){let e=q(4);j(2),P(e.filter()?2:3)}}function KP(e,t){if(e&1&&B(0,`app-forms-field-detail`,52),e&2){let e=q(2),n=q(2);L(`form`,e)(`node`,t)(`version`,n.version())(`rpc`,n.rpc())}}function qP(e,t){if(e&1){let e=W();R(0,`div`,46)(1,`input`,47),G(`input`,function(t){return O(e),k(q(3).onFilter(t))}),z(),R(2,`fieldset`,48)(3,`legend`,21),Y(4,`Show only fields that are`),z(),F(5,pP,3,2,`label`,null,XN),z()(),R(7,`div`,49)(8,`table`,50)(9,`thead`)(10,`tr`)(11,`th`,51),Y(12,`Field`),z(),R(13,`th`,51),Y(14,`Value`),z(),R(15,`th`,51),Y(16,`Status`),z(),R(17,`th`,51),Y(18,`State`),z(),R(19,`th`,51),Y(20,`Errors`),z()()(),R(21,`tbody`),F(22,HP,38,30,null,null,ZN,!1,GP,4,1,`tr`),z()()(),N(25,KP,1,4,`app-forms-field-detail`,52)}if(e&2){let e,t=q(3);j(),L(`value`,t.filter()),j(4),I(t.chips),j(17),I(t.rows()),j(3),P((e=t.selectedNode())?25:-1,e)}}function JP(e,t){if(e&1){let e=W();R(0,`app-forms-timeline`,66),G(`record`,function(t){return O(e),k(q(3).setRecording(t))}),z()}if(e&2){let e=q(3);L(`events`,e.selectedEvents())(`recording`,e.recording())}}function YP(e,t){if(e&1&&B(0,`app-forms-submit`,43),e&2){let e=q(),t=q(2);L(`formId`,e.id)(`version`,t.version())(`rpc`,t.rpc())}}function XP(e,t){if(e&1&&B(0,`app-forms-lint`,43),e&2){let e=q(),t=q(2);L(`formId`,e.id)(`version`,t.version())(`rpc`,t.rpc())}}function ZP(e,t){if(e&1){let e=W();R(0,`section`,14)(1,`div`,25)(2,`h2`,23),Y(3),z(),R(4,`p`,26),Y(5),R(6,`code`),Y(7),z()()(),R(8,`div`,27)(9,`span`,28),Y(10),z(),R(11,`span`),Y(12),z(),R(13,`span`),Y(14),z(),N(15,sP,2,1,`span`),N(16,cP,2,0,`span`),R(17,`span`,29)(18,`b`),Y(19),z(),Y(20,` fields · `),R(21,`b`),Y(22),z(),Y(23,` errors`),z()(),N(24,uP,6,1,`details`,30),R(25,`div`,31)(26,`div`,32)(27,`button`,7),G(`click`,function(){return O(e),k(q(2).act(`touch-all`))}),Y(28,`Touch all`),z(),R(29,`button`,7),G(`click`,function(){return O(e),k(q(2).act(`revalidate`))}),Y(30,`Revalidate`),z(),R(31,`button`,7),G(`click`,function(){return O(e),k(q(2).act(`focus-first-invalid`))}),Y(32,` Focus first invalid `),z(),R(33,`button`,7),G(`click`,function(){return O(e),k(q(2).pick())}),Y(34,`Pick field on page`),z(),B(35,`span`,33),R(36,`button`,7),G(`click`,function(){return O(e),k(q(2).act(`snapshot`))}),Y(37,`Snapshot`),z(),N(38,dP,2,4,`button`,34),B(39,`span`,35),R(40,`button`,36),G(`click`,function(){return O(e),k(q(2).confirmAct(`reset`))}),Y(41),z(),R(42,`button`,37),G(`click`,function(){return O(e),k(q(2).confirmAct(`submit`))}),Y(43),z()(),R(44,`p`,38),Y(45),z()(),R(46,`div`,39),G(`keydown`,function(t){return O(e),k(q(2).onKey(t))}),F(47,fP,2,5,`button`,40,XN),z(),R(49,`div`,41),N(50,qP,26,3)(51,JP,1,2,`app-forms-timeline`,42)(52,YP,1,3,`app-forms-submit`,43)(53,XP,1,3,`app-forms-lint`,43),z()()}if(e&2){let e,n=t,r=q(2);j(3),X(n.label),j(2),Z(` `,r.kindLabel(n.kind),` · `),j(2),X(n.id),j(2),M(`data-status`,n.root.status),j(),X(n.root.status),j(2),X(n.root.dirty?`dirty`:`pristine`),j(2),X(n.root.touched?`touched`:`untouched`),j(),P(n.submitted===void 0?-1:15),j(),P(n.root.submitting?16:-1),j(3),X(r.counts().get(n.id)?.fields),j(2),J(`has-errors`,r.counts().get(n.id)?.errors),j(),X(r.counts().get(n.id)?.errors),j(2),P(n.errorSummary?.length?24:-1),j(14),P(r.snapshot()?38:-1),j(2),J(`armed`,r.armed()===`reset`),j(),Z(` `,r.armed()===`reset`?`Confirm reset`:`Reset`,` `),j(),J(`armed`,r.armed()===`submit`),j(),Z(` `,r.armed()===`submit`?`Confirm submit`:`Submit`,` `),j(2),X(r.message()),j(2),I(r.tabs),j(2),L(`id`,`forms-panel-`+r.tab_()),M(`aria-labelledby`,`forms-tab-`+r.tab_()),j(),P((e=r.tab_())===`fields`?50:e===`timeline`?51:e===`submit`?52:e===`lint`?53:-1)}}function QP(e,t){if(e&1&&(R(0,`div`,3)(1,`div`,8)(2,`h2`,9),Y(3,` Forms `),R(4,`span`,10),Y(5),z()(),N(6,rP,3,1,`label`,11),R(7,`ul`,12),F(8,aP,12,10,`li`,null,XN),z()(),N(10,oP,7,2,`section`,13)(11,ZP,54,25,`section`,14),z()),e&2){let e,t=q();j(5),X(t.visible().length),j(),P(t.hostPageId&&(t.allPages()||t.otherPages())?6:-1),j(2),I(t.visible()),j(2),P((e=t.missing())?10:(e=t.selected())?11:-1,e)}}var $P=[{id:`fields`,label:`Fields`},{id:`timeline`,label:`Timeline`},{id:`submit`,label:`Submit`},{id:`lint`,label:`Lint`}],eF=[{id:`invalid`,label:`Invalid`},{id:`dirty`,label:`Dirty`},{id:`touched`,label:`Touched`},{id:`disabled`,label:`Disabled`},{id:`hidden-error`,label:`Error not shown`}];function tF(e,t){switch(t){case`invalid`:return e.errors.length>0;case`dirty`:return e.dirty&&e.type===`control`;case`touched`:return e.touched&&e.type===`control`;case`disabled`:return e.status===`DISABLED`;case`hidden-error`:return e.dom?.errorShown===!1}}function nF(e){return e.errors.length+(e.children??[]).reduce((e,t)=>e+nF(t),0)}function rF(e){return e.children?e.children.reduce((e,t)=>e+rF(t),0):+(e.type===`control`&&e.materialized!==!1)}var iF=class e{rpc=$(null);focus=$(null);focusHandled=av();forms=A([]);events=A([]);loading=A(!0);failed=A(!1);selectedId=A(null);selectedLabel=A(null);hostPageId=sT();allPages=A(!1);visible=Q(()=>{let e=this.forms(),t=this.hostPageId;return t&&!this.allPages()?e.filter(e=>hN(e.id)===t):e});otherPages=Q(()=>this.forms().some(e=>hN(e.id)!==this.hostPageId));instrumented=A([]);recording=Q(()=>{let e=this.selected()?.id??``;return this.instrumented().some(t=>e.endsWith(`@${t}`))});filter=A(``);tabs=$P;chips=eF;tab_=A(`fields`);active=A(new Set);fieldPath=A(null);version=A(0);message=A(``);armed=A(null);snapshot=A(null);unsubscribe=null;destroyRef=E(ws);counts=Q(()=>new Map(this.visible().map(e=>[e.id,{fields:rF(e.root),errors:nF(e.root)}])));selected=Q(()=>{let e=this.visible(),t=this.selectedId();if(t===null)return e[0]??null;let n=this.selectedLabel(),r=hN(t);return e.find(e=>e.id===t)??e.find(e=>e.label===n&&hN(e.id)===r)??e.find(e=>e.label===n)??null});missing=Q(()=>this.selectedId()!==null&&!this.selected()&&this.visible().length?this.selectedLabel()??this.selectedId():null);rows=Q(()=>{let e=this.selected();if(!e)return[];let t=this.filter().toLowerCase(),n=Array.from(this.active()),r=[],i=(e,a)=>{let o=r.length,s=(!t||e.path.toLowerCase().includes(t))&&n.every(t=>tF(e,t));for(let t of e.children??[])s=i(t,a+1)||s;return s&&r.splice(o,0,{node:e,depth:a}),s};return i(e.root,0),r});selectedNode=Q(()=>{let e=this.fieldPath(),t=this.selected();if(e===null||!t)return null;let n=t=>t.path===e?t:(t.children??[]).map(n).find(Boolean)??null;return n(t.root)});selectedEvents=Q(()=>{let e=this.selected()?.id;return this.events().filter(t=>t.formId===e).slice(-200)});constructor(){dc(()=>{let e=this.rpc();e&&this.load(e)}),dc(()=>{let e=this.focus();e&&ev(()=>{this.selectForm(e.id),this.focusHandled.emit()})}),this.destroyRef.onDestroy(()=>{this.unsubscribe?.(),this.highlight(null,``)})}async load(e){this.loading.set(!0),this.failed.set(!1);try{let t=await e.scope(`ng-devtools`).rpc.sharedState(`forms`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e;this.forms.set(t?.forms??[]),this.events.set(t?.events??[]),this.instrumented.set(t?.instrumented??[]),this.version.update(e=>e+1)};n(t.value()),this.unsubscribe?.(),this.unsubscribe=t.on(`updated`,n)}catch{this.failed.set(!0)}finally{this.loading.set(!1)}}retry(){let e=this.rpc();e&&this.load(e)}async pick(){let e=this.selected();if(!e)return;this.message.set(`Click a field in the app (Esc cancels).`);let t=await yN(this.rpc(),{action:`pick`,formId:e.id}),n=t;if(!t.ok||!n.formId){this.message.set(bN(t));return}this.selectForm(n.formId),this.tab_.set(`fields`),this.fieldPath.set(n.path??``),this.message.set(`Picked ${n.path||`(form)`}.`)}async setRecording(e){let t=this.selected();if(!t)return;let n=await yN(this.rpc(),{action:`instrument`,formId:t.id,value:e});this.message.set(bN(n))}selectForm(e){this.hostPageId&&hN(e)&&hN(e)!==this.hostPageId&&this.allPages.set(!0),this.selectedId.set(e),this.selectedLabel.set(this.forms().find(t=>t.id===e)?.label??null),this.filter.set(``),this.fieldPath.set(null),this.snapshot.set(null),this.armed.set(null)}toggleChip(e){this.active.update(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})}async act(e,t={}){let n=this.selected();if(!n)return;this.armed.set(null);let r=await yN(this.rpc(),{action:e,formId:n.id,...t});r.snapshot&&this.snapshot.set(r.snapshot),this.message.set(bN(r))}confirmAct(e){if(this.armed()!==e){this.armed.set(e),this.message.set(`Press "Confirm ${e}" to ${e} the form in the app.`);return}this.act(e,{confirm:!0,snapshot:this.snapshot()??void 0})}onKey(e){let t=this.tabs.map(e=>e.id),n=t.indexOf(this.tab_()),r=n;if(e.key===`ArrowRight`)r=(n+1)%t.length;else if(e.key===`ArrowLeft`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),this.tab_.set(t[r]);let i=e.currentTarget;queueMicrotask(()=>i.querySelector(`#forms-tab-${t[r]}`)?.focus())}sourceText(e){let t=_N[e.source??``]??e.source??``;return e.from===void 0?t:`${t} on ${e.from||`the form`}`}onFilter(e){this.filter.set(e.target.value)}highlight(e,t){let n=this.rpc();n&&n.scope(`ng-devtools`).rpc.callEvent(`request-form-highlight`,e?{formId:e,path:t}:null)}kindLabel(e){return gN[e]}constraintList(e){return Object.entries(e.constraints??{}).map(([e,t])=>`${e} ${t}`)}errorText(e,t){return/^[a-z]/.test(t.message)?`${e.key||`The form`} ${t.message}`:t.message}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-forms-inspector`]],inputs:{rpc:[1,`rpc`],focus:[1,`focus`]},outputs:{focusHandled:`focusHandled`},decls:6,vars:1,consts:[[`role`,`status`,1,`empty`],[`role`,`alert`,1,`empty`],[1,`empty`],[1,`layout`],[`aria-hidden`,`true`,1,`spinner`],[1,`empty-title`],[1,`muted`],[`type`,`button`,1,`small`,3,`click`],[1,`sidebar`],[`id`,`forms-list-heading`,1,`list-heading`],[1,`list-count`],[1,`page-toggle`],[`aria-labelledby`,`forms-list-heading`,1,`form-list`],[`aria-labelledby`,`forms-detail-title`,1,`detail`,`gone`],[`aria-labelledby`,`forms-detail-title`,1,`detail`],[`type`,`checkbox`,3,`change`,`checked`],[`type`,`button`,1,`form-item`,3,`click`],[`aria-hidden`,`true`,1,`dot`],[1,`label`],[1,`kind`],[1,`id`],[1,`sr-only`],[1,`count`],[`id`,`forms-detail-title`],[`role`,`status`,1,`muted`],[1,`detail-head`],[1,`detail-meta`],[1,`summary`],[1,`badge`],[1,`totals`],[1,`error-summary`],[1,`action-bar`],[`role`,`group`,`aria-label`,`Form actions`,1,`actions`],[`aria-hidden`,`true`,1,`divider`],[`type`,`button`,1,`small`,3,`armed`],[`aria-hidden`,`true`,1,`spacer`],[`type`,`button`,1,`small`,`danger`,3,`click`],[`type`,`button`,1,`small`,`primary`,3,`click`],[`role`,`status`,1,`status`],[`role`,`tablist`,`aria-label`,`Form views`,1,`tabs`,3,`keydown`],[`type`,`button`,`role`,`tab`,3,`id`],[`role`,`tabpanel`,1,`panel`,3,`id`],[3,`events`,`recording`],[3,`formId`,`version`,`rpc`],[1,`kind-tag`],[`type`,`button`,`role`,`tab`,3,`click`,`id`],[1,`filters`],[`type`,`search`,`placeholder`,`Filter fields by path`,`aria-label`,`Filter fields by path`,`autocomplete`,`off`,`spellcheck`,`false`,1,`filter`,3,`input`,`value`],[1,`chips`],[`role`,`region`,`aria-label`,`Fields`,`tabindex`,`0`,1,`table-scroll`],[1,`fields`],[`scope`,`col`],[3,`form`,`node`,`version`,`rpc`],[3,`mouseenter`,`mouseleave`],[`scope`,`row`,1,`name`],[`type`,`button`,1,`field`,3,`focus`,`blur`,`click`],[1,`type`],[1,`value`],[1,`status-cell`],[1,`flags`],[1,`warn`],[1,`errors`],[1,`unseen`],[1,`source`],[`colspan`,`5`,1,`muted`,`truncated`],[`colspan`,`5`,1,`no-match`],[3,`record`,`events`,`recording`]],template:function(e,t){e&1&&N(0,QN,4,0,`div`,0)(1,$N,7,0,`div`,1)(2,eP,4,0,`div`,0)(3,tP,5,0,`div`,2)(4,nP,7,2,`div`,2)(5,QP,12,3,`div`,3),e&2&&P(t.rpc()?t.failed()?1:t.loading()?2:t.forms().length?t.visible().length?5:4:3:0)},dependencies:[CN,JN,kN,AN,Fy],styles:[`.muted[_ngcontent-%COMP%] { color: var(--%NS%text-2); } @@ -8411,7 +8411,7 @@ code[_ngcontent-%COMP%] { .divider[_ngcontent-%COMP%] { display: none; } -}`]})},iF=(e,t)=>t.file+t.name,aF=(e,t)=>t.file+`:`+t.line,oF=(e,t)=>t.name;function sF(e,t){if(e&1&&(R(0,`p`,13),ps(),R(1,`svg`,26),B(2,`circle`,27)(3,`path`,28),z(),ms(),R(4,`span`)(5,`strong`),Y(6),z(),Y(7,` Pipe prototypes are patched in the inspected page to count calls and keep the last input and output. Stop recording when you are done. `),z()()),e&2){let e=q();j(6),Z(`Recording on `,e.instrumentedPages().length,` page(s).`)}}function cF(e,t){e&1&&(R(0,`div`,14),B(1,`span`,29),R(2,`p`,30),Y(3,`Scanning pipes…`),z()())}function lF(e,t){if(e&1){let e=W();R(0,`div`,15)(1,`p`,30),Y(2,`Couldn't load pipes`),z(),R(3,`p`,31),Y(4,`The devtools server did not answer. Check that it is running.`),z(),R(5,`button`,32),G(`click`,function(){return O(e),k(q().refresh())}),Y(6,`Try again`),z()()}}function uF(e,t){e&1&&(R(0,`div`,16)(1,`p`,30),Y(2,`No pipes found`),z(),R(3,`p`,31),Y(4,` No @Pipe classes were found in the source, and no template uses a built-in pipe yet. `),z()())}function dF(e,t){e&1&&(R(0,`span`,43),Y(1,`stale?`),z())}function fF(e,t){if(e&1&&(R(0,`span`,44),Y(1),z()),e&2){q();let e=L_(0);j(),Z(``,e.instanceCount,` live`)}}function pF(e,t){e&1&&(R(0,`span`,45),Y(1,`built-in`),z())}function mF(e,t){e&1&&(R(0,`span`,45),Y(1,`NgModule`),z())}function hF(e,t){if(e&1&&(R(0,`span`,47),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`+`,(e.usageCount??1)-1,` more`)}}function gF(e,t){if(e&1){let e=W();F_(0),R(1,`li`)(2,`button`,38),G(`click`,function(){let t=O(e).$implicit;return k(q(3).select(t))})(`mouseenter`,function(){O(e);let t=L_(0);return k(q(3).highlightPipe(t))})(`mouseleave`,function(){return O(e),k(q(3).highlight(null))})(`focus`,function(){O(e);let t=L_(0);return k(q(3).highlightPipe(t))})(`blur`,function(){return O(e),k(q(3).highlight(null))}),R(3,`span`,39)(4,`span`,40),Y(5),z(),R(6,`span`,41),Y(7),z()(),R(8,`span`,42),N(9,dF,2,0,`span`,43),N(10,fF,2,1,`span`,44),N(11,pF,2,0,`span`,45),N(12,mF,2,0,`span`,45),R(13,`span`,45),Y(14),z()(),R(15,`span`,46),Y(16),N(17,hF,2,1,`span`,47),z()()()}if(e&2){let e=t.$implicit,n=q(3),r=I_(n.liveFor(e.name));j(2),J(`selected`,n.isSelected(e)),M(`aria-current`,n.isSelected(e)||null),j(3),X(e.name),j(2),X(e.className),j(2),P(r?.stale?9:-1),j(),P(r?10:-1),j(),P(e.builtin?11:-1),j(),P(e.isStandalone?-1:12),j(),J(`impure`,!e.isPure),j(),X(e.isPure?`pure`:`impure`),j(2),D_(` `,e.file,`:`,e.line,` `),j(),P(e.builtin&&(e.usageCount??0)>1?17:-1)}}function _F(e,t){if(e&1){let e=W();R(0,`ul`,37),G(`keydown`,function(t){return O(e),k(q(2).onListKey(t))}),F(1,gF,18,16,`li`,null,iF),z()}if(e&2){let e=q(2);j(),I(e.filtered())}}function vF(e,t){e&1&&Y(0),e&2&&Z(` Nothing matches “`,q(3).filter().trim(),`” in this view. `)}function yF(e,t){e&1&&Y(0,` None of the pipes fit this filter. `)}function bF(e,t){if(e&1){let e=W();R(0,`div`,35)(1,`p`,30),Y(2,`No pipes match`),z(),R(3,`p`,31),N(4,vF,1,1)(5,yF,1,0),z(),R(6,`button`,32),G(`click`,function(){return O(e),k(q(2).clearFilters())}),Y(7,`Clear filters`),z()()}if(e&2){let e=q(2);j(4),P(e.filter().trim()?4:5)}}function xF(e,t){e&1&&(R(0,`span`,45),Y(1,`built-in`),z())}function SF(e,t){if(e&1&&(R(0,`dt`),Y(1,`File`),z(),R(2,`dd`,51),Y(3),z()),e&2){let e=q();j(3),D_(``,e.file,`:`,e.line)}}function CF(e,t){if(e&1&&(R(0,`li`,51),Y(1),z()),e&2){let e=t.$implicit;j(),D_(``,e.file,`:`,e.line)}}function wF(e,t){if(e&1&&(R(0,`div`,50)(1,`h3`),Y(2,` Used in templates `),R(3,`span`,21),Y(4),z()(),R(5,`ul`,53),F(6,CF,2,2,`li`,51,aF),z()()),e&2){let e=q();j(4),X(e.usageCount),j(2),I(e.usages)}}function TF(e,t){e&1&&(R(0,`p`,54)(1,`span`,43),Y(2,`experimental`),z(),Y(3,` This pure pipe got an argument whose contents changed while its reference stayed the same, so it may be showing a stale value. `),z())}function EF(e,t){if(e&1){let e=W();R(0,`button`,59),G(`click`,function(){let t=O(e);return k(q(5).highlight(t))})(`mouseenter`,function(){let t=O(e);return k(q(5).highlight(t))})(`mouseleave`,function(){return O(e),k(q(5).highlight(null))})(`focus`,function(){let t=O(e);return k(q(5).highlight(t))})(`blur`,function(){return O(e),k(q(5).highlight(null))}),R(1,`span`,51),Y(2),z(),R(3,`span`,60),Y(4),z()()}if(e&2){let e=q().$implicit;M(`aria-label`,`Highlight `+e.name+` on the page`),j(2),X(e.name),j(2),X(e.count)}}function DF(e,t){if(e&1&&(R(0,`span`,58)(1,`span`,51),Y(2),z(),R(3,`span`,60),Y(4),z()()),e&2){let e=q().$implicit;j(2),X(e.name),j(2),X(e.count)}}function OF(e,t){if(e&1&&(R(0,`li`),N(1,EF,5,3,`button`,57)(2,DF,5,2,`span`,58),z()),e&2){let e,n=t.$implicit;j(),P((e=n.targets?.[0])?1:2,e)}}function kF(e,t){if(e&1&&(R(0,`li`,61),Y(1),R(2,`span`,62),Y(3),z()()),e&2){let e=t.$implicit,n=q(6);j(),D_(` `,n.describe(e.lastArgs),` → `,n.describe(e.lastResult),` `),j(2),Z(``,e.callCount,`×`)}}function AF(e,t){if(e&1&&(R(0,`dt`),Y(1,`Per instance`),z(),R(2,`dd`)(3,`ul`,53),F(4,kF,4,3,`li`,61,sg),z()()),e&2){let e=q();j(4),I(e.instances)}}function jF(e,t){if(e&1&&(R(0,`dt`),Y(1,`Last caller`),z(),R(2,`dd`,61),Y(3),z()),e&2){let e=q();j(3),X(e.lastCaller)}}function MF(e,t){if(e&1&&(R(0,`dt`),Y(1,`Calls`),z(),R(2,`dd`),Y(3),z(),R(4,`dt`),Y(5,`Last input`),z(),R(6,`dd`,61),Y(7),z(),R(8,`dt`),Y(9,`Last output`),z(),R(10,`dd`,61),Y(11),z(),N(12,AF,6,0),N(13,jF,4,1)),e&2){let e=t,n=q(4);j(3),X(e.callCount),j(4),X(n.describe(e.lastArgs)),j(4),X(n.describe(e.lastResult)),j(),P(e.instances?.length?12:-1),j(),P(e.lastCaller?13:-1)}}function NF(e,t){e&1&&(R(0,`dt`),Y(1,`Calls`),z(),R(2,`dd`,63),Y(3,`None recorded yet.`),z())}function PF(e,t){e&1&&(R(0,`p`,56),Y(1,`Turn on “Record calls” to see call counts and values.`),z())}function FF(e,t){if(e&1&&(N(0,TF,4,0,`p`,54),R(1,`dl`)(2,`dt`),Y(3,`Instances`),z(),R(4,`dd`),Y(5),z(),R(6,`dt`),Y(7,`Used by`),z(),R(8,`dd`)(9,`ul`,55),F(10,OF,3,1,`li`,null,oF),z()(),N(12,MF,14,5)(13,NF,4,0),z(),N(14,PF,2,0,`p`,56)),e&2){let e,n=t,r=q(3);P(n.stale?0:-1),j(5),X(n.instanceCount),j(5),I(n.components),j(2),P((e=n.call)?12:r.instrumenting()?13:-1,e),j(2),P(!n.call&&!r.instrumenting()?14:-1)}}function IF(e,t){e&1&&(R(0,`p`,52),Y(1,` Not in use on the connected page. Open a view that uses it, or connect the app. `),z())}function LF(e,t){if(e&1&&(R(0,`header`,48)(1,`h2`,49),Y(2),z(),R(3,`span`,45),Y(4),z(),N(5,xF,2,0,`span`,45),z(),R(6,`div`,50)(7,`h3`),Y(8,`Declaration`),z(),R(9,`dl`)(10,`dt`),Y(11,`Class`),z(),R(12,`dd`,51),Y(13),z(),R(14,`dt`),Y(15,`Source`),z(),R(16,`dd`),Y(17),z(),N(18,SF,4,2),R(19,`dt`),Y(20,`Standalone`),z(),R(21,`dd`),Y(22),z(),R(23,`dt`),Y(24,`Pure`),z(),R(25,`dd`),Y(26),z()()(),N(27,wF,8,1,`div`,50),R(28,`div`,50)(29,`h3`),Y(30,`Live on the page`),z(),N(31,FF,15,4)(32,IF,2,0,`p`,52),z()),e&2){let e,n=t,r=q(2);j(2),X(n.name),j(),J(`impure`,!n.isPure),j(),X(n.isPure?`pure`:`impure`),j(),P(n.builtin?5:-1),j(8),X(n.className),j(4),X(n.builtin?`@angular/common`:`This project`),j(),P(n.builtin?-1:18),j(4),X(n.isStandalone?`Yes`:`No, declared in an NgModule`),j(4),Z(` `,n.isPure?`Yes, reruns only when an input changes`:`No, reruns on every check`,` `),j(),P(n.builtin&&n.usages?.length?27:-1),j(4),P((e=r.liveFor(n.name))?31:32,e)}}function RF(e,t){e&1&&(R(0,`h2`,64),Y(1,`Pipe details`),z(),R(2,`div`,65)(3,`p`,30),Y(4,`Pick a pipe`),z(),R(5,`p`,31),Y(6,` See where it is declared, which components use it and what it last returned. `),z()())}function zF(e,t){if(e&1&&(R(0,`div`,17)(1,`div`,33),N(2,_F,3,0,`ul`,34)(3,bF,8,1,`div`,35),z(),R(4,`section`,36),N(5,LF,33,12)(6,RF,7,0),z()()),e&2){let e,t=q();j(2),P(t.filtered().length?2:3),j(3),P((e=t.selected())?5:6,e)}}function BF(e,t){if(e&1){let e=W();R(0,`button`,73),G(`click`,function(){let t=O(e);return k(q(3).highlight(t))})(`focus`,function(){let t=O(e);return k(q(3).highlight(t))})(`blur`,function(){return O(e),k(q(3).highlight(null))}),Y(1),z()}if(e&2){let e=q().$implicit;M(`aria-label`,`Highlight `+e.component+` on the page`),j(),Z(` `,e.component,` `)}}function VF(e,t){if(e&1&&(R(0,`span`,71),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.component)}}function HF(e,t){e&1&&(R(0,`span`,45),Y(1,`no source`),z())}function UF(e,t){e&1&&(R(0,`span`,43),Y(1,`duplicate subscription`),z())}function WF(e,t){if(e&1){let e=W();R(0,`li`,69),G(`mouseenter`,function(){let t=O(e).$implicit;return k(q(2).highlight(t.target))})(`mouseleave`,function(){return O(e),k(q(2).highlight(null))}),N(1,BF,2,2,`button`,70)(2,VF,2,1,`span`,71),N(3,HF,2,0,`span`,45),N(4,UF,2,0,`span`,43),R(5,`span`,72),Y(6),z()()}if(e&2){let e,n=t.$implicit;j(),P((e=n.target)?1:2,e),j(2),P(n.hasSource?-1:3),j(),P(n.duplicate?4:-1),j(2),X(n.latestValue??`no value yet`)}}function GF(e,t){if(e&1&&(R(0,`section`,18)(1,`h2`,66),Y(2,` Async subscriptions `),R(3,`span`,21),Y(4),z()(),R(5,`p`,56),Y(6,` Each `),R(7,`span`,51),Y(8,`| async`),z(),Y(9,` subscribes on its own. Two on the same source mean the work runs twice. `),z(),R(10,`ul`,67),F(11,WF,7,4,`li`,68,sg),z()()),e&2){let e=q();j(4),X(e.async().length),j(7),I(e.async())}}function KF(e,t){e&1&&(R(0,`span`,21),Y(1),z()),e&2&&(j(),X(t.length))}function qF(e,t){e&1&&(R(0,`p`,22),Y(1,`Couldn't run the lint check. Try Refresh.`),z())}function JF(e,t){e&1&&(R(0,`p`,23),Y(1,`Checking…`),z())}function YF(e,t){e&1&&(R(0,`p`,24),Y(1,`No problems found.`),z())}function XF(e,t){if(e&1&&(R(0,`li`,74)(1,`div`,75)(2,`span`,76),Y(3),z(),R(4,`code`,77),Y(5),z(),R(6,`span`,78),Y(7),z()(),R(8,`p`,79),Y(9),z(),R(10,`p`,80)(11,`span`,81),Y(12,`Fix`),z(),Y(13),z()()),e&2){let e=t.$implicit;j(2),M(`data-tone`,e.severity),j(),X(e.severity),j(2),X(e.rule),j(2),O_(``,e.pipe,` · `,e.file,`:`,e.line),j(2),X(e.message),j(4),Z(` `,e.fix)}}function ZF(e,t){if(e&1&&(R(0,`ul`,25),F(1,XF,14,8,`li`,74,sg),z()),e&2){let e=q();j(),I(e.lint())}}var QF=[{value:`all`,label:`All pipes`},{value:`custom`,label:`Custom`},{value:`builtin`,label:`Built-in`},{value:`impure`,label:`Impure`},{value:`live`,label:`On the page`}],$F=class e{destroyRef=E(ws);host=E(Tl);rpc=$(null);kindOptions=QF;pipes=A([]);filter=A(``);kind=A(`all`);loading=A(!1);loadFailed=A(!1);selected=A(null);live=A([]);async=A([]);lint=A(null);lintFailed=A(!1);instrumentedPages=A([]);instrumenting=A(!1);liveByName=Q(()=>new Map(this.live().map(e=>[e.name,e])));filtered=Q(()=>{let e=this.filter().trim().toLowerCase(),t=this.kind()??`all`,n=this.liveByName();return this.pipes().filter(r=>t===`custom`&&r.builtin||t===`builtin`&&!r.builtin||t===`impure`&&r.isPure||t===`live`&&!n.has(r.name)?!1:!e||r.name.toLowerCase().includes(e)||r.className.toLowerCase().includes(e)||r.file.toLowerCase().includes(e))});unsubscribe;constructor(){dc(()=>{let e=this.rpc();e&&(this.refresh(),this.loadLive(e))}),this.destroyRef.onDestroy(()=>{this.unsubscribe?.(),this.highlight(null)})}async refresh(){let e=this.rpc();if(e){this.loading.set(!0),this.loadFailed.set(!1);try{let t=await e.scope(`ng-devtools`).rpc.call(`get-pipes`);this.pipes.set(t);let n=this.selected();if(n){let e=t.find(e=>e.name===n.name&&e.file===n.file);this.selected.set(e??null)}}catch{this.loadFailed.set(!0)}finally{this.loading.set(!1)}this.loadLint(e)}}async loadLint(e){this.lintFailed.set(!1);try{let t=await e.scope(`ng-devtools`).rpc.call(`pipe-lint`);this.lint.set(t)}catch{this.lintFailed.set(!0)}}async loadLive(e){try{let t=await e.scope(`ng-devtools`).rpc.sharedState(`pipe-usage`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e;this.live.set(t?.pipes??[]),this.async.set(t?.async??[]);let n=t?.instrumented??[];this.instrumentedPages.set(n),this.instrumenting.set(n.length>0)};n(t.value()),this.unsubscribe?.(),this.unsubscribe=t.on(`updated`,n)}catch{}}async toggleInstrument(){let e=this.rpc();if(!e)return;let t=!this.instrumenting();this.instrumenting.set(t);try{await e.scope(`ng-devtools`).rpc.call(`request-instrument-pipes`,t)}catch{this.instrumenting.set(!t)}}liveFor(e){return this.liveByName().get(e)}describe(e){if(Array.isArray(e))return e.map(e=>this.describe(e)).join(`, `);if(typeof e==`string`)return e.length>80?`${e.slice(0,80)}…`:e;try{let t=JSON.stringify(e);return t&&t.length>120?`${t.slice(0,120)}…`:t??String(e)}catch{return String(e)}}isSelected(e){let t=this.selected();return t!==null&&t.name===e.name&&t.file===e.file}select(e){this.selected.set(this.isSelected(e)?null:e)}clearFilters(){this.filter.set(``),this.kind.set(`all`)}highlightPipe(e){this.highlight(e?.components.find(e=>e.targets?.length)?.targets?.[0])}highlight(e){let t=this.rpc();t&&t.scope(`ng-devtools`).rpc.call(`request-page-highlight`,e??null).catch(()=>{})}onListKey(e){if(![`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key))return;let t=Array.from(this.host.nativeElement.querySelectorAll(`[data-pipe-row]`));if(!t.length)return;let n=t.indexOf(document.activeElement),r=n;r=e.key===`ArrowDown`?Math.min(n+1,t.length-1):e.key===`ArrowUp`?Math.max(n-1,0):e.key===`Home`?0:t.length-1,e.preventDefault(),t[r]?.focus()}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-pipes-inspector`]],inputs:{rpc:[1,`rpc`]},decls:31,vars:15,consts:[[1,`intro`],[1,`toolbar`],[1,`search`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,1,`search-icon`],[`cx`,`11`,`cy`,`11`,`r`,`7`],[`d`,`m20 20-3.5-3.5`],[`type`,`search`,`placeholder`,`Find a pipe, class or file…`,`aria-label`,`Find a pipe, class or file`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`keydown.escape`,`value`],[`ariaLabel`,`Show pipes`,3,`valueChange`,`options`,`value`],[`aria-live`,`polite`,1,`total`],[1,`actions`],[`type`,`button`,3,`click`,`disabled`],[`type`,`button`,1,`record`,3,`click`],[`aria-hidden`,`true`,1,`rec-dot`],[`role`,`status`,1,`notice`],[`role`,`status`,1,`state`],[`role`,`alert`,1,`state`],[1,`state`],[1,`layout`],[`aria-labelledby`,`async-title`,1,`section`],[`aria-labelledby`,`lint-title`,1,`section`],[`id`,`lint-title`],[1,`pill`],[`role`,`alert`,1,`empty-line`],[`role`,`status`,1,`empty-line`],[1,`empty-line`,`ok`],[1,`findings`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`],[`cx`,`12`,`cy`,`12`,`r`,`9`],[`d`,`M12 11v5M12 8h.01`],[`aria-hidden`,`true`,1,`spinner`],[1,`state-title`],[1,`state-hint`],[`type`,`button`,3,`click`],[1,`list-wrap`],[`aria-label`,`Pipes`,1,`pipe-list`],[`role`,`status`,1,`state`,`compact`],[`id`,`pipe-detail`,`aria-labelledby`,`pipe-detail-title`,1,`detail`],[`aria-label`,`Pipes`,1,`pipe-list`,3,`keydown`],[`type`,`button`,`data-pipe-row`,``,`aria-controls`,`pipe-detail`,1,`row`,3,`click`,`mouseenter`,`mouseleave`,`focus`,`blur`],[1,`row-main`],[1,`name`,`mono`],[1,`sub`,`mono`],[1,`row-meta`],[1,`chip`,`warn`],[1,`chip`,`live`],[1,`chip`],[1,`row-file`,`mono`],[1,`more`],[1,`detail-head`],[`id`,`pipe-detail-title`,1,`mono`],[1,`block`],[1,`mono`],[1,`empty-line`],[1,`sites`],[`role`,`note`,1,`warning`],[1,`chips`],[1,`hint`],[`type`,`button`,1,`component`],[1,`component`],[`type`,`button`,1,`component`,3,`click`,`mouseenter`,`mouseleave`,`focus`,`blur`],[1,`count`],[1,`mono`,`value`],[1,`calls`],[1,`muted`],[`id`,`pipe-detail-title`,1,`visually-hidden`],[1,`state`,`compact`],[`id`,`async-title`],[1,`async-list`],[1,`async-row`],[1,`async-row`,3,`mouseenter`,`mouseleave`],[`type`,`button`,1,`component-name`,`mono`],[1,`mono`,`component-name`],[1,`mono`,`value`,`latest`],[`type`,`button`,1,`component-name`,`mono`,3,`click`,`focus`,`blur`],[1,`finding`],[1,`finding-head`],[1,`severity`],[1,`mono`,`rule`],[1,`where`,`mono`],[1,`finding-message`],[1,`finding-fix`],[1,`fix-label`]],template:function(e,t){if(e&1&&(R(0,`p`,0),Y(1,` Pipes declared in your source and the built-in pipes your templates use. Live data shows which components use each pipe on the page; turn on recording to capture calls and the last input and output. `),z(),R(2,`div`,1)(3,`div`,2),ps(),R(4,`svg`,3),B(5,`circle`,4)(6,`path`,5),z(),ms(),R(7,`input`,6),G(`input`,function(e){return t.filter.set(e.target.value)})(`keydown.escape`,function(){return t.filter.set(``)}),z()(),R(8,`app-select`,7),N_(`valueChange`,function(e){return M_(t.kind,e)||(t.kind=e),e}),z(),R(9,`span`,8),Y(10),z(),R(11,`div`,9)(12,`button`,10),G(`click`,function(){return t.refresh()}),Y(13,`Refresh`),z(),R(14,`button`,11),G(`click`,function(){return t.toggleInstrument()}),B(15,`span`,12),Y(16),z()()(),N(17,sF,8,1,`p`,13),N(18,cF,4,0,`div`,14)(19,lF,7,0,`div`,15)(20,uF,5,0,`div`,16)(21,zF,7,2,`div`,17),N(22,GF,13,1,`section`,18),R(23,`section`,19)(24,`h2`,20),Y(25,` Lint `),N(26,KF,2,1,`span`,21),z(),N(27,qF,2,0,`p`,22)(28,JF,2,0,`p`,23)(29,YF,2,0,`p`,24)(30,ZF,3,0,`ul`,25),z()),e&2){let e;j(7),L(`value`,t.filter()),j(),L(`options`,t.kindOptions),j_(`value`,t.kind),j(2),D_(``,t.filtered().length,` of `,t.pipes().length),j(2),L(`disabled`,t.loading()),j(2),J(`on`,t.instrumenting()),M(`aria-pressed`,t.instrumenting()),j(2),Z(` `,t.instrumenting()?`Stop recording`:`Record calls`,` `),j(),P(t.instrumenting()?17:-1),j(),P(t.loading()&&t.pipes().length===0?18:t.loadFailed()&&t.pipes().length===0?19:t.pipes().length===0?20:21),j(4),P(t.async().length>0?22:-1),j(4),P((e=t.lint())?26:-1,e),j(),P(t.lintFailed()?27:t.lint()===null?28:t.lint().length?30:29)}},dependencies:[Dk],styles:[`[_nghost-%COMP%] { +}`]})},aF=(e,t)=>t.file+t.name,oF=(e,t)=>t.file+`:`+t.line,sF=(e,t)=>t.name;function cF(e,t){if(e&1&&(R(0,`p`,13),ps(),R(1,`svg`,26),B(2,`circle`,27)(3,`path`,28),z(),ms(),R(4,`span`)(5,`strong`),Y(6),z(),Y(7,` Pipe prototypes are patched in the inspected page to count calls and keep the last input and output. Stop recording when you are done. `),z()()),e&2){let e=q();j(6),Z(`Recording on `,e.instrumentedPages().length,` page(s).`)}}function lF(e,t){e&1&&(R(0,`div`,14),B(1,`span`,29),R(2,`p`,30),Y(3,`Scanning pipes…`),z()())}function uF(e,t){if(e&1){let e=W();R(0,`div`,15)(1,`p`,30),Y(2,`Couldn't load pipes`),z(),R(3,`p`,31),Y(4,`The devtools server did not answer. Check that it is running.`),z(),R(5,`button`,32),G(`click`,function(){return O(e),k(q().refresh())}),Y(6,`Try again`),z()()}}function dF(e,t){e&1&&(R(0,`div`,16)(1,`p`,30),Y(2,`No pipes found`),z(),R(3,`p`,31),Y(4,` No @Pipe classes were found in the source, and no template uses a built-in pipe yet. `),z()())}function fF(e,t){e&1&&(R(0,`span`,43),Y(1,`stale?`),z())}function pF(e,t){if(e&1&&(R(0,`span`,44),Y(1),z()),e&2){q();let e=R_(0);j(),Z(``,e.instanceCount,` live`)}}function mF(e,t){e&1&&(R(0,`span`,45),Y(1,`built-in`),z())}function hF(e,t){e&1&&(R(0,`span`,45),Y(1,`NgModule`),z())}function gF(e,t){if(e&1&&(R(0,`span`,47),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`+`,(e.usageCount??1)-1,` more`)}}function _F(e,t){if(e&1){let e=W();I_(0),R(1,`li`)(2,`button`,38),G(`click`,function(){let t=O(e).$implicit;return k(q(3).select(t))})(`mouseenter`,function(){O(e);let t=R_(0);return k(q(3).highlightPipe(t))})(`mouseleave`,function(){return O(e),k(q(3).highlight(null))})(`focus`,function(){O(e);let t=R_(0);return k(q(3).highlightPipe(t))})(`blur`,function(){return O(e),k(q(3).highlight(null))}),R(3,`span`,39)(4,`span`,40),Y(5),z(),R(6,`span`,41),Y(7),z()(),R(8,`span`,42),N(9,fF,2,0,`span`,43),N(10,pF,2,1,`span`,44),N(11,mF,2,0,`span`,45),N(12,hF,2,0,`span`,45),R(13,`span`,45),Y(14),z()(),R(15,`span`,46),Y(16),N(17,gF,2,1,`span`,47),z()()()}if(e&2){let e=t.$implicit,n=q(3),r=L_(n.liveFor(e.name));j(2),J(`selected`,n.isSelected(e)),M(`aria-current`,n.isSelected(e)||null),j(3),X(e.name),j(2),X(e.className),j(2),P(r?.stale?9:-1),j(),P(r?10:-1),j(),P(e.builtin?11:-1),j(),P(e.isStandalone?-1:12),j(),J(`impure`,!e.isPure),j(),X(e.isPure?`pure`:`impure`),j(2),O_(` `,e.file,`:`,e.line,` `),j(),P(e.builtin&&(e.usageCount??0)>1?17:-1)}}function vF(e,t){if(e&1){let e=W();R(0,`ul`,37),G(`keydown`,function(t){return O(e),k(q(2).onListKey(t))}),F(1,_F,18,16,`li`,null,aF),z()}if(e&2){let e=q(2);j(),I(e.filtered())}}function yF(e,t){e&1&&Y(0),e&2&&Z(` Nothing matches “`,q(3).filter().trim(),`” in this view. `)}function bF(e,t){e&1&&Y(0,` None of the pipes fit this filter. `)}function xF(e,t){if(e&1){let e=W();R(0,`div`,35)(1,`p`,30),Y(2,`No pipes match`),z(),R(3,`p`,31),N(4,yF,1,1)(5,bF,1,0),z(),R(6,`button`,32),G(`click`,function(){return O(e),k(q(2).clearFilters())}),Y(7,`Clear filters`),z()()}if(e&2){let e=q(2);j(4),P(e.filter().trim()?4:5)}}function SF(e,t){e&1&&(R(0,`span`,45),Y(1,`built-in`),z())}function CF(e,t){if(e&1&&(R(0,`dt`),Y(1,`File`),z(),R(2,`dd`,51),Y(3),z()),e&2){let e=q();j(3),O_(``,e.file,`:`,e.line)}}function wF(e,t){if(e&1&&(R(0,`li`,51),Y(1),z()),e&2){let e=t.$implicit;j(),O_(``,e.file,`:`,e.line)}}function TF(e,t){if(e&1&&(R(0,`div`,50)(1,`h3`),Y(2,` Used in templates `),R(3,`span`,21),Y(4),z()(),R(5,`ul`,53),F(6,wF,2,2,`li`,51,oF),z()()),e&2){let e=q();j(4),X(e.usageCount),j(2),I(e.usages)}}function EF(e,t){e&1&&(R(0,`p`,54)(1,`span`,43),Y(2,`experimental`),z(),Y(3,` This pure pipe got an argument whose contents changed while its reference stayed the same, so it may be showing a stale value. `),z())}function DF(e,t){if(e&1){let e=W();R(0,`button`,59),G(`click`,function(){let t=O(e);return k(q(5).highlight(t))})(`mouseenter`,function(){let t=O(e);return k(q(5).highlight(t))})(`mouseleave`,function(){return O(e),k(q(5).highlight(null))})(`focus`,function(){let t=O(e);return k(q(5).highlight(t))})(`blur`,function(){return O(e),k(q(5).highlight(null))}),R(1,`span`,51),Y(2),z(),R(3,`span`,60),Y(4),z()()}if(e&2){let e=q().$implicit;M(`aria-label`,`Highlight `+e.name+` on the page`),j(2),X(e.name),j(2),X(e.count)}}function OF(e,t){if(e&1&&(R(0,`span`,58)(1,`span`,51),Y(2),z(),R(3,`span`,60),Y(4),z()()),e&2){let e=q().$implicit;j(2),X(e.name),j(2),X(e.count)}}function kF(e,t){if(e&1&&(R(0,`li`),N(1,DF,5,3,`button`,57)(2,OF,5,2,`span`,58),z()),e&2){let e,n=t.$implicit;j(),P((e=n.targets?.[0])?1:2,e)}}function AF(e,t){if(e&1&&(R(0,`li`,61),Y(1),R(2,`span`,62),Y(3),z()()),e&2){let e=t.$implicit,n=q(6);j(),O_(` `,n.describe(e.lastArgs),` → `,n.describe(e.lastResult),` `),j(2),Z(``,e.callCount,`×`)}}function jF(e,t){if(e&1&&(R(0,`dt`),Y(1,`Per instance`),z(),R(2,`dd`)(3,`ul`,53),F(4,AF,4,3,`li`,61,cg),z()()),e&2){let e=q();j(4),I(e.instances)}}function MF(e,t){if(e&1&&(R(0,`dt`),Y(1,`Last caller`),z(),R(2,`dd`,61),Y(3),z()),e&2){let e=q();j(3),X(e.lastCaller)}}function NF(e,t){if(e&1&&(R(0,`dt`),Y(1,`Calls`),z(),R(2,`dd`),Y(3),z(),R(4,`dt`),Y(5,`Last input`),z(),R(6,`dd`,61),Y(7),z(),R(8,`dt`),Y(9,`Last output`),z(),R(10,`dd`,61),Y(11),z(),N(12,jF,6,0),N(13,MF,4,1)),e&2){let e=t,n=q(4);j(3),X(e.callCount),j(4),X(n.describe(e.lastArgs)),j(4),X(n.describe(e.lastResult)),j(),P(e.instances?.length?12:-1),j(),P(e.lastCaller?13:-1)}}function PF(e,t){e&1&&(R(0,`dt`),Y(1,`Calls`),z(),R(2,`dd`,63),Y(3,`None recorded yet.`),z())}function FF(e,t){e&1&&(R(0,`p`,56),Y(1,`Turn on “Record calls” to see call counts and values.`),z())}function IF(e,t){if(e&1&&(N(0,EF,4,0,`p`,54),R(1,`dl`)(2,`dt`),Y(3,`Instances`),z(),R(4,`dd`),Y(5),z(),R(6,`dt`),Y(7,`Used by`),z(),R(8,`dd`)(9,`ul`,55),F(10,kF,3,1,`li`,null,sF),z()(),N(12,NF,14,5)(13,PF,4,0),z(),N(14,FF,2,0,`p`,56)),e&2){let e,n=t,r=q(3);P(n.stale?0:-1),j(5),X(n.instanceCount),j(5),I(n.components),j(2),P((e=n.call)?12:r.instrumenting()?13:-1,e),j(2),P(!n.call&&!r.instrumenting()?14:-1)}}function LF(e,t){e&1&&(R(0,`p`,52),Y(1,` Not in use on the connected page. Open a view that uses it, or connect the app. `),z())}function RF(e,t){if(e&1&&(R(0,`header`,48)(1,`h2`,49),Y(2),z(),R(3,`span`,45),Y(4),z(),N(5,SF,2,0,`span`,45),z(),R(6,`div`,50)(7,`h3`),Y(8,`Declaration`),z(),R(9,`dl`)(10,`dt`),Y(11,`Class`),z(),R(12,`dd`,51),Y(13),z(),R(14,`dt`),Y(15,`Source`),z(),R(16,`dd`),Y(17),z(),N(18,CF,4,2),R(19,`dt`),Y(20,`Standalone`),z(),R(21,`dd`),Y(22),z(),R(23,`dt`),Y(24,`Pure`),z(),R(25,`dd`),Y(26),z()()(),N(27,TF,8,1,`div`,50),R(28,`div`,50)(29,`h3`),Y(30,`Live on the page`),z(),N(31,IF,15,4)(32,LF,2,0,`p`,52),z()),e&2){let e,n=t,r=q(2);j(2),X(n.name),j(),J(`impure`,!n.isPure),j(),X(n.isPure?`pure`:`impure`),j(),P(n.builtin?5:-1),j(8),X(n.className),j(4),X(n.builtin?`@angular/common`:`This project`),j(),P(n.builtin?-1:18),j(4),X(n.isStandalone?`Yes`:`No, declared in an NgModule`),j(4),Z(` `,n.isPure?`Yes, reruns only when an input changes`:`No, reruns on every check`,` `),j(),P(n.builtin&&n.usages?.length?27:-1),j(4),P((e=r.liveFor(n.name))?31:32,e)}}function zF(e,t){e&1&&(R(0,`h2`,64),Y(1,`Pipe details`),z(),R(2,`div`,65)(3,`p`,30),Y(4,`Pick a pipe`),z(),R(5,`p`,31),Y(6,` See where it is declared, which components use it and what it last returned. `),z()())}function BF(e,t){if(e&1&&(R(0,`div`,17)(1,`div`,33),N(2,vF,3,0,`ul`,34)(3,xF,8,1,`div`,35),z(),R(4,`section`,36),N(5,RF,33,12)(6,zF,7,0),z()()),e&2){let e,t=q();j(2),P(t.filtered().length?2:3),j(3),P((e=t.selected())?5:6,e)}}function VF(e,t){if(e&1){let e=W();R(0,`button`,73),G(`click`,function(){let t=O(e);return k(q(3).highlight(t))})(`focus`,function(){let t=O(e);return k(q(3).highlight(t))})(`blur`,function(){return O(e),k(q(3).highlight(null))}),Y(1),z()}if(e&2){let e=q().$implicit;M(`aria-label`,`Highlight `+e.component+` on the page`),j(),Z(` `,e.component,` `)}}function HF(e,t){if(e&1&&(R(0,`span`,71),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.component)}}function UF(e,t){e&1&&(R(0,`span`,45),Y(1,`no source`),z())}function WF(e,t){e&1&&(R(0,`span`,43),Y(1,`duplicate subscription`),z())}function GF(e,t){if(e&1){let e=W();R(0,`li`,69),G(`mouseenter`,function(){let t=O(e).$implicit;return k(q(2).highlight(t.target))})(`mouseleave`,function(){return O(e),k(q(2).highlight(null))}),N(1,VF,2,2,`button`,70)(2,HF,2,1,`span`,71),N(3,UF,2,0,`span`,45),N(4,WF,2,0,`span`,43),R(5,`span`,72),Y(6),z()()}if(e&2){let e,n=t.$implicit;j(),P((e=n.target)?1:2,e),j(2),P(n.hasSource?-1:3),j(),P(n.duplicate?4:-1),j(2),X(n.latestValue??`no value yet`)}}function KF(e,t){if(e&1&&(R(0,`section`,18)(1,`h2`,66),Y(2,` Async subscriptions `),R(3,`span`,21),Y(4),z()(),R(5,`p`,56),Y(6,` Each `),R(7,`span`,51),Y(8,`| async`),z(),Y(9,` subscribes on its own. Two on the same source mean the work runs twice. `),z(),R(10,`ul`,67),F(11,GF,7,4,`li`,68,cg),z()()),e&2){let e=q();j(4),X(e.async().length),j(7),I(e.async())}}function qF(e,t){e&1&&(R(0,`span`,21),Y(1),z()),e&2&&(j(),X(t.length))}function JF(e,t){e&1&&(R(0,`p`,22),Y(1,`Couldn't run the lint check. Try Refresh.`),z())}function YF(e,t){e&1&&(R(0,`p`,23),Y(1,`Checking…`),z())}function XF(e,t){e&1&&(R(0,`p`,24),Y(1,`No problems found.`),z())}function ZF(e,t){if(e&1&&(R(0,`li`,74)(1,`div`,75)(2,`span`,76),Y(3),z(),R(4,`code`,77),Y(5),z(),R(6,`span`,78),Y(7),z()(),R(8,`p`,79),Y(9),z(),R(10,`p`,80)(11,`span`,81),Y(12,`Fix`),z(),Y(13),z()()),e&2){let e=t.$implicit;j(2),M(`data-tone`,e.severity),j(),X(e.severity),j(2),X(e.rule),j(2),k_(``,e.pipe,` · `,e.file,`:`,e.line),j(2),X(e.message),j(4),Z(` `,e.fix)}}function QF(e,t){if(e&1&&(R(0,`ul`,25),F(1,ZF,14,8,`li`,74,cg),z()),e&2){let e=q();j(),I(e.lint())}}var $F=[{value:`all`,label:`All pipes`},{value:`custom`,label:`Custom`},{value:`builtin`,label:`Built-in`},{value:`impure`,label:`Impure`},{value:`live`,label:`On the page`}],eI=class e{destroyRef=E(ws);host=E(Tl);rpc=$(null);kindOptions=$F;pipes=A([]);filter=A(``);kind=A(`all`);loading=A(!1);loadFailed=A(!1);selected=A(null);live=A([]);async=A([]);lint=A(null);lintFailed=A(!1);instrumentedPages=A([]);instrumenting=A(!1);liveByName=Q(()=>new Map(this.live().map(e=>[e.name,e])));filtered=Q(()=>{let e=this.filter().trim().toLowerCase(),t=this.kind()??`all`,n=this.liveByName();return this.pipes().filter(r=>t===`custom`&&r.builtin||t===`builtin`&&!r.builtin||t===`impure`&&r.isPure||t===`live`&&!n.has(r.name)?!1:!e||r.name.toLowerCase().includes(e)||r.className.toLowerCase().includes(e)||r.file.toLowerCase().includes(e))});unsubscribe;constructor(){dc(()=>{let e=this.rpc();e&&(this.refresh(),this.loadLive(e))}),this.destroyRef.onDestroy(()=>{this.unsubscribe?.(),this.highlight(null)})}async refresh(){let e=this.rpc();if(e){this.loading.set(!0),this.loadFailed.set(!1);try{let t=await e.scope(`ng-devtools`).rpc.call(`get-pipes`);this.pipes.set(t);let n=this.selected();if(n){let e=t.find(e=>e.name===n.name&&e.file===n.file);this.selected.set(e??null)}}catch{this.loadFailed.set(!0)}finally{this.loading.set(!1)}this.loadLint(e)}}async loadLint(e){this.lintFailed.set(!1);try{let t=await e.scope(`ng-devtools`).rpc.call(`pipe-lint`);this.lint.set(t)}catch{this.lintFailed.set(!0)}}async loadLive(e){try{let t=await e.scope(`ng-devtools`).rpc.sharedState(`pipe-usage`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e;this.live.set(t?.pipes??[]),this.async.set(t?.async??[]);let n=t?.instrumented??[];this.instrumentedPages.set(n),this.instrumenting.set(n.length>0)};n(t.value()),this.unsubscribe?.(),this.unsubscribe=t.on(`updated`,n)}catch{}}async toggleInstrument(){let e=this.rpc();if(!e)return;let t=!this.instrumenting();this.instrumenting.set(t);try{await e.scope(`ng-devtools`).rpc.call(`request-instrument-pipes`,t)}catch{this.instrumenting.set(!t)}}liveFor(e){return this.liveByName().get(e)}describe(e){if(Array.isArray(e))return e.map(e=>this.describe(e)).join(`, `);if(typeof e==`string`)return e.length>80?`${e.slice(0,80)}…`:e;try{let t=JSON.stringify(e);return t&&t.length>120?`${t.slice(0,120)}…`:t??String(e)}catch{return String(e)}}isSelected(e){let t=this.selected();return t!==null&&t.name===e.name&&t.file===e.file}select(e){this.selected.set(this.isSelected(e)?null:e)}clearFilters(){this.filter.set(``),this.kind.set(`all`)}highlightPipe(e){this.highlight(e?.components.find(e=>e.targets?.length)?.targets?.[0])}highlight(e){let t=this.rpc();t&&t.scope(`ng-devtools`).rpc.call(`request-page-highlight`,e??null).catch(()=>{})}onListKey(e){if(![`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key))return;let t=Array.from(this.host.nativeElement.querySelectorAll(`[data-pipe-row]`));if(!t.length)return;let n=t.indexOf(document.activeElement),r=n;r=e.key===`ArrowDown`?Math.min(n+1,t.length-1):e.key===`ArrowUp`?Math.max(n-1,0):e.key===`Home`?0:t.length-1,e.preventDefault(),t[r]?.focus()}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-pipes-inspector`]],inputs:{rpc:[1,`rpc`]},decls:31,vars:15,consts:[[1,`intro`],[1,`toolbar`],[1,`search`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,1,`search-icon`],[`cx`,`11`,`cy`,`11`,`r`,`7`],[`d`,`m20 20-3.5-3.5`],[`type`,`search`,`placeholder`,`Find a pipe, class or file…`,`aria-label`,`Find a pipe, class or file`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`keydown.escape`,`value`],[`ariaLabel`,`Show pipes`,3,`valueChange`,`options`,`value`],[`aria-live`,`polite`,1,`total`],[1,`actions`],[`type`,`button`,3,`click`,`disabled`],[`type`,`button`,1,`record`,3,`click`],[`aria-hidden`,`true`,1,`rec-dot`],[`role`,`status`,1,`notice`],[`role`,`status`,1,`state`],[`role`,`alert`,1,`state`],[1,`state`],[1,`layout`],[`aria-labelledby`,`async-title`,1,`section`],[`aria-labelledby`,`lint-title`,1,`section`],[`id`,`lint-title`],[1,`pill`],[`role`,`alert`,1,`empty-line`],[`role`,`status`,1,`empty-line`],[1,`empty-line`,`ok`],[1,`findings`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`],[`cx`,`12`,`cy`,`12`,`r`,`9`],[`d`,`M12 11v5M12 8h.01`],[`aria-hidden`,`true`,1,`spinner`],[1,`state-title`],[1,`state-hint`],[`type`,`button`,3,`click`],[1,`list-wrap`],[`aria-label`,`Pipes`,1,`pipe-list`],[`role`,`status`,1,`state`,`compact`],[`id`,`pipe-detail`,`aria-labelledby`,`pipe-detail-title`,1,`detail`],[`aria-label`,`Pipes`,1,`pipe-list`,3,`keydown`],[`type`,`button`,`data-pipe-row`,``,`aria-controls`,`pipe-detail`,1,`row`,3,`click`,`mouseenter`,`mouseleave`,`focus`,`blur`],[1,`row-main`],[1,`name`,`mono`],[1,`sub`,`mono`],[1,`row-meta`],[1,`chip`,`warn`],[1,`chip`,`live`],[1,`chip`],[1,`row-file`,`mono`],[1,`more`],[1,`detail-head`],[`id`,`pipe-detail-title`,1,`mono`],[1,`block`],[1,`mono`],[1,`empty-line`],[1,`sites`],[`role`,`note`,1,`warning`],[1,`chips`],[1,`hint`],[`type`,`button`,1,`component`],[1,`component`],[`type`,`button`,1,`component`,3,`click`,`mouseenter`,`mouseleave`,`focus`,`blur`],[1,`count`],[1,`mono`,`value`],[1,`calls`],[1,`muted`],[`id`,`pipe-detail-title`,1,`visually-hidden`],[1,`state`,`compact`],[`id`,`async-title`],[1,`async-list`],[1,`async-row`],[1,`async-row`,3,`mouseenter`,`mouseleave`],[`type`,`button`,1,`component-name`,`mono`],[1,`mono`,`component-name`],[1,`mono`,`value`,`latest`],[`type`,`button`,1,`component-name`,`mono`,3,`click`,`focus`,`blur`],[1,`finding`],[1,`finding-head`],[1,`severity`],[1,`mono`,`rule`],[1,`where`,`mono`],[1,`finding-message`],[1,`finding-fix`],[1,`fix-label`]],template:function(e,t){if(e&1&&(R(0,`p`,0),Y(1,` Pipes declared in your source and the built-in pipes your templates use. Live data shows which components use each pipe on the page; turn on recording to capture calls and the last input and output. `),z(),R(2,`div`,1)(3,`div`,2),ps(),R(4,`svg`,3),B(5,`circle`,4)(6,`path`,5),z(),ms(),R(7,`input`,6),G(`input`,function(e){return t.filter.set(e.target.value)})(`keydown.escape`,function(){return t.filter.set(``)}),z()(),R(8,`app-select`,7),P_(`valueChange`,function(e){return N_(t.kind,e)||(t.kind=e),e}),z(),R(9,`span`,8),Y(10),z(),R(11,`div`,9)(12,`button`,10),G(`click`,function(){return t.refresh()}),Y(13,`Refresh`),z(),R(14,`button`,11),G(`click`,function(){return t.toggleInstrument()}),B(15,`span`,12),Y(16),z()()(),N(17,cF,8,1,`p`,13),N(18,lF,4,0,`div`,14)(19,uF,7,0,`div`,15)(20,dF,5,0,`div`,16)(21,BF,7,2,`div`,17),N(22,KF,13,1,`section`,18),R(23,`section`,19)(24,`h2`,20),Y(25,` Lint `),N(26,qF,2,1,`span`,21),z(),N(27,JF,2,0,`p`,22)(28,YF,2,0,`p`,23)(29,XF,2,0,`p`,24)(30,QF,3,0,`ul`,25),z()),e&2){let e;j(7),L(`value`,t.filter()),j(),L(`options`,t.kindOptions),M_(`value`,t.kind),j(2),O_(``,t.filtered().length,` of `,t.pipes().length),j(2),L(`disabled`,t.loading()),j(2),J(`on`,t.instrumenting()),M(`aria-pressed`,t.instrumenting()),j(2),Z(` `,t.instrumenting()?`Stop recording`:`Record calls`,` `),j(),P(t.instrumenting()?17:-1),j(),P(t.loading()&&t.pipes().length===0?18:t.loadFailed()&&t.pipes().length===0?19:t.pipes().length===0?20:21),j(4),P(t.async().length>0?22:-1),j(4),P((e=t.lint())?26:-1,e),j(),P(t.lintFailed()?27:t.lint()===null?28:t.lint().length?30:29)}},dependencies:[Ok],styles:[`[_nghost-%COMP%] { display: block; color: var(--%NS%text); font-size: 13px; @@ -9096,7 +9096,7 @@ button.component-name[_ngcontent-%COMP%] { .spinner[_ngcontent-%COMP%] { animation: none; } -}`]})},eI=()=>[],tI=()=>[`/`],nI=(e,t)=>t.id,rI=(e,t)=>t.route.id,iI=(e,t)=>t[0],aI=(e,t)=>t.file+t.method,oI=(e,t)=>t.path,sI=(e,t)=>t.mode,cI=(e,t)=>t.file,lI=(e,t)=>t.rule;function uI(e,t){e&1&&(R(0,`div`,0),B(1,`span`,2),R(2,`span`),Y(3,`Reading the project…`),z()())}function dI(e,t){e&1&&(R(0,`div`,1)(1,`h2`,3),Y(2,`This app is not an Analog app.`),z(),R(3,`p`,4),Y(4,` Add `),R(5,`code`),Y(6,`ngDevtools()`),z(),Y(7,` from `),R(8,`code`),Y(9,`@santoshyadavdev/ng-devtools/vite`),z(),Y(10,` next to `),R(11,`code`),Y(12,`analog()`),z(),Y(13,` in vite.config.ts and run the Analog dev server. `),z()())}function fI(e,t){if(e&1&&(R(0,`div`,9)(1,`span`,7),Y(2,`Open in the browser`),z(),R(3,`span`,13),Y(4),z()()),e&2){let e=t;j(3),L(`title`,e.url),j(),X(e.url)}}function pI(e,t){if(e&1){let e=W();R(0,`button`,14),G(`click`,function(){let t=O(e).$implicit;return k(q(2).view.set(t.id))}),Y(1),R(2,`span`,15),Y(3),z()()}if(e&2){let e=t.$implicit,n=q(2);L(`id`,`analog-tab-`+e.id),M(`aria-selected`,e.id===n.view())(`aria-controls`,`analog-panel-`+e.id)(`tabindex`,e.id===n.view()?0:-1),j(),Z(` `,e.label,` `),j(),M(`data-tone`,e.tone),j(),X(e.count)}}function mI(e,t){if(e&1&&(R(0,`li`)(1,`span`,27),Y(2),z(),R(3,`span`,30),Y(4),z()()),e&2){let e=t.$implicit,n=q(5);j(2),X(n.short(e.file)??e.fullPath),j(),M(`data-kind`,e.kind),j(),X(e.kind)}}function hI(e,t){if(e&1&&(R(0,`span`,31),Y(1),z()),e&2){let e=t.$implicit;j(),D_(``,e[0],` = `,e[1])}}function gI(e,t){if(e&1&&(R(0,`div`,29),F(1,hI,2,2,`span`,31,iI),z()),e&2){let e=q(2),t=q(3);j(),I(t.paramList(e.params))}}function _I(e,t){if(e&1&&(R(0,`strong`,27),Y(1),z(),Y(2,` renders `),R(3,`ol`,28),F(4,mI,5,3,`li`,null,nI),z(),N(6,gI,3,0,`div`,29)),e&2){let e=q(),t=q(3);j(),X(t.testUrl()),j(3),I(e.chain),j(2),P(t.paramList(e.params).length?6:-1)}}function vI(e,t){if(e&1&&(R(0,`li`)(1,`span`,27),Y(2),z(),R(3,`span`,4),Y(4),z()()),e&2){let e=t.$implicit,n=q(6);j(2),X(n.short(e.file)??e.path),j(2),X(e.reason)}}function yI(e,t){if(e&1&&(R(0,`ul`,32),F(1,vI,5,2,`li`,null,sg),z()),e&2){let e=q(2);j(),I(e.rejected.slice(0,5))}}function bI(e,t){if(e&1&&(R(0,`strong`,27),Y(1),z(),Y(2,` matches no file route. Angular throws NG04002 "Cannot match any routes". `),N(3,yI,3,0,`ul`,32)),e&2){let e=q(),t=q(3);j(),X(t.testUrl()),j(2),P(e.rejected.length?3:-1)}}function xI(e,t){if(e&1&&(R(0,`div`,23),N(1,_I,7,2)(2,bI,4,2),z()),e&2){let e=t;M(`data-tone`,e.matched?`good`:`bad`),j(),P(e.matched?1:2)}}function SI(e,t){e&1&&(R(0,`span`,34),Y(1,`└`),z())}function CI(e,t){e&1&&(R(0,`span`,36),Y(1,`open`),z())}function wI(e,t){if(e&1&&(R(0,`span`,37)(1,`span`,41),Y(2),z(),Y(3),z()),e&2){let e=q().$implicit,t=q(3);j(2),X(t.dir(e.route.file)),j(),X(t.base(e.route.file))}}function TI(e,t){e&1&&(R(0,`span`,4),Y(1,`folder only`),z())}function EI(e,t){if(e&1&&(R(0,`span`,39),Y(1),z()),e&2){let e=t.$implicit;j(),Z(``,e,`()`)}}function DI(e,t){if(e&1&&(R(0,`span`,40),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`"`,e.route.title,`"`)}}function OI(e,t){if(e&1&&(R(0,`span`,31),Y(1),z()),e&2){let e=q().$implicit;j(),X(e)}}function kI(e,t){if(e&1&&N(0,OI,2,1,`span`,31),e&2){let e=t.$implicit;P(e===`title`?-1:0)}}function AI(e,t){if(e&1&&(R(0,`tr`)(1,`td`)(2,`div`,33),N(3,SI,2,0,`span`,34),R(4,`span`,35),Y(5),z(),R(6,`span`,30),Y(7),z(),N(8,CI,2,0,`span`,36),z()(),R(9,`td`),N(10,wI,4,2,`span`,37)(11,TI,2,0,`span`,4),z(),R(12,`td`)(13,`div`,38),F(14,EI,2,1,`span`,39,cg),z()(),R(16,`td`),N(17,DI,2,1,`span`,40),F(18,kI,1,1,null,null,cg),z()()),e&2){let e=t.$implicit,n=q(3);J(`open`,n.isOpen(e.route))(`dim`,e.route.kind===`group`||e.route.kind===`implicit`),j(2),t_(`padding-left`,e.depth*16,`px`),j(),P(e.depth?3:-1),j(2),X(e.route.fullPath),j(),M(`data-kind`,e.route.kind),j(),X(n.kindText(e.route)),j(),P(n.isOpen(e.route)?8:-1),j(2),P(e.route.file?10:11),j(4),I(n.serverExports(e.route)),j(3),P(e.route.title?17:-1),j(),I(e.route.routeMeta??R_(13,eI))}}function jI(e,t){e&1&&Y(0,` No route matches the filter. Try part of a path or a file name. `)}function MI(e,t){e&1&&Y(0,` No file routes yet. Add a .page.ts file under src/app/pages. `)}function NI(e,t){if(e&1&&(R(0,`tr`)(1,`td`,42),N(2,jI,1,0)(3,MI,1,0),z()()),e&2){let e=q(3);j(2),P(e.filter().trim()?2:3)}}function PI(e,t){if(e&1){let e=W();R(0,`div`,16)(1,`form`,17),G(`submit`,function(t){O(e);let n=q(2);return t.preventDefault(),k(n.explain())}),R(2,`label`,18),Y(3,`Test a URL`),z(),R(4,`input`,19),G(`input`,function(t){return O(e),k(q(2).testUrl.set(t.target.value))}),z(),R(5,`button`,20),Y(6,`Explain`),z()(),R(7,`label`,21),Y(8,`Filter routes`),z(),R(9,`input`,22),G(`input`,function(t){return O(e),k(q(2).filter.set(t.target.value))}),z()(),N(10,xI,3,2,`div`,23),R(11,`div`,24)(12,`table`)(13,`thead`)(14,`tr`)(15,`th`,25),Y(16,`Route`),z(),R(17,`th`,25),Y(18,`File`),z(),R(19,`th`,25),Y(20,`Data`),z(),R(21,`th`,25),Y(22,`Route meta`),z()()(),R(23,`tbody`),F(24,AI,20,14,`tr`,26,rI,!1,NI,4,1,`tr`),z()()()}if(e&2){let e,t=q(2);j(4),L(`value`,t.testUrl()),j(5),L(`value`,t.filter()),j(),P((e=t.match())?10:-1,e),j(14),I(t.routeRows())}}function FI(e,t){if(e&1&&(R(0,`span`,27),Y(1),z(),Y(2)),e&2){let e=t.$implicit,n=t.$index,r=t.$count;j(),X(e),j(),Z(``,n===r-1?``:`, `,` `)}}function II(e,t){if(e&1&&(R(0,`div`,43)(1,`strong`),Y(2,`load() ran twice`),z(),Y(3,` for `),F(4,FI,3,2,null,null,cg),Y(6,` : once while server rendering, again in the browser. TransferState did not serve the server result. `),z()),e&2){let e=q(3);j(4),I(e.duplicates())}}function LI(e,t){if(e&1){let e=W();R(0,`label`)(1,`input`,58),G(`change`,function(){let t=O(e).$implicit;return k(q(3).kind.set(t))}),z(),Y(2),R(3,`span`,4),Y(4),z()()}if(e&2){let e=t.$implicit,n=q(3);J(`on`,n.kind()===e),j(),L(`checked`,n.kind()===e),j(),Z(` `,n.kindLabel(e),` `),j(2),X(n.kindCount(e))}}function RI(e,t){if(e&1&&(R(0,`span`,30),Y(1),z()),e&2){let e=q().$implicit;M(`data-mode`,e.render===`ssr`?`ssr`:`client`),j(),X(e.render===`ssr`?`server rendered`:`client only`)}}function zI(e,t){if(e&1&&(R(0,`details`)(1,`summary`),Y(2,`Response`),z(),R(3,`pre`,66),Y(4),z()()),e&2){let e=q().$implicit,t=q(4);j(4),X(t.pretty(e.preview))}}function BI(e,t){if(e&1&&(R(0,`tr`)(1,`td`,60),Y(2),z(),R(3,`td`)(4,`span`,30),Y(5),z()(),R(6,`td`,61)(7,`div`,38)(8,`span`,62),Y(9),z(),R(10,`span`,63),Y(11),z(),N(12,RI,2,2,`span`,30),z(),N(13,zI,5,1,`details`),z(),R(14,`td`)(15,`span`,64),Y(16),z()(),R(17,`td`,65),Y(18),z(),R(19,`td`,4),Y(20),z()()),e&2){let e=t.$implicit,n=q(4);j(2),X(n.time(e.at)),j(2),M(`data-call`,e.kind),j(),X(n.kindLabel(e.kind)),j(3),M(`data-method`,e.method),j(),X(e.method),j(2),X(e.url),j(),P(e.render?12:-1),j(),P(e.preview?13:-1),j(2),M(`data-status`,n.statusClass(e.status)),j(),X(e.status),j(2),Z(``,e.ms,` ms`),j(2),X(e.from)}}function VI(e,t){if(e&1&&(R(0,`div`,49)(1,`table`)(2,`thead`)(3,`tr`)(4,`th`,25),Y(5,`At`),z(),R(6,`th`,25),Y(7,`Kind`),z(),R(8,`th`,25),Y(9,`Request`),z(),R(10,`th`,25),Y(11,`Status`),z(),R(12,`th`,59),Y(13,`Duration`),z(),R(14,`th`,25),Y(15,`From`),z()()(),R(16,`tbody`),F(17,BI,21,12,`tr`,null,nI),z()()()),e&2){let e=q(3);j(17),I(e.calls())}}function HI(e,t){e&1&&Y(0,` No calls of this kind yet. `)}function UI(e,t){e&1&&Y(0,` No calls yet. `)}function WI(e,t){if(e&1&&(R(0,`div`,50)(1,`p`,67),N(2,HI,1,0)(3,UI,1,0),z(),R(4,`p`,4),Y(5,` Navigate in the app to see page renders, load() fetches and API calls. `),z()()),e&2){let e=q(3);j(2),P(e.allCalls().length?2:3)}}function GI(e,t){if(e&1){let e=W();R(0,`tr`)(1,`td`)(2,`span`,62),Y(3),z()(),R(4,`td`,27),Y(5),z(),R(6,`td`)(7,`span`,37)(8,`span`,41),Y(9),z(),Y(10),z()(),R(11,`td`,68)(12,`button`,69),G(`click`,function(){let t=O(e).$implicit;return k(q(3).tryApi(t))}),Y(13,` Try `),z()()()}if(e&2){let e=t.$implicit,n=q(3);j(2),M(`data-method`,e.method),j(),X(e.method),j(2),X(e.path),j(4),X(n.dir(e.file)),j(),X(n.base(e.file)),j(2),M(`aria-label`,`Try `+e.method+` `+e.path)}}function KI(e,t){e&1&&(R(0,`tr`)(1,`td`,42),Y(2,` No API routes. Add a handler under src/server/routes to test it here. `),z()())}function qI(e,t){if(e&1){let e=W();R(0,`label`,70),Y(1,`JSON body`),z(),R(2,`textarea`,71),G(`input`,function(t){return O(e),k(q(3).apiBody.set(t.target.value))}),z(),R(3,`label`,72)(4,`input`,73),G(`change`,function(){O(e);let t=q(3);return k(t.confirmSend.set(!t.confirmSend()))}),z(),Y(5,` This request can change data on the dev server`),z()}if(e&2){let e=q(3);j(2),L(`value`,e.apiBody()),j(2),L(`checked`,e.confirmSend())}}function JI(e,t){if(e&1&&(R(0,`div`,53)(1,`span`,74),Y(2,`Refused`),z(),R(3,`span`),Y(4),z()()),e&2){let e=q();j(4),X(e.error)}}function YI(e,t){if(e&1&&(R(0,`div`,53)(1,`span`,64),Y(2),z(),R(3,`span`,4),Y(4),z()(),R(5,`pre`,66),Y(6),z()),e&2){let e=q(),t=q(3);j(),M(`data-status`,t.statusClass(e.status??0)),j(),X(e.status),j(2),D_(``,e.ms,` ms · `,e.type||`no content type`),j(2),X(t.pretty(e.body??``))}}function XI(e,t){e&1&&(R(0,`div`,57),N(1,JI,5,1,`div`,53)(2,YI,7,5),z()),e&2&&(j(),P(t.error?1:2))}function ZI(e,t){if(e&1){let e=W();N(0,II,7,0,`div`,43),R(1,`div`,44)(2,`fieldset`,45)(3,`legend`,46),Y(4,`Show calls of kind`),z(),F(5,LI,5,5,`label`,47,cg),z(),R(7,`button`,48),G(`click`,function(){return O(e),k(q(2).clearCalls())}),Y(8,` Clear calls `),z()(),N(9,VI,19,0,`div`,49)(10,WI,6,1,`div`,50),R(11,`h2`),Y(12,`API routes`),z(),R(13,`div`,51)(14,`table`)(15,`thead`)(16,`tr`)(17,`th`,25),Y(18,`Method`),z(),R(19,`th`,25),Y(20,`Path`),z(),R(21,`th`,25),Y(22,`File`),z(),R(23,`th`,25)(24,`span`,46),Y(25,`Actions`),z()()()(),R(26,`tbody`),F(27,GI,14,6,`tr`,null,aI,!1,KI,3,0,`tr`),z()()(),R(30,`form`,52),G(`submit`,function(t){O(e);let n=q(2);return t.preventDefault(),k(n.send())}),R(31,`h2`),Y(32,`Request playground`),z(),R(33,`div`,53)(34,`app-select`,54),G(`valueChange`,function(t){return O(e),k(q(2).method.set(t??`GET`))}),z(),R(35,`label`,55),Y(36,`Path`),z(),R(37,`input`,56),G(`input`,function(t){return O(e),k(q(2).apiPath.set(t.target.value))}),z(),R(38,`button`,20),Y(39,`Send`),z()(),N(40,qI,6,2),N(41,XI,3,1,`div`,57),z()}if(e&2){let e,t=q(2);P(t.duplicates().length?0:-1),j(5),I(t.kinds),j(2),L(`disabled`,!t.allCalls().length),j(2),P(t.calls().length?9:10),j(18),I(t.project().api),j(7),L(`options`,t.methodOptions)(`value`,t.method()),j(3),L(`value`,t.apiPath()),j(3),P(t.method()===`GET`?-1:40),j(),P((e=t.response())?41:-1,e)}}function QI(e,t){if(e&1&&(R(0,`span`,30),Y(1),z()),e&2){let e=t.$implicit;M(`data-mode`,e.mode),j(),D_(``,e.label,` · `,e.count)}}function $I(e,t){if(e&1&&(R(0,`div`,29),F(1,QI,2,3,`span`,30,sI),z()),e&2){let e=q(3);j(),I(e.modeCounts())}}function eL(e,t){e&1&&(R(0,`span`,79),Y(1,`differs from config`),z())}function tL(e,t){if(e&1&&(R(0,`div`,38)(1,`span`,64),Y(2),z(),R(3,`span`,78),Y(4),z(),N(5,eL,2,0,`span`,79),z()),e&2){let e=t,n=q().$implicit,r=q(3);j(),M(`data-status`,r.statusClass(e.status)),j(),X(e.status),j(2),D_(``,e.render===`client`?`client only`:`server rendered`,` · `,e.ms,` ms`),j(),P(r.mismatch(n)?5:-1)}}function nL(e,t){e&1&&(R(0,`span`,77),Y(1,`not requested yet`),z())}function rL(e,t){if(e&1&&(R(0,`span`,37)(1,`span`,41),Y(2),z(),Y(3),z()),e&2){let e=q().$implicit,t=q(3);j(2),X(t.dir(e.file)),j(),X(t.base(e.file))}}function iL(e,t){if(e&1&&(R(0,`tr`)(1,`td`,35),Y(2),z(),R(3,`td`)(4,`div`,38)(5,`span`,30),Y(6),z(),R(7,`span`,77),Y(8),z()()(),R(9,`td`),N(10,tL,6,5,`div`,38)(11,nL,2,0,`span`,77),z(),R(12,`td`),N(13,rL,4,2,`span`,37),z()()),e&2){let e,n=t.$implicit,r=q(3);j(2),X(n.path),j(3),M(`data-mode`,n.mode),j(),X(r.modeLabel(n.mode)),j(2),X(n.reason),j(2),P((e=n.last)?10:11,e),j(3),P(n.file?13:-1)}}function aL(e,t){e&1&&(R(0,`tr`)(1,`td`,42),Y(2,` No page routes to render yet. Add a .page.ts file under src/app/pages. `),z()())}function oL(e,t){e&1&&(R(0,`p`,4),Y(1,` prerender.routes is a function, so the list is known only at build time. `),z())}function sL(e,t){if(e&1&&(R(0,`span`,31),Y(1),z()),e&2){let e=t.$implicit;j(),X(e)}}function cL(e,t){e&1&&(R(0,`span`,77),Y(1,`default, nothing configured`),z())}function lL(e,t){if(e&1&&(R(0,`span`,82),Y(1),z()),e&2){let e=t.$implicit;j(),X(e)}}function uL(e,t){if(e&1&&(R(0,`dt`),Y(1,`Static, not listed`),z(),R(2,`dd`),F(3,lL,2,1,`span`,82,cg),z()),e&2){let e=q(2);j(3),I(e.staticMissing)}}function dL(e,t){if(e&1&&(R(0,`span`,31),Y(1),z()),e&2){let e=t.$implicit;j(),X(e)}}function fL(e,t){if(e&1&&(R(0,`dt`),Y(1,`Need explicit entries`),z(),R(2,`dd`),F(3,dL,2,1,`span`,31,cg),z()),e&2){let e=q(2);j(3),I(e.dynamic)}}function pL(e,t){if(e&1&&(R(0,`span`,83),Y(1),z()),e&2){let e=t.$implicit;j(),X(e)}}function mL(e,t){if(e&1&&(Y(0,` · missing `),F(1,pL,2,1,`span`,83,cg)),e&2){let e=q(3);j(),I(e.notBuilt)}}function hL(e,t){if(e&1&&(Y(0),N(1,mL,3,0)),e&2){let e=q(2);Z(` `,e.built.length,` page(s) in dist/analog/public `),j(),P(e.notBuilt.length?1:-1)}}function gL(e,t){e&1&&(R(0,`span`,77),Y(1,`no build yet`),z())}function _L(e,t){if(e&1&&(R(0,`dl`,80)(1,`dt`),Y(2,`Listed`),z(),R(3,`dd`),F(4,sL,2,1,`span`,31,cg),N(6,cL,2,0,`span`,77),z(),N(7,uL,5,0),N(8,fL,5,0),R(9,`dt`),Y(10,`Build output`),z(),R(11,`dd`,81),N(12,hL,2,2)(13,gL,2,0,`span`,77),z()()),e&2){let e=q();j(4),I(e.listed??R_(4,tI)),j(2),P(e.listed?-1:6),j(),P(e.staticMissing.length?7:-1),j(),P(e.dynamic.length?8:-1),j(4),P(e.built.length?12:13)}}function vL(e,t){e&1&&(R(0,`div`,76)(1,`h2`),Y(2,`Prerender plan`),z(),N(3,oL,2,0,`p`,4)(4,_L,14,5,`dl`,80),z()),e&2&&(j(3),P(t.dynamicConfig?3:4))}function yL(e,t){if(e&1&&(N(0,$I,3,0,`div`,29),R(1,`div`,75)(2,`table`)(3,`thead`)(4,`tr`)(5,`th`,25),Y(6,`Route`),z(),R(7,`th`,25),Y(8,`Configured`),z(),R(9,`th`,25),Y(10,`Last request`),z(),R(11,`th`,25),Y(12,`File`),z()()(),R(13,`tbody`),F(14,iL,14,6,`tr`,null,oI,!1,aL,3,0,`tr`),z()()(),N(17,vL,5,1,`div`,76)),e&2){let e,t=q(2);P(t.modeCounts().length?0:-1),j(14),I(t.renderRows()),j(3),P((e=t.plan())?17:-1,e)}}function bL(e,t){if(e&1&&(R(0,`div`)(1,`span`,86),Y(2),z()()),e&2){let e=q().$implicit;j(2),X(e.error)}}function xL(e,t){if(e&1&&(R(0,`div`)(1,`span`,79),Y(2),z()()),e&2){let e=q(5);j(2),Z(`takes over `,e.base(t))}}function SL(e,t){if(e&1&&(R(0,`tr`)(1,`td`)(2,`strong`),Y(3),z(),N(4,bL,3,1,`div`),N(5,xL,3,1,`div`),z(),R(6,`td`,35),Y(7),z(),R(8,`td`,27),Y(9),z(),R(10,`td`,85),Y(11),z(),R(12,`td`)(13,`span`,37)(14,`span`,41),Y(15),z(),Y(16),z()()()),e&2){let e,n=t.$implicit,r=q(4);j(3),X(n.attributes.title||`(no title)`),j(),P(n.error?4:-1),j(),P((e=r.shadowed(n.file))?5:-1,e),j(2),X(r.contentUrl(n.file)??``),j(2),X(n.slug),j(2),X(n.attributes.date||``),j(4),X(r.dir(n.file)),j(),X(r.base(n.file))}}function CL(e,t){if(e&1&&(R(0,`div`,84)(1,`table`)(2,`thead`)(3,`tr`)(4,`th`,25),Y(5,`Title`),z(),R(6,`th`,25),Y(7,`URL`),z(),R(8,`th`,25),Y(9,`Slug`),z(),R(10,`th`,25),Y(11,`Date`),z(),R(12,`th`,25),Y(13,`File`),z()()(),R(14,`tbody`),F(15,SL,17,8,`tr`,null,cI),z()()()),e&2){let e=q(3);j(15),I(e.project().content)}}function wL(e,t){e&1&&(R(0,`div`,50)(1,`p`,67),Y(2,`No markdown files under src/content.`),z(),R(3,`p`,4),Y(4,` Add a .md file there to see its title, slug, date and the URL it serves. `),z()())}function TL(e,t){e&1&&N(0,CL,17,0,`div`,84)(1,wL,5,0,`div`,50),e&2&&P(+!q(2).project().content.length)}function EL(e,t){if(e&1&&(R(0,`span`,15),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.items.length)}}function DL(e,t){if(e&1&&(R(0,`span`,37)(1,`span`,41),Y(2),z(),Y(3),z()),e&2){let e=q().$implicit,t=q(5);j(2),X(t.dir(e.file)),j(),X(t.base(e.file))}}function OL(e,t){if(e&1&&(R(0,`span`,35),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.path)}}function kL(e,t){if(e&1&&(R(0,`li`),N(1,DL,4,2,`span`,37),N(2,OL,2,1,`span`,35),z()),e&2){let e=t.$implicit;j(),P(e.file?1:-1),j(),P(e.path&&e.path!==e.file?2:-1)}}function AL(e,t){if(e&1&&(R(0,`li`)(1,`div`,89)(2,`span`,30),Y(3),z(),R(4,`strong`,90),Y(5),z(),N(6,EL,2,1,`span`,15),z(),R(7,`p`),Y(8),z(),R(9,`ul`,91),F(10,kL,3,2,`li`,null,sg),z(),R(12,`div`,92)(13,`strong`),Y(14,`How to fix`),z(),Y(15),z(),R(16,`span`,93),Y(17),z()()),e&2){let e=t.$implicit,n=q(4);M(`data-tone`,n.tone(e.severity)),j(2),M(`data-tone`,n.tone(e.severity)),j(),X(e.severity),j(2),X(e.title),j(),P(e.items.length>1?6:-1),j(2),X(e.summary),j(2),I(e.items),j(5),Z(` `,e.fix),j(2),X(e.rule)}}function jL(e,t){if(e&1&&(R(0,`p`,4),Y(1),z(),R(2,`ul`,88),F(3,AL,18,8,`li`,null,lI),z()),e&2){let e=q(3);j(),D_(` `,e.findings().length,` issue(s) in `,e.lintCards().length,` group(s). Each card says what is wrong, where, and how to fix it. `),j(2),I(e.lintCards())}}function ML(e,t){e&1&&(R(0,`div`,87)(1,`strong`),Y(2,`No Analog problems found.`),z(),Y(3,` Routes, server files, prerender config and content all check out. `),z())}function NL(e,t){e&1&&N(0,jL,5,2)(1,ML,4,0,`div`,87),e&2&&P(+!q(2).findings().length)}function PL(e,t){if(e&1){let e=W();R(0,`section`,5)(1,`div`,6)(2,`span`,7),Y(3,`Analog`),z(),R(4,`span`,8),Y(5),z()(),R(6,`div`,6)(7,`span`,7),Y(8,`Pages`),z(),R(9,`span`,8),Y(10),z()(),R(11,`div`,6)(12,`span`,7),Y(13,`API routes`),z(),R(14,`span`,8),Y(15),z()(),R(16,`div`,6)(17,`span`,7),Y(18,`Server calls`),z(),R(19,`span`,8),Y(20),z()(),R(21,`div`,6)(22,`span`,7),Y(23,`Issues`),z(),R(24,`span`,8),Y(25),z()(),N(26,fI,5,2,`div`,9),z(),R(27,`div`,10),G(`keydown`,function(t){return O(e),k(q().onKey(t))}),F(28,pI,4,7,`button`,11,nI),z(),R(30,`div`,12),N(31,PI,27,4)(32,ZI,42,9)(33,yL,18,3)(34,TL,2,1)(35,NL,2,1),z()}if(e&2){let e,t,n=q();j(5),X(n.project().version||`unknown`),j(5),X(n.pageCount()),j(5),X(n.project().api.length),j(5),X(n.allCalls().length),j(),M(`data-tone`,n.findings().length?`warn`:`good`),j(4),X(n.findings().length),j(),P((e=n.page())?26:-1,e),j(2),I(n.views()),j(2),L(`id`,`analog-panel-`+n.view()),M(`aria-labelledby`,`analog-tab-`+n.view()),j(),P((t=n.view())===`routes`?31:t===`server`?32:t===`render`?33:t===`content`?34:t===`lint`?35:-1)}}var FL={"scan-error":{title:`A folder could not be read`,summary:`Its files are missing from routes, API routes and lint results.`},"duplicate-url":{title:`Two files serve the same URL`,summary:`Only one of them is reachable; the other never renders.`},"sibling-params":{title:`Two dynamic pages in one folder`,summary:`Both are [param] pages at the same level, so the first one always wins.`},"missing-default-export":{title:`Page has no default export`,summary:`Analog needs the component as the default export, so the page renders nothing.`},"redirect-with-component":{title:`Redirect page also exports a component`,summary:`The redirect runs first, so the component never shows.`},"redirect-path-match":{title:`Redirect matches too much`,summary:`An empty-path redirect without pathMatch "full" catches every URL below it.`},"layout-without-outlet":{title:`Layout has no router-outlet`,summary:`The layout has child pages, but without they never render.`},"server-without-load":{title:`.server.ts without load or action`,summary:`The server file exports nothing Analog calls.`},"orphan-server-file":{title:`.server.ts without a page`,summary:`No page file sits next to it, so its load never runs.`},"api-method-suffix":{title:`Unknown method suffix on an API file`,summary:`The suffix is not an HTTP method, so it becomes part of the URL.`},"duplicate-api-route":{title:`Two handlers for one API route`,summary:`Two files answer the same method and path.`},"api-outside-prefix":{title:`Server route outside the API prefix`,summary:`During vite dev only routes under the prefix reach Nitro.`},"prerender-unknown-route":{title:`Prerender entry matches no page`,summary:`prerender.routes lists a path that no page file serves.`},"prerender-missing-root":{title:`Home page is not prerendered`,summary:`static is on, but prerender.routes leaves out /.`},"content-frontmatter":{title:`Broken frontmatter`,summary:`The markdown frontmatter cannot be read.`},"duplicate-slug":{title:`Two posts share a slug`,summary:`injectContent picks one of them at random.`},"content-shadows-page":{title:`Markdown file takes over a page`,summary:`Files under src/content are routes too, so these URLs render the markdown file instead of the [param] page.`},"load-fetched-twice":{title:`load() runs twice`,summary:`These pages fetched their data while rendering on the server and again in the browser.`},"restart-needed":{title:`New pages need a restart`,summary:`These page files exist, but the running router does not know them yet.`},"hydration-error":{title:`Hydration error`,summary:`The browser DOM did not match the server HTML.`},"api-not-found":{title:`API call failed with 404 or 405`,summary:`A request hit a path or method that no server route handles.`}},IL={ssr:`SSR`,ssg:`Prerendered`,client:`Client only`},LL={all:`All`,page:`Pages`,load:`load()`,fn:`Server fn`,api:`API`};function RL(e,t=0,n=[]){for(let r of e)n.push({route:r,depth:t}),RL(r.children,t+1,n);return n}var zL=class e{rpc=$(null);kinds=[`all`,`page`,`load`,`fn`,`api`];methods=[`GET`,`POST`,`PUT`,`PATCH`,`DELETE`];methodOptions=this.methods.map(e=>({value:e,label:e}));view=A(`routes`);project=A(null);state=A({});findings=A([]);renderRows=A([]);plan=A(null);filter=A(``);testUrl=A(``);match=A(null);kind=A(`all`);method=A(`GET`);apiPath=A(``);apiBody=A(``);confirmSend=A(!1);response=A(null);unsubscribe=null;refreshTimer;refreshRun=0;destroyRef=E(ws);page=Q(()=>this.state().pages?.[0]??null);openFiles=Q(()=>new Set((this.page()?.chain??[]).map(e=>e.file)));allCalls=Q(()=>this.state().calls??[]);calls=Q(()=>{let e=this.kind();return this.allCalls().filter(t=>e===`all`||t.kind===e).slice(-150).reverse()});allRoutes=Q(()=>RL(this.project()?.routes??[]));pageCount=Q(()=>this.allRoutes().filter(e=>e.route.file&&e.route.kind!==`layout`).length);routeRows=Q(()=>{let e=this.filter().trim().toLowerCase();return e?this.allRoutes().filter(t=>t.route.fullPath.toLowerCase().includes(e)||!!t.route.file?.toLowerCase().includes(e)):this.allRoutes()});duplicates=Q(()=>Array.from(new Set((this.state().duplicates??[]).map(e=>e.route))));modeCounts=Q(()=>[`ssr`,`ssg`,`client`].map(e=>({mode:e,label:IL[e],count:this.renderRows().filter(t=>t.mode===e).length})).filter(e=>e.count));lintCards=Q(()=>{let e={error:0,warning:1,info:2},t=new Map;for(let e of this.findings()){let n=t.get(e.rule);if(!n){let r=FL[e.rule];n={rule:e.rule,severity:e.severity,title:r?.title??e.rule,summary:r?.summary??e.message,fix:e.fix,items:[]},t.set(e.rule,n)}n.items.push({file:e.file,path:e.path})}return Array.from(t.values()).sort((t,n)=>e[t.severity]-e[n.severity])});views=Q(()=>{let e=this.findings().length;return[{id:`routes`,label:`Routes`,count:this.pageCount(),tone:``},{id:`server`,label:`Server`,count:this.allCalls().length,tone:``},{id:`render`,label:`Render`,count:this.renderRows().length,tone:``},{id:`content`,label:`Content`,count:this.project()?.content.length??0,tone:``},{id:`lint`,label:`Lint`,count:e,tone:e?`warn`:``}]});constructor(){dc(()=>{let e=this.rpc();e&&$_(()=>void this.load(e))}),dc(()=>{let e=this.view();this.state(),$_(()=>this.scheduleRefresh(e))}),this.destroyRef.onDestroy(()=>{this.unsubscribe?.(),clearTimeout(this.refreshTimer)})}async load(e){let t=await qE(e,`analog-project`);if(!this.destroyRef.destroyed){this.project.set(t);try{let t=await e.scope(`ng-devtools`).rpc.sharedState(`analog`);if(this.destroyRef.destroyed)return;let n=e=>this.state.set(e??{});n(t.value()),this.unsubscribe?.(),this.unsubscribe=t.on(`updated`,n)}catch{this.state.set({})}this.destroyRef.destroyed||await this.refresh(this.view())}}scheduleRefresh(e){clearTimeout(this.refreshTimer),this.refreshTimer=setTimeout(()=>void this.refresh(e),300)}async refresh(e){let t=this.rpc();if(!t)return;let n=++this.refreshRun,[r,i]=await Promise.all([qE(t,`analog-lint`),qE(t,`analog-render`)]);if(n===this.refreshRun&&(this.findings.set(r??[]),this.renderRows.set(i?.rows??[]),this.plan.set(i?.plan??null),e===`routes`||e===`content`)){let e=await qE(t,`analog-project`);e&&n===this.refreshRun&&this.project.set(e)}}isOpen(e){return!!e.file&&this.openFiles().has(e.file)}kindText(e){return e.catchAll?e.catchAll===`optional`?`optional catch-all`:`catch-all`:e.kind===`implicit`?`folder`:e.kind}serverExports(e){return(e.serverExports??[]).filter(e=>e===`load`||e===`action`)}short(e){return e?.replace(/^\/src\/app\//,``).replace(/^\//,``)}dir(e){let t=this.short(e)??e;return t.includes(`/`)?t.slice(0,t.lastIndexOf(`/`)+1):``}base(e){return e.slice(e.lastIndexOf(`/`)+1)}paramList(e){return Object.entries(e)}kindLabel(e){return LL[e]}kindCount(e){return e===`all`?this.allCalls().length:this.allCalls().filter(t=>t.kind===e).length}modeLabel(e){return IL[e]}mismatch(e){return e.last?.render?e.mode===`client`?e.last.render!==`client`:e.last.render===`client`:!1}statusClass(e){return e>=500||e===0?`bad`:e>=400?`warn`:`good`}tone(e){return e===`error`?`bad`:e===`warning`?`warn`:`info`}shadowed(e){return this.findings().find(t=>t.rule===`content-shadows-page`&&t.file===e)?.message.match(/(\/\S+\.page\.ts)/)?.[1]}contentUrl(e){return this.allRoutes().find(t=>t.route.file===e)?.route.fullPath}pretty(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}time=tO;tryApi(e){this.method.set(e.method===`ANY`?`GET`:e.method),this.apiPath.set(e.path.replace(/:(\w+)/g,`1`).replace(`**`,`x`)),this.response.set(null),queueMicrotask(()=>document.getElementById(`api-path`)?.focus())}async clearCalls(){await qE(this.rpc(),`analog-clear-calls`)}async explain(){let e=this.testUrl().trim();e&&this.match.set(await qE(this.rpc(),`analog-explain-url`,e))}async send(){let e=this.apiPath().trim();if(!e)return;let t;if(this.method()!==`GET`&&this.apiBody().trim())try{t=JSON.parse(this.apiBody())}catch{this.response.set({error:`The body is not valid JSON.`});return}let n=await qE(this.rpc(),`analog-call-api`,{method:this.method(),path:e,body:t,confirm:this.confirmSend()});this.response.set(n??{error:`No answer from the devtools server.`})}onKey(e){let t=this.views().map(e=>e.id),n=t.indexOf(this.view()),r=n;if(e.key===`ArrowRight`)r=(n+1)%t.length;else if(e.key===`ArrowLeft`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),this.view.set(t[r]);let i=e.currentTarget;queueMicrotask(()=>i.querySelector(`#analog-tab-${t[r]}`)?.focus())}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-analog-inspector`]],inputs:{rpc:[1,`rpc`]},decls:3,vars:1,consts:[[`role`,`status`,1,`loading`],[1,`empty`],[`aria-hidden`,`true`,1,`spinner`],[1,`empty-title`],[1,`muted`],[`aria-label`,`Analog summary`,1,`summary`],[1,`stat`],[1,`label`],[1,`value`],[1,`stat`,`wide`],[`role`,`tablist`,`aria-label`,`Analog views`,1,`tabs`,3,`keydown`],[`type`,`button`,`role`,`tab`,3,`id`],[`role`,`tabpanel`,1,`panel`,3,`id`],[1,`value`,`mono`,3,`title`],[`type`,`button`,`role`,`tab`,3,`click`,`id`],[1,`count`],[1,`toolbar`],[1,`inline`,`explain`,3,`submit`],[`for`,`analog-url`],[`id`,`analog-url`,`type`,`text`,`placeholder`,`/products/42`,1,`field`,`grow`,`mono`,3,`input`,`value`],[`type`,`submit`,1,`btn`,`primary`],[`for`,`route-filter`,1,`sr-only`],[`id`,`route-filter`,`type`,`search`,`placeholder`,`Filter by path or file`,1,`field`,`filter`,3,`input`,`value`],[`role`,`status`,1,`callout`],[`role`,`region`,`aria-label`,`File routes`,`tabindex`,`0`,1,`table-wrap`],[`scope`,`col`],[3,`open`,`dim`],[1,`mono`],[1,`chain`],[1,`chips`],[1,`pill`],[1,`chip`,`mono`],[1,`plain`],[1,`route`],[`aria-hidden`,`true`,1,`guide`],[1,`mono`,`path`],[1,`pill`,`live`],[1,`file`],[1,`meta`],[`data-kind`,`load`,1,`pill`],[1,`chip`],[1,`dir`],[`colspan`,`4`,1,`empty-row`],[`data-tone`,`warn`,`role`,`note`,1,`callout`],[1,`calls-bar`],[1,`segmented`],[1,`sr-only`],[3,`on`],[`type`,`button`,1,`btn`,`ghost`,3,`click`,`disabled`],[`role`,`region`,`aria-label`,`Server calls`,`tabindex`,`0`,1,`table-wrap`],[1,`empty-box`],[`role`,`region`,`aria-label`,`API routes`,`tabindex`,`0`,1,`table-wrap`],[1,`card`,`playground`,3,`submit`],[1,`row`],[`ariaLabel`,`Method`,1,`method-select`,3,`valueChange`,`options`,`value`],[`for`,`api-path`,1,`sr-only`],[`id`,`api-path`,`type`,`text`,`placeholder`,`/api/v1/products`,1,`field`,`grow`,`mono`,3,`input`,`value`],[`role`,`status`,1,`response`],[`type`,`radio`,`name`,`analog-kind`,1,`sr-only`,3,`change`,`checked`],[`scope`,`col`,1,`num`],[1,`muted`,`nowrap`],[1,`request`],[1,`method`],[1,`mono`,`url`],[1,`status`],[1,`num`,`nowrap`],[1,`code`],[1,`empty-lead`],[1,`actions`],[`type`,`button`,1,`btn`,`ghost`,3,`click`],[`for`,`api-body`],[`id`,`api-body`,`rows`,`3`,`placeholder`,`{"name": "Ada"}`,1,`field`,`mono`,3,`input`,`value`],[1,`check`],[`type`,`checkbox`,3,`change`,`checked`],[`data-status`,`bad`,1,`status`],[`role`,`region`,`aria-label`,`Render modes`,`tabindex`,`0`,1,`table-wrap`],[1,`card`],[1,`muted`,`small`],[1,`muted`,`small`,`tnum`],[`data-tone`,`warn`,1,`pill`],[1,`facts`],[1,`tnum`],[`data-tone`,`warn`,1,`chip`,`mono`],[`data-tone`,`bad`,1,`chip`,`mono`],[`role`,`region`,`aria-label`,`Content files`,`tabindex`,`0`,1,`table-wrap`],[1,`muted`,`nowrap`,`tnum`],[`data-tone`,`bad`,1,`pill`],[`data-tone`,`good`,`role`,`status`,1,`callout`],[1,`findings`],[1,`finding-head`],[1,`finding-title`],[1,`where`],[1,`fix`],[1,`rule`,`mono`]],template:function(e,t){e&1&&N(0,uI,4,0,`div`,0)(1,dI,14,0,`div`,1)(2,PL,36,10),e&2&&P(t.project()===null?0:t.project().analog?2:1)},dependencies:[Dk],styles:[`@charset "UTF-8"; +}`]})},tI=()=>[],nI=()=>[`/`],rI=(e,t)=>t.id,iI=(e,t)=>t.route.id,aI=(e,t)=>t[0],oI=(e,t)=>t.file+t.method,sI=(e,t)=>t.path,cI=(e,t)=>t.mode,lI=(e,t)=>t.file,uI=(e,t)=>t.rule;function dI(e,t){e&1&&(R(0,`div`,0),B(1,`span`,2),R(2,`span`),Y(3,`Reading the project…`),z()())}function fI(e,t){e&1&&(R(0,`div`,1)(1,`h2`,3),Y(2,`This app is not an Analog app.`),z(),R(3,`p`,4),Y(4,` Add `),R(5,`code`),Y(6,`ngDevtools()`),z(),Y(7,` from `),R(8,`code`),Y(9,`@santoshyadavdev/ng-devtools/vite`),z(),Y(10,` next to `),R(11,`code`),Y(12,`analog()`),z(),Y(13,` in vite.config.ts and run the Analog dev server. `),z()())}function pI(e,t){if(e&1&&(R(0,`div`,9)(1,`span`,7),Y(2,`Open in the browser`),z(),R(3,`span`,13),Y(4),z()()),e&2){let e=t;j(3),L(`title`,e.url),j(),X(e.url)}}function mI(e,t){if(e&1){let e=W();R(0,`button`,14),G(`click`,function(){let t=O(e).$implicit;return k(q(2).view.set(t.id))}),Y(1),R(2,`span`,15),Y(3),z()()}if(e&2){let e=t.$implicit,n=q(2);L(`id`,`analog-tab-`+e.id),M(`aria-selected`,e.id===n.view())(`aria-controls`,`analog-panel-`+e.id)(`tabindex`,e.id===n.view()?0:-1),j(),Z(` `,e.label,` `),j(),M(`data-tone`,e.tone),j(),X(e.count)}}function hI(e,t){if(e&1&&(R(0,`li`)(1,`span`,27),Y(2),z(),R(3,`span`,30),Y(4),z()()),e&2){let e=t.$implicit,n=q(5);j(2),X(n.short(e.file)??e.fullPath),j(),M(`data-kind`,e.kind),j(),X(e.kind)}}function gI(e,t){if(e&1&&(R(0,`span`,31),Y(1),z()),e&2){let e=t.$implicit;j(),O_(``,e[0],` = `,e[1])}}function _I(e,t){if(e&1&&(R(0,`div`,29),F(1,gI,2,2,`span`,31,aI),z()),e&2){let e=q(2),t=q(3);j(),I(t.paramList(e.params))}}function vI(e,t){if(e&1&&(R(0,`strong`,27),Y(1),z(),Y(2,` renders `),R(3,`ol`,28),F(4,hI,5,3,`li`,null,rI),z(),N(6,_I,3,0,`div`,29)),e&2){let e=q(),t=q(3);j(),X(t.testUrl()),j(3),I(e.chain),j(2),P(t.paramList(e.params).length?6:-1)}}function yI(e,t){if(e&1&&(R(0,`li`)(1,`span`,27),Y(2),z(),R(3,`span`,4),Y(4),z()()),e&2){let e=t.$implicit,n=q(6);j(2),X(n.short(e.file)??e.path),j(2),X(e.reason)}}function bI(e,t){if(e&1&&(R(0,`ul`,32),F(1,yI,5,2,`li`,null,cg),z()),e&2){let e=q(2);j(),I(e.rejected.slice(0,5))}}function xI(e,t){if(e&1&&(R(0,`strong`,27),Y(1),z(),Y(2,` matches no file route. Angular throws NG04002 "Cannot match any routes". `),N(3,bI,3,0,`ul`,32)),e&2){let e=q(),t=q(3);j(),X(t.testUrl()),j(2),P(e.rejected.length?3:-1)}}function SI(e,t){if(e&1&&(R(0,`div`,23),N(1,vI,7,2)(2,xI,4,2),z()),e&2){let e=t;M(`data-tone`,e.matched?`good`:`bad`),j(),P(e.matched?1:2)}}function CI(e,t){e&1&&(R(0,`span`,34),Y(1,`└`),z())}function wI(e,t){e&1&&(R(0,`span`,36),Y(1,`open`),z())}function TI(e,t){if(e&1&&(R(0,`span`,37)(1,`span`,41),Y(2),z(),Y(3),z()),e&2){let e=q().$implicit,t=q(3);j(2),X(t.dir(e.route.file)),j(),X(t.base(e.route.file))}}function EI(e,t){e&1&&(R(0,`span`,4),Y(1,`folder only`),z())}function DI(e,t){if(e&1&&(R(0,`span`,39),Y(1),z()),e&2){let e=t.$implicit;j(),Z(``,e,`()`)}}function OI(e,t){if(e&1&&(R(0,`span`,40),Y(1),z()),e&2){let e=q().$implicit;j(),Z(`"`,e.route.title,`"`)}}function kI(e,t){if(e&1&&(R(0,`span`,31),Y(1),z()),e&2){let e=q().$implicit;j(),X(e)}}function AI(e,t){if(e&1&&N(0,kI,2,1,`span`,31),e&2){let e=t.$implicit;P(e===`title`?-1:0)}}function jI(e,t){if(e&1&&(R(0,`tr`)(1,`td`)(2,`div`,33),N(3,CI,2,0,`span`,34),R(4,`span`,35),Y(5),z(),R(6,`span`,30),Y(7),z(),N(8,wI,2,0,`span`,36),z()(),R(9,`td`),N(10,TI,4,2,`span`,37)(11,EI,2,0,`span`,4),z(),R(12,`td`)(13,`div`,38),F(14,DI,2,1,`span`,39,lg),z()(),R(16,`td`),N(17,OI,2,1,`span`,40),F(18,AI,1,1,null,null,lg),z()()),e&2){let e=t.$implicit,n=q(3);J(`open`,n.isOpen(e.route))(`dim`,e.route.kind===`group`||e.route.kind===`implicit`),j(2),n_(`padding-left`,e.depth*16,`px`),j(),P(e.depth?3:-1),j(2),X(e.route.fullPath),j(),M(`data-kind`,e.route.kind),j(),X(n.kindText(e.route)),j(),P(n.isOpen(e.route)?8:-1),j(2),P(e.route.file?10:11),j(4),I(n.serverExports(e.route)),j(3),P(e.route.title?17:-1),j(),I(e.route.routeMeta??z_(13,tI))}}function MI(e,t){e&1&&Y(0,` No route matches the filter. Try part of a path or a file name. `)}function NI(e,t){e&1&&Y(0,` No file routes yet. Add a .page.ts file under src/app/pages. `)}function PI(e,t){if(e&1&&(R(0,`tr`)(1,`td`,42),N(2,MI,1,0)(3,NI,1,0),z()()),e&2){let e=q(3);j(2),P(e.filter().trim()?2:3)}}function FI(e,t){if(e&1){let e=W();R(0,`div`,16)(1,`form`,17),G(`submit`,function(t){O(e);let n=q(2);return t.preventDefault(),k(n.explain())}),R(2,`label`,18),Y(3,`Test a URL`),z(),R(4,`input`,19),G(`input`,function(t){return O(e),k(q(2).testUrl.set(t.target.value))}),z(),R(5,`button`,20),Y(6,`Explain`),z()(),R(7,`label`,21),Y(8,`Filter routes`),z(),R(9,`input`,22),G(`input`,function(t){return O(e),k(q(2).filter.set(t.target.value))}),z()(),N(10,SI,3,2,`div`,23),R(11,`div`,24)(12,`table`)(13,`thead`)(14,`tr`)(15,`th`,25),Y(16,`Route`),z(),R(17,`th`,25),Y(18,`File`),z(),R(19,`th`,25),Y(20,`Data`),z(),R(21,`th`,25),Y(22,`Route meta`),z()()(),R(23,`tbody`),F(24,jI,20,14,`tr`,26,iI,!1,PI,4,1,`tr`),z()()()}if(e&2){let e,t=q(2);j(4),L(`value`,t.testUrl()),j(5),L(`value`,t.filter()),j(),P((e=t.match())?10:-1,e),j(14),I(t.routeRows())}}function II(e,t){if(e&1&&(R(0,`span`,27),Y(1),z(),Y(2)),e&2){let e=t.$implicit,n=t.$index,r=t.$count;j(),X(e),j(),Z(``,n===r-1?``:`, `,` `)}}function LI(e,t){if(e&1&&(R(0,`div`,43)(1,`strong`),Y(2,`load() ran twice`),z(),Y(3,` for `),F(4,II,3,2,null,null,lg),Y(6,` : once while server rendering, again in the browser. TransferState did not serve the server result. `),z()),e&2){let e=q(3);j(4),I(e.duplicates())}}function RI(e,t){if(e&1){let e=W();R(0,`label`)(1,`input`,58),G(`change`,function(){let t=O(e).$implicit;return k(q(3).kind.set(t))}),z(),Y(2),R(3,`span`,4),Y(4),z()()}if(e&2){let e=t.$implicit,n=q(3);J(`on`,n.kind()===e),j(),L(`checked`,n.kind()===e),j(),Z(` `,n.kindLabel(e),` `),j(2),X(n.kindCount(e))}}function zI(e,t){if(e&1&&(R(0,`span`,30),Y(1),z()),e&2){let e=q().$implicit;M(`data-mode`,e.render===`ssr`?`ssr`:`client`),j(),X(e.render===`ssr`?`server rendered`:`client only`)}}function BI(e,t){if(e&1&&(R(0,`details`)(1,`summary`),Y(2,`Response`),z(),R(3,`pre`,66),Y(4),z()()),e&2){let e=q().$implicit,t=q(4);j(4),X(t.pretty(e.preview))}}function VI(e,t){if(e&1&&(R(0,`tr`)(1,`td`,60),Y(2),z(),R(3,`td`)(4,`span`,30),Y(5),z()(),R(6,`td`,61)(7,`div`,38)(8,`span`,62),Y(9),z(),R(10,`span`,63),Y(11),z(),N(12,zI,2,2,`span`,30),z(),N(13,BI,5,1,`details`),z(),R(14,`td`)(15,`span`,64),Y(16),z()(),R(17,`td`,65),Y(18),z(),R(19,`td`,4),Y(20),z()()),e&2){let e=t.$implicit,n=q(4);j(2),X(n.time(e.at)),j(2),M(`data-call`,e.kind),j(),X(n.kindLabel(e.kind)),j(3),M(`data-method`,e.method),j(),X(e.method),j(2),X(e.url),j(),P(e.render?12:-1),j(),P(e.preview?13:-1),j(2),M(`data-status`,n.statusClass(e.status)),j(),X(e.status),j(2),Z(``,e.ms,` ms`),j(2),X(e.from)}}function HI(e,t){if(e&1&&(R(0,`div`,49)(1,`table`)(2,`thead`)(3,`tr`)(4,`th`,25),Y(5,`At`),z(),R(6,`th`,25),Y(7,`Kind`),z(),R(8,`th`,25),Y(9,`Request`),z(),R(10,`th`,25),Y(11,`Status`),z(),R(12,`th`,59),Y(13,`Duration`),z(),R(14,`th`,25),Y(15,`From`),z()()(),R(16,`tbody`),F(17,VI,21,12,`tr`,null,rI),z()()()),e&2){let e=q(3);j(17),I(e.calls())}}function UI(e,t){e&1&&Y(0,` No calls of this kind yet. `)}function WI(e,t){e&1&&Y(0,` No calls yet. `)}function GI(e,t){if(e&1&&(R(0,`div`,50)(1,`p`,67),N(2,UI,1,0)(3,WI,1,0),z(),R(4,`p`,4),Y(5,` Navigate in the app to see page renders, load() fetches and API calls. `),z()()),e&2){let e=q(3);j(2),P(e.allCalls().length?2:3)}}function KI(e,t){if(e&1){let e=W();R(0,`tr`)(1,`td`)(2,`span`,62),Y(3),z()(),R(4,`td`,27),Y(5),z(),R(6,`td`)(7,`span`,37)(8,`span`,41),Y(9),z(),Y(10),z()(),R(11,`td`,68)(12,`button`,69),G(`click`,function(){let t=O(e).$implicit;return k(q(3).tryApi(t))}),Y(13,` Try `),z()()()}if(e&2){let e=t.$implicit,n=q(3);j(2),M(`data-method`,e.method),j(),X(e.method),j(2),X(e.path),j(4),X(n.dir(e.file)),j(),X(n.base(e.file)),j(2),M(`aria-label`,`Try `+e.method+` `+e.path)}}function qI(e,t){e&1&&(R(0,`tr`)(1,`td`,42),Y(2,` No API routes. Add a handler under src/server/routes to test it here. `),z()())}function JI(e,t){if(e&1){let e=W();R(0,`label`,70),Y(1,`JSON body`),z(),R(2,`textarea`,71),G(`input`,function(t){return O(e),k(q(3).apiBody.set(t.target.value))}),z(),R(3,`label`,72)(4,`input`,73),G(`change`,function(){O(e);let t=q(3);return k(t.confirmSend.set(!t.confirmSend()))}),z(),Y(5,` This request can change data on the dev server`),z()}if(e&2){let e=q(3);j(2),L(`value`,e.apiBody()),j(2),L(`checked`,e.confirmSend())}}function YI(e,t){if(e&1&&(R(0,`div`,53)(1,`span`,74),Y(2,`Refused`),z(),R(3,`span`),Y(4),z()()),e&2){let e=q();j(4),X(e.error)}}function XI(e,t){if(e&1&&(R(0,`div`,53)(1,`span`,64),Y(2),z(),R(3,`span`,4),Y(4),z()(),R(5,`pre`,66),Y(6),z()),e&2){let e=q(),t=q(3);j(),M(`data-status`,t.statusClass(e.status??0)),j(),X(e.status),j(2),O_(``,e.ms,` ms · `,e.type||`no content type`),j(2),X(t.pretty(e.body??``))}}function ZI(e,t){e&1&&(R(0,`div`,57),N(1,YI,5,1,`div`,53)(2,XI,7,5),z()),e&2&&(j(),P(t.error?1:2))}function QI(e,t){if(e&1){let e=W();N(0,LI,7,0,`div`,43),R(1,`div`,44)(2,`fieldset`,45)(3,`legend`,46),Y(4,`Show calls of kind`),z(),F(5,RI,5,5,`label`,47,lg),z(),R(7,`button`,48),G(`click`,function(){return O(e),k(q(2).clearCalls())}),Y(8,` Clear calls `),z()(),N(9,HI,19,0,`div`,49)(10,GI,6,1,`div`,50),R(11,`h2`),Y(12,`API routes`),z(),R(13,`div`,51)(14,`table`)(15,`thead`)(16,`tr`)(17,`th`,25),Y(18,`Method`),z(),R(19,`th`,25),Y(20,`Path`),z(),R(21,`th`,25),Y(22,`File`),z(),R(23,`th`,25)(24,`span`,46),Y(25,`Actions`),z()()()(),R(26,`tbody`),F(27,KI,14,6,`tr`,null,oI,!1,qI,3,0,`tr`),z()()(),R(30,`form`,52),G(`submit`,function(t){O(e);let n=q(2);return t.preventDefault(),k(n.send())}),R(31,`h2`),Y(32,`Request playground`),z(),R(33,`div`,53)(34,`app-select`,54),G(`valueChange`,function(t){return O(e),k(q(2).method.set(t??`GET`))}),z(),R(35,`label`,55),Y(36,`Path`),z(),R(37,`input`,56),G(`input`,function(t){return O(e),k(q(2).apiPath.set(t.target.value))}),z(),R(38,`button`,20),Y(39,`Send`),z()(),N(40,JI,6,2),N(41,ZI,3,1,`div`,57),z()}if(e&2){let e,t=q(2);P(t.duplicates().length?0:-1),j(5),I(t.kinds),j(2),L(`disabled`,!t.allCalls().length),j(2),P(t.calls().length?9:10),j(18),I(t.project().api),j(7),L(`options`,t.methodOptions)(`value`,t.method()),j(3),L(`value`,t.apiPath()),j(3),P(t.method()===`GET`?-1:40),j(),P((e=t.response())?41:-1,e)}}function $I(e,t){if(e&1&&(R(0,`span`,30),Y(1),z()),e&2){let e=t.$implicit;M(`data-mode`,e.mode),j(),O_(``,e.label,` · `,e.count)}}function eL(e,t){if(e&1&&(R(0,`div`,29),F(1,$I,2,3,`span`,30,cI),z()),e&2){let e=q(3);j(),I(e.modeCounts())}}function tL(e,t){e&1&&(R(0,`span`,79),Y(1,`differs from config`),z())}function nL(e,t){if(e&1&&(R(0,`div`,38)(1,`span`,64),Y(2),z(),R(3,`span`,78),Y(4),z(),N(5,tL,2,0,`span`,79),z()),e&2){let e=t,n=q().$implicit,r=q(3);j(),M(`data-status`,r.statusClass(e.status)),j(),X(e.status),j(2),O_(``,e.render===`client`?`client only`:`server rendered`,` · `,e.ms,` ms`),j(),P(r.mismatch(n)?5:-1)}}function rL(e,t){e&1&&(R(0,`span`,77),Y(1,`not requested yet`),z())}function iL(e,t){if(e&1&&(R(0,`span`,37)(1,`span`,41),Y(2),z(),Y(3),z()),e&2){let e=q().$implicit,t=q(3);j(2),X(t.dir(e.file)),j(),X(t.base(e.file))}}function aL(e,t){if(e&1&&(R(0,`tr`)(1,`td`,35),Y(2),z(),R(3,`td`)(4,`div`,38)(5,`span`,30),Y(6),z(),R(7,`span`,77),Y(8),z()()(),R(9,`td`),N(10,nL,6,5,`div`,38)(11,rL,2,0,`span`,77),z(),R(12,`td`),N(13,iL,4,2,`span`,37),z()()),e&2){let e,n=t.$implicit,r=q(3);j(2),X(n.path),j(3),M(`data-mode`,n.mode),j(),X(r.modeLabel(n.mode)),j(2),X(n.reason),j(2),P((e=n.last)?10:11,e),j(3),P(n.file?13:-1)}}function oL(e,t){e&1&&(R(0,`tr`)(1,`td`,42),Y(2,` No page routes to render yet. Add a .page.ts file under src/app/pages. `),z()())}function sL(e,t){e&1&&(R(0,`p`,4),Y(1,` prerender.routes is a function, so the list is known only at build time. `),z())}function cL(e,t){if(e&1&&(R(0,`span`,31),Y(1),z()),e&2){let e=t.$implicit;j(),X(e)}}function lL(e,t){e&1&&(R(0,`span`,77),Y(1,`default, nothing configured`),z())}function uL(e,t){if(e&1&&(R(0,`span`,82),Y(1),z()),e&2){let e=t.$implicit;j(),X(e)}}function dL(e,t){if(e&1&&(R(0,`dt`),Y(1,`Static, not listed`),z(),R(2,`dd`),F(3,uL,2,1,`span`,82,lg),z()),e&2){let e=q(2);j(3),I(e.staticMissing)}}function fL(e,t){if(e&1&&(R(0,`span`,31),Y(1),z()),e&2){let e=t.$implicit;j(),X(e)}}function pL(e,t){if(e&1&&(R(0,`dt`),Y(1,`Need explicit entries`),z(),R(2,`dd`),F(3,fL,2,1,`span`,31,lg),z()),e&2){let e=q(2);j(3),I(e.dynamic)}}function mL(e,t){if(e&1&&(R(0,`span`,83),Y(1),z()),e&2){let e=t.$implicit;j(),X(e)}}function hL(e,t){if(e&1&&(Y(0,` · missing `),F(1,mL,2,1,`span`,83,lg)),e&2){let e=q(3);j(),I(e.notBuilt)}}function gL(e,t){if(e&1&&(Y(0),N(1,hL,3,0)),e&2){let e=q(2);Z(` `,e.built.length,` page(s) in dist/analog/public `),j(),P(e.notBuilt.length?1:-1)}}function _L(e,t){e&1&&(R(0,`span`,77),Y(1,`no build yet`),z())}function vL(e,t){if(e&1&&(R(0,`dl`,80)(1,`dt`),Y(2,`Listed`),z(),R(3,`dd`),F(4,cL,2,1,`span`,31,lg),N(6,lL,2,0,`span`,77),z(),N(7,dL,5,0),N(8,pL,5,0),R(9,`dt`),Y(10,`Build output`),z(),R(11,`dd`,81),N(12,gL,2,2)(13,_L,2,0,`span`,77),z()()),e&2){let e=q();j(4),I(e.listed??z_(4,nI)),j(2),P(e.listed?-1:6),j(),P(e.staticMissing.length?7:-1),j(),P(e.dynamic.length?8:-1),j(4),P(e.built.length?12:13)}}function yL(e,t){e&1&&(R(0,`div`,76)(1,`h2`),Y(2,`Prerender plan`),z(),N(3,sL,2,0,`p`,4)(4,vL,14,5,`dl`,80),z()),e&2&&(j(3),P(t.dynamicConfig?3:4))}function bL(e,t){if(e&1&&(N(0,eL,3,0,`div`,29),R(1,`div`,75)(2,`table`)(3,`thead`)(4,`tr`)(5,`th`,25),Y(6,`Route`),z(),R(7,`th`,25),Y(8,`Configured`),z(),R(9,`th`,25),Y(10,`Last request`),z(),R(11,`th`,25),Y(12,`File`),z()()(),R(13,`tbody`),F(14,aL,14,6,`tr`,null,sI,!1,oL,3,0,`tr`),z()()(),N(17,yL,5,1,`div`,76)),e&2){let e,t=q(2);P(t.modeCounts().length?0:-1),j(14),I(t.renderRows()),j(3),P((e=t.plan())?17:-1,e)}}function xL(e,t){if(e&1&&(R(0,`div`)(1,`span`,86),Y(2),z()()),e&2){let e=q().$implicit;j(2),X(e.error)}}function SL(e,t){if(e&1&&(R(0,`div`)(1,`span`,79),Y(2),z()()),e&2){let e=q(5);j(2),Z(`takes over `,e.base(t))}}function CL(e,t){if(e&1&&(R(0,`tr`)(1,`td`)(2,`strong`),Y(3),z(),N(4,xL,3,1,`div`),N(5,SL,3,1,`div`),z(),R(6,`td`,35),Y(7),z(),R(8,`td`,27),Y(9),z(),R(10,`td`,85),Y(11),z(),R(12,`td`)(13,`span`,37)(14,`span`,41),Y(15),z(),Y(16),z()()()),e&2){let e,n=t.$implicit,r=q(4);j(3),X(n.attributes.title||`(no title)`),j(),P(n.error?4:-1),j(),P((e=r.shadowed(n.file))?5:-1,e),j(2),X(r.contentUrl(n.file)??``),j(2),X(n.slug),j(2),X(n.attributes.date||``),j(4),X(r.dir(n.file)),j(),X(r.base(n.file))}}function wL(e,t){if(e&1&&(R(0,`div`,84)(1,`table`)(2,`thead`)(3,`tr`)(4,`th`,25),Y(5,`Title`),z(),R(6,`th`,25),Y(7,`URL`),z(),R(8,`th`,25),Y(9,`Slug`),z(),R(10,`th`,25),Y(11,`Date`),z(),R(12,`th`,25),Y(13,`File`),z()()(),R(14,`tbody`),F(15,CL,17,8,`tr`,null,lI),z()()()),e&2){let e=q(3);j(15),I(e.project().content)}}function TL(e,t){e&1&&(R(0,`div`,50)(1,`p`,67),Y(2,`No markdown files under src/content.`),z(),R(3,`p`,4),Y(4,` Add a .md file there to see its title, slug, date and the URL it serves. `),z()())}function EL(e,t){e&1&&N(0,wL,17,0,`div`,84)(1,TL,5,0,`div`,50),e&2&&P(+!q(2).project().content.length)}function DL(e,t){if(e&1&&(R(0,`span`,15),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.items.length)}}function OL(e,t){if(e&1&&(R(0,`span`,37)(1,`span`,41),Y(2),z(),Y(3),z()),e&2){let e=q().$implicit,t=q(5);j(2),X(t.dir(e.file)),j(),X(t.base(e.file))}}function kL(e,t){if(e&1&&(R(0,`span`,35),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.path)}}function AL(e,t){if(e&1&&(R(0,`li`),N(1,OL,4,2,`span`,37),N(2,kL,2,1,`span`,35),z()),e&2){let e=t.$implicit;j(),P(e.file?1:-1),j(),P(e.path&&e.path!==e.file?2:-1)}}function jL(e,t){if(e&1&&(R(0,`li`)(1,`div`,89)(2,`span`,30),Y(3),z(),R(4,`strong`,90),Y(5),z(),N(6,DL,2,1,`span`,15),z(),R(7,`p`),Y(8),z(),R(9,`ul`,91),F(10,AL,3,2,`li`,null,cg),z(),R(12,`div`,92)(13,`strong`),Y(14,`How to fix`),z(),Y(15),z(),R(16,`span`,93),Y(17),z()()),e&2){let e=t.$implicit,n=q(4);M(`data-tone`,n.tone(e.severity)),j(2),M(`data-tone`,n.tone(e.severity)),j(),X(e.severity),j(2),X(e.title),j(),P(e.items.length>1?6:-1),j(2),X(e.summary),j(2),I(e.items),j(5),Z(` `,e.fix),j(2),X(e.rule)}}function ML(e,t){if(e&1&&(R(0,`p`,4),Y(1),z(),R(2,`ul`,88),F(3,jL,18,8,`li`,null,uI),z()),e&2){let e=q(3);j(),O_(` `,e.findings().length,` issue(s) in `,e.lintCards().length,` group(s). Each card says what is wrong, where, and how to fix it. `),j(2),I(e.lintCards())}}function NL(e,t){e&1&&(R(0,`div`,87)(1,`strong`),Y(2,`No Analog problems found.`),z(),Y(3,` Routes, server files, prerender config and content all check out. `),z())}function PL(e,t){e&1&&N(0,ML,5,2)(1,NL,4,0,`div`,87),e&2&&P(+!q(2).findings().length)}function FL(e,t){if(e&1){let e=W();R(0,`section`,5)(1,`div`,6)(2,`span`,7),Y(3,`Analog`),z(),R(4,`span`,8),Y(5),z()(),R(6,`div`,6)(7,`span`,7),Y(8,`Pages`),z(),R(9,`span`,8),Y(10),z()(),R(11,`div`,6)(12,`span`,7),Y(13,`API routes`),z(),R(14,`span`,8),Y(15),z()(),R(16,`div`,6)(17,`span`,7),Y(18,`Server calls`),z(),R(19,`span`,8),Y(20),z()(),R(21,`div`,6)(22,`span`,7),Y(23,`Issues`),z(),R(24,`span`,8),Y(25),z()(),N(26,pI,5,2,`div`,9),z(),R(27,`div`,10),G(`keydown`,function(t){return O(e),k(q().onKey(t))}),F(28,mI,4,7,`button`,11,rI),z(),R(30,`div`,12),N(31,FI,27,4)(32,QI,42,9)(33,bL,18,3)(34,EL,2,1)(35,PL,2,1),z()}if(e&2){let e,t,n=q();j(5),X(n.project().version||`unknown`),j(5),X(n.pageCount()),j(5),X(n.project().api.length),j(5),X(n.allCalls().length),j(),M(`data-tone`,n.findings().length?`warn`:`good`),j(4),X(n.findings().length),j(),P((e=n.page())?26:-1,e),j(2),I(n.views()),j(2),L(`id`,`analog-panel-`+n.view()),M(`aria-labelledby`,`analog-tab-`+n.view()),j(),P((t=n.view())===`routes`?31:t===`server`?32:t===`render`?33:t===`content`?34:t===`lint`?35:-1)}}var IL={"scan-error":{title:`A folder could not be read`,summary:`Its files are missing from routes, API routes and lint results.`},"duplicate-url":{title:`Two files serve the same URL`,summary:`Only one of them is reachable; the other never renders.`},"sibling-params":{title:`Two dynamic pages in one folder`,summary:`Both are [param] pages at the same level, so the first one always wins.`},"missing-default-export":{title:`Page has no default export`,summary:`Analog needs the component as the default export, so the page renders nothing.`},"redirect-with-component":{title:`Redirect page also exports a component`,summary:`The redirect runs first, so the component never shows.`},"redirect-path-match":{title:`Redirect matches too much`,summary:`An empty-path redirect without pathMatch "full" catches every URL below it.`},"layout-without-outlet":{title:`Layout has no router-outlet`,summary:`The layout has child pages, but without they never render.`},"server-without-load":{title:`.server.ts without load or action`,summary:`The server file exports nothing Analog calls.`},"orphan-server-file":{title:`.server.ts without a page`,summary:`No page file sits next to it, so its load never runs.`},"api-method-suffix":{title:`Unknown method suffix on an API file`,summary:`The suffix is not an HTTP method, so it becomes part of the URL.`},"duplicate-api-route":{title:`Two handlers for one API route`,summary:`Two files answer the same method and path.`},"api-outside-prefix":{title:`Server route outside the API prefix`,summary:`During vite dev only routes under the prefix reach Nitro.`},"prerender-unknown-route":{title:`Prerender entry matches no page`,summary:`prerender.routes lists a path that no page file serves.`},"prerender-missing-root":{title:`Home page is not prerendered`,summary:`static is on, but prerender.routes leaves out /.`},"content-frontmatter":{title:`Broken frontmatter`,summary:`The markdown frontmatter cannot be read.`},"duplicate-slug":{title:`Two posts share a slug`,summary:`injectContent picks one of them at random.`},"content-shadows-page":{title:`Markdown file takes over a page`,summary:`Files under src/content are routes too, so these URLs render the markdown file instead of the [param] page.`},"load-fetched-twice":{title:`load() runs twice`,summary:`These pages fetched their data while rendering on the server and again in the browser.`},"restart-needed":{title:`New pages need a restart`,summary:`These page files exist, but the running router does not know them yet.`},"hydration-error":{title:`Hydration error`,summary:`The browser DOM did not match the server HTML.`},"api-not-found":{title:`API call failed with 404 or 405`,summary:`A request hit a path or method that no server route handles.`}},LL={ssr:`SSR`,ssg:`Prerendered`,client:`Client only`},RL={all:`All`,page:`Pages`,load:`load()`,fn:`Server fn`,api:`API`};function zL(e,t=0,n=[]){for(let r of e)n.push({route:r,depth:t}),zL(r.children,t+1,n);return n}var BL=class e{rpc=$(null);kinds=[`all`,`page`,`load`,`fn`,`api`];methods=[`GET`,`POST`,`PUT`,`PATCH`,`DELETE`];methodOptions=this.methods.map(e=>({value:e,label:e}));view=A(`routes`);project=A(null);state=A({});findings=A([]);renderRows=A([]);plan=A(null);filter=A(``);testUrl=A(``);match=A(null);kind=A(`all`);method=A(`GET`);apiPath=A(``);apiBody=A(``);confirmSend=A(!1);response=A(null);unsubscribe=null;refreshTimer;refreshRun=0;destroyRef=E(ws);page=Q(()=>this.state().pages?.[0]??null);openFiles=Q(()=>new Set((this.page()?.chain??[]).map(e=>e.file)));allCalls=Q(()=>this.state().calls??[]);calls=Q(()=>{let e=this.kind();return this.allCalls().filter(t=>e===`all`||t.kind===e).slice(-150).reverse()});allRoutes=Q(()=>zL(this.project()?.routes??[]));pageCount=Q(()=>this.allRoutes().filter(e=>e.route.file&&e.route.kind!==`layout`).length);routeRows=Q(()=>{let e=this.filter().trim().toLowerCase();return e?this.allRoutes().filter(t=>t.route.fullPath.toLowerCase().includes(e)||!!t.route.file?.toLowerCase().includes(e)):this.allRoutes()});duplicates=Q(()=>Array.from(new Set((this.state().duplicates??[]).map(e=>e.route))));modeCounts=Q(()=>[`ssr`,`ssg`,`client`].map(e=>({mode:e,label:LL[e],count:this.renderRows().filter(t=>t.mode===e).length})).filter(e=>e.count));lintCards=Q(()=>{let e={error:0,warning:1,info:2},t=new Map;for(let e of this.findings()){let n=t.get(e.rule);if(!n){let r=IL[e.rule];n={rule:e.rule,severity:e.severity,title:r?.title??e.rule,summary:r?.summary??e.message,fix:e.fix,items:[]},t.set(e.rule,n)}n.items.push({file:e.file,path:e.path})}return Array.from(t.values()).sort((t,n)=>e[t.severity]-e[n.severity])});views=Q(()=>{let e=this.findings().length;return[{id:`routes`,label:`Routes`,count:this.pageCount(),tone:``},{id:`server`,label:`Server`,count:this.allCalls().length,tone:``},{id:`render`,label:`Render`,count:this.renderRows().length,tone:``},{id:`content`,label:`Content`,count:this.project()?.content.length??0,tone:``},{id:`lint`,label:`Lint`,count:e,tone:e?`warn`:``}]});constructor(){dc(()=>{let e=this.rpc();e&&ev(()=>void this.load(e))}),dc(()=>{let e=this.view();this.state(),ev(()=>this.scheduleRefresh(e))}),this.destroyRef.onDestroy(()=>{this.unsubscribe?.(),clearTimeout(this.refreshTimer)})}async load(e){let t=await JE(e,`analog-project`);if(!this.destroyRef.destroyed){this.project.set(t);try{let t=await e.scope(`ng-devtools`).rpc.sharedState(`analog`);if(this.destroyRef.destroyed)return;let n=e=>this.state.set(e??{});n(t.value()),this.unsubscribe?.(),this.unsubscribe=t.on(`updated`,n)}catch{this.state.set({})}this.destroyRef.destroyed||await this.refresh(this.view())}}scheduleRefresh(e){clearTimeout(this.refreshTimer),this.refreshTimer=setTimeout(()=>void this.refresh(e),300)}async refresh(e){let t=this.rpc();if(!t)return;let n=++this.refreshRun,[r,i]=await Promise.all([JE(t,`analog-lint`),JE(t,`analog-render`)]);if(n===this.refreshRun&&(this.findings.set(r??[]),this.renderRows.set(i?.rows??[]),this.plan.set(i?.plan??null),e===`routes`||e===`content`)){let e=await JE(t,`analog-project`);e&&n===this.refreshRun&&this.project.set(e)}}isOpen(e){return!!e.file&&this.openFiles().has(e.file)}kindText(e){return e.catchAll?e.catchAll===`optional`?`optional catch-all`:`catch-all`:e.kind===`implicit`?`folder`:e.kind}serverExports(e){return(e.serverExports??[]).filter(e=>e===`load`||e===`action`)}short(e){return e?.replace(/^\/src\/app\//,``).replace(/^\//,``)}dir(e){let t=this.short(e)??e;return t.includes(`/`)?t.slice(0,t.lastIndexOf(`/`)+1):``}base(e){return e.slice(e.lastIndexOf(`/`)+1)}paramList(e){return Object.entries(e)}kindLabel(e){return RL[e]}kindCount(e){return e===`all`?this.allCalls().length:this.allCalls().filter(t=>t.kind===e).length}modeLabel(e){return LL[e]}mismatch(e){return e.last?.render?e.mode===`client`?e.last.render!==`client`:e.last.render===`client`:!1}statusClass(e){return e>=500||e===0?`bad`:e>=400?`warn`:`good`}tone(e){return e===`error`?`bad`:e===`warning`?`warn`:`info`}shadowed(e){return this.findings().find(t=>t.rule===`content-shadows-page`&&t.file===e)?.message.match(/(\/\S+\.page\.ts)/)?.[1]}contentUrl(e){return this.allRoutes().find(t=>t.route.file===e)?.route.fullPath}pretty(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}time=nO;tryApi(e){this.method.set(e.method===`ANY`?`GET`:e.method),this.apiPath.set(e.path.replace(/:(\w+)/g,`1`).replace(`**`,`x`)),this.response.set(null),queueMicrotask(()=>document.getElementById(`api-path`)?.focus())}async clearCalls(){await JE(this.rpc(),`analog-clear-calls`)}async explain(){let e=this.testUrl().trim();e&&this.match.set(await JE(this.rpc(),`analog-explain-url`,e))}async send(){let e=this.apiPath().trim();if(!e)return;let t;if(this.method()!==`GET`&&this.apiBody().trim())try{t=JSON.parse(this.apiBody())}catch{this.response.set({error:`The body is not valid JSON.`});return}let n=await JE(this.rpc(),`analog-call-api`,{method:this.method(),path:e,body:t,confirm:this.confirmSend()});this.response.set(n??{error:`No answer from the devtools server.`})}onKey(e){let t=this.views().map(e=>e.id),n=t.indexOf(this.view()),r=n;if(e.key===`ArrowRight`)r=(n+1)%t.length;else if(e.key===`ArrowLeft`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),this.view.set(t[r]);let i=e.currentTarget;queueMicrotask(()=>i.querySelector(`#analog-tab-${t[r]}`)?.focus())}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-analog-inspector`]],inputs:{rpc:[1,`rpc`]},decls:3,vars:1,consts:[[`role`,`status`,1,`loading`],[1,`empty`],[`aria-hidden`,`true`,1,`spinner`],[1,`empty-title`],[1,`muted`],[`aria-label`,`Analog summary`,1,`summary`],[1,`stat`],[1,`label`],[1,`value`],[1,`stat`,`wide`],[`role`,`tablist`,`aria-label`,`Analog views`,1,`tabs`,3,`keydown`],[`type`,`button`,`role`,`tab`,3,`id`],[`role`,`tabpanel`,1,`panel`,3,`id`],[1,`value`,`mono`,3,`title`],[`type`,`button`,`role`,`tab`,3,`click`,`id`],[1,`count`],[1,`toolbar`],[1,`inline`,`explain`,3,`submit`],[`for`,`analog-url`],[`id`,`analog-url`,`type`,`text`,`placeholder`,`/products/42`,1,`field`,`grow`,`mono`,3,`input`,`value`],[`type`,`submit`,1,`btn`,`primary`],[`for`,`route-filter`,1,`sr-only`],[`id`,`route-filter`,`type`,`search`,`placeholder`,`Filter by path or file`,1,`field`,`filter`,3,`input`,`value`],[`role`,`status`,1,`callout`],[`role`,`region`,`aria-label`,`File routes`,`tabindex`,`0`,1,`table-wrap`],[`scope`,`col`],[3,`open`,`dim`],[1,`mono`],[1,`chain`],[1,`chips`],[1,`pill`],[1,`chip`,`mono`],[1,`plain`],[1,`route`],[`aria-hidden`,`true`,1,`guide`],[1,`mono`,`path`],[1,`pill`,`live`],[1,`file`],[1,`meta`],[`data-kind`,`load`,1,`pill`],[1,`chip`],[1,`dir`],[`colspan`,`4`,1,`empty-row`],[`data-tone`,`warn`,`role`,`note`,1,`callout`],[1,`calls-bar`],[1,`segmented`],[1,`sr-only`],[3,`on`],[`type`,`button`,1,`btn`,`ghost`,3,`click`,`disabled`],[`role`,`region`,`aria-label`,`Server calls`,`tabindex`,`0`,1,`table-wrap`],[1,`empty-box`],[`role`,`region`,`aria-label`,`API routes`,`tabindex`,`0`,1,`table-wrap`],[1,`card`,`playground`,3,`submit`],[1,`row`],[`ariaLabel`,`Method`,1,`method-select`,3,`valueChange`,`options`,`value`],[`for`,`api-path`,1,`sr-only`],[`id`,`api-path`,`type`,`text`,`placeholder`,`/api/v1/products`,1,`field`,`grow`,`mono`,3,`input`,`value`],[`role`,`status`,1,`response`],[`type`,`radio`,`name`,`analog-kind`,1,`sr-only`,3,`change`,`checked`],[`scope`,`col`,1,`num`],[1,`muted`,`nowrap`],[1,`request`],[1,`method`],[1,`mono`,`url`],[1,`status`],[1,`num`,`nowrap`],[1,`code`],[1,`empty-lead`],[1,`actions`],[`type`,`button`,1,`btn`,`ghost`,3,`click`],[`for`,`api-body`],[`id`,`api-body`,`rows`,`3`,`placeholder`,`{"name": "Ada"}`,1,`field`,`mono`,3,`input`,`value`],[1,`check`],[`type`,`checkbox`,3,`change`,`checked`],[`data-status`,`bad`,1,`status`],[`role`,`region`,`aria-label`,`Render modes`,`tabindex`,`0`,1,`table-wrap`],[1,`card`],[1,`muted`,`small`],[1,`muted`,`small`,`tnum`],[`data-tone`,`warn`,1,`pill`],[1,`facts`],[1,`tnum`],[`data-tone`,`warn`,1,`chip`,`mono`],[`data-tone`,`bad`,1,`chip`,`mono`],[`role`,`region`,`aria-label`,`Content files`,`tabindex`,`0`,1,`table-wrap`],[1,`muted`,`nowrap`,`tnum`],[`data-tone`,`bad`,1,`pill`],[`data-tone`,`good`,`role`,`status`,1,`callout`],[1,`findings`],[1,`finding-head`],[1,`finding-title`],[1,`where`],[1,`fix`],[1,`rule`,`mono`]],template:function(e,t){e&1&&N(0,dI,4,0,`div`,0)(1,fI,14,0,`div`,1)(2,FL,36,10),e&2&&P(t.project()===null?0:t.project().analog?2:1)},dependencies:[Ok],styles:[`@charset "UTF-8"; [_nghost-%COMP%] { --%NS%good: var(--%NS%ok); --%NS%bad: var(--%NS%danger); @@ -10146,7 +10146,7 @@ h2[_ngcontent-%COMP%] { color: var(--%NS%text-strong); font-size: 15px; font-weight: 600; -}`]})},BL=(e,t)=>t.id,VL=(e,t)=>t.side+t.id,HL=(e,t)=>t.key;function UL(e,t){e&1&&(R(0,`div`,0),B(1,`span`,40),R(2,`span`),Y(3,`Loading…`),z()())}function WL(e,t){e&1&&(R(0,`div`,1)(1,`strong`),Y(2,`Could not reach the devtools server.`),z(),R(3,`span`),Y(4,`Check that the app's dev server is running with the devtools plugin, then reopen this panel.`),z()())}function GL(e,t){e&1&&(R(0,`span`,45),Y(1,`transfer cache`),z())}function KL(e,t){e&1&&(R(0,`span`,54),Y(1,`faulted`),z())}function qL(e,t){if(e&1){let e=W();R(0,`tr`,44),G(`click`,function(){let t=O(e).$implicit;return k(q(2).selectedCallId.set(t.id))}),R(1,`td`)(2,`span`,45),Y(3),z()(),R(4,`td`,46),Y(5),z(),R(6,`td`,47)(7,`button`,48),G(`click`,function(){let t=O(e).$implicit;return k(q(2).selectedCallId.set(t.id))}),Y(8),z()(),R(9,`td`,49),Y(10),z(),R(11,`td`,50),B(12,`span`,51),Y(13),z(),R(14,`td`,52),Y(15),z(),R(16,`td`)(17,`div`,53),N(18,GL,2,0,`span`,45),N(19,KL,2,0,`span`,54),z()()()}if(e&2){let e=t.$implicit,n=q(2);J(`selected`,n.selectedCall()?.id===e.id),j(2),J(`server`,e.side===`server`),j(),X(e.side===`server`?`SSR`:`Client`),j(2),X(e.method),j(2),L(`title`,e.url),M(`aria-pressed`,n.selectedCall()?.id===e.id),j(),Z(` `,e.url,` `),j(),L(`title`,e.pageUrl??``),j(),Z(` `,e.pageUrl??``,` `),j(),J(`ok`,n.statusTone(e.status)===`ok`)(`redirect`,n.statusTone(e.status)===`redirect`)(`bad`,n.statusTone(e.status)===`bad`),j(2),Z(``,e.status||`ERR`,` `),j(2),Z(``,e.durationMs,` ms`),j(3),P(e.cacheHit?18:-1),j(),P(e.faulted?19:-1)}}function JL(e,t){if(e&1&&(R(0,`div`,11)(1,`table`)(2,`thead`)(3,`tr`)(4,`th`,41),Y(5,`Side`),z(),R(6,`th`,41),Y(7,`Method`),z(),R(8,`th`,41),Y(9,`URL`),z(),R(10,`th`,41),Y(11,`Page`),z(),R(12,`th`,41),Y(13,`Status`),z(),R(14,`th`,42),Y(15,`Time`),z(),R(16,`th`,41),Y(17,`Notes`),z()()(),R(18,`tbody`),F(19,qL,20,21,`tr`,43,VL),z()()()),e&2){let e=q();j(19),I(e.timeline())}}function YL(e,t){e&1&&(R(0,`div`,12)(1,`p`),Y(2,`No requests yet.`),z(),R(3,`p`,29),Y(4,` Add `),R(5,`code`),Y(6,`withNgDevtools()`),z(),Y(7,` to `),R(8,`code`),Y(9,`provideHttpClient`),z(),Y(10,`, then load a page of the app. `),z()())}function XL(e,t){if(e&1){let e=W();R(0,`div`,13)(1,`div`,55)(2,`h3`),Y(3,`Response preview`),z(),R(4,`button`,56),G(`click`,function(){return O(e),k(q().selectedCallId.set(null))}),Y(5,`Close`),z()(),R(6,`p`,57)(7,`span`,46),Y(8),z(),R(9,`span`,50),Y(10),z(),R(11,`span`,58),Y(12),z()(),R(13,`pre`),Y(14),z()()}if(e&2){let e=t,n=q();j(8),X(e.method),j(),J(`ok`,n.statusTone(e.status)===`ok`)(`redirect`,n.statusTone(e.status)===`redirect`)(`bad`,n.statusTone(e.status)===`bad`),j(),X(e.status||`ERR`),j(),L(`title`,e.url),j(),X(e.url),j(),J(`error`,!!e.error),j(),X(e.error??e.preview??`(no body)`)}}function ZL(e,t){e&1&&(R(0,`p`,29),Y(1,` SSR mocks are not transferred to the client: the browser requests the URL again and gets the real response unless the rule also applies on the client. `),z())}function QL(e,t){e&1&&(R(0,`span`),Y(1,`passthrough`),z())}function $L(e,t){if(e&1&&(R(0,`span`,50),Y(1),z()),e&2){let e=q().$implicit,t=q();J(`ok`,t.statusTone(e.status)===`ok`)(`redirect`,t.statusTone(e.status)===`redirect`)(`bad`,t.statusTone(e.status)===`bad`),j(),X(e.status)}}function eR(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q().$implicit;j(),Z(``,e.delayMs,` ms`)}}function tR(e,t){e&1&&(R(0,`span`),Y(1,`mock body`),z())}function nR(e,t){e&1&&(R(0,`p`,66),Y(1,` The SSR mock is not written to TransferState, so the browser requests this URL again. `),z())}function rR(e,t){if(e&1){let e=W();R(0,`li`)(1,`label`,59)(2,`input`,60),G(`change`,function(){let t=O(e).$implicit;return k(q().toggleRule(t.id))}),z(),R(3,`code`,61)(4,`span`,62),Y(5),z(),Y(6),z()(),R(7,`button`,63),G(`click`,function(){let t=O(e).$implicit;return k(q().removeRule(t.id))}),Y(8,` Remove `),z(),R(9,`span`,64)(10,`span`),Y(11),z(),N(12,QL,2,0,`span`)(13,$L,2,7,`span`,65),N(14,eR,2,1,`span`),N(15,tR,2,0,`span`),z(),N(16,nR,2,0,`p`,66),z()}if(e&2){let e=t.$implicit,n=q();J(`off`,!e.enabled),j(2),L(`checked`,e.enabled),M(`aria-label`,`Enable rule for `+e.pattern),j(),L(`title`,e.pattern),j(2),X(e.method||`ANY`),j(),Z(` `,e.pattern),j(),M(`aria-label`,`Remove rule for `+e.pattern),j(4),X(n.targetLabel(e.target)),j(),P(e.status===void 0?12:13),j(2),P(e.delayMs?14:-1),j(),P(e.body?15:-1),j(),P(n.mocksOnServer(e)?16:-1)}}function iR(e,t){e&1&&(R(0,`li`,35),Y(1,`No rules. SSR rules apply on the next page load.`),z())}function aR(e,t){if(e&1&&(R(0,`div`)(1,`dt`),Y(2,`DOM nodes hydrated`),z(),R(3,`dd`),Y(4),z()(),R(5,`div`)(6,`dt`),Y(7,`DOM nodes skipped`),z(),R(8,`dd`),Y(9),z()(),R(10,`div`)(11,`dt`),Y(12,`Mismatched components`),z(),R(13,`dd`),Y(14),z()()),e&2){let e=t;j(4),X(e.hydrated),j(5),X(e.skipped),j(4),J(`bad`,e.mismatched>0),j(),X(e.mismatched)}}function oR(e,t){if(e&1&&(R(0,`span`,69)(1,`span`,70),Y(2,`Expected`),z(),R(3,`code`),Y(4),z()()),e&2){let e=q().$implicit;j(4),X(e.expected)}}function sR(e,t){if(e&1&&(R(0,`span`,69)(1,`span`,70),Y(2,`Actual`),z(),R(3,`code`),Y(4),z()()),e&2){let e=q().$implicit;j(4),X(e.actual)}}function cR(e,t){if(e&1&&(R(0,`li`)(1,`code`),Y(2),z(),N(3,oR,5,1,`span`,69),N(4,sR,5,1,`span`,69),z()),e&2){let e=t.$implicit;j(2),X(`<`+e.component+`>`),j(),P(e.expected?3:-1),j(),P(e.actual?4:-1)}}function lR(e,t){if(e&1&&(R(0,`h3`),Y(1),z(),R(2,`ul`,68),F(3,cR,5,3,`li`,null,sg),z()),e&2){let e=q();j(),Z(`Mismatches (`,e.mismatches.length,`)`),j(2),I(e.mismatches)}}function uR(e,t){if(e&1&&(R(0,`li`)(1,`code`),Y(2),z()()),e&2){let e=t.$implicit;j(2),X(e)}}function dR(e,t){if(e&1&&(R(0,`h3`),Y(1,`ngSkipHydration hosts`),z(),R(2,`ul`,71),F(3,uR,3,1,`li`,null,sg),z()),e&2){let e=q();j(3),I(e.skipHydrationHosts)}}function fR(e,t){e&1&&(R(0,`h3`),Y(1,`Warnings`),z(),R(2,`p`,29),Y(3,` Not captured: add `),R(4,`code`),Y(5,`provideNgDevtoolsHttp()`),z(),Y(6,` to the app providers. `),z())}function pR(e,t){if(e&1&&(R(0,`pre`,72),Y(1),z()),e&2){let e=t.$implicit;j(),X(e)}}function mR(e,t){e&1&&(R(0,`p`,73),Y(1,`No hydration warnings.`),z())}function hR(e,t){if(e&1&&(R(0,`h3`),Y(1),z(),F(2,pR,2,1,`pre`,72,sg,!1,mR,2,0,`p`,73)),e&2){let e=q();j(),Z(`Warnings (`,e.warnings.length,`)`),j(),I(e.warnings)}}function gR(e,t){if(e&1&&(R(0,`dl`,67)(1,`div`)(2,`dt`),Y(3,`Enabled`),z(),R(4,`dd`)(5,`span`,45),Y(6),z()()(),R(7,`div`)(8,`dt`),Y(9,`Hydrated components`),z(),R(10,`dd`),Y(11),z()(),R(12,`div`)(13,`dt`),Y(14,`Hydrated nodes`),z(),R(15,`dd`),Y(16),z()(),R(17,`div`)(18,`dt`),Y(19,`Skipped components`),z(),R(20,`dd`),Y(21),z()(),R(22,`div`)(23,`dt`),Y(24,`Incremental defer blocks`),z(),R(25,`dd`),Y(26),z()(),N(27,aR,15,5),z(),N(28,lR,5,1),N(29,dR,5,0),N(30,fR,7,0)(31,hR,5,2)),e&2){let e,n=t;j(5),J(`on`,n.enabled)(`off-tag`,!n.enabled),j(),X(n.enabled?`yes`:`no (client render only)`),j(5),X(n.hydratedComponents??`n/a`),j(5),X(n.hydratedNodes??`n/a`),j(5),X(n.componentsSkippedHydration??`n/a`),j(5),X(n.deferBlocksWithIncrementalHydration??`n/a`),j(),P((e=n.nodes)?27:-1,e),j(),P(n.mismatches?.length?28:-1),j(),P(n.skipHydrationHosts.length?29:-1),j(),P(n.warningsCaptured===!1?30:31)}}function _R(e,t){e&1&&(R(0,`div`,12)(1,`p`),Y(2,`No hydration data for this page.`),z(),R(3,`p`,29),Y(4,`Open a server rendered page of the app to see its stats.`),z()())}function vR(e,t){e&1&&(R(0,`div`,12)(1,`p`),Y(2,`No TransferState script: this page was not server rendered.`),z()())}function yR(e,t){if(e&1&&(R(0,`p`,75),Y(1),z()),e&2){let e=q(2);j(),X(e.error)}}function bR(e,t){e&1&&(R(0,`span`,45),Y(1),z()),e&2&&(j(),X(t))}function xR(e,t){if(e&1&&(R(0,`span`,45),Y(1),z(),R(2,`span`,78),Y(3),z()),e&2){let e=t,n=q().$implicit,r=q(3);J(`server`,r.statusTone(e.status)===`ok`)(`fault`,r.statusTone(e.status)===`bad`),j(),Z(`HTTP `,e.status),j(2),X(e.url??n.key)}}function SR(e,t){if(e&1&&(R(0,`span`,78),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.key)}}function CR(e,t){if(e&1&&(R(0,`details`)(1,`summary`),B(2,`span`,77),N(3,bR,2,1,`span`,45),N(4,xR,4,6)(5,SR,2,1,`span`,78),R(6,`span`,79),Y(7),z()(),R(8,`pre`),Y(9),H_(10,`json`),z()()),e&2){let e,n,r=t.$implicit,i=q(3);j(3),P((e=i.payloadLabel(r))?3:-1,e),j(),P((n=r.http)?4:5,n),j(3),Z(``,r.size,` B`),j(2),X(W_(10,4,r.value))}}function wR(e,t){if(e&1&&(R(0,`p`,74),Y(1),z(),N(2,yR,2,1,`p`,75),R(3,`div`,76),F(4,CR,11,6,`details`,null,HL),z()),e&2){let e=q();j(),O_(` `,e.entries.length,` entr`,e.entries.length===1?`y`:`ies`,`, `,e.size,` bytes `),j(),P(e.error?2:-1),j(2),I(e.entries)}}function TR(e,t){e&1&&N(0,vR,3,0,`div`,12)(1,wR,6,4),e&2&&P(+!!t.found)}function ER(e,t){e&1&&(R(0,`div`,12)(1,`p`),Y(2,`Open a page of the app to see its payload.`),z()())}var DR={pattern:`/api/products`,method:``,target:`both`,status:`500`,delayMs:``,body:``},OR=class e{rpc=$(null);loading=A(!1);failed=A(!1);serverCalls=A([]);pages=A([]);rules=A([]);hostPageId=oT();selectedPageId=tv({source:()=>this.pages(),computation:(e,t)=>t?.value&&e.some(e=>e.pageId===t.value)?t.value:e.find(e=>e.pageId===this.hostPageId)?.pageId??e[0]?.pageId??null});selectedCallId=A(null);draft=A({...DR});message=A(``);bodyPlaceholder=`{ "error": "Service unavailable" }`;unsubscribe=null;destroyRef=E(ws);selected=Q(()=>this.pages().find(e=>e.pageId===this.selectedPageId())??null);pageServerCalls=Q(()=>{let e=this.selected()?.initialUrl;return e?this.serverCalls().filter(t=>!t.pageUrl||t.pageUrl===e):this.serverCalls()});timeline=Q(()=>[...this.pageServerCalls(),...this.selected()?.calls??[]].sort((e,t)=>t.at-e.at));selectedCall=Q(()=>this.timeline().find(e=>e.id===this.selectedCallId())??null);draftMocksOnServer=Q(()=>{let e=this.draft(),t=Number(e.status);return!!e.status&&Number.isFinite(t)&&this.mocksOnServer({target:e.target,status:t})});bodyError=Q(()=>{let e=this.draft().body.trim();if(!e)return``;try{return JSON.parse(e),``}catch{return`The mock body must be valid JSON.`}});constructor(){dc(()=>{let e=this.rpc();e&&this.load(e)}),this.destroyRef.onDestroy(()=>this.unsubscribe?.())}async load(e){this.loading.set(!0),this.failed.set(!1);try{let t=await e.scope(`ng-devtools`).rpc.sharedState(`http`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e;this.serverCalls.set(t?.serverCalls??[]),this.pages.set(t?.pages??[]),this.rules.set(t?.rules??[])};n(t.value()),this.unsubscribe?.(),this.unsubscribe=t.on(`updated`,n)}catch{this.failed.set(!0)}finally{this.loading.set(!1)}}statusTone(e){return e===void 0?`neutral`:e===0||e>=400?`bad`:e>=300?`redirect`:e>=200?`ok`:`neutral`}mocksOnServer(e){return e.target!==`client`&&e.status!==void 0&&e.status<400}payloadLabel(e){return e.source===`hydration`?`hydration annotations`:e.source===`analog`?`Analog`:null}targetLabel(e){return e===`both`?`SSR + client`:e===`server`?`SSR only`:`Client only`}pageOptions=Q(()=>this.pages().map(e=>({value:e.pageId,label:e.title||e.url})));methodOptions=[{value:``,label:`Any`},...[`GET`,`POST`,`PUT`,`PATCH`,`DELETE`].map(e=>({value:e,label:e}))];targetOptions=[{value:`both`,label:`SSR + client`},{value:`server`,label:`SSR only`},{value:`client`,label:`Client only`}];selectPage(e){e&&this.selectedPageId.set(e),this.selectedCallId.set(null)}setDraft(e,t){this.draft.update(n=>({...n,[e]:t}))}patch(e,t){let n=t.target.value;this.draft.update(t=>({...t,[e]:n}))}addRule(e){e.preventDefault();let t=this.draft();if(!t.pattern.trim()||this.bodyError())return;let n=Number(t.status),r=Number(t.delayMs),i={id:`r${Date.now().toString(36)}${Math.random().toString(36).slice(2,6)}`,pattern:t.pattern.trim(),enabled:!0,target:t.target,...t.method?{method:t.method}:{},...t.status&&Number.isFinite(n)?{status:n}:{},...t.delayMs&&Number.isFinite(r)?{delayMs:r}:{},...t.body.trim()?{body:t.body.trim()}:{}};this.saveRules([...this.rules(),i],`Rule added.`)}toggleRule(e){this.saveRules(this.rules().map(t=>t.id===e?{...t,enabled:!t.enabled}:t),`Rule updated.`)}removeRule(e){this.saveRules(this.rules().filter(t=>t.id!==e),`Rule removed.`)}async clearCalls(){try{await KE(this.rpc(),`clear-http-calls`),this.selectedCallId.set(null),this.message.set(`Timeline cleared.`)}catch{this.message.set(`Could not clear the timeline.`)}}async saveRules(e,t){try{await KE(this.rpc(),`set-http-rules`,e),this.rules.set(e),this.message.set(`${t} Reload the page to apply SSR rules.`)}catch{this.message.set(`Could not save the rules.`)}}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-network-inspector`]],inputs:{rpc:[1,`rpc`]},decls:72,vars:24,consts:[[`role`,`status`,1,`state`],[`role`,`alert`,1,`state`,`error`],[1,`toolbar`],[1,`page-picker`],[`id`,`page-picker-label`],[`labelledBy`,`page-picker-label`,`emptyText`,`No connected page`,`placeholder`,`No connected page`,3,`valueChange`,`options`,`value`],[`type`,`button`,3,`click`],[`role`,`status`,1,`message`],[1,`grid`],[`aria-labelledby`,`timeline-heading`,1,`panel`,`wide`],[`id`,`timeline-heading`],[1,`table-wrap`],[1,`empty`],[1,`preview`],[`aria-labelledby`,`rules-heading`,1,`panel`],[`id`,`rules-heading`],[1,`rule-form`,3,`submit`],[1,`hint`],[`required`,``,`spellcheck`,`false`,`autocomplete`,`off`,`placeholder`,`/api/products`,3,`input`,`value`],[1,`row`],[1,`field-group`],[`id`,`rule-method-label`],[`labelledBy`,`rule-method-label`,3,`valueChange`,`options`,`value`],[`id`,`rule-target-label`],[`labelledBy`,`rule-target-label`,3,`valueChange`,`options`,`value`],[`type`,`number`,`inputmode`,`numeric`,`min`,`100`,`max`,`599`,3,`input`,`value`],[`type`,`number`,`inputmode`,`numeric`,`min`,`0`,`max`,`10000`,`placeholder`,`0`,3,`input`,`value`],[`rows`,`3`,`spellcheck`,`false`,`aria-describedby`,`body-error`,3,`input`,`placeholder`,`value`],[`id`,`body-error`,1,`field-error`],[1,`muted`,`small`],[1,`form-actions`],[`type`,`submit`,3,`disabled`],[1,`rules-heading`],[1,`rules`],[3,`off`],[1,`empty-rule`],[`aria-labelledby`,`hydration-heading`,1,`panel`],[`id`,`hydration-heading`],[`aria-labelledby`,`payload-heading`,1,`panel`,`wide`],[`id`,`payload-heading`],[`aria-hidden`,`true`,1,`spinner`],[`scope`,`col`],[`scope`,`col`,1,`num`],[3,`selected`],[3,`click`],[1,`tag`],[1,`method`],[1,`url`],[`type`,`button`,1,`link`,3,`click`,`title`],[1,`page-url`,3,`title`],[1,`status`],[`aria-hidden`,`true`,1,`dot`],[1,`num`],[1,`notes`],[1,`tag`,`fault`],[1,`preview-head`],[`type`,`button`,1,`ghost`,3,`click`],[1,`preview-meta`],[1,`preview-url`,3,`title`],[1,`inline`],[`type`,`checkbox`,3,`change`,`checked`],[1,`rule-pattern`,3,`title`],[1,`rule-method`],[`type`,`button`,1,`link`,`remove`,3,`click`],[1,`rule-meta`],[1,`status`,3,`ok`,`redirect`,`bad`],[1,`rule-note`],[1,`stats`],[1,`plain`,`mismatches`],[1,`mismatch-row`],[1,`mismatch-label`],[1,`plain`],[1,`warn`],[1,`muted`,`small`,`ok-note`],[1,`muted`,`small`,`summary-line`],[`role`,`alert`,1,`bad`],[1,`entries`],[`aria-hidden`,`true`,1,`chevron`],[1,`entry-key`],[1,`entry-size`]],template:function(e,t){if(e&1&&(N(0,UL,4,0,`div`,0)(1,WL,5,0,`div`,1),R(2,`div`,2)(3,`div`,3)(4,`span`,4),Y(5,`Page`),z(),R(6,`app-select`,5),G(`valueChange`,function(e){return t.selectPage(e)}),z()(),R(7,`button`,6),G(`click`,function(){return t.clearCalls()}),Y(8,`Clear timeline`),z(),R(9,`p`,7),Y(10),z()(),R(11,`div`,8)(12,`section`,9)(13,`h2`,10),Y(14),z(),N(15,JL,21,0,`div`,11)(16,YL,11,0,`div`,12),N(17,XL,15,13,`div`,13),z(),R(18,`section`,14)(19,`h2`,15),Y(20,`Fault injection`),z(),R(21,`form`,16),G(`submit`,function(e){return t.addRule(e)}),R(22,`label`)(23,`span`),Y(24,`URL pattern `),R(25,`span`,17),Y(26,`(substring or * glob)`),z()(),R(27,`input`,18),G(`input`,function(e){return t.patch(`pattern`,e)}),z()(),R(28,`div`,19)(29,`div`,20)(30,`span`,21),Y(31,`Method`),z(),R(32,`app-select`,22),G(`valueChange`,function(e){return t.setDraft(`method`,e??``)}),z()(),R(33,`div`,20)(34,`span`,23),Y(35,`Apply on`),z(),R(36,`app-select`,24),G(`valueChange`,function(e){return t.setDraft(`target`,e??`both`)}),z()()(),R(37,`div`,19)(38,`label`),Y(39,` Status `),R(40,`input`,25),G(`input`,function(e){return t.patch(`status`,e)}),z()(),R(41,`label`),Y(42,` Delay (ms) `),R(43,`input`,26),G(`input`,function(e){return t.patch(`delayMs`,e)}),z()()(),R(44,`label`)(45,`span`),Y(46,`Mock JSON body `),R(47,`span`,17),Y(48,`(optional)`),z()(),R(49,`textarea`,27),G(`input`,function(e){return t.patch(`body`,e)}),z()(),R(50,`p`,28),Y(51),z(),N(52,ZL,2,0,`p`,29),R(53,`div`,30)(54,`button`,31),Y(55,` Add rule `),z()()(),R(56,`h3`,32),Y(57),z(),R(58,`ul`,33),F(59,rR,17,13,`li`,34,BL,!1,iR,2,0,`li`,35),z()(),R(62,`section`,36)(63,`h2`,37),Y(64,`Hydration`),z(),N(65,gR,32,13)(66,_R,5,0,`div`,12),z(),R(67,`section`,38)(68,`h2`,39),Y(69,`TransferState payload`),z(),N(70,TR,2,1)(71,ER,3,0,`div`,12),z()()),e&2){let e,n,r;P(t.loading()?0:t.failed()?1:-1),j(6),L(`options`,t.pageOptions())(`value`,t.selected()?.pageId??null),j(4),X(t.message()),j(4),Z(`HTTP timeline (`,t.timeline().length,`)`),j(),P(t.timeline().length?15:16),j(2),P((e=t.selectedCall())?17:-1,e),j(10),L(`value`,t.draft().pattern),j(5),L(`options`,t.methodOptions)(`value`,t.draft().method),j(4),L(`options`,t.targetOptions)(`value`,t.draft().target),j(4),L(`value`,t.draft().status),j(3),L(`value`,t.draft().delayMs),j(6),L(`placeholder`,t.bodyPlaceholder)(`value`,t.draft().body),M(`aria-invalid`,t.bodyError()?`true`:null),j(2),X(t.bodyError()),j(),P(t.draftMocksOnServer()?52:-1),j(2),L(`disabled`,!t.draft().pattern.trim()||!!t.bodyError()),j(3),Z(`Rules (`,t.rules().length,`)`),j(2),I(t.rules()),j(6),P((n=t.selected()?.hydration)?65:66,n),j(5),P((r=t.selected()?.payload)?70:71,r)}},dependencies:[Dk,Py],styles:[`@charset "UTF-8"; +}`]})},VL=(e,t)=>t.id,HL=(e,t)=>t.side+t.id,UL=(e,t)=>t.key;function WL(e,t){e&1&&(R(0,`div`,0),B(1,`span`,40),R(2,`span`),Y(3,`Loading…`),z()())}function GL(e,t){e&1&&(R(0,`div`,1)(1,`strong`),Y(2,`Could not reach the devtools server.`),z(),R(3,`span`),Y(4,`Check that the app's dev server is running with the devtools plugin, then reopen this panel.`),z()())}function KL(e,t){e&1&&(R(0,`span`,45),Y(1,`transfer cache`),z())}function qL(e,t){e&1&&(R(0,`span`,54),Y(1,`faulted`),z())}function JL(e,t){if(e&1){let e=W();R(0,`tr`,44),G(`click`,function(){let t=O(e).$implicit;return k(q(2).selectedCallId.set(t.id))}),R(1,`td`)(2,`span`,45),Y(3),z()(),R(4,`td`,46),Y(5),z(),R(6,`td`,47)(7,`button`,48),G(`click`,function(){let t=O(e).$implicit;return k(q(2).selectedCallId.set(t.id))}),Y(8),z()(),R(9,`td`,49),Y(10),z(),R(11,`td`,50),B(12,`span`,51),Y(13),z(),R(14,`td`,52),Y(15),z(),R(16,`td`)(17,`div`,53),N(18,KL,2,0,`span`,45),N(19,qL,2,0,`span`,54),z()()()}if(e&2){let e=t.$implicit,n=q(2);J(`selected`,n.selectedCall()?.id===e.id),j(2),J(`server`,e.side===`server`),j(),X(e.side===`server`?`SSR`:`Client`),j(2),X(e.method),j(2),L(`title`,e.url),M(`aria-pressed`,n.selectedCall()?.id===e.id),j(),Z(` `,e.url,` `),j(),L(`title`,e.pageUrl??``),j(),Z(` `,e.pageUrl??``,` `),j(),J(`ok`,n.statusTone(e.status)===`ok`)(`redirect`,n.statusTone(e.status)===`redirect`)(`bad`,n.statusTone(e.status)===`bad`),j(2),Z(``,e.status||`ERR`,` `),j(2),Z(``,e.durationMs,` ms`),j(3),P(e.cacheHit?18:-1),j(),P(e.faulted?19:-1)}}function YL(e,t){if(e&1&&(R(0,`div`,11)(1,`table`)(2,`thead`)(3,`tr`)(4,`th`,41),Y(5,`Side`),z(),R(6,`th`,41),Y(7,`Method`),z(),R(8,`th`,41),Y(9,`URL`),z(),R(10,`th`,41),Y(11,`Page`),z(),R(12,`th`,41),Y(13,`Status`),z(),R(14,`th`,42),Y(15,`Time`),z(),R(16,`th`,41),Y(17,`Notes`),z()()(),R(18,`tbody`),F(19,JL,20,21,`tr`,43,HL),z()()()),e&2){let e=q();j(19),I(e.timeline())}}function XL(e,t){e&1&&(R(0,`div`,12)(1,`p`),Y(2,`No requests yet.`),z(),R(3,`p`,29),Y(4,` Add `),R(5,`code`),Y(6,`withNgDevtools()`),z(),Y(7,` to `),R(8,`code`),Y(9,`provideHttpClient`),z(),Y(10,`, then load a page of the app. `),z()())}function ZL(e,t){if(e&1){let e=W();R(0,`div`,13)(1,`div`,55)(2,`h3`),Y(3,`Response preview`),z(),R(4,`button`,56),G(`click`,function(){return O(e),k(q().selectedCallId.set(null))}),Y(5,`Close`),z()(),R(6,`p`,57)(7,`span`,46),Y(8),z(),R(9,`span`,50),Y(10),z(),R(11,`span`,58),Y(12),z()(),R(13,`pre`),Y(14),z()()}if(e&2){let e=t,n=q();j(8),X(e.method),j(),J(`ok`,n.statusTone(e.status)===`ok`)(`redirect`,n.statusTone(e.status)===`redirect`)(`bad`,n.statusTone(e.status)===`bad`),j(),X(e.status||`ERR`),j(),L(`title`,e.url),j(),X(e.url),j(),J(`error`,!!e.error),j(),X(e.error??e.preview??`(no body)`)}}function QL(e,t){e&1&&(R(0,`p`,29),Y(1,` SSR mocks are not transferred to the client: the browser requests the URL again and gets the real response unless the rule also applies on the client. `),z())}function $L(e,t){e&1&&(R(0,`span`),Y(1,`passthrough`),z())}function eR(e,t){if(e&1&&(R(0,`span`,50),Y(1),z()),e&2){let e=q().$implicit,t=q();J(`ok`,t.statusTone(e.status)===`ok`)(`redirect`,t.statusTone(e.status)===`redirect`)(`bad`,t.statusTone(e.status)===`bad`),j(),X(e.status)}}function tR(e,t){if(e&1&&(R(0,`span`),Y(1),z()),e&2){let e=q().$implicit;j(),Z(``,e.delayMs,` ms`)}}function nR(e,t){e&1&&(R(0,`span`),Y(1,`mock body`),z())}function rR(e,t){e&1&&(R(0,`p`,66),Y(1,` The SSR mock is not written to TransferState, so the browser requests this URL again. `),z())}function iR(e,t){if(e&1){let e=W();R(0,`li`)(1,`label`,59)(2,`input`,60),G(`change`,function(){let t=O(e).$implicit;return k(q().toggleRule(t.id))}),z(),R(3,`code`,61)(4,`span`,62),Y(5),z(),Y(6),z()(),R(7,`button`,63),G(`click`,function(){let t=O(e).$implicit;return k(q().removeRule(t.id))}),Y(8,` Remove `),z(),R(9,`span`,64)(10,`span`),Y(11),z(),N(12,$L,2,0,`span`)(13,eR,2,7,`span`,65),N(14,tR,2,1,`span`),N(15,nR,2,0,`span`),z(),N(16,rR,2,0,`p`,66),z()}if(e&2){let e=t.$implicit,n=q();J(`off`,!e.enabled),j(2),L(`checked`,e.enabled),M(`aria-label`,`Enable rule for `+e.pattern),j(),L(`title`,e.pattern),j(2),X(e.method||`ANY`),j(),Z(` `,e.pattern),j(),M(`aria-label`,`Remove rule for `+e.pattern),j(4),X(n.targetLabel(e.target)),j(),P(e.status===void 0?12:13),j(2),P(e.delayMs?14:-1),j(),P(e.body?15:-1),j(),P(n.mocksOnServer(e)?16:-1)}}function aR(e,t){e&1&&(R(0,`li`,35),Y(1,`No rules. SSR rules apply on the next page load.`),z())}function oR(e,t){if(e&1&&(R(0,`div`)(1,`dt`),Y(2,`DOM nodes hydrated`),z(),R(3,`dd`),Y(4),z()(),R(5,`div`)(6,`dt`),Y(7,`DOM nodes skipped`),z(),R(8,`dd`),Y(9),z()(),R(10,`div`)(11,`dt`),Y(12,`Mismatched components`),z(),R(13,`dd`),Y(14),z()()),e&2){let e=t;j(4),X(e.hydrated),j(5),X(e.skipped),j(4),J(`bad`,e.mismatched>0),j(),X(e.mismatched)}}function sR(e,t){if(e&1&&(R(0,`span`,69)(1,`span`,70),Y(2,`Expected`),z(),R(3,`code`),Y(4),z()()),e&2){let e=q().$implicit;j(4),X(e.expected)}}function cR(e,t){if(e&1&&(R(0,`span`,69)(1,`span`,70),Y(2,`Actual`),z(),R(3,`code`),Y(4),z()()),e&2){let e=q().$implicit;j(4),X(e.actual)}}function lR(e,t){if(e&1&&(R(0,`li`)(1,`code`),Y(2),z(),N(3,sR,5,1,`span`,69),N(4,cR,5,1,`span`,69),z()),e&2){let e=t.$implicit;j(2),X(`<`+e.component+`>`),j(),P(e.expected?3:-1),j(),P(e.actual?4:-1)}}function uR(e,t){if(e&1&&(R(0,`h3`),Y(1),z(),R(2,`ul`,68),F(3,lR,5,3,`li`,null,cg),z()),e&2){let e=q();j(),Z(`Mismatches (`,e.mismatches.length,`)`),j(2),I(e.mismatches)}}function dR(e,t){if(e&1&&(R(0,`li`)(1,`code`),Y(2),z()()),e&2){let e=t.$implicit;j(2),X(e)}}function fR(e,t){if(e&1&&(R(0,`h3`),Y(1,`ngSkipHydration hosts`),z(),R(2,`ul`,71),F(3,dR,3,1,`li`,null,cg),z()),e&2){let e=q();j(3),I(e.skipHydrationHosts)}}function pR(e,t){e&1&&(R(0,`h3`),Y(1,`Warnings`),z(),R(2,`p`,29),Y(3,` Not captured: add `),R(4,`code`),Y(5,`provideNgDevtoolsHttp()`),z(),Y(6,` to the app providers. `),z())}function mR(e,t){if(e&1&&(R(0,`pre`,72),Y(1),z()),e&2){let e=t.$implicit;j(),X(e)}}function hR(e,t){e&1&&(R(0,`p`,73),Y(1,`No hydration warnings.`),z())}function gR(e,t){if(e&1&&(R(0,`h3`),Y(1),z(),F(2,mR,2,1,`pre`,72,cg,!1,hR,2,0,`p`,73)),e&2){let e=q();j(),Z(`Warnings (`,e.warnings.length,`)`),j(),I(e.warnings)}}function _R(e,t){if(e&1&&(R(0,`dl`,67)(1,`div`)(2,`dt`),Y(3,`Enabled`),z(),R(4,`dd`)(5,`span`,45),Y(6),z()()(),R(7,`div`)(8,`dt`),Y(9,`Hydrated components`),z(),R(10,`dd`),Y(11),z()(),R(12,`div`)(13,`dt`),Y(14,`Hydrated nodes`),z(),R(15,`dd`),Y(16),z()(),R(17,`div`)(18,`dt`),Y(19,`Skipped components`),z(),R(20,`dd`),Y(21),z()(),R(22,`div`)(23,`dt`),Y(24,`Incremental defer blocks`),z(),R(25,`dd`),Y(26),z()(),N(27,oR,15,5),z(),N(28,uR,5,1),N(29,fR,5,0),N(30,pR,7,0)(31,gR,5,2)),e&2){let e,n=t;j(5),J(`on`,n.enabled)(`off-tag`,!n.enabled),j(),X(n.enabled?`yes`:`no (client render only)`),j(5),X(n.hydratedComponents??`n/a`),j(5),X(n.hydratedNodes??`n/a`),j(5),X(n.componentsSkippedHydration??`n/a`),j(5),X(n.deferBlocksWithIncrementalHydration??`n/a`),j(),P((e=n.nodes)?27:-1,e),j(),P(n.mismatches?.length?28:-1),j(),P(n.skipHydrationHosts.length?29:-1),j(),P(n.warningsCaptured===!1?30:31)}}function vR(e,t){e&1&&(R(0,`div`,12)(1,`p`),Y(2,`No hydration data for this page.`),z(),R(3,`p`,29),Y(4,`Open a server rendered page of the app to see its stats.`),z()())}function yR(e,t){e&1&&(R(0,`div`,12)(1,`p`),Y(2,`No TransferState script: this page was not server rendered.`),z()())}function bR(e,t){if(e&1&&(R(0,`p`,75),Y(1),z()),e&2){let e=q(2);j(),X(e.error)}}function xR(e,t){e&1&&(R(0,`span`,45),Y(1),z()),e&2&&(j(),X(t))}function SR(e,t){if(e&1&&(R(0,`span`,45),Y(1),z(),R(2,`span`,78),Y(3),z()),e&2){let e=t,n=q().$implicit,r=q(3);J(`server`,r.statusTone(e.status)===`ok`)(`fault`,r.statusTone(e.status)===`bad`),j(),Z(`HTTP `,e.status),j(2),X(e.url??n.key)}}function CR(e,t){if(e&1&&(R(0,`span`,78),Y(1),z()),e&2){let e=q().$implicit;j(),X(e.key)}}function wR(e,t){if(e&1&&(R(0,`details`)(1,`summary`),B(2,`span`,77),N(3,xR,2,1,`span`,45),N(4,SR,4,6)(5,CR,2,1,`span`,78),R(6,`span`,79),Y(7),z()(),R(8,`pre`),Y(9),U_(10,`json`),z()()),e&2){let e,n,r=t.$implicit,i=q(3);j(3),P((e=i.payloadLabel(r))?3:-1,e),j(),P((n=r.http)?4:5,n),j(3),Z(``,r.size,` B`),j(2),X(G_(10,4,r.value))}}function TR(e,t){if(e&1&&(R(0,`p`,74),Y(1),z(),N(2,bR,2,1,`p`,75),R(3,`div`,76),F(4,wR,11,6,`details`,null,UL),z()),e&2){let e=q();j(),k_(` `,e.entries.length,` entr`,e.entries.length===1?`y`:`ies`,`, `,e.size,` bytes `),j(),P(e.error?2:-1),j(2),I(e.entries)}}function ER(e,t){e&1&&N(0,yR,3,0,`div`,12)(1,TR,6,4),e&2&&P(+!!t.found)}function DR(e,t){e&1&&(R(0,`div`,12)(1,`p`),Y(2,`Open a page of the app to see its payload.`),z()())}var OR={pattern:`/api/products`,method:``,target:`both`,status:`500`,delayMs:``,body:``},kR=class e{rpc=$(null);loading=A(!1);failed=A(!1);serverCalls=A([]);pages=A([]);rules=A([]);hostPageId=sT();selectedPageId=nv({source:()=>this.pages(),computation:(e,t)=>t?.value&&e.some(e=>e.pageId===t.value)?t.value:e.find(e=>e.pageId===this.hostPageId)?.pageId??e[0]?.pageId??null});selectedCallId=A(null);draft=A({...OR});message=A(``);bodyPlaceholder=`{ "error": "Service unavailable" }`;unsubscribe=null;destroyRef=E(ws);selected=Q(()=>this.pages().find(e=>e.pageId===this.selectedPageId())??null);pageServerCalls=Q(()=>{let e=this.selected()?.initialUrl;return e?this.serverCalls().filter(t=>!t.pageUrl||t.pageUrl===e):this.serverCalls()});timeline=Q(()=>[...this.pageServerCalls(),...this.selected()?.calls??[]].sort((e,t)=>t.at-e.at));selectedCall=Q(()=>this.timeline().find(e=>e.id===this.selectedCallId())??null);draftMocksOnServer=Q(()=>{let e=this.draft(),t=Number(e.status);return!!e.status&&Number.isFinite(t)&&this.mocksOnServer({target:e.target,status:t})});bodyError=Q(()=>{let e=this.draft().body.trim();if(!e)return``;try{return JSON.parse(e),``}catch{return`The mock body must be valid JSON.`}});constructor(){dc(()=>{let e=this.rpc();e&&this.load(e)}),this.destroyRef.onDestroy(()=>this.unsubscribe?.())}async load(e){this.loading.set(!0),this.failed.set(!1);try{let t=await e.scope(`ng-devtools`).rpc.sharedState(`http`);if(this.destroyRef.destroyed)return;let n=e=>{let t=e;this.serverCalls.set(t?.serverCalls??[]),this.pages.set(t?.pages??[]),this.rules.set(t?.rules??[])};n(t.value()),this.unsubscribe?.(),this.unsubscribe=t.on(`updated`,n)}catch{this.failed.set(!0)}finally{this.loading.set(!1)}}statusTone(e){return e===void 0?`neutral`:e===0||e>=400?`bad`:e>=300?`redirect`:e>=200?`ok`:`neutral`}mocksOnServer(e){return e.target!==`client`&&e.status!==void 0&&e.status<400}payloadLabel(e){return e.source===`hydration`?`hydration annotations`:e.source===`analog`?`Analog`:null}targetLabel(e){return e===`both`?`SSR + client`:e===`server`?`SSR only`:`Client only`}pageOptions=Q(()=>this.pages().map(e=>({value:e.pageId,label:e.title||e.url})));methodOptions=[{value:``,label:`Any`},...[`GET`,`POST`,`PUT`,`PATCH`,`DELETE`].map(e=>({value:e,label:e}))];targetOptions=[{value:`both`,label:`SSR + client`},{value:`server`,label:`SSR only`},{value:`client`,label:`Client only`}];selectPage(e){e&&this.selectedPageId.set(e),this.selectedCallId.set(null)}setDraft(e,t){this.draft.update(n=>({...n,[e]:t}))}patch(e,t){let n=t.target.value;this.draft.update(t=>({...t,[e]:n}))}addRule(e){e.preventDefault();let t=this.draft();if(!t.pattern.trim()||this.bodyError())return;let n=Number(t.status),r=Number(t.delayMs),i={id:`r${Date.now().toString(36)}${Math.random().toString(36).slice(2,6)}`,pattern:t.pattern.trim(),enabled:!0,target:t.target,...t.method?{method:t.method}:{},...t.status&&Number.isFinite(n)?{status:n}:{},...t.delayMs&&Number.isFinite(r)?{delayMs:r}:{},...t.body.trim()?{body:t.body.trim()}:{}};this.saveRules([...this.rules(),i],`Rule added.`)}toggleRule(e){this.saveRules(this.rules().map(t=>t.id===e?{...t,enabled:!t.enabled}:t),`Rule updated.`)}removeRule(e){this.saveRules(this.rules().filter(t=>t.id!==e),`Rule removed.`)}async clearCalls(){try{await qE(this.rpc(),`clear-http-calls`),this.selectedCallId.set(null),this.message.set(`Timeline cleared.`)}catch{this.message.set(`Could not clear the timeline.`)}}async saveRules(e,t){try{await qE(this.rpc(),`set-http-rules`,e),this.rules.set(e),this.message.set(`${t} Reload the page to apply SSR rules.`)}catch{this.message.set(`Could not save the rules.`)}}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-network-inspector`]],inputs:{rpc:[1,`rpc`]},decls:72,vars:24,consts:[[`role`,`status`,1,`state`],[`role`,`alert`,1,`state`,`error`],[1,`toolbar`],[1,`page-picker`],[`id`,`page-picker-label`],[`labelledBy`,`page-picker-label`,`emptyText`,`No connected page`,`placeholder`,`No connected page`,3,`valueChange`,`options`,`value`],[`type`,`button`,3,`click`],[`role`,`status`,1,`message`],[1,`grid`],[`aria-labelledby`,`timeline-heading`,1,`panel`,`wide`],[`id`,`timeline-heading`],[1,`table-wrap`],[1,`empty`],[1,`preview`],[`aria-labelledby`,`rules-heading`,1,`panel`],[`id`,`rules-heading`],[1,`rule-form`,3,`submit`],[1,`hint`],[`required`,``,`spellcheck`,`false`,`autocomplete`,`off`,`placeholder`,`/api/products`,3,`input`,`value`],[1,`row`],[1,`field-group`],[`id`,`rule-method-label`],[`labelledBy`,`rule-method-label`,3,`valueChange`,`options`,`value`],[`id`,`rule-target-label`],[`labelledBy`,`rule-target-label`,3,`valueChange`,`options`,`value`],[`type`,`number`,`inputmode`,`numeric`,`min`,`100`,`max`,`599`,3,`input`,`value`],[`type`,`number`,`inputmode`,`numeric`,`min`,`0`,`max`,`10000`,`placeholder`,`0`,3,`input`,`value`],[`rows`,`3`,`spellcheck`,`false`,`aria-describedby`,`body-error`,3,`input`,`placeholder`,`value`],[`id`,`body-error`,1,`field-error`],[1,`muted`,`small`],[1,`form-actions`],[`type`,`submit`,3,`disabled`],[1,`rules-heading`],[1,`rules`],[3,`off`],[1,`empty-rule`],[`aria-labelledby`,`hydration-heading`,1,`panel`],[`id`,`hydration-heading`],[`aria-labelledby`,`payload-heading`,1,`panel`,`wide`],[`id`,`payload-heading`],[`aria-hidden`,`true`,1,`spinner`],[`scope`,`col`],[`scope`,`col`,1,`num`],[3,`selected`],[3,`click`],[1,`tag`],[1,`method`],[1,`url`],[`type`,`button`,1,`link`,3,`click`,`title`],[1,`page-url`,3,`title`],[1,`status`],[`aria-hidden`,`true`,1,`dot`],[1,`num`],[1,`notes`],[1,`tag`,`fault`],[1,`preview-head`],[`type`,`button`,1,`ghost`,3,`click`],[1,`preview-meta`],[1,`preview-url`,3,`title`],[1,`inline`],[`type`,`checkbox`,3,`change`,`checked`],[1,`rule-pattern`,3,`title`],[1,`rule-method`],[`type`,`button`,1,`link`,`remove`,3,`click`],[1,`rule-meta`],[1,`status`,3,`ok`,`redirect`,`bad`],[1,`rule-note`],[1,`stats`],[1,`plain`,`mismatches`],[1,`mismatch-row`],[1,`mismatch-label`],[1,`plain`],[1,`warn`],[1,`muted`,`small`,`ok-note`],[1,`muted`,`small`,`summary-line`],[`role`,`alert`,1,`bad`],[1,`entries`],[`aria-hidden`,`true`,1,`chevron`],[1,`entry-key`],[1,`entry-size`]],template:function(e,t){if(e&1&&(N(0,WL,4,0,`div`,0)(1,GL,5,0,`div`,1),R(2,`div`,2)(3,`div`,3)(4,`span`,4),Y(5,`Page`),z(),R(6,`app-select`,5),G(`valueChange`,function(e){return t.selectPage(e)}),z()(),R(7,`button`,6),G(`click`,function(){return t.clearCalls()}),Y(8,`Clear timeline`),z(),R(9,`p`,7),Y(10),z()(),R(11,`div`,8)(12,`section`,9)(13,`h2`,10),Y(14),z(),N(15,YL,21,0,`div`,11)(16,XL,11,0,`div`,12),N(17,ZL,15,13,`div`,13),z(),R(18,`section`,14)(19,`h2`,15),Y(20,`Fault injection`),z(),R(21,`form`,16),G(`submit`,function(e){return t.addRule(e)}),R(22,`label`)(23,`span`),Y(24,`URL pattern `),R(25,`span`,17),Y(26,`(substring or * glob)`),z()(),R(27,`input`,18),G(`input`,function(e){return t.patch(`pattern`,e)}),z()(),R(28,`div`,19)(29,`div`,20)(30,`span`,21),Y(31,`Method`),z(),R(32,`app-select`,22),G(`valueChange`,function(e){return t.setDraft(`method`,e??``)}),z()(),R(33,`div`,20)(34,`span`,23),Y(35,`Apply on`),z(),R(36,`app-select`,24),G(`valueChange`,function(e){return t.setDraft(`target`,e??`both`)}),z()()(),R(37,`div`,19)(38,`label`),Y(39,` Status `),R(40,`input`,25),G(`input`,function(e){return t.patch(`status`,e)}),z()(),R(41,`label`),Y(42,` Delay (ms) `),R(43,`input`,26),G(`input`,function(e){return t.patch(`delayMs`,e)}),z()()(),R(44,`label`)(45,`span`),Y(46,`Mock JSON body `),R(47,`span`,17),Y(48,`(optional)`),z()(),R(49,`textarea`,27),G(`input`,function(e){return t.patch(`body`,e)}),z()(),R(50,`p`,28),Y(51),z(),N(52,QL,2,0,`p`,29),R(53,`div`,30)(54,`button`,31),Y(55,` Add rule `),z()()(),R(56,`h3`,32),Y(57),z(),R(58,`ul`,33),F(59,iR,17,13,`li`,34,VL,!1,aR,2,0,`li`,35),z()(),R(62,`section`,36)(63,`h2`,37),Y(64,`Hydration`),z(),N(65,_R,32,13)(66,vR,5,0,`div`,12),z(),R(67,`section`,38)(68,`h2`,39),Y(69,`TransferState payload`),z(),N(70,ER,2,1)(71,DR,3,0,`div`,12),z()()),e&2){let e,n,r;P(t.loading()?0:t.failed()?1:-1),j(6),L(`options`,t.pageOptions())(`value`,t.selected()?.pageId??null),j(4),X(t.message()),j(4),Z(`HTTP timeline (`,t.timeline().length,`)`),j(),P(t.timeline().length?15:16),j(2),P((e=t.selectedCall())?17:-1,e),j(10),L(`value`,t.draft().pattern),j(5),L(`options`,t.methodOptions)(`value`,t.draft().method),j(4),L(`options`,t.targetOptions)(`value`,t.draft().target),j(4),L(`value`,t.draft().status),j(3),L(`value`,t.draft().delayMs),j(6),L(`placeholder`,t.bodyPlaceholder)(`value`,t.draft().body),M(`aria-invalid`,t.bodyError()?`true`:null),j(2),X(t.bodyError()),j(),P(t.draftMocksOnServer()?52:-1),j(2),L(`disabled`,!t.draft().pattern.trim()||!!t.bodyError()),j(3),Z(`Rules (`,t.rules().length,`)`),j(2),I(t.rules()),j(6),P((n=t.selected()?.hydration)?65:66,n),j(5),P((r=t.selected()?.payload)?70:71,r)}},dependencies:[Ok,Fy],styles:[`@charset "UTF-8"; [_nghost-%COMP%] { display: block; color: var(--%NS%text); @@ -11013,7 +11013,7 @@ summary[_ngcontent-%COMP%]:hover .entry-key[_ngcontent-%COMP%] { .message[_ngcontent-%COMP%] { text-align: left; } -}`]})};function kR(e,t){e&1&&(ps(),V(0,`svg`,9),U(1,`path`,20),H())}function AR(e,t){e&1&&(ps(),V(0,`svg`,10),U(1,`path`,21)(2,`path`,22)(3,`path`,23)(4,`path`,24),H())}function jR(e,t){e&1&&(ps(),V(0,`svg`,9),U(1,`path`,25)(2,`path`,26)(3,`path`,27)(4,`path`,28)(5,`path`,29)(6,`path`,30),H())}function MR(e,t){if(e&1&&(V(0,`a`,15),U(1,`img`,31),V(2,`span`,32)(3,`span`,33),Y(4,`Being built by`),H(),V(5,`strong`),Y(6),H(),V(7,`span`,34),Y(8),H()(),V(9,`span`,35),Y(10,`→`),H(),V(11,`span`,36),Y(12,`(opens in a new tab)`),H()()),e&2){let e=t,n=q();bg(`href`,`https://github.com/santoshyadavdev/angular-devtools/pull/`+n.info().pr,_u),j(),bg(`src`,`https://github.com/`+e.login+`.png?size=96`,_u),j(5),X(e.name),j(2),D_(`@`,e.login,` · PR #`,n.info().pr)}}function NR(e,t){if(e&1&&(V(0,`a`,16)(1,`span`,32)(2,`strong`),Y(3),H()(),V(4,`span`,35),Y(5,`→`),H(),V(6,`span`,36),Y(7,`(opens in a new tab)`),H()()),e&2){let e=t;bg(`href`,e.href,_u),j(3),X(e.label)}}function PR(e,t){if(e&1&&(V(0,`li`),Y(1),H()),e&2){let e=t.$implicit,n=t.$index;t_(`animation-delay`,200+n*120,`ms`),j(),X(e)}}var FR=class e{info=$.required();static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-coming-soon`]],hostVars:2,hostBindings:function(e,t){e&2&&t_(`--%NS%brand`,t.info().color)},inputs:{info:[1,`info`]},decls:29,vars:7,consts:[[`aria-labelledby`,`soon-title`,1,`soon`],[`aria-hidden`,`true`,1,`stage`],[1,`ring`,`r1`],[1,`ring`,`r2`],[1,`orbit`,`o1`],[1,`dot`],[1,`orbit`,`o2`],[1,`orbit`,`o3`],[1,`logo`],[`viewBox`,`0 0 256 256`,`width`,`96`,`height`,`96`],[`viewBox`,`0 0 256 182`,`width`,`104`,`height`,`74`],[1,`badge`],[`aria-hidden`,`true`,1,`spark`],[`id`,`soon-title`],[1,`summary`],[`target`,`_blank`,`rel`,`noopener noreferrer`,1,`author`,3,`href`],[`target`,`_blank`,`rel`,`noopener noreferrer`,1,`author`,`cta`,3,`href`],[1,`plans-title`],[1,`plans`],[3,`animation-delay`],[`fill`,`#3c5afd`,`d`,`M237.248 18.752q18.061 18.06 18.748 45.247V192c-.457 18.12-6.707 33.207-18.748 45.247c-12.04 12.04-27.127 18.291-45.251 18.752H63.999q-27.187-.69-45.247-18.752C6.712 225.208.46 210.121 0 192.001V64q.69-27.187 18.752-45.247Q36.812.692 63.999 0h127.998c18.124.46 33.211 6.711 45.251 18.752m-17.655 103q-6.033-6.003-6.28-15.066V64q-.192-9.063-6.221-15.091c-4.02-4.023-9.054-6.093-15.095-6.22h-21.312v106.626L85.315 42.687H63.999c-6.042.128-11.072 2.198-15.091 6.221c-4.023 4.02-6.093 9.05-6.22 15.09v42.688q-.249 9.063-6.281 15.066q-6.03 5.996-15.091 6.246q9.062.255 15.09 6.25c4.024 4.002 6.115 9.024 6.281 15.066V192c.128 6.037 2.198 11.072 6.221 15.091q6.03 6.03 15.09 6.22h21.317V106.687l85.37 106.627h21.312c6.041-.128 11.076-2.202 15.095-6.221s6.093-9.054 6.22-15.09v-42.688q.249-9.063 6.281-15.066q6.03-5.995 15.091-6.25q-9.062-.25-15.09-6.246`],[`fill`,`#c30f2e`,`d`,`M152.228.001L48.455 181.046H256L152.228 0z`],[`fill`,`#dd0330`,`d`,`M88.314 26.967L0 181.52h176.628L88.315 26.967z`],[`fill`,`#fff`,`d`,`M18.167 135.294h220.236v-2.419H18.167z`],[`fill`,`#fff`,`d`,`M204.38 170.667c-.861 0-1.67-.358-2.348-1.034c-4.045-4.063-4.221-20.586-4.026-45.33c.11-13.521.257-32.043-1.9-33.504c-2.104.873-2.315 16.172-2.451 26.301c-.162 11.785-.327 23.98-2.242 30.189c-.57 1.84-1.306 3.525-2.786 3.39c-2.086-.185-2.76-3.48-4.317-16.478c-.647-5.4-1.317-10.98-2.101-13.14a11 11 0 0 0-.269-.66c-.835 1.889-1.8 7.079-2.47 10.682c-.927 4.976-1.803 9.676-2.9 11.726c-.847 1.575-2.19 3.63-4.067 3.231c-2.558-.537-3.323-5.693-3.552-8.719c0-25.455-3.33-28.417-3.997-28.753l-.107.081l-.162-.036c-2.377 1.038-2.506 9.294-2.627 17.276c-.096 5.856-.198 12.492-1.053 18.701c-1.108 8.05-2.448 9.603-4.115 9.507c-3.838-.262-3.95-13.482-3.95-14.987c0-.472.012-1.028.027-1.642c.074-3.076.205-8.8-1.687-10.604c-.25-.239-.603-.515-.879-.437c-1.347.339-2.745 4.714-3.209 6.153c-.147.457-.265.833-.364 1.09c-.078.214-.177.515-.294.88c-1.02 3.095-2.18 6.183-4.16 6.944c-.732.284-1.498.222-2.216-.183c-.953-.541-1.73-1.646-2.455-3.482c-.397-1.016-.735-2.046-1.082-3.081c-.419-1.263-.85-2.569-1.384-3.808c-.419-.965-1.464-1.4-2.796-1.164c-2.768.494-3.232 3.29-3.622 7.5c-.07.733-.137 1.452-.228 2.128c-.011.198-.501 6.38-.814 8.344c-.865 5.39-2.002 7.512-3.89 7.358c-4.66-.398-6.798-20.836-6.684-29.47c.088-6.592-1.104-9-1.818-9.382c-.074-.034-.189-.096-.46.095c-.843.571-1.594 2.348-1.363 4.215c2.566 20.32.674 43.592-3.96 48.833c-1.46 1.649-3.448 1.627-4.832.236c-4.049-4.064-4.218-20.586-4.026-45.33c.11-13.521.254-32.043-1.9-33.504c-2.105.873-2.311 16.172-2.45 26.301c-.163 11.785-.329 23.98-2.246 30.189c-.57 1.84-1.307 3.525-2.782 3.39c-2.091-.186-2.761-3.48-4.321-16.478c-.649-5.4-1.319-10.98-2.101-13.14c-.1-.273-.189-.49-.27-.66c-.832 1.889-1.796 7.079-2.466 10.682c-.927 4.976-1.803 9.676-2.904 11.726c-.846 1.575-2.19 3.63-4.063 3.231c-2.558-.537-3.324-5.693-3.552-8.719c-.003-25.455-3.33-28.417-3.997-28.753l-.106.081l-.166-.036c-2.374 1.038-2.503 9.293-2.629 17.276c-.091 5.856-.194 12.492-1.048 18.701c-1.107 8.05-2.437 9.618-4.111 9.507c-3.846-.262-3.958-13.482-3.958-14.987c0-.472.016-1.028.03-1.642c.074-3.076.207-8.8-1.685-10.604c-.25-.239-.603-.515-.88-.438c-1.347.34-2.75 4.715-3.206 6.155a47 47 0 0 1-.364 1.09q-.16.432-.298.875c-1.02 3.096-2.18 6.187-4.155 6.95c-.736.282-1.506.22-2.22-.185c-.953-.541-1.734-1.646-2.454-3.482c-.398-1.016-.74-2.046-1.083-3.081c-.42-1.263-.854-2.569-1.387-3.808c-.416-.965-1.465-1.4-2.797-1.164c-3.188.567-3.943 4.52-4.55 9.238l-.106.839l-2.411-.32l.114-.824c.527-4.137 1.328-10.39 6.53-11.31c2.446-.435 4.585.581 5.446 2.583c.578 1.34 1.031 2.695 1.466 4.008c.324.99.654 1.98 1.037 2.959c.674 1.708 1.197 2.15 1.392 2.257c1.218-.38 2.462-4.167 2.873-5.414c.13-.402.24-.732.328-.968c.085-.233.195-.571.328-.98c1.097-3.43 2.474-7.144 4.918-7.762c.747-.191 1.903-.166 3.157 1.035c2.665 2.544 2.525 8.48 2.433 12.41c-.014.59-.028 1.126-.028 1.583c0 6.272.93 10.655 1.64 12.16c.367-.77.998-2.63 1.598-7.007c.831-6.066.938-12.624 1.027-18.41c.161-10.24.275-17.663 3.982-19.408c.552-.339 1.469-.522 2.436-.033c3.586 1.803 5.326 11.885 5.326 30.817c.225 2.926 1.013 6.006 1.66 6.448c.004-.066.53-.39 1.394-2.01c.925-1.718 1.845-6.665 2.655-11.026c1.792-9.614 2.606-12.989 4.726-13.166c1.615-.158 2.362 1.896 2.676 2.76c.883 2.422 1.537 7.888 2.23 13.678c.54 4.49 1.31 10.902 2.094 13.497c.084-.228.18-.5.283-.836c1.815-5.878 1.98-17.887 2.14-29.507c.22-16.14.503-26.139 3.448-28.226a2.44 2.44 0 0 1 2.233-.316c3.448 1.144 3.714 11.254 3.519 35.8c-.14 17.799-.313 39.952 3.323 43.603c.317.32.542.32.622.32c.17 0 .413-.161.67-.452c3.681-4.162 6.01-26.022 3.372-46.927c-.328-2.602.677-5.337 2.392-6.514c.946-.652 2.036-.736 2.978-.232c2.145 1.14 3.187 5.024 3.102 11.546c-.15 11.387 2.584 24.714 4.37 26.842c.282-.471.842-1.763 1.379-5.145c.301-1.87.799-8.153.806-8.216c.09-.71.155-1.398.217-2.097c.369-3.924.82-8.804 5.613-9.654c2.444-.435 4.583.577 5.448 2.583c.577 1.34 1.027 2.695 1.46 4.008c.332.99.664 1.98 1.046 2.959c.67 1.708 1.197 2.15 1.387 2.257c1.218-.38 2.467-4.167 2.875-5.41c.132-.402.243-.737.328-.973c.088-.228.195-.57.324-.979c1.1-3.43 2.477-7.144 4.924-7.762c.74-.191 1.9-.166 3.154 1.035c2.665 2.543 2.526 8.48 2.437 12.41q-.029.792-.033 1.583c0 6.272.931 10.655 1.641 12.16c.365-.77.994-2.63 1.601-7.007c.832-6.066.931-12.624 1.027-18.41c.159-10.24.273-17.663 3.98-19.408c.55-.339 1.467-.522 2.44-.033c3.58 1.803 5.325 11.884 5.325 30.817c.224 2.926 1.012 6.006 1.656 6.448c.008-.066.526-.39 1.399-2.01c.923-1.718 1.84-6.665 2.653-11.026c1.786-9.614 2.602-12.989 4.722-13.166c1.62-.158 2.367 1.896 2.68 2.76c.88 2.422 1.535 7.888 2.233 13.678c.534 4.49 1.304 10.902 2.092 13.497c.08-.228.176-.5.28-.836c1.813-5.878 1.976-17.887 2.138-29.507c.216-16.14.504-26.139 3.448-28.226a2.45 2.45 0 0 1 2.234-.316c3.452 1.144 3.718 11.254 3.52 35.8c-.141 17.799-.314 39.952 3.319 43.603c.324.32.544.32.63.32c.165 0 .408-.161.662-.452c3.687-4.162 6.014-26.022 3.375-46.927c-.342-2.723.43-5.47 1.84-6.526c.71-.537 1.575-.647 2.37-.313c2.054.877 3.445 4.63 4.255 11.484c.339 2.87.641 5.974.931 9.036c.641 6.683 1.509 15.69 2.684 17.67c.36-.46 1.096-1.704 2.19-5.038l2.307.753c-1.696 5.157-3.026 7.1-4.755 6.902c-2.69-.299-3.468-5.734-4.84-20.055c-.29-3.048-.59-6.132-.928-8.989c-1.03-8.74-2.782-9.532-2.801-9.54c-.342.174-1.137 1.992-.842 4.31c2.558 20.32.673 43.597-3.964 48.834c-.747.842-1.587 1.27-2.485 1.27`],[`fill`,`#53b9ff`,`d`,`M39.863 54.115L.311 93.716l60.995 61.179L0 216.385l39.428 39.619l61.43-61.507l61.097 61.068l39.552-39.602z`],[`fill`,`#119eff`,`d`,`m140.517 154.896l-39.658 39.601l61.097 61.069l39.552-39.602z`],[`fill-opacity`,`.2`,`d`,`m140.517 154.896l-39.658 39.601l15.267 15.182z`],[`fill`,`#53b9ff`,`d`,`M194.57 100.985L256 39.478L216.431 0l-61.412 61.384L93.917.311L54.365 39.913L216.01 201.761l39.552-39.602z`],[`fill`,`#119eff`,`d`,`m115.36 100.987l39.659-39.602L93.917.313L54.365 39.914z`],[`fill-opacity`,`.2`,`d`,`m115.359 100.985l39.659-39.601l-15.271-15.186z`],[`width`,`40`,`height`,`40`,`alt`,``,3,`src`],[1,`who`],[1,`by`],[1,`login`],[`aria-hidden`,`true`,1,`go`],[1,`sr-only`]],template:function(e,t){if(e&1&&(V(0,`section`,0)(1,`div`,1),U(2,`span`,2)(3,`span`,3),V(4,`span`,4),U(5,`span`,5),H(),V(6,`span`,6),U(7,`span`,5),H(),V(8,`span`,7),U(9,`span`,5),H(),V(10,`div`,8),N(11,kR,2,0,`:svg:svg`,9)(12,AR,5,0,`:svg:svg`,10)(13,jR,7,0,`:svg:svg`,9),H()(),V(14,`p`,11)(15,`span`,12),Y(16,`✦`),H(),Y(17),H(),V(18,`h2`,13),Y(19),H(),V(20,`p`,14),Y(21),H(),N(22,MR,13,5,`a`,15),N(23,NR,8,2,`a`,16),V(24,`h3`,17),Y(25),H(),V(26,`ul`,18),F(27,PR,2,3,`li`,19,cg),H()()),e&2){let e,n,r;j(11),P((e=t.info().id)===`nativescript`?11:e===`analog`?12:e===`capacitor`?13:-1),j(6),Z(` `,t.info().badge),j(2),X(t.info().heading),j(2),X(t.info().summary),j(),P((n=t.info().author)?22:-1,n),j(),P((r=t.info().link)?23:-1,r),j(2),Z(` `,t.info().link?`In an `+t.info().name+` app`:`On the roadmap`,` `),j(2),I(t.info().plans)}},styles:[`[_nghost-%COMP%] { +}`]})};function AR(e,t){e&1&&(ps(),V(0,`svg`,9),U(1,`path`,20),H())}function jR(e,t){e&1&&(ps(),V(0,`svg`,10),U(1,`path`,21)(2,`path`,22)(3,`path`,23)(4,`path`,24),H())}function MR(e,t){e&1&&(ps(),V(0,`svg`,9),U(1,`path`,25)(2,`path`,26)(3,`path`,27)(4,`path`,28)(5,`path`,29)(6,`path`,30),H())}function NR(e,t){if(e&1&&(V(0,`a`,15),U(1,`img`,31),V(2,`span`,32)(3,`span`,33),Y(4,`Being built by`),H(),V(5,`strong`),Y(6),H(),V(7,`span`,34),Y(8),H()(),V(9,`span`,35),Y(10,`→`),H(),V(11,`span`,36),Y(12,`(opens in a new tab)`),H()()),e&2){let e=t,n=q();xg(`href`,`https://github.com/santoshyadavdev/angular-devtools/pull/`+n.info().pr,_u),j(),xg(`src`,`https://github.com/`+e.login+`.png?size=96`,_u),j(5),X(e.name),j(2),O_(`@`,e.login,` · PR #`,n.info().pr)}}function PR(e,t){if(e&1&&(V(0,`a`,16)(1,`span`,32)(2,`strong`),Y(3),H()(),V(4,`span`,35),Y(5,`→`),H(),V(6,`span`,36),Y(7,`(opens in a new tab)`),H()()),e&2){let e=t;xg(`href`,e.href,_u),j(3),X(e.label)}}function FR(e,t){if(e&1&&(V(0,`li`),Y(1),H()),e&2){let e=t.$implicit,n=t.$index;n_(`animation-delay`,200+n*120,`ms`),j(),X(e)}}var IR=class e{info=$.required();static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-coming-soon`]],hostVars:2,hostBindings:function(e,t){e&2&&n_(`--%NS%brand`,t.info().color)},inputs:{info:[1,`info`]},decls:29,vars:7,consts:[[`aria-labelledby`,`soon-title`,1,`soon`],[`aria-hidden`,`true`,1,`stage`],[1,`ring`,`r1`],[1,`ring`,`r2`],[1,`orbit`,`o1`],[1,`dot`],[1,`orbit`,`o2`],[1,`orbit`,`o3`],[1,`logo`],[`viewBox`,`0 0 256 256`,`width`,`96`,`height`,`96`],[`viewBox`,`0 0 256 182`,`width`,`104`,`height`,`74`],[1,`badge`],[`aria-hidden`,`true`,1,`spark`],[`id`,`soon-title`],[1,`summary`],[`target`,`_blank`,`rel`,`noopener noreferrer`,1,`author`,3,`href`],[`target`,`_blank`,`rel`,`noopener noreferrer`,1,`author`,`cta`,3,`href`],[1,`plans-title`],[1,`plans`],[3,`animation-delay`],[`fill`,`#3c5afd`,`d`,`M237.248 18.752q18.061 18.06 18.748 45.247V192c-.457 18.12-6.707 33.207-18.748 45.247c-12.04 12.04-27.127 18.291-45.251 18.752H63.999q-27.187-.69-45.247-18.752C6.712 225.208.46 210.121 0 192.001V64q.69-27.187 18.752-45.247Q36.812.692 63.999 0h127.998c18.124.46 33.211 6.711 45.251 18.752m-17.655 103q-6.033-6.003-6.28-15.066V64q-.192-9.063-6.221-15.091c-4.02-4.023-9.054-6.093-15.095-6.22h-21.312v106.626L85.315 42.687H63.999c-6.042.128-11.072 2.198-15.091 6.221c-4.023 4.02-6.093 9.05-6.22 15.09v42.688q-.249 9.063-6.281 15.066q-6.03 5.996-15.091 6.246q9.062.255 15.09 6.25c4.024 4.002 6.115 9.024 6.281 15.066V192c.128 6.037 2.198 11.072 6.221 15.091q6.03 6.03 15.09 6.22h21.317V106.687l85.37 106.627h21.312c6.041-.128 11.076-2.202 15.095-6.221s6.093-9.054 6.22-15.09v-42.688q.249-9.063 6.281-15.066q6.03-5.995 15.091-6.25q-9.062-.25-15.09-6.246`],[`fill`,`#c30f2e`,`d`,`M152.228.001L48.455 181.046H256L152.228 0z`],[`fill`,`#dd0330`,`d`,`M88.314 26.967L0 181.52h176.628L88.315 26.967z`],[`fill`,`#fff`,`d`,`M18.167 135.294h220.236v-2.419H18.167z`],[`fill`,`#fff`,`d`,`M204.38 170.667c-.861 0-1.67-.358-2.348-1.034c-4.045-4.063-4.221-20.586-4.026-45.33c.11-13.521.257-32.043-1.9-33.504c-2.104.873-2.315 16.172-2.451 26.301c-.162 11.785-.327 23.98-2.242 30.189c-.57 1.84-1.306 3.525-2.786 3.39c-2.086-.185-2.76-3.48-4.317-16.478c-.647-5.4-1.317-10.98-2.101-13.14a11 11 0 0 0-.269-.66c-.835 1.889-1.8 7.079-2.47 10.682c-.927 4.976-1.803 9.676-2.9 11.726c-.847 1.575-2.19 3.63-4.067 3.231c-2.558-.537-3.323-5.693-3.552-8.719c0-25.455-3.33-28.417-3.997-28.753l-.107.081l-.162-.036c-2.377 1.038-2.506 9.294-2.627 17.276c-.096 5.856-.198 12.492-1.053 18.701c-1.108 8.05-2.448 9.603-4.115 9.507c-3.838-.262-3.95-13.482-3.95-14.987c0-.472.012-1.028.027-1.642c.074-3.076.205-8.8-1.687-10.604c-.25-.239-.603-.515-.879-.437c-1.347.339-2.745 4.714-3.209 6.153c-.147.457-.265.833-.364 1.09c-.078.214-.177.515-.294.88c-1.02 3.095-2.18 6.183-4.16 6.944c-.732.284-1.498.222-2.216-.183c-.953-.541-1.73-1.646-2.455-3.482c-.397-1.016-.735-2.046-1.082-3.081c-.419-1.263-.85-2.569-1.384-3.808c-.419-.965-1.464-1.4-2.796-1.164c-2.768.494-3.232 3.29-3.622 7.5c-.07.733-.137 1.452-.228 2.128c-.011.198-.501 6.38-.814 8.344c-.865 5.39-2.002 7.512-3.89 7.358c-4.66-.398-6.798-20.836-6.684-29.47c.088-6.592-1.104-9-1.818-9.382c-.074-.034-.189-.096-.46.095c-.843.571-1.594 2.348-1.363 4.215c2.566 20.32.674 43.592-3.96 48.833c-1.46 1.649-3.448 1.627-4.832.236c-4.049-4.064-4.218-20.586-4.026-45.33c.11-13.521.254-32.043-1.9-33.504c-2.105.873-2.311 16.172-2.45 26.301c-.163 11.785-.329 23.98-2.246 30.189c-.57 1.84-1.307 3.525-2.782 3.39c-2.091-.186-2.761-3.48-4.321-16.478c-.649-5.4-1.319-10.98-2.101-13.14c-.1-.273-.189-.49-.27-.66c-.832 1.889-1.796 7.079-2.466 10.682c-.927 4.976-1.803 9.676-2.904 11.726c-.846 1.575-2.19 3.63-4.063 3.231c-2.558-.537-3.324-5.693-3.552-8.719c-.003-25.455-3.33-28.417-3.997-28.753l-.106.081l-.166-.036c-2.374 1.038-2.503 9.293-2.629 17.276c-.091 5.856-.194 12.492-1.048 18.701c-1.107 8.05-2.437 9.618-4.111 9.507c-3.846-.262-3.958-13.482-3.958-14.987c0-.472.016-1.028.03-1.642c.074-3.076.207-8.8-1.685-10.604c-.25-.239-.603-.515-.88-.438c-1.347.34-2.75 4.715-3.206 6.155a47 47 0 0 1-.364 1.09q-.16.432-.298.875c-1.02 3.096-2.18 6.187-4.155 6.95c-.736.282-1.506.22-2.22-.185c-.953-.541-1.734-1.646-2.454-3.482c-.398-1.016-.74-2.046-1.083-3.081c-.42-1.263-.854-2.569-1.387-3.808c-.416-.965-1.465-1.4-2.797-1.164c-3.188.567-3.943 4.52-4.55 9.238l-.106.839l-2.411-.32l.114-.824c.527-4.137 1.328-10.39 6.53-11.31c2.446-.435 4.585.581 5.446 2.583c.578 1.34 1.031 2.695 1.466 4.008c.324.99.654 1.98 1.037 2.959c.674 1.708 1.197 2.15 1.392 2.257c1.218-.38 2.462-4.167 2.873-5.414c.13-.402.24-.732.328-.968c.085-.233.195-.571.328-.98c1.097-3.43 2.474-7.144 4.918-7.762c.747-.191 1.903-.166 3.157 1.035c2.665 2.544 2.525 8.48 2.433 12.41c-.014.59-.028 1.126-.028 1.583c0 6.272.93 10.655 1.64 12.16c.367-.77.998-2.63 1.598-7.007c.831-6.066.938-12.624 1.027-18.41c.161-10.24.275-17.663 3.982-19.408c.552-.339 1.469-.522 2.436-.033c3.586 1.803 5.326 11.885 5.326 30.817c.225 2.926 1.013 6.006 1.66 6.448c.004-.066.53-.39 1.394-2.01c.925-1.718 1.845-6.665 2.655-11.026c1.792-9.614 2.606-12.989 4.726-13.166c1.615-.158 2.362 1.896 2.676 2.76c.883 2.422 1.537 7.888 2.23 13.678c.54 4.49 1.31 10.902 2.094 13.497c.084-.228.18-.5.283-.836c1.815-5.878 1.98-17.887 2.14-29.507c.22-16.14.503-26.139 3.448-28.226a2.44 2.44 0 0 1 2.233-.316c3.448 1.144 3.714 11.254 3.519 35.8c-.14 17.799-.313 39.952 3.323 43.603c.317.32.542.32.622.32c.17 0 .413-.161.67-.452c3.681-4.162 6.01-26.022 3.372-46.927c-.328-2.602.677-5.337 2.392-6.514c.946-.652 2.036-.736 2.978-.232c2.145 1.14 3.187 5.024 3.102 11.546c-.15 11.387 2.584 24.714 4.37 26.842c.282-.471.842-1.763 1.379-5.145c.301-1.87.799-8.153.806-8.216c.09-.71.155-1.398.217-2.097c.369-3.924.82-8.804 5.613-9.654c2.444-.435 4.583.577 5.448 2.583c.577 1.34 1.027 2.695 1.46 4.008c.332.99.664 1.98 1.046 2.959c.67 1.708 1.197 2.15 1.387 2.257c1.218-.38 2.467-4.167 2.875-5.41c.132-.402.243-.737.328-.973c.088-.228.195-.57.324-.979c1.1-3.43 2.477-7.144 4.924-7.762c.74-.191 1.9-.166 3.154 1.035c2.665 2.543 2.526 8.48 2.437 12.41q-.029.792-.033 1.583c0 6.272.931 10.655 1.641 12.16c.365-.77.994-2.63 1.601-7.007c.832-6.066.931-12.624 1.027-18.41c.159-10.24.273-17.663 3.98-19.408c.55-.339 1.467-.522 2.44-.033c3.58 1.803 5.325 11.884 5.325 30.817c.224 2.926 1.012 6.006 1.656 6.448c.008-.066.526-.39 1.399-2.01c.923-1.718 1.84-6.665 2.653-11.026c1.786-9.614 2.602-12.989 4.722-13.166c1.62-.158 2.367 1.896 2.68 2.76c.88 2.422 1.535 7.888 2.233 13.678c.534 4.49 1.304 10.902 2.092 13.497c.08-.228.176-.5.28-.836c1.813-5.878 1.976-17.887 2.138-29.507c.216-16.14.504-26.139 3.448-28.226a2.45 2.45 0 0 1 2.234-.316c3.452 1.144 3.718 11.254 3.52 35.8c-.141 17.799-.314 39.952 3.319 43.603c.324.32.544.32.63.32c.165 0 .408-.161.662-.452c3.687-4.162 6.014-26.022 3.375-46.927c-.342-2.723.43-5.47 1.84-6.526c.71-.537 1.575-.647 2.37-.313c2.054.877 3.445 4.63 4.255 11.484c.339 2.87.641 5.974.931 9.036c.641 6.683 1.509 15.69 2.684 17.67c.36-.46 1.096-1.704 2.19-5.038l2.307.753c-1.696 5.157-3.026 7.1-4.755 6.902c-2.69-.299-3.468-5.734-4.84-20.055c-.29-3.048-.59-6.132-.928-8.989c-1.03-8.74-2.782-9.532-2.801-9.54c-.342.174-1.137 1.992-.842 4.31c2.558 20.32.673 43.597-3.964 48.834c-.747.842-1.587 1.27-2.485 1.27`],[`fill`,`#53b9ff`,`d`,`M39.863 54.115L.311 93.716l60.995 61.179L0 216.385l39.428 39.619l61.43-61.507l61.097 61.068l39.552-39.602z`],[`fill`,`#119eff`,`d`,`m140.517 154.896l-39.658 39.601l61.097 61.069l39.552-39.602z`],[`fill-opacity`,`.2`,`d`,`m140.517 154.896l-39.658 39.601l15.267 15.182z`],[`fill`,`#53b9ff`,`d`,`M194.57 100.985L256 39.478L216.431 0l-61.412 61.384L93.917.311L54.365 39.913L216.01 201.761l39.552-39.602z`],[`fill`,`#119eff`,`d`,`m115.36 100.987l39.659-39.602L93.917.313L54.365 39.914z`],[`fill-opacity`,`.2`,`d`,`m115.359 100.985l39.659-39.601l-15.271-15.186z`],[`width`,`40`,`height`,`40`,`alt`,``,3,`src`],[1,`who`],[1,`by`],[1,`login`],[`aria-hidden`,`true`,1,`go`],[1,`sr-only`]],template:function(e,t){if(e&1&&(V(0,`section`,0)(1,`div`,1),U(2,`span`,2)(3,`span`,3),V(4,`span`,4),U(5,`span`,5),H(),V(6,`span`,6),U(7,`span`,5),H(),V(8,`span`,7),U(9,`span`,5),H(),V(10,`div`,8),N(11,AR,2,0,`:svg:svg`,9)(12,jR,5,0,`:svg:svg`,10)(13,MR,7,0,`:svg:svg`,9),H()(),V(14,`p`,11)(15,`span`,12),Y(16,`✦`),H(),Y(17),H(),V(18,`h2`,13),Y(19),H(),V(20,`p`,14),Y(21),H(),N(22,NR,13,5,`a`,15),N(23,PR,8,2,`a`,16),V(24,`h3`,17),Y(25),H(),V(26,`ul`,18),F(27,FR,2,3,`li`,19,lg),H()()),e&2){let e,n,r;j(11),P((e=t.info().id)===`nativescript`?11:e===`analog`?12:e===`capacitor`?13:-1),j(6),Z(` `,t.info().badge),j(2),X(t.info().heading),j(2),X(t.info().summary),j(),P((n=t.info().author)?22:-1,n),j(),P((r=t.info().link)?23:-1,r),j(2),Z(` `,t.info().link?`In an `+t.info().name+` app`:`On the roadmap`,` `),j(2),I(t.info().plans)}},styles:[`[_nghost-%COMP%] { display: block; min-height: 100%; background: radial-gradient(60% 50% at 50% 18%, color-mix(in srgb, var(--%NS%brand) 22%, transparent), transparent 70%); @@ -11375,7 +11375,7 @@ h2[_ngcontent-%COMP%] { .author[_ngcontent-%COMP%]:hover .go[_ngcontent-%COMP%] { transform: none; } -}`]})},IR=` +}`]})},LR=` .devframes-dock-entry button { transition: opacity 0.2s, filter 0.2s, background-color 0.2s, transform 0.3s; } @@ -11406,7 +11406,7 @@ h2[_ngcontent-%COMP%] { transition: none; } } -`;function LR(e,t=50){let n=e?.querySelector(`devframes-dock-standalone`)?.shadowRoot;if(n){if(n.querySelector(`style[data-ng-devtools]`))return;let t=e.createElement(`style`);t.dataset.ngDevtools=``,t.textContent=IR,n.append(t);return}t>0&&setTimeout(()=>LR(e,t-1),100)}var RR=`__DEVFRAME_HUB_CLIENT_CONTEXT__`,zR=`ng-devtools:`;function BR(){try{return window.parent===window?void 0:window.parent[RR]}catch{return}}function VR(e,t,n=50){let r=BR();if(!r){if(n<=0||window.parent===window)return()=>{};let r=()=>{},i=setTimeout(()=>r=VR(e,t,n-1),100);return()=>{clearTimeout(i),r()}}let i=e.map(e=>r.docks.getStateById(zR+e)?.events.on(`entry:activated`,()=>t(e))??(()=>{})),a=r.docks.selectedId,o=e.find(e=>zR+e===a);return o&&t(o),()=>i.forEach(e=>e())}async function HR(e){let t=BR();if(!t)return!1;try{return await t.docks.switchEntry(zR+e)}catch{return!1}}var UR=[`nav`],WR=[`main`],GR=(e,t)=>t.id;function KR(e,t){e&1&&(ps(),R(0,`svg`,4),B(1,`path`,16),z())}function qR(e,t){e&1&&(ps(),R(0,`svg`,4),B(1,`path`,17)(2,`path`,18)(3,`path`,19)(4,`path`,20)(5,`path`,21)(6,`path`,22),z())}function JR(e,t){e&1&&(ps(),R(0,`svg`,5),B(1,`path`,23)(2,`path`,24)(3,`path`,25)(4,`path`,26),z())}function YR(e,t){e&1&&(ps(),R(0,`svg`,6),B(1,`path`,27),z())}function XR(e,t){e&1&&(ps(),R(0,`svg`,7)(1,`defs`)(2,`linearGradient`,28),B(3,`stop`,29)(4,`stop`,30)(5,`stop`,31)(6,`stop`,32)(7,`stop`,33)(8,`stop`,34),z()(),B(9,`path`,35),z())}function ZR(e,t){e&1&&(ps(),R(0,`svg`,8),B(1,`path`,36),z())}function QR(e,t){if(e&1){let e=W();R(0,`button`,38),G(`click`,function(){let t=O(e).$implicit;return k(q(2).switchTab(t.id))}),B(1,`app-tab-icon`,39),R(2,`span`),Y(3),z()()}if(e&2){let e=t.$implicit,n=q(2);J(`active`,n.tab()===e.id),M(`aria-current`,n.tab()===e.id?`page`:null),j(),L(`name`,e.id),j(2),X(e.label)}}function $R(e,t){e&1&&F(0,QR,4,5,`button`,37,GR),e&2&&I(q().tabs())}function ez(e,t){e&1&&(R(0,`p`,14),Y(1,` Can't reach the devtools server. Check that the dev server is running, then reload. `),z())}function tz(e,t){e&1&&B(0,`app-coming-soon`,15),e&2&&L(`info`,t)}function nz(e,t){if(e&1){let e=W();R(0,`app-dashboard`,42),G(`navigate`,function(t){return O(e),k(q(2).switchTab(t))}),z()}e&2&&L(`rpc`,q(2).rpc())}function rz(e,t){if(e&1){let e=W();R(0,`app-component-tree`,43),G(`showForm`,function(t){return O(e),k(q(2).showForm(t))}),z()}e&2&&L(`rpc`,q(2).rpc())}function iz(e,t){e&1&&B(0,`app-route-inspector`,40),e&2&&L(`rpc`,q(2).rpc())}function az(e,t){e&1&&B(0,`app-signal-inspector`,40),e&2&&L(`rpc`,q(2).rpc())}function oz(e,t){e&1&&B(0,`app-di-inspector`,40),e&2&&L(`rpc`,q(2).rpc())}function sz(e,t){e&1&&B(0,`app-store-inspector`,40),e&2&&L(`rpc`,q(2).rpc())}function cz(e,t){e&1&&B(0,`app-network-inspector`,40),e&2&&L(`rpc`,q(2).rpc())}function lz(e,t){if(e&1){let e=W();R(0,`app-forms-inspector`,44),G(`focusHandled`,function(){return O(e),k(q(2).formFocus.set(null))}),z()}if(e&2){let e=q(2);L(`rpc`,e.rpc())(`focus`,e.formFocus())}}function uz(e,t){e&1&&B(0,`app-pipes-inspector`,40),e&2&&L(`rpc`,q(2).rpc())}function dz(e,t){e&1&&B(0,`app-analog-inspector`,40),e&2&&L(`rpc`,q(2).rpc())}function fz(e,t){if(e&1&&N(0,nz,1,1,`app-dashboard`,40)(1,rz,1,1,`app-component-tree`,40)(2,iz,1,1,`app-route-inspector`,40)(3,az,1,1,`app-signal-inspector`,40)(4,oz,1,1,`app-di-inspector`,40)(5,sz,1,1,`app-store-inspector`,40)(6,cz,1,1,`app-network-inspector`,40)(7,lz,1,2,`app-forms-inspector`,41)(8,uz,1,1,`app-pipes-inspector`,40)(9,dz,1,1,`app-analog-inspector`,40),e&2){let e;P((e=q().tab())===`dashboard`?0:e===`components`?1:e===`routes`?2:e===`signals`?3:e===`injectors`?4:e===`store`?5:e===`network`?6:e===`forms`?7:e===`pipes`?8:e===`analog`?9:-1)}}var pz=[`angular`,`ngrx`,`analog`,`nativescript`,`capacitor`],mz={angular:`Angular`,ngrx:`NgRx Store`,analog:`Analog`,nativescript:`NativeScript`,capacitor:`Capacitor`},hz={ngrx:`#d770e8`,analog:`#ff5470`,nativescript:`#8196ff`,capacitor:`#53b9ff`},gz={ngrx:`store`,analog:`analog`},_z={store:`ngrx`,analog:`analog`},vz={nativescript:{id:`nativescript`,name:`NativeScript`,badge:`Coming Soon`,heading:`NativeScript Support`,summary:`Inspect NativeScript Angular apps running natively on iOS and Android, with the same tools.`,color:`#3c5afd`,plans:[`Native overlay that reports the component tree from the device`,`Standalone devtools server your phone or simulator connects to`,`Example NativeScript app to try it end to end`],pr:16,author:{name:`Nathan Walker`,login:`NathanWalker`}},capacitor:{id:`capacitor`,name:`Capacitor`,badge:`Coming Soon`,heading:`Capacitor Support`,summary:`Connect Ionic and Capacitor apps running in a device WebView back to these tools.`,color:`#119eff`,plans:[`Manual overlay start for apps that load from capacitor:// or a device`,`Connection settings passed in, no cross-origin probing`,`Setup guides for the Android emulator and iOS simulator`],pr:21,author:{name:`Erkam Yaman`,login:`erkamyaman`}}},yz={id:`analog`,name:`Analog`,badge:`Not in this app`,heading:`This app doesn’t use Analog`,summary:`In an Analog app this dock shows your file routes, server load() and API calls, render modes and route lint.`,color:`#dd0330`,plans:[`Which page, layout and .server.ts files render a URL`,`Every load(), server function and API call with timing`,`SSR, prerendered or client only, per page`],link:{label:`Get started with Analog`,href:`https://analogjs.org/docs/getting-started`}};function bz(){let e=new URLSearchParams(location.search).get(`view`);return pz.find(t=>t===e)??null}var xz=class e{analog=A(!1);allTabs=[{id:`dashboard`,label:`Dashboard`},{id:`analog`,label:`Analog`},{id:`components`,label:`Components`},{id:`routes`,label:`Routes`},{id:`signals`,label:`Signals`},{id:`injectors`,label:`Injectors`},{id:`store`,label:`Store`},{id:`forms`,label:`Forms`},{id:`pipes`,label:`Pipes`},{id:`network`,label:`SSR & HTTP`}];view=A(bz());viewAccent=Q(()=>{let e=this.view();return(e&&hz[e])??null});title=Q(()=>{let e=this.view();return e?mz[e]:`Angular DevTools`});analogKnown=A(!1);comingSoon=Q(()=>{let e=this.view();return e===`analog`?this.analogKnown()&&!this.analog()?yz:void 0:e?vz[e]:void 0});tabs=Q(()=>{if(this.comingSoon())return[];let e=this.view(),t=e?gz[e]:void 0;return t?this.allTabs.filter(e=>e.id===t):this.allTabs.filter(t=>(t.id!==`analog`||this.analog())&&!(e===`angular`&&_z[t.id]))});tab=tv(()=>{let e=this.view();return e&&gz[e]||`dashboard`});rpc=A(null);connected=A(!1);connectionFailed=A(!1);stopFollowing=()=>{};nav=mv(`nav`);main=mv(`main`);injector=E(Ss);navObserver;navFade=A({start:!1,end:!1});constructor(){Cd(()=>{let e=this.nav()?.nativeElement;e&&typeof ResizeObserver<`u`&&(this.navObserver=new ResizeObserver(()=>this.measureNav()),this.navObserver.observe(e))}),Av(()=>{this.tab(),this.tabs(),$_(()=>{this.revealActiveTab(),this.measureNav()})})}measureNav(){let e=this.nav()?.nativeElement;if(!e)return;let t=e.scrollWidth-e.clientWidth,n=e.scrollLeft>1,r=t>1&&e.scrollLeftn?e.scrollLeft=Math.max(0,n):e.scrollLeftthis.showView(e)));try{window.parent!==window&&LR(window.parent.document)}catch{}let e=new URLSearchParams(location.hash.replace(/^#/,``)).get(`tab`);e&&this.tabs().some(t=>t.id===e)&&this.tab.set(e);let t=Tz();iT(t?{baseURL:t}:{}).then(e=>{this.rpc.set(e),this.connected.set(!0),e.scope(`ng-devtools`).rpc.call(`analog-project`).then(e=>{let t=!!e?.analog;this.analog.set(t),this.analogKnown.set(!0),!t&&this.tab()===`analog`&&!this.view()&&this.tab.set(`dashboard`)},()=>{this.analogKnown.set(!0),this.tab()===`analog`&&!this.view()&&this.tab.set(`dashboard`)}),e.events.on(`connection:status`,e=>{this.connected.set(e===`connected`)})},()=>{this.connectionFailed.set(!0),this.analogKnown.set(!0)})}ngOnDestroy(){this.stopFollowing(),this.navObserver?.disconnect()}showView(e){if(e===this.view())return;this.view.set(e);let t=new URL(location.href);t.searchParams.set(`view`,e),t.hash=``,history.replaceState(history.state,``,t)}formFocus=A(null);showForm(e){this.formFocus.set({id:e}),this.switchTab(`forms`)}switchTab(e){let t=_z[e];if(this.view()===`angular`&&t){this.activateDock(t,e);return}this.setTab(e),history.replaceState(history.state,``,`#tab=${e}`)}setTab(e){this.keepFocus(),this.tab.set(e)}keepFocus(){let e=document.activeElement,t=this.main()?.nativeElement;(!e||e===document.body||t?.contains(e))&&Cd(()=>{let e=document.activeElement;e&&e!==document.body||(this.nav()?.nativeElement.querySelector(`button.active`)??this.main()?.nativeElement)?.focus()},{injector:this.injector})}async activateDock(e,t){if(await HR(e))return;if(window.parent===window){this.keepFocus(),this.showView(e);return}let n=this.rpc();if(!n?.call){this.setTab(t);return}try{await n.call(`hub:docks:activate`,{dockId:`ng-devtools:${e}`}),this.keepFocus(),this.showView(e)}catch{this.setTab(t)}}static ɵfac=function(t){return new(t||e)};static ɵcmp=Dh({type:e,selectors:[[`app-root`]],viewQuery:function(e,t){e&1&&Mg(t.nav,UR,5)(t.main,WR,5),e&2&&Ng(2)},hostVars:2,hostBindings:function(e,t){e&2&&t_(`--%NS%accent`,t.viewAccent())},decls:23,vars:17,consts:[[`nav`,``],[`main`,``],[1,`brand`],[1,`mark`],[`width`,`22`,`height`,`22`,`viewBox`,`0 0 256 256`,`aria-hidden`,`true`],[`width`,`24`,`height`,`17`,`viewBox`,`0 0 256 182`,`aria-hidden`,`true`],[`width`,`22`,`height`,`22`,`viewBox`,`0 0 24 24`,`fill`,`currentColor`,`aria-hidden`,`true`],[`width`,`20`,`height`,`22`,`viewBox`,`0 0 223 236`,`aria-hidden`,`true`],[`width`,`20`,`height`,`22`,`viewBox`,`0 0 223 236`,`fill`,`currentColor`,`aria-hidden`,`true`],[1,`title`],[`aria-label`,`Inspectors`,3,`scroll`],[`role`,`status`,1,`status`],[`aria-hidden`,`true`,1,`dot`],[`tabindex`,`-1`],[`role`,`alert`,1,`connection-error`],[3,`info`],[`fill`,`#3c5afd`,`d`,`M237.248 18.752q18.061 18.06 18.748 45.247V192c-.457 18.12-6.707 33.207-18.748 45.247c-12.04 12.04-27.127 18.291-45.251 18.752H63.999q-27.187-.69-45.247-18.752C6.712 225.208.46 210.121 0 192.001V64q.69-27.187 18.752-45.247Q36.812.692 63.999 0h127.998c18.124.46 33.211 6.711 45.251 18.752m-17.655 103q-6.033-6.003-6.28-15.066V64q-.192-9.063-6.221-15.091c-4.02-4.023-9.054-6.093-15.095-6.22h-21.312v106.626L85.315 42.687H63.999c-6.042.128-11.072 2.198-15.091 6.221c-4.023 4.02-6.093 9.05-6.22 15.09v42.688q-.249 9.063-6.281 15.066q-6.03 5.996-15.091 6.246q9.062.255 15.09 6.25c4.024 4.002 6.115 9.024 6.281 15.066V192c.128 6.037 2.198 11.072 6.221 15.091q6.03 6.03 15.09 6.22h21.317V106.687l85.37 106.627h21.312c6.041-.128 11.076-2.202 15.095-6.221s6.093-9.054 6.22-15.09v-42.688q.249-9.063 6.281-15.066q6.03-5.995 15.091-6.25q-9.062-.25-15.09-6.246`],[`fill`,`#53b9ff`,`d`,`M39.863 54.115L.311 93.716l60.995 61.179L0 216.385l39.428 39.619l61.43-61.507l61.097 61.068l39.552-39.602z`],[`fill`,`#119eff`,`d`,`m140.517 154.896l-39.658 39.601l61.097 61.069l39.552-39.602z`],[`fill-opacity`,`.2`,`d`,`m140.517 154.896l-39.658 39.601l15.267 15.182z`],[`fill`,`#53b9ff`,`d`,`M194.57 100.985L256 39.478L216.431 0l-61.412 61.384L93.917.311L54.365 39.913L216.01 201.761l39.552-39.602z`],[`fill`,`#119eff`,`d`,`m115.36 100.987l39.659-39.602L93.917.313L54.365 39.914z`],[`fill-opacity`,`.2`,`d`,`m115.359 100.985l39.659-39.601l-15.271-15.186z`],[`fill`,`#c30f2e`,`d`,`M152.228.001L48.455 181.046H256L152.228 0z`],[`fill`,`#dd0330`,`d`,`M88.314 26.967L0 181.52h176.628L88.315 26.967z`],[`fill`,`#fff`,`d`,`M18.167 135.294h220.236v-2.419H18.167z`],[`fill`,`#fff`,`d`,`M204.38 170.667c-.861 0-1.67-.358-2.348-1.034c-4.045-4.063-4.221-20.586-4.026-45.33c.11-13.521.257-32.043-1.9-33.504c-2.104.873-2.315 16.172-2.451 26.301c-.162 11.785-.327 23.98-2.242 30.189c-.57 1.84-1.306 3.525-2.786 3.39c-2.086-.185-2.76-3.48-4.317-16.478c-.647-5.4-1.317-10.98-2.101-13.14a11 11 0 0 0-.269-.66c-.835 1.889-1.8 7.079-2.47 10.682c-.927 4.976-1.803 9.676-2.9 11.726c-.847 1.575-2.19 3.63-4.067 3.231c-2.558-.537-3.323-5.693-3.552-8.719c0-25.455-3.33-28.417-3.997-28.753l-.107.081l-.162-.036c-2.377 1.038-2.506 9.294-2.627 17.276c-.096 5.856-.198 12.492-1.053 18.701c-1.108 8.05-2.448 9.603-4.115 9.507c-3.838-.262-3.95-13.482-3.95-14.987c0-.472.012-1.028.027-1.642c.074-3.076.205-8.8-1.687-10.604c-.25-.239-.603-.515-.879-.437c-1.347.339-2.745 4.714-3.209 6.153c-.147.457-.265.833-.364 1.09c-.078.214-.177.515-.294.88c-1.02 3.095-2.18 6.183-4.16 6.944c-.732.284-1.498.222-2.216-.183c-.953-.541-1.73-1.646-2.455-3.482c-.397-1.016-.735-2.046-1.082-3.081c-.419-1.263-.85-2.569-1.384-3.808c-.419-.965-1.464-1.4-2.796-1.164c-2.768.494-3.232 3.29-3.622 7.5c-.07.733-.137 1.452-.228 2.128c-.011.198-.501 6.38-.814 8.344c-.865 5.39-2.002 7.512-3.89 7.358c-4.66-.398-6.798-20.836-6.684-29.47c.088-6.592-1.104-9-1.818-9.382c-.074-.034-.189-.096-.46.095c-.843.571-1.594 2.348-1.363 4.215c2.566 20.32.674 43.592-3.96 48.833c-1.46 1.649-3.448 1.627-4.832.236c-4.049-4.064-4.218-20.586-4.026-45.33c.11-13.521.254-32.043-1.9-33.504c-2.105.873-2.311 16.172-2.45 26.301c-.163 11.785-.329 23.98-2.246 30.189c-.57 1.84-1.307 3.525-2.782 3.39c-2.091-.186-2.761-3.48-4.321-16.478c-.649-5.4-1.319-10.98-2.101-13.14c-.1-.273-.189-.49-.27-.66c-.832 1.889-1.796 7.079-2.466 10.682c-.927 4.976-1.803 9.676-2.904 11.726c-.846 1.575-2.19 3.63-4.063 3.231c-2.558-.537-3.324-5.693-3.552-8.719c-.003-25.455-3.33-28.417-3.997-28.753l-.106.081l-.166-.036c-2.374 1.038-2.503 9.293-2.629 17.276c-.091 5.856-.194 12.492-1.048 18.701c-1.107 8.05-2.437 9.618-4.111 9.507c-3.846-.262-3.958-13.482-3.958-14.987c0-.472.016-1.028.03-1.642c.074-3.076.207-8.8-1.685-10.604c-.25-.239-.603-.515-.88-.438c-1.347.34-2.75 4.715-3.206 6.155a47 47 0 0 1-.364 1.09q-.16.432-.298.875c-1.02 3.096-2.18 6.187-4.155 6.95c-.736.282-1.506.22-2.22-.185c-.953-.541-1.734-1.646-2.454-3.482c-.398-1.016-.74-2.046-1.083-3.081c-.42-1.263-.854-2.569-1.387-3.808c-.416-.965-1.465-1.4-2.797-1.164c-3.188.567-3.943 4.52-4.55 9.238l-.106.839l-2.411-.32l.114-.824c.527-4.137 1.328-10.39 6.53-11.31c2.446-.435 4.585.581 5.446 2.583c.578 1.34 1.031 2.695 1.466 4.008c.324.99.654 1.98 1.037 2.959c.674 1.708 1.197 2.15 1.392 2.257c1.218-.38 2.462-4.167 2.873-5.414c.13-.402.24-.732.328-.968c.085-.233.195-.571.328-.98c1.097-3.43 2.474-7.144 4.918-7.762c.747-.191 1.903-.166 3.157 1.035c2.665 2.544 2.525 8.48 2.433 12.41c-.014.59-.028 1.126-.028 1.583c0 6.272.93 10.655 1.64 12.16c.367-.77.998-2.63 1.598-7.007c.831-6.066.938-12.624 1.027-18.41c.161-10.24.275-17.663 3.982-19.408c.552-.339 1.469-.522 2.436-.033c3.586 1.803 5.326 11.885 5.326 30.817c.225 2.926 1.013 6.006 1.66 6.448c.004-.066.53-.39 1.394-2.01c.925-1.718 1.845-6.665 2.655-11.026c1.792-9.614 2.606-12.989 4.726-13.166c1.615-.158 2.362 1.896 2.676 2.76c.883 2.422 1.537 7.888 2.23 13.678c.54 4.49 1.31 10.902 2.094 13.497c.084-.228.18-.5.283-.836c1.815-5.878 1.98-17.887 2.14-29.507c.22-16.14.503-26.139 3.448-28.226a2.44 2.44 0 0 1 2.233-.316c3.448 1.144 3.714 11.254 3.519 35.8c-.14 17.799-.313 39.952 3.323 43.603c.317.32.542.32.622.32c.17 0 .413-.161.67-.452c3.681-4.162 6.01-26.022 3.372-46.927c-.328-2.602.677-5.337 2.392-6.514c.946-.652 2.036-.736 2.978-.232c2.145 1.14 3.187 5.024 3.102 11.546c-.15 11.387 2.584 24.714 4.37 26.842c.282-.471.842-1.763 1.379-5.145c.301-1.87.799-8.153.806-8.216c.09-.71.155-1.398.217-2.097c.369-3.924.82-8.804 5.613-9.654c2.444-.435 4.583.577 5.448 2.583c.577 1.34 1.027 2.695 1.46 4.008c.332.99.664 1.98 1.046 2.959c.67 1.708 1.197 2.15 1.387 2.257c1.218-.38 2.467-4.167 2.875-5.41c.132-.402.243-.737.328-.973c.088-.228.195-.57.324-.979c1.1-3.43 2.477-7.144 4.924-7.762c.74-.191 1.9-.166 3.154 1.035c2.665 2.543 2.526 8.48 2.437 12.41q-.029.792-.033 1.583c0 6.272.931 10.655 1.641 12.16c.365-.77.994-2.63 1.601-7.007c.832-6.066.931-12.624 1.027-18.41c.159-10.24.273-17.663 3.98-19.408c.55-.339 1.467-.522 2.44-.033c3.58 1.803 5.325 11.884 5.325 30.817c.224 2.926 1.012 6.006 1.656 6.448c.008-.066.526-.39 1.399-2.01c.923-1.718 1.84-6.665 2.653-11.026c1.786-9.614 2.602-12.989 4.722-13.166c1.62-.158 2.367 1.896 2.68 2.76c.88 2.422 1.535 7.888 2.233 13.678c.534 4.49 1.304 10.902 2.092 13.497c.08-.228.176-.5.28-.836c1.813-5.878 1.976-17.887 2.138-29.507c.216-16.14.504-26.139 3.448-28.226a2.45 2.45 0 0 1 2.234-.316c3.452 1.144 3.718 11.254 3.52 35.8c-.141 17.799-.314 39.952 3.319 43.603c.324.32.544.32.63.32c.165 0 .408-.161.662-.452c3.687-4.162 6.014-26.022 3.375-46.927c-.342-2.723.43-5.47 1.84-6.526c.71-.537 1.575-.647 2.37-.313c2.054.877 3.445 4.63 4.255 11.484c.339 2.87.641 5.974.931 9.036c.641 6.683 1.509 15.69 2.684 17.67c.36-.46 1.096-1.704 2.19-5.038l2.307.753c-1.696 5.157-3.026 7.1-4.755 6.902c-2.69-.299-3.468-5.734-4.84-20.055c-.29-3.048-.59-6.132-.928-8.989c-1.03-8.74-2.782-9.532-2.801-9.54c-.342.174-1.137 1.992-.842 4.31c2.558 20.32.673 43.597-3.964 48.834c-.747.842-1.587 1.27-2.485 1.27`],[`d`,`M12.024.017V0L12 .008L11.976 0v.017L.812 3.892l1.605 14.875l9.559 5.207V24l.024-.013l.024.013v-.026l9.559-5.207l1.605-14.875zm6.868 14.244q-1.64 3.948-6.031 4.166c-2.829 0-4.661-1.7-4.66-1.7q-1.745-1.359-2.398-3.417c-.695-.76-.702-.841-.774-1.145c-.072-.303.045-.388.249-.685q.204-.298.098-.85q-.26-.36-.3-1.128q0-.37.496-.783q.495-.413.607-.632q.083-.119.065-1.031q-.006-.897.995-.975c1-.08 1.565-.832 1.879-1.174c.21-.228.52-.339.91-.341c.551-.026 1.052.185 1.484.62c1.075-.055 2.176.235 3.292.863q2.379 1.414 2.596 3.055q-.257 2.158-5.788-.113q-2.895.819-2.846 3.552q0 2.508 2.422 3.643c-.787-.772-1.122-1.422-1.01-1.959q2.456 2.906 5.588 2.173c-.92.032-1.65-.264-2.198-.893q2.116-.05 3.998-1.972c-.724.576-1.482.794-2.284.657q3.26-2.563 2.307-5.98l-.002-.006a3.02 3.02 0 0 1 .788 2.03q.023 1.175-.795 2.477q.613-.478 1.413-2.047c.23 2.117-.625 3.724-2.574 4.825q.934-.085 2.473-1.23m-5.567-6.63a.319.319 0 1 1 .638 0a.319.319 0 0 1-.638 0`],[`id`,`ng-grad`,`x1`,`49`,`x2`,`226`,`y1`,`214`,`y2`,`130`,`gradientUnits`,`userSpaceOnUse`],[`stop-color`,`#E40035`],[`offset`,`.24`,`stop-color`,`#F60A48`],[`offset`,`.352`,`stop-color`,`#F20755`],[`offset`,`.494`,`stop-color`,`#DC087D`],[`offset`,`.745`,`stop-color`,`#9717E7`],[`offset`,`1`,`stop-color`,`#6C00F5`],[`fill`,`url(#ng-grad)`,`d`,`m222.077 39.192-8.019 125.923L137.387 0l84.69 39.192Zm-53.105 162.825-57.933 33.056-57.934-33.056 11.783-28.556h92.301l11.783 28.556ZM111.039 62.675l30.357 73.803H80.681l30.358-73.803ZM7.937 165.115 0 39.192 84.69 0 7.937 165.115Z`],[`d`,`m222.077 39.192-8.019 125.923L137.387 0l84.69 39.192Zm-53.105 162.825-57.933 33.056-57.934-33.056 11.783-28.556h92.301l11.783 28.556ZM111.039 62.675l30.357 73.803H80.681l30.358-73.803ZM7.937 165.115 0 39.192 84.69 0 7.937 165.115Z`],[`type`,`button`,3,`active`],[`type`,`button`,3,`click`],[3,`name`],[3,`rpc`],[3,`rpc`,`focus`],[3,`navigate`,`rpc`],[3,`showForm`,`rpc`],[3,`focusHandled`,`rpc`,`focus`]],template:function(e,t){if(e&1&&(R(0,`header`)(1,`h1`,2)(2,`span`,3),N(3,KR,2,0,`:svg:svg`,4)(4,qR,7,0,`:svg:svg`,4)(5,JR,5,0,`:svg:svg`,5)(6,YR,2,0,`:svg:svg`,6)(7,XR,10,0,`:svg:svg`,7)(8,ZR,2,0,`:svg:svg`,8),z(),R(9,`span`,9),Y(10),z()(),R(11,`nav`,10,0),G(`scroll`,function(){return t.measureNav()}),N(13,$R,2,0),z(),R(14,`span`,11)(15,`span`,12),B(16,`span`),z(),Y(17),z()(),R(18,`main`,13,1),N(20,ez,2,0,`p`,14)(21,tz,1,1,`app-coming-soon`,15)(22,fz,10,1),z()),e&2){let e;j(2),J(`ng-mark`,t.view()===`angular`),j(),P(t.view()===`nativescript`?3:t.view()===`capacitor`?4:t.view()===`analog`?5:t.view()===`ngrx`?6:t.view()===`angular`?7:8),j(6),J(`ng-text`,t.view()===`angular`),j(),X(t.title()),j(),J(`fade-start`,t.navFade().start)(`fade-end`,t.navFade().end),j(2),P(t.tabs().length>1?13:-1),j(),J(`connected`,t.connected())(`failed`,t.connectionFailed()),j(3),Z(` `,t.connected()?`Live`:t.connectionFailed()?`Disconnected`:`Connecting…`,` `),j(3),P(t.connectionFailed()?20:(e=t.comingSoon())?21:22,e)}},dependencies:[IT,GE,sA,qA,$j,pN,rF,$F,zL,OR,FR,_T],styles:[`[_nghost-%COMP%] { +`;function RR(e,t=50){let n=e?.querySelector(`devframes-dock-standalone`)?.shadowRoot;if(n){if(n.querySelector(`style[data-ng-devtools]`))return;let t=e.createElement(`style`);t.dataset.ngDevtools=``,t.textContent=LR,n.append(t);return}t>0&&setTimeout(()=>RR(e,t-1),100)}var zR=`__DEVFRAME_HUB_CLIENT_CONTEXT__`,BR=`ng-devtools:`;function VR(){try{return window.parent===window?void 0:window.parent[zR]}catch{return}}function HR(e,t,n=50){let r=VR();if(!r){if(n<=0||window.parent===window)return()=>{};let r=()=>{},i=setTimeout(()=>r=HR(e,t,n-1),100);return()=>{clearTimeout(i),r()}}let i=e.map(e=>r.docks.getStateById(BR+e)?.events.on(`entry:activated`,()=>t(e))??(()=>{})),a=r.docks.selectedId,o=e.find(e=>BR+e===a);return o&&t(o),()=>i.forEach(e=>e())}async function UR(e){let t=VR();if(!t)return!1;try{return await t.docks.switchEntry(BR+e)}catch{return!1}}var WR=[`nav`],GR=[`main`],KR=(e,t)=>t.id;function qR(e,t){e&1&&(ps(),R(0,`svg`,4),B(1,`path`,16),z())}function JR(e,t){e&1&&(ps(),R(0,`svg`,4),B(1,`path`,17)(2,`path`,18)(3,`path`,19)(4,`path`,20)(5,`path`,21)(6,`path`,22),z())}function YR(e,t){e&1&&(ps(),R(0,`svg`,5),B(1,`path`,23)(2,`path`,24)(3,`path`,25)(4,`path`,26),z())}function XR(e,t){e&1&&(ps(),R(0,`svg`,6),B(1,`path`,27),z())}function ZR(e,t){e&1&&(ps(),R(0,`svg`,7)(1,`defs`)(2,`linearGradient`,28),B(3,`stop`,29)(4,`stop`,30)(5,`stop`,31)(6,`stop`,32)(7,`stop`,33)(8,`stop`,34),z()(),B(9,`path`,35),z())}function QR(e,t){e&1&&(ps(),R(0,`svg`,8),B(1,`path`,36),z())}function $R(e,t){if(e&1){let e=W();R(0,`button`,38),G(`click`,function(){let t=O(e).$implicit;return k(q(2).switchTab(t.id))}),B(1,`app-tab-icon`,39),R(2,`span`),Y(3),z()()}if(e&2){let e=t.$implicit,n=q(2);J(`active`,n.tab()===e.id),M(`aria-current`,n.tab()===e.id?`page`:null),j(),L(`name`,e.id),j(2),X(e.label)}}function ez(e,t){e&1&&F(0,$R,4,5,`button`,37,KR),e&2&&I(q().tabs())}function tz(e,t){e&1&&(R(0,`p`,14),Y(1,` Can't reach the devtools server. Check that the dev server is running, then reload. `),z())}function nz(e,t){e&1&&B(0,`app-coming-soon`,15),e&2&&L(`info`,t)}function rz(e,t){if(e&1){let e=W();R(0,`app-dashboard`,42),G(`navigate`,function(t){return O(e),k(q(2).switchTab(t))}),z()}e&2&&L(`rpc`,q(2).rpc())}function iz(e,t){if(e&1){let e=W();R(0,`app-component-tree`,43),G(`focusHandled`,function(){return O(e),k(q(2).componentFocus.set(null))})(`showForm`,function(t){return O(e),k(q(2).showForm(t))}),z()}if(e&2){let e=q(2);L(`rpc`,e.rpc())(`focus`,e.componentFocus())}}function az(e,t){e&1&&B(0,`app-route-inspector`,40),e&2&&L(`rpc`,q(2).rpc())}function oz(e,t){e&1&&B(0,`app-signal-inspector`,40),e&2&&L(`rpc`,q(2).rpc())}function sz(e,t){e&1&&B(0,`app-di-inspector`,40),e&2&&L(`rpc`,q(2).rpc())}function cz(e,t){e&1&&B(0,`app-store-inspector`,40),e&2&&L(`rpc`,q(2).rpc())}function lz(e,t){e&1&&B(0,`app-network-inspector`,40),e&2&&L(`rpc`,q(2).rpc())}function uz(e,t){if(e&1){let e=W();R(0,`app-forms-inspector`,44),G(`focusHandled`,function(){return O(e),k(q(2).formFocus.set(null))}),z()}if(e&2){let e=q(2);L(`rpc`,e.rpc())(`focus`,e.formFocus())}}function dz(e,t){e&1&&B(0,`app-pipes-inspector`,40),e&2&&L(`rpc`,q(2).rpc())}function fz(e,t){e&1&&B(0,`app-analog-inspector`,40),e&2&&L(`rpc`,q(2).rpc())}function pz(e,t){if(e&1&&N(0,rz,1,1,`app-dashboard`,40)(1,iz,1,2,`app-component-tree`,41)(2,az,1,1,`app-route-inspector`,40)(3,oz,1,1,`app-signal-inspector`,40)(4,sz,1,1,`app-di-inspector`,40)(5,cz,1,1,`app-store-inspector`,40)(6,lz,1,1,`app-network-inspector`,40)(7,uz,1,2,`app-forms-inspector`,41)(8,dz,1,1,`app-pipes-inspector`,40)(9,fz,1,1,`app-analog-inspector`,40),e&2){let e;P((e=q().tab())===`dashboard`?0:e===`components`?1:e===`routes`?2:e===`signals`?3:e===`injectors`?4:e===`store`?5:e===`network`?6:e===`forms`?7:e===`pipes`?8:e===`analog`?9:-1)}}var mz=[`angular`,`ngrx`,`analog`,`nativescript`,`capacitor`],hz={angular:`Angular`,ngrx:`NgRx Store`,analog:`Analog`,nativescript:`NativeScript`,capacitor:`Capacitor`},gz={ngrx:`#d770e8`,analog:`#ff5470`,nativescript:`#8196ff`,capacitor:`#53b9ff`},_z={ngrx:`store`,analog:`analog`},vz={store:`ngrx`,analog:`analog`},yz={nativescript:{id:`nativescript`,name:`NativeScript`,badge:`Coming Soon`,heading:`NativeScript Support`,summary:`Inspect NativeScript Angular apps running natively on iOS and Android, with the same tools.`,color:`#3c5afd`,plans:[`Native overlay that reports the component tree from the device`,`Standalone devtools server your phone or simulator connects to`,`Example NativeScript app to try it end to end`],pr:16,author:{name:`Nathan Walker`,login:`NathanWalker`}},capacitor:{id:`capacitor`,name:`Capacitor`,badge:`Coming Soon`,heading:`Capacitor Support`,summary:`Connect Ionic and Capacitor apps running in a device WebView back to these tools.`,color:`#119eff`,plans:[`Manual overlay start for apps that load from capacitor:// or a device`,`Connection settings passed in, no cross-origin probing`,`Setup guides for the Android emulator and iOS simulator`],pr:21,author:{name:`Erkam Yaman`,login:`erkamyaman`}}},bz={id:`analog`,name:`Analog`,badge:`Not in this app`,heading:`This app doesn’t use Analog`,summary:`In an Analog app this dock shows your file routes, server load() and API calls, render modes and route lint.`,color:`#dd0330`,plans:[`Which page, layout and .server.ts files render a URL`,`Every load(), server function and API call with timing`,`SSR, prerendered or client only, per page`],link:{label:`Get started with Analog`,href:`https://analogjs.org/docs/getting-started`}};function xz(){let e=new URLSearchParams(location.search).get(`view`);return mz.find(t=>t===e)??null}var Sz=class e{analog=A(!1);allTabs=[{id:`dashboard`,label:`Dashboard`},{id:`analog`,label:`Analog`},{id:`components`,label:`Components`},{id:`routes`,label:`Routes`},{id:`signals`,label:`Signals`},{id:`injectors`,label:`Injectors`},{id:`store`,label:`Store`},{id:`forms`,label:`Forms`},{id:`pipes`,label:`Pipes`},{id:`network`,label:`SSR & HTTP`}];view=A(xz());viewAccent=Q(()=>{let e=this.view();return(e&&gz[e])??null});title=Q(()=>{let e=this.view();return e?hz[e]:`Angular DevTools`});analogKnown=A(!1);comingSoon=Q(()=>{let e=this.view();return e===`analog`?this.analogKnown()&&!this.analog()?bz:void 0:e?yz[e]:void 0});tabs=Q(()=>{if(this.comingSoon())return[];let e=this.view(),t=e?_z[e]:void 0;return t?this.allTabs.filter(e=>e.id===t):this.allTabs.filter(t=>(t.id!==`analog`||this.analog())&&!(e===`angular`&&vz[t.id]))});tab=nv(()=>{let e=this.view();return e&&_z[e]||`dashboard`});rpc=A(null);connected=A(!1);connectionFailed=A(!1);stopFollowing=()=>{};nav=hv(`nav`);main=hv(`main`);injector=E(Ss);navObserver;navFade=A({start:!1,end:!1});constructor(){wd(()=>{let e=this.nav()?.nativeElement;e&&typeof ResizeObserver<`u`&&(this.navObserver=new ResizeObserver(()=>this.measureNav()),this.navObserver.observe(e))}),jv(()=>{this.tab(),this.tabs(),ev(()=>{this.revealActiveTab(),this.measureNav()})})}measureNav(){let e=this.nav()?.nativeElement;if(!e)return;let t=e.scrollWidth-e.clientWidth,n=e.scrollLeft>1,r=t>1&&e.scrollLeftn?e.scrollLeft=Math.max(0,n):e.scrollLeftthis.showView(e)));try{window.parent!==window&&RR(window.parent.document)}catch{}let e=new URLSearchParams(location.hash.replace(/^#/,``)).get(`tab`);e&&this.tabs().some(t=>t.id===e)&&this.tab.set(e);let t=Tz();aT(t?{baseURL:t}:{}).then(e=>{this.rpc.set(e),this.connected.set(!0),e.scope(`ng-devtools`).rpc.call(`analog-project`).then(e=>{let t=!!e?.analog;this.analog.set(t),this.analogKnown.set(!0),!t&&this.tab()===`analog`&&!this.view()&&this.tab.set(`dashboard`)},()=>{this.analogKnown.set(!0),this.tab()===`analog`&&!this.view()&&this.tab.set(`dashboard`)}),e.events.on(`connection:status`,e=>{this.connected.set(e===`connected`)})},()=>{this.connectionFailed.set(!0),this.analogKnown.set(!0)})}ngOnDestroy(){this.stopFollowing(),this.navObserver?.disconnect()}showView(e){if(e===this.view())return;this.view.set(e);let t=new URL(location.href);t.searchParams.set(`view`,e),t.hash=``,history.replaceState(history.state,``,t)}formFocus=A(null);componentFocus=nv({source:this.tab,computation:()=>null});showForm(e){this.formFocus.set({id:e}),this.switchTab(`forms`)}inspectFromPanel({source:e,origin:t,data:n}){if(e!==window.parent||t!==location.origin)return;let r=n;r?.type===`ng-devtools:inspect-component`&&typeof r.id==`string`&&this.tab()===`components`&&this.componentFocus.set({id:r.id})}switchTab(e){let t=vz[e];if(this.view()===`angular`&&t){this.activateDock(t,e);return}this.setTab(e),history.replaceState(history.state,``,`#tab=${e}`)}setTab(e){this.keepFocus(),this.tab.set(e)}keepFocus(){let e=document.activeElement,t=this.main()?.nativeElement;(!e||e===document.body||t?.contains(e))&&wd(()=>{let e=document.activeElement;e&&e!==document.body||(this.nav()?.nativeElement.querySelector(`button.active`)??this.main()?.nativeElement)?.focus()},{injector:this.injector})}async activateDock(e,t){if(await UR(e))return;if(window.parent===window){this.keepFocus(),this.showView(e);return}let n=this.rpc();if(!n?.call){this.setTab(t);return}try{await n.call(`hub:docks:activate`,{dockId:`ng-devtools:${e}`}),this.keepFocus(),this.showView(e)}catch{this.setTab(t)}}static ɵfac=function(t){return new(t||e)};static ɵcmp=Oh({type:e,selectors:[[`app-root`]],viewQuery:function(e,t){e&1&&Ng(t.nav,WR,5)(t.main,GR,5),e&2&&Pg(2)},hostVars:2,hostBindings:function(e,t){e&1&&G(`message`,function(e){return t.inspectFromPanel(e)},yu),e&2&&n_(`--%NS%accent`,t.viewAccent())},decls:23,vars:17,consts:[[`nav`,``],[`main`,``],[1,`brand`],[1,`mark`],[`width`,`22`,`height`,`22`,`viewBox`,`0 0 256 256`,`aria-hidden`,`true`],[`width`,`24`,`height`,`17`,`viewBox`,`0 0 256 182`,`aria-hidden`,`true`],[`width`,`22`,`height`,`22`,`viewBox`,`0 0 24 24`,`fill`,`currentColor`,`aria-hidden`,`true`],[`width`,`20`,`height`,`22`,`viewBox`,`0 0 223 236`,`aria-hidden`,`true`],[`width`,`20`,`height`,`22`,`viewBox`,`0 0 223 236`,`fill`,`currentColor`,`aria-hidden`,`true`],[1,`title`],[`aria-label`,`Inspectors`,3,`scroll`],[`role`,`status`,1,`status`],[`aria-hidden`,`true`,1,`dot`],[`tabindex`,`-1`],[`role`,`alert`,1,`connection-error`],[3,`info`],[`fill`,`#3c5afd`,`d`,`M237.248 18.752q18.061 18.06 18.748 45.247V192c-.457 18.12-6.707 33.207-18.748 45.247c-12.04 12.04-27.127 18.291-45.251 18.752H63.999q-27.187-.69-45.247-18.752C6.712 225.208.46 210.121 0 192.001V64q.69-27.187 18.752-45.247Q36.812.692 63.999 0h127.998c18.124.46 33.211 6.711 45.251 18.752m-17.655 103q-6.033-6.003-6.28-15.066V64q-.192-9.063-6.221-15.091c-4.02-4.023-9.054-6.093-15.095-6.22h-21.312v106.626L85.315 42.687H63.999c-6.042.128-11.072 2.198-15.091 6.221c-4.023 4.02-6.093 9.05-6.22 15.09v42.688q-.249 9.063-6.281 15.066q-6.03 5.996-15.091 6.246q9.062.255 15.09 6.25c4.024 4.002 6.115 9.024 6.281 15.066V192c.128 6.037 2.198 11.072 6.221 15.091q6.03 6.03 15.09 6.22h21.317V106.687l85.37 106.627h21.312c6.041-.128 11.076-2.202 15.095-6.221s6.093-9.054 6.22-15.09v-42.688q.249-9.063 6.281-15.066q6.03-5.995 15.091-6.25q-9.062-.25-15.09-6.246`],[`fill`,`#53b9ff`,`d`,`M39.863 54.115L.311 93.716l60.995 61.179L0 216.385l39.428 39.619l61.43-61.507l61.097 61.068l39.552-39.602z`],[`fill`,`#119eff`,`d`,`m140.517 154.896l-39.658 39.601l61.097 61.069l39.552-39.602z`],[`fill-opacity`,`.2`,`d`,`m140.517 154.896l-39.658 39.601l15.267 15.182z`],[`fill`,`#53b9ff`,`d`,`M194.57 100.985L256 39.478L216.431 0l-61.412 61.384L93.917.311L54.365 39.913L216.01 201.761l39.552-39.602z`],[`fill`,`#119eff`,`d`,`m115.36 100.987l39.659-39.602L93.917.313L54.365 39.914z`],[`fill-opacity`,`.2`,`d`,`m115.359 100.985l39.659-39.601l-15.271-15.186z`],[`fill`,`#c30f2e`,`d`,`M152.228.001L48.455 181.046H256L152.228 0z`],[`fill`,`#dd0330`,`d`,`M88.314 26.967L0 181.52h176.628L88.315 26.967z`],[`fill`,`#fff`,`d`,`M18.167 135.294h220.236v-2.419H18.167z`],[`fill`,`#fff`,`d`,`M204.38 170.667c-.861 0-1.67-.358-2.348-1.034c-4.045-4.063-4.221-20.586-4.026-45.33c.11-13.521.257-32.043-1.9-33.504c-2.104.873-2.315 16.172-2.451 26.301c-.162 11.785-.327 23.98-2.242 30.189c-.57 1.84-1.306 3.525-2.786 3.39c-2.086-.185-2.76-3.48-4.317-16.478c-.647-5.4-1.317-10.98-2.101-13.14a11 11 0 0 0-.269-.66c-.835 1.889-1.8 7.079-2.47 10.682c-.927 4.976-1.803 9.676-2.9 11.726c-.847 1.575-2.19 3.63-4.067 3.231c-2.558-.537-3.323-5.693-3.552-8.719c0-25.455-3.33-28.417-3.997-28.753l-.107.081l-.162-.036c-2.377 1.038-2.506 9.294-2.627 17.276c-.096 5.856-.198 12.492-1.053 18.701c-1.108 8.05-2.448 9.603-4.115 9.507c-3.838-.262-3.95-13.482-3.95-14.987c0-.472.012-1.028.027-1.642c.074-3.076.205-8.8-1.687-10.604c-.25-.239-.603-.515-.879-.437c-1.347.339-2.745 4.714-3.209 6.153c-.147.457-.265.833-.364 1.09c-.078.214-.177.515-.294.88c-1.02 3.095-2.18 6.183-4.16 6.944c-.732.284-1.498.222-2.216-.183c-.953-.541-1.73-1.646-2.455-3.482c-.397-1.016-.735-2.046-1.082-3.081c-.419-1.263-.85-2.569-1.384-3.808c-.419-.965-1.464-1.4-2.796-1.164c-2.768.494-3.232 3.29-3.622 7.5c-.07.733-.137 1.452-.228 2.128c-.011.198-.501 6.38-.814 8.344c-.865 5.39-2.002 7.512-3.89 7.358c-4.66-.398-6.798-20.836-6.684-29.47c.088-6.592-1.104-9-1.818-9.382c-.074-.034-.189-.096-.46.095c-.843.571-1.594 2.348-1.363 4.215c2.566 20.32.674 43.592-3.96 48.833c-1.46 1.649-3.448 1.627-4.832.236c-4.049-4.064-4.218-20.586-4.026-45.33c.11-13.521.254-32.043-1.9-33.504c-2.105.873-2.311 16.172-2.45 26.301c-.163 11.785-.329 23.98-2.246 30.189c-.57 1.84-1.307 3.525-2.782 3.39c-2.091-.186-2.761-3.48-4.321-16.478c-.649-5.4-1.319-10.98-2.101-13.14c-.1-.273-.189-.49-.27-.66c-.832 1.889-1.796 7.079-2.466 10.682c-.927 4.976-1.803 9.676-2.904 11.726c-.846 1.575-2.19 3.63-4.063 3.231c-2.558-.537-3.324-5.693-3.552-8.719c-.003-25.455-3.33-28.417-3.997-28.753l-.106.081l-.166-.036c-2.374 1.038-2.503 9.293-2.629 17.276c-.091 5.856-.194 12.492-1.048 18.701c-1.107 8.05-2.437 9.618-4.111 9.507c-3.846-.262-3.958-13.482-3.958-14.987c0-.472.016-1.028.03-1.642c.074-3.076.207-8.8-1.685-10.604c-.25-.239-.603-.515-.88-.438c-1.347.34-2.75 4.715-3.206 6.155a47 47 0 0 1-.364 1.09q-.16.432-.298.875c-1.02 3.096-2.18 6.187-4.155 6.95c-.736.282-1.506.22-2.22-.185c-.953-.541-1.734-1.646-2.454-3.482c-.398-1.016-.74-2.046-1.083-3.081c-.42-1.263-.854-2.569-1.387-3.808c-.416-.965-1.465-1.4-2.797-1.164c-3.188.567-3.943 4.52-4.55 9.238l-.106.839l-2.411-.32l.114-.824c.527-4.137 1.328-10.39 6.53-11.31c2.446-.435 4.585.581 5.446 2.583c.578 1.34 1.031 2.695 1.466 4.008c.324.99.654 1.98 1.037 2.959c.674 1.708 1.197 2.15 1.392 2.257c1.218-.38 2.462-4.167 2.873-5.414c.13-.402.24-.732.328-.968c.085-.233.195-.571.328-.98c1.097-3.43 2.474-7.144 4.918-7.762c.747-.191 1.903-.166 3.157 1.035c2.665 2.544 2.525 8.48 2.433 12.41c-.014.59-.028 1.126-.028 1.583c0 6.272.93 10.655 1.64 12.16c.367-.77.998-2.63 1.598-7.007c.831-6.066.938-12.624 1.027-18.41c.161-10.24.275-17.663 3.982-19.408c.552-.339 1.469-.522 2.436-.033c3.586 1.803 5.326 11.885 5.326 30.817c.225 2.926 1.013 6.006 1.66 6.448c.004-.066.53-.39 1.394-2.01c.925-1.718 1.845-6.665 2.655-11.026c1.792-9.614 2.606-12.989 4.726-13.166c1.615-.158 2.362 1.896 2.676 2.76c.883 2.422 1.537 7.888 2.23 13.678c.54 4.49 1.31 10.902 2.094 13.497c.084-.228.18-.5.283-.836c1.815-5.878 1.98-17.887 2.14-29.507c.22-16.14.503-26.139 3.448-28.226a2.44 2.44 0 0 1 2.233-.316c3.448 1.144 3.714 11.254 3.519 35.8c-.14 17.799-.313 39.952 3.323 43.603c.317.32.542.32.622.32c.17 0 .413-.161.67-.452c3.681-4.162 6.01-26.022 3.372-46.927c-.328-2.602.677-5.337 2.392-6.514c.946-.652 2.036-.736 2.978-.232c2.145 1.14 3.187 5.024 3.102 11.546c-.15 11.387 2.584 24.714 4.37 26.842c.282-.471.842-1.763 1.379-5.145c.301-1.87.799-8.153.806-8.216c.09-.71.155-1.398.217-2.097c.369-3.924.82-8.804 5.613-9.654c2.444-.435 4.583.577 5.448 2.583c.577 1.34 1.027 2.695 1.46 4.008c.332.99.664 1.98 1.046 2.959c.67 1.708 1.197 2.15 1.387 2.257c1.218-.38 2.467-4.167 2.875-5.41c.132-.402.243-.737.328-.973c.088-.228.195-.57.324-.979c1.1-3.43 2.477-7.144 4.924-7.762c.74-.191 1.9-.166 3.154 1.035c2.665 2.543 2.526 8.48 2.437 12.41q-.029.792-.033 1.583c0 6.272.931 10.655 1.641 12.16c.365-.77.994-2.63 1.601-7.007c.832-6.066.931-12.624 1.027-18.41c.159-10.24.273-17.663 3.98-19.408c.55-.339 1.467-.522 2.44-.033c3.58 1.803 5.325 11.884 5.325 30.817c.224 2.926 1.012 6.006 1.656 6.448c.008-.066.526-.39 1.399-2.01c.923-1.718 1.84-6.665 2.653-11.026c1.786-9.614 2.602-12.989 4.722-13.166c1.62-.158 2.367 1.896 2.68 2.76c.88 2.422 1.535 7.888 2.233 13.678c.534 4.49 1.304 10.902 2.092 13.497c.08-.228.176-.5.28-.836c1.813-5.878 1.976-17.887 2.138-29.507c.216-16.14.504-26.139 3.448-28.226a2.45 2.45 0 0 1 2.234-.316c3.452 1.144 3.718 11.254 3.52 35.8c-.141 17.799-.314 39.952 3.319 43.603c.324.32.544.32.63.32c.165 0 .408-.161.662-.452c3.687-4.162 6.014-26.022 3.375-46.927c-.342-2.723.43-5.47 1.84-6.526c.71-.537 1.575-.647 2.37-.313c2.054.877 3.445 4.63 4.255 11.484c.339 2.87.641 5.974.931 9.036c.641 6.683 1.509 15.69 2.684 17.67c.36-.46 1.096-1.704 2.19-5.038l2.307.753c-1.696 5.157-3.026 7.1-4.755 6.902c-2.69-.299-3.468-5.734-4.84-20.055c-.29-3.048-.59-6.132-.928-8.989c-1.03-8.74-2.782-9.532-2.801-9.54c-.342.174-1.137 1.992-.842 4.31c2.558 20.32.673 43.597-3.964 48.834c-.747.842-1.587 1.27-2.485 1.27`],[`d`,`M12.024.017V0L12 .008L11.976 0v.017L.812 3.892l1.605 14.875l9.559 5.207V24l.024-.013l.024.013v-.026l9.559-5.207l1.605-14.875zm6.868 14.244q-1.64 3.948-6.031 4.166c-2.829 0-4.661-1.7-4.66-1.7q-1.745-1.359-2.398-3.417c-.695-.76-.702-.841-.774-1.145c-.072-.303.045-.388.249-.685q.204-.298.098-.85q-.26-.36-.3-1.128q0-.37.496-.783q.495-.413.607-.632q.083-.119.065-1.031q-.006-.897.995-.975c1-.08 1.565-.832 1.879-1.174c.21-.228.52-.339.91-.341c.551-.026 1.052.185 1.484.62c1.075-.055 2.176.235 3.292.863q2.379 1.414 2.596 3.055q-.257 2.158-5.788-.113q-2.895.819-2.846 3.552q0 2.508 2.422 3.643c-.787-.772-1.122-1.422-1.01-1.959q2.456 2.906 5.588 2.173c-.92.032-1.65-.264-2.198-.893q2.116-.05 3.998-1.972c-.724.576-1.482.794-2.284.657q3.26-2.563 2.307-5.98l-.002-.006a3.02 3.02 0 0 1 .788 2.03q.023 1.175-.795 2.477q.613-.478 1.413-2.047c.23 2.117-.625 3.724-2.574 4.825q.934-.085 2.473-1.23m-5.567-6.63a.319.319 0 1 1 .638 0a.319.319 0 0 1-.638 0`],[`id`,`ng-grad`,`x1`,`49`,`x2`,`226`,`y1`,`214`,`y2`,`130`,`gradientUnits`,`userSpaceOnUse`],[`stop-color`,`#E40035`],[`offset`,`.24`,`stop-color`,`#F60A48`],[`offset`,`.352`,`stop-color`,`#F20755`],[`offset`,`.494`,`stop-color`,`#DC087D`],[`offset`,`.745`,`stop-color`,`#9717E7`],[`offset`,`1`,`stop-color`,`#6C00F5`],[`fill`,`url(#ng-grad)`,`d`,`m222.077 39.192-8.019 125.923L137.387 0l84.69 39.192Zm-53.105 162.825-57.933 33.056-57.934-33.056 11.783-28.556h92.301l11.783 28.556ZM111.039 62.675l30.357 73.803H80.681l30.358-73.803ZM7.937 165.115 0 39.192 84.69 0 7.937 165.115Z`],[`d`,`m222.077 39.192-8.019 125.923L137.387 0l84.69 39.192Zm-53.105 162.825-57.933 33.056-57.934-33.056 11.783-28.556h92.301l11.783 28.556ZM111.039 62.675l30.357 73.803H80.681l30.358-73.803ZM7.937 165.115 0 39.192 84.69 0 7.937 165.115Z`],[`type`,`button`,3,`active`],[`type`,`button`,3,`click`],[3,`name`],[3,`rpc`],[3,`rpc`,`focus`],[3,`navigate`,`rpc`],[3,`focusHandled`,`showForm`,`rpc`,`focus`],[3,`focusHandled`,`rpc`,`focus`]],template:function(e,t){if(e&1&&(R(0,`header`)(1,`h1`,2)(2,`span`,3),N(3,qR,2,0,`:svg:svg`,4)(4,JR,7,0,`:svg:svg`,4)(5,YR,5,0,`:svg:svg`,5)(6,XR,2,0,`:svg:svg`,6)(7,ZR,10,0,`:svg:svg`,7)(8,QR,2,0,`:svg:svg`,8),z(),R(9,`span`,9),Y(10),z()(),R(11,`nav`,10,0),G(`scroll`,function(){return t.measureNav()}),N(13,ez,2,0),z(),R(14,`span`,11)(15,`span`,12),B(16,`span`),z(),Y(17),z()(),R(18,`main`,13,1),N(20,tz,2,0,`p`,14)(21,nz,1,1,`app-coming-soon`,15)(22,pz,10,1),z()),e&2){let e;j(2),J(`ng-mark`,t.view()===`angular`),j(),P(t.view()===`nativescript`?3:t.view()===`capacitor`?4:t.view()===`analog`?5:t.view()===`ngrx`?6:t.view()===`angular`?7:8),j(6),J(`ng-text`,t.view()===`angular`),j(),X(t.title()),j(),J(`fade-start`,t.navFade().start)(`fade-end`,t.navFade().end),j(2),P(t.tabs().length>1?13:-1),j(),J(`connected`,t.connected())(`failed`,t.connectionFailed()),j(3),Z(` `,t.connected()?`Live`:t.connectionFailed()?`Disconnected`:`Connecting…`,` `),j(3),P(t.connectionFailed()?20:(e=t.comingSoon())?21:22,e)}},dependencies:[LT,KE,cA,JA,eM,mN,iF,eI,BL,kR,IR,vT],styles:[`[_nghost-%COMP%] { --%NS%accent-soft: color-mix(in srgb, var(--%NS%accent) 12%, transparent); --%NS%accent-line: color-mix(in srgb, var(--%NS%accent) 45%, transparent); display: flex; @@ -11709,4 +11709,4 @@ main[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] { flex-shrink: 1; gap: 8px; } -}`]})};function Sz(e){try{return new URL(e,location.href).origin===location.origin}catch{return!1}}var Cz=[`localhost`,`127.0.0.1`];function wz(e){if(location.protocol!==`chrome-extension:`)return!1;try{let t=new URL(e);return(t.protocol===`http:`||t.protocol===`https:`)&&Cz.includes(t.hostname)}catch{return!1}}function Tz(){let e=new URLSearchParams(location.search).get(`baseURL`);if(e&&(Sz(e)||wz(e)))return e;if(!(location.pathname.includes(`__ng-devtools`)||location.pathname.includes(`__devframes/`)))return`/__ng-devtools/`}vb(xz).catch(console.error);export{xx as t}; \ No newline at end of file +}`]})};function Cz(e){try{return new URL(e,location.href).origin===location.origin}catch{return!1}}function wz(e){if(location.protocol!==`chrome-extension:`)return!1;try{let{protocol:t}=new URL(e);return t===`http:`||t===`https:`}catch{return!1}}function Tz(){let e=new URLSearchParams(location.search).get(`baseURL`);if(e&&(Cz(e)||wz(e)))return e;if(!(location.pathname.includes(`__ng-devtools`)||location.pathname.includes(`__devframes/`)))return`/__ng-devtools/`}yb(Sz).catch(console.error);export{Sx as t}; \ No newline at end of file diff --git a/extension/ui/index.html b/extension/ui/index.html index fe92dbf..581ac27 100644 --- a/extension/ui/index.html +++ b/extension/ui/index.html @@ -7,7 +7,7 @@ Angular DevTools - + diff --git a/packages/ng-devtools/src/__tests__/component-tree.test.ts b/packages/ng-devtools/src/__tests__/component-tree.test.ts index 906c34e..c32d1b5 100644 --- a/packages/ng-devtools/src/__tests__/component-tree.test.ts +++ b/packages/ng-devtools/src/__tests__/component-tree.test.ts @@ -3,6 +3,7 @@ import { afterEach, describe, expect, it, vi } from 'vitest'; import { collectComponentTree, componentDetail, + componentHostOf, componentHosts, hostPath, type ComponentDebugNg, @@ -240,6 +241,32 @@ describe('collectComponentTree', () => { }); }); +describe('componentHostOf', () => { + afterEach(() => { + document.body.innerHTML = ''; + }); + + it('resolves an element to the nearest component host, through shadow roots', () => { + document.body.innerHTML = `

`; + const [root] = document.getElementsByTagName('app-root'); + const host = document.querySelector('app-shadow')!; + const paragraph = document.querySelector('p')!; + const button = document.createElement('button'); + host.attachShadow({ mode: 'open' }).appendChild(button); + const { ng } = fakeNg( + new Map([ + [root, new _App()], + [host, new Shell()], + ]), + ); + expect(componentHostOf(ng, host)).toBe(host); + expect(componentHostOf(ng, button)).toBe(host); + expect(componentHostOf(ng, paragraph)).toBe(root); + expect(componentHostOf(ng, document.body)).toBeNull(); + expect(componentHostOf(undefined, host)).toBeNull(); + }); +}); + describe('componentDetail', () => { it('reads outputs, listeners, host directives and dependencies', () => { document.body.innerHTML = ``; diff --git a/packages/ng-devtools/src/component-tree.ts b/packages/ng-devtools/src/component-tree.ts index c31f75e..a4fae47 100644 --- a/packages/ng-devtools/src/component-tree.ts +++ b/packages/ng-devtools/src/component-tree.ts @@ -116,6 +116,14 @@ export function hostPath(ng: ComponentDebugNg, el: Element): string { return parts.join(' > '); } +export function componentHostOf(ng: ComponentDebugNg | undefined, el: Element): Element | null { + if (!ng?.getComponent) return null; + for (let node: Element | null = el; node; node = parentOf(node)) { + if (componentAt(ng, node)) return node; + } + return null; +} + function unwrap(ng: ComponentDebugNg, value: unknown): unknown { if (typeof value !== 'function') return value; const signal = read(() => !!ng.isSignal?.(value), false); diff --git a/packages/ng-devtools/src/overlay.ts b/packages/ng-devtools/src/overlay.ts index c9355b2..1bdc1c2 100644 --- a/packages/ng-devtools/src/overlay.ts +++ b/packages/ng-devtools/src/overlay.ts @@ -30,11 +30,17 @@ import { type PreloadRecord, } from './router-actions.ts'; import { createSignalHistory, type RawSignalNode } from './signal-history.ts'; -import { collectComponentTree } from './component-tree.ts'; -import { elementById } from './element-id.ts'; +import { collectComponentTree, componentHostOf } from './component-tree.ts'; +import { elementById, elementId } from './element-id.ts'; import { collectSignalGraph, graphKey, toSignalTarget, type SignalTarget } from './signal-graph.ts'; import { serializeNamed } from './serialize.ts'; +declare global { + interface Window { + __ngDevtoolsComponentOf?: (el: unknown) => string | null; + } +} + let highlightEl: HTMLElement | null = null; let highlightTimer: ReturnType | undefined; let highlightFrame = 0; @@ -375,6 +381,11 @@ export async function initOverlay(options: { baseURL?: string | string[] } = {}) }, }); + window.__ngDevtoolsComponentOf = (el) => { + const host = el instanceof Element ? componentHostOf(getNg(), el) : null; + return host ? elementId(host) : null; + }; + const leave = () => { pipes.pause(); void my.rpc.call('forget-forms-page', pageId).catch(() => {}); @@ -411,6 +422,7 @@ export async function initOverlay(options: { baseURL?: string | string[] } = {}) clearTimeout(routerPushTimer); releasePageId(); clearHighlight(); + delete window.__ngDevtoolsComponentOf; }; } diff --git a/packages/ng-devtools/vitest.config.ts b/packages/ng-devtools/vitest.config.ts new file mode 100644 index 0000000..d0507ee --- /dev/null +++ b/packages/ng-devtools/vitest.config.ts @@ -0,0 +1,9 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + test: { + // Node 25+ ships its own `localStorage` global, which is `undefined` without + // `--localstorage-file` and hides the jsdom one the tests rely on. + execArgv: ['--no-experimental-webstorage'], + }, +}); diff --git a/project.json b/project.json index 56644a4..5ab9be8 100644 --- a/project.json +++ b/project.json @@ -66,7 +66,10 @@ "defaultConfiguration": "development" }, "test": { - "executor": "@angular/build:unit-test" + "executor": "@angular/build:unit-test", + "options": { + "runnerConfig": true + } } } } diff --git a/vitest-base.config.ts b/vitest-base.config.ts new file mode 100644 index 0000000..d0507ee --- /dev/null +++ b/vitest-base.config.ts @@ -0,0 +1,9 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + test: { + // Node 25+ ships its own `localStorage` global, which is `undefined` without + // `--localstorage-file` and hides the jsdom one the tests rely on. + execArgv: ['--no-experimental-webstorage'], + }, +});